PythonUITests
Sample selenoid usage for python UI tests (Based on the documentation from the selenoid page)
Sample Application under test:
http://www.google.com
What does ./run_test.sh contain and do?
-
Brings up the virtual environment for python3.6
-
Use docker-compose to bring up selenoid and selenoid UI, you can access the selenoid-ui with the below URL
http://localhost:8081/
-
Make sure you pull the docker images for the browser images mentioned in the browsers.json and configure according to the requirements To quickly do this install jq (brew install jq) Run the command
cat /path/to/browsers.json | jq -r '..|.image?|strings' | xargs -I{} docker pull {}
-
All the videos recorded are saved in /video in the PWD (Videos are saved with the session id)
-
If you are changing or updating browsers.json, restart docker image for selenoid, otherwise you docker would not recognise the environment
-
Pull the video recorder
docker pull selenoid/video-recorder:latest-release
How to run the tests?
./run_test.sh --test_type=only