urig
urig

Reputation: 16841

Where are the Selenium Logs when Running in Azure DevOps Server

I am running a Selenium test, in C#, driven by MSTest in Azure DevOps Server 2019.

When I look in the logs for the Visual Studio Test task which runs the MSTest tests all I can see is that the test method has been discovered and that the test ran.

I have embedded calls to Console.WriteLine(), Debug.WriteLine() and Trace.WriteLine() in various places in my Selenium test but none of them ends up in the log.

How can I configure the ADOS pipeline to show me log messages coming in from my test?

Upvotes: 0

Views: 1103

Answers (2)

Shayki Abramczyk
Shayki Abramczyk

Reputation: 41685

From my experience all the logs outputs not displayed in the Azure DevOps UI, but you can find them in the .log attachment.

Only the errors messages displayed in the Azure DevOps.

Upvotes: 1

Michelle
Michelle

Reputation: 21

The Azure DevOps documentation at https://learn.microsoft.com/en-us/azure/devops/pipelines/test/review-continuous-test-results-after-build?view=azure-devops says "If you use the Visual Studio Test task to run tests, diagnostic output logged from tests (using any of Console.WriteLine, Trace.WriteLine or TestContext.WriteLine methods), will appear as an attachment for a failed test." However, in my testing I have found that is not the case. Console.WriteLine and Trace.WriteLine do not appear in the attached logs. Output from TestContext.WriteLine does appear in the logs, so I am currently using that.

Upvotes: 2

Related Questions