lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

Passed Tests - Screenshots on HTML report #503

Open manishdube opened 4 years ago

manishdube commented 4 years ago

Describe the solution you'd like It would be great if the is a way to screenshot the passed tests in the HTML report. This is true for failed tests when there is an error and a screen shot is available in the HTML report.

Thank you !

lefthandedgoat commented 4 years ago

@manishdube I looked at currently screenshots are only passed in for failures.

The way the reporter currently works it does not really know the current test that is running, so as it ran and you took screenshots, it doesnt have the ability to add them to a non failing test, and it would not know which test to add them to.

You best option is to probably use the custom file name for saving screenshots and have them include the test names. Sorry.

manishdube commented 4 years ago

Many thanks @lefthandedgoat !