avatarAsanka Vithanage

Summarize

Setting up your local machine to execute Robot Framework automation tests

Setting up the environment:

Robot Framework is automation framework developed on top of the python selenium binding. Hence python is required for robot test execution. Further user needs to install few additional python libraries to complete setup.

Let’s start step by step guide

  1. Login to the machine you want to setup

2. Install Python3 and Pip3 , Please refer internet based on your operating system

3. Install Robot framework following below commands

pip3 install — upgrade robotframework pip3 show robotframework

4. Install Robot selenium Library

pip3 install — upgrade robotframework-seleniumlibrary pip3 show robotframework-seleniumlibrary

5. Install RFLint robot framework code analysis Library

pip3 install — upgrade robotframework-lint pip3 show robotframework-lint

6. Install web browsers like Google chrome, Firefox where you want to execute your automation tests

7. Download selenium web drivers matching to browser versions and operating system.Place them on a folder, then add the folder path to the system path variable.

Yes, I know finding matching driver version for specific browser version is nightmare, But have a look here

Execute sample robot code:

Now you have successfully installed all the per-requsets to execute robot framework based automation tests. Lets go and run a small sample.

Save above code in file. Let’s Say GoogleTest. robot

Now if everything configured properly , you should be able to execute the automation with below command from command prompt

Asanka-MacBook:Desktop avithanage$ robot GoogleTest. robot

Selenium
Robot Framework
Python
Selenium Webdriver
Recommended from ReadMedium