Running automated tests with containerized workbench and agents from Docker
To simplify the deployment piece of Continuous Testing, you can use built Docker images
to deploy the workbench and the agents and start testing in no time. You need not install the
workbench and the agents on different machines. You can deploy the Docker images and use Docker
commands to play back tests.
Before you begin
You must have configured Docker container as per the instructions in the Configuring Docker containers topic.
You must already have exported the test assets to a location from where Docker can import them. For information about exporting the test assets, see Copying test assets with dependencies.Note: The version number of the
container images and the desktop products must match. If you have previous version of the container
image, uninstall it and install the current version. To uninstall the image, use these commands:
- Stop the container by running
.docker stop "CONTAINER ID" - Uninstall the image by running
.docker rmi -f "image ID"
Procedure
What to do next
docker stop containerID
If you used Docker Compose tool
to run the tests, you can stop the agents when the workbench container exits by
running
docker-compose up --abort-on-container-exit