Locate the logs and screenshots

Learn how to locate and display the logs and screenshots.

We executed the Selenium tests successfully and can see the tests’ names, execution times, and statuses on the pipeline build page.

But how can we access the logs and the screenshots that are collected for each executed test?

Before seeing them, we need to figure out where they are stored.

Find the logs and screenshots

This can be done using a new task in the pipeline to display all files from the current working folder.

The new task uses the Bash type and executes the ls command to display all files from the default working directory in the console (lines 27–31).

The path of this directory is available in a system variable named $(System.DefaultWorkingDirectory). The project’s code is downloaded from the repository in this folder.

Get hands-on with 1200+ tech skills courses.