create a web autotest framework with docker-selenium and robotframework
- run
sudo bash ./script/host_setup.shon host to- install docker and docker-compose
- install python and dependencies
- fill in properties file
./conf/main.properties
run python3.6 ./script/run_autotest.py
it will create three docker containers
- robot: based on a python3.6-apline docker image for running all the test cases written by robotframework and python
- se-node-ch: using selenium/node-chrome-debug image. docker-selenium node with chrome installed, needs to be connected to a grid hub. It has VNC installed which can be used as an debug method. You can access the UI using docker private ip and password is
secret. - se-hub: selenium grid hub image
Here is the demo
The robot docker container (under ./docker/robot) is running robot framework tests:
conf/: contains robotFramework arguments, test cases variableslib/: all python code, low level keywords implementationpages/: low level python keywords implemented for each web page.
res/: robot resource files. intermediate level keywords.test/: all test cases written in robot.script/: start point to run tests
required libraries under ./docker/robot/conf/requirements.txt
Test Cases are created to test the sample ecommerce website http://automationpractice.com/index.php
