C# - .NET - MSTest - Test context - Add result fil

2019-07-28 03:14发布

I have a Selenium test automation suite ( in MS Stack ) where I take a screenshot for every test ( incase of failure ) and try attaching to the test result.

I am using this solution to attach the screenshot to the result file.

c# - selenium - MSTest - Unable to add a result file ( using testcontext.AddResultFile ) to the report using testcontext

The issue I am facing is say , if I have 20 test failures out of 150 tests, I have 20 screenshots ( which is expected ) but all these 20 screenshots get displayed for each of the failures.

Not sure what I am doing wrong here..

It looks very ugly when all the test fails as all the 150 screenshots are attached to each of the individual test

Any idea to over come this?

Thanks enter image description here

0条回答
登录 后发表回答