This project provides some common usage examples for docker-selenium and docker-selenium-grid. See technical details in related article.
The main intention is to show how to use the following features in docker containers:
- video recording
- network traffic recording
Custom capabilities with required video info / proxy are set in WebDriverContainer
.
Video / HAR attachment process is triggered in BaseTestListener
.
Note that this project depends on browsermob-proxy-rest. So first you'll need to deploy it into your local maven repository. You may also want to build BMP image from docker-browsermob-proxy.
HAR attachment is implemented as an embedded version of HAR Viewer.
Use the following command to run tests against docker containers:
mvn clean test
To generate test results report, you need to run:
mvn site