Easy setup for test development.
Docker compose builds and runs conteinars for Selenium and Robot framework.
By running them with Docker compose it automatically sets them up in the same network.
Robot framework container runner
runs idle prosess and is therefore ready to run tests when needed.
Test and output folders are mapped to runner container so any chage to test on local machine can be run immidiedly.
And results can be viewed on local machine.
- Clone this repo
- Use Docker compose to set containers
- Run test as explained below
- Check
./output
for the output files
Place your tests in ./robot-tests/
.
There can be subfolders
Setup test runner containers defined in docker-compose.yml
docker-compose up -d --build
Note: option -d
deteaches containers and leaves them running.
Check the names of currently running containers
docker ps
docker exec <robot_runner_container> run.sh
Note: name of the container depends on your base directory.
Defalt:
docker exec robotexample_robot-runner_1 run.sh
Test can also be run with rfw options, to to list options run help. Options include change of log level (default INFO) or exclude tags. Run tests
docker exec <robot_runner_container> run.sh '-h'
docker-compose down
All pip (Python) dependencies are defined in requirements.txt
,
as defined here: https://pip.pypa.io/en/stable/user_guide/#requirements-files