Back To Course Home
Run Selenium Java Tests In Azure DevOps
0% completed
Introduction
Why Should You Take This Course?Course PrerequisitesWhy Azure DevOps?Why Java?Course Structure
The Selenium Automation Project
Project InformationDefine the Test CasesThe Test ClassThe Base Test ClassTest Classes QuizPage Object TemplateHomePage ClassResultsPage ClassPage Object Classes Quiz
The Automation Framework
What is in the Automation Framework?DriverFactory ClassLogWriter ClassScreenshotWriter ClassHow to Take Screenshots and ExceptionsListener CodeAutomation Framework Quiz
Run The Automated Tests in Local Browsers
How to Execute Automated Tests With MavenExecute Passing Tests in Command PromptDo it yourselfWhere are the Logs and the Screenshots?Do It YourselfExecute Failing Tests in Command PromptMaven Quiz
Run The Automated Tests in Docker Containers
Why Run Selenium Tests in Docker Containers?
Create the Dockerfile for the Test Container
Create the image of the JAVA test container
Run the Tests
Display the Log Files
Display the Screenshots
Docker Quiz
Create the Project In Azure DevOps
Create the Azure DevOps ProjectAdd the Project to the RepositoryDo it yourselfAzure DevOps Quiz
Run The Automated Tests in Azure DevOps Pipelines
Create the Azure DevOps PipelineRun the PipelineChange Pipeline SettingsCreate the BROWSER environment variableRead the browser name from a pipeline variableRun the tests that belong to a groupAdd Shared Variables to a LibraryChange Pipeline Variable at Run TimeWhat are the Azure DevOps System Variables?Locate the logs and screenshotsPublish Logs as ArtifactsPublish Screenshots as ArtifactsSchedule the Pipeline for Unattended ExecutionAdd User NotificationsRun Jobs SequentiallyRun Jobs in ParallelChange Pipeline Retention PolicyCreate an Automation DashboardPipeline AnalyticsAzure DevOps Pipeline Quiz
Run the Automated Tests In Pipelines Using Docker Containers
Create the Pipeline and Run the TestsSave Screenshots as ArtifactSave Logs As ArtifactWhere is the Tests tab?Publish the Tests InformationDocker Pipeline Quiz
Wrapping Up
Conclusion
Appendix
How to Run the Tests on Your Computer

Display the Log Files

Learn how to access and display the log files.

We'll cover the following
    • Get the name of the container where the tests were executed
    • Start the container
    • Check that the container is up
    • Connect to the container in interactive mode
    • List the files from the root folder of the container
    • Move to the target folder
    • Display the contents of the target folder
    • Move to the logs folder
    • Display the files from the logs folder
    • Display the contents of the trace.log file
    • Practice
      • Hints

Get the name of the container where the tests were executed

Use the command docker ps -a:

Get hands-on with 1400+ tech skills courses.