This example test project is prepared from cucumber and junit. It uses web-automation-template library.
- It uses docker-zalenium and docker-selenium to run your tests in Firefox and Chrome.
- For web responsive design it uses butomo1989/docker-android-x86-8.1
- If you want to run your test remote, you will read following paragraphs
-
Docker engine running, version >= 1.11.1 (probably works with earlier versions, not tested yet).
-
Make sure your
docker-compose
installed. -
Make sure your docker daemon is running (e.g.
docker info
works without errors). -
Pull the docker-selenium image.
docker pull elgalu/selenium
-
docker pull dosel/zalenium
# Pull docker-selenium
docker pull elgalu/selenium
# Pull Zalenium
docker pull dosel/zalenium
docker run --rm -ti --name zalenium -p 4444:4444 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/videos:/home/seluser/videos \
--privileged dosel/zalenium start \
--desiredContainers 2 \
--maxDockerSeleniumContainers 2 \
--maxTestSessions 2 \
--screenWidth 1920 --screenHeight 1080 \
--timeZone "Europe/Istanbul" \
--videoRecordingEnabled true \
--keepOnlyFailedTests false \
--debugEnabled true \
--seleniumImageName elgalu/selenium
or you can run it just
```sh
cd /web-automation-junit-example/docker_configs/docker_zalenium
docker-compose up -d
```
- More usage examples, parameters, configurations, video usage and one line starters can be seen here
- Stop it:
docker stop zalenium
ordocker-compose down
- Dashboard, see all the videos and aggregated logs after your tests completed.
- Live preview of your running tests http://localhost:4444/grid/admin/live
- Video recording, check them in the
/tmp/videos
folder (or the one you mapped when starting Zalenium) - Check the complete documentation at https://zalando.github.io/zalenium/