Getting Started with Robot Framework

The era is now revolving around Robots and technology, we want to contribute in your learning by posting something interesting about Robot Framework.

Robot Framework is an open-source test automation framework for acceptance testing and acceptance test-driven development.

To setup Robot Framework, prerequisites for running the script for acceptance testing framework are:

  1. Install Python with pip
  2. Install Pycharm IDE
  3. Install Selenium (optional)
  4. Install Robot Framework
  5. Install Robot Framework Selenium Library

Install Python:

Visit the following website to download Python software.

https://www.python.org/downloads/

Download the latest version for your operating system. During Installation the Setup offers an option ‘Add Python’ to PATH. When you check this box, the tool will automatically update the path of Python in environment variables. Once the installation is done, configure environment variables by adding the python script folder path to the System variables.

To verify if python and pip are correctly installed, Open command prompt and run below command.

  1. python –version
  2. pip –version

Install Pycharm IDE:

 

Visit the following website to download PyCharm IDE Community Version.

https://www.jetbrains.com/pycharm/download/ 

Once the PyCharm downloaded, Install the PyCharm.

 

Install Selenium:

The python should be installed before installing the selenium.

To install Selenium, Open Command prompt and type the following command

pip install selenium

 

Install RobotFramework:
To install robot framework package, type the following command in the command prompt:

pip install robotframework

 

Once the installation is done, to check whether the framework is properly installed , the version number and other details, type the following command in the command prompt

pip install robotframework

 

To update the existing robotframework version to the latest, type the following command in the command prompt

pip –upgrade robotframework
 

To install the specific version of robot framework, following command should be use:
pip install robotframeework==5.0.0

 

Install RobotFramework Selenium Library:

To install the robot framework selenium library, type the following command in the command prompt

pip install robotframework-seleniumlibrary

 

Once all the packages have been installed, to check the list of all installed packages in python, type the following command in command prompt:

pip list

 

Launch the PyCharm to set the libraries.

Create a project and inside the project navigate to Settings under files.

Click on Project Interpreter under newly created project on the pop-up window.

Click on `+` button to add all the packages that are installed in above steps.

Selenium Library

Robot Framework Library

RobotFramework-Seleniumlibrary

 These plugins should be part of PyCharm.

 

 The PyCharm can’t identify the robot related files, the plugin named ‘IntelliBot’ should be installed  adds smart editing features to support the Robot Framework. 


Tags:
Share: