This folder contains a test suite for various UI interactions. Tests are written and run by Robot Framework.
pip is a Python package management system which can be used to install Robot Framework. Get it at https://pip.pypa.io/en/stable/quickstart/.
pip install robotframework
pip install robotframework-selenium2library
Tests written in Robot Framework have Selenium under cover. Selenium uses a headless browser to automatically interact with a webpage like a normal user would. For that, browser controller must be installed.
There are basically two options:
You should put path to the driver folder to your Path
. Obviously, you should have Firefox or Chrome installed too for geckodriver/chromedriver to work.
Assuming you have Python’s Scripts folder added to your Path
, you should be able to run all test suits:
robot ./
To set a custom output folder, use option --outputdir
:
robot --outputdir ./output ./
To run a single test suit, point to that file:
robot --outputdir ./output ./graph.robot
To run a particular test from a test suite, use option --test
:
robot --outputdir ./output --test "General" ./graph.robot
In your output folder (./
by default), there should be a HTML file called report.html
. It contains additional details about executed test runs.