The functioal tests are written with Robotframework.
The easiest way to get going is with docker. You can download and install docker from here.
Otherwise follow the instaructions here to install robot framewok on your machine.
- Copy the
config.sample.py
file and save it asconfig.py
, then...- Set the
START_URL
the the URL of the instance of the site editor to be tested. - Set the
SITE_EDITOR_USER
andSITE_EDITOR_PASSWORD
to the username and password of the primary user with which the site will be tested.
- Set the
- Copy the
.env.sample
file and save it as.env
, then...- If running the tests against a local env... Set the
IP_ADDRESS
to the IP address of the
- If running the tests against a local env... Set the
If you have docker installed run the tests simple with:
docker-compose run robot
.
To pass specific robot specific option, do something like docker-compose run -e ROBOT_OPTIONS="-T -i wip" robot
For a wider screenwith, add -e SCREEN_WIDTH=3000
See https://github.com/ppodgorsek/docker-robot-framework for more details of running the tests with docker.
Otherwise (in the absense of docker), use:
robot --outputdir reports/ ./TestCases/
.