Search⌘ K
AI Features

Run the Tests

Explore running Selenium automated tests inside Docker containers. Understand how to use Docker commands to create containers with necessary environment variables and execute Maven to compile and run tests. Gain hands-on experience building Docker images and running test containers, ensuring tests pass smoothly as part of your CI/CD process.

Having the Docker image created, we can use the docker run command to run the container that executes the tests:

C++
docker run -e "BROWSER=chrome" tests

The settings of the docker run command

tests is the name of the image to be used for creating the new container.

The -e "BROWSER=chrome" option creates an environment variable inside of the container named BROWSER, with the ...