Search⌘ K
AI Features

Create the Pipeline and Run the Tests

Understand how to create a CI pipeline in Azure DevOps that builds a Docker image from your Selenium Java test project and runs the tests inside a container. This lesson guides you through building and executing a pipeline using YAML, setting environment variables for browser configuration, and viewing test results.

The pipeline that runs the Selenium tests in a Docker container relies on the Dockerfile from the root project folder:

Shell
FROM selenium/node-chrome
COPY . .
USER root
RUN apt-get update
RUN apt-get install maven -y
RUN apt-get install openjdk-8-jdk -y
ENTRYPOINT ["bash", "command.sh"]

Add the above ...