Save Screenshots as Artifact
Explore the process of capturing screenshots generated by Selenium tests running in Docker containers during Azure DevOps pipelines. Learn how to restart containers, copy screenshots to the pipeline workspace, and publish them as artifacts. This lesson equips you with practical skills to preserve visual test evidence through CI/CD pipelines.
We'll cover the following...
We'll cover the following...
We need to add a few more tasks to the pipeline to get the screenshots from the Docker container.
Steps to get the screenshots from the container
Since the container stops after executing the Selenium tests, we need to start it again first.
After it is started, we copy the screenshots from the target/screenshots folder of the container in a sub-folder of the default working folder of the pipeline.
Finally, we save ...