Back to QMetry All Products Help Page
How to execute the Robot framework tests via terminal?
Pre-requisites
Python and PIP should be installed
Using PIP install requirements.txt/requests/schedule by the following command
Python must be above the 3.0 version. Users can use pip with alias name
like 3 etc based on your python installed.
pip(Alias Name) install -r requirements.txt
pip(Alias Name) install requests
pip(Alias Name) install schedule
Preconditions
A precondition for running the tests is having Robot Framework
_ and SeleniumLibrary_ installed, and in turn, require Python_. Robot Framework installation instructions
__ cover both Robot and Python installations and SeleniumLibrary has its own installation instructions
__.
It is easiest to install Robot Framework and SeleniumLibrary along with its dependencies using pip
_ package manager. Once you have pip installed, all you need to do is running
these commands::
pip(Alias Name) install robotframework
pip(Alias Name) install robotframework-seleniumlibrary
pip(Alias Name) install robotframework-appiumlibrary
Chromedriver path settings
The compatible chrome driver path should be set in the system variable of the user’s machine. For Python-Robot execution, there should be a chrome driver path configured in the global environment variable. For example in Windows OS, the chrome driver should be configured in the PATH variable, and for MAC OS, It should be configured in the bash profile. Below are the examples for;
Note: Provide the chrome driver path only up to the folder level as shown in the screenshots:
MAC OS:
Windows OS:
Executing tests
The test cases
are located in the tests
directory. They can be executed using the robot
command:
robot tests
Back to QMetry All Products Help Page