0

I use MBUnit and Gallio. I want to take screenshot if test resul is fail of browser before it will be closed (I use WebDriver with c#). How I can get test result in test?

user1590561
  • 583
  • 2
  • 6
  • 17

1 Answers1

0

I propose the next solution:

Capture.AutoEmbedScreenshot( TriggerEvent.TestFailedOrInconclusive , "Last screen" , new CaptureParameters() { Zoom = 0.4 } );

See bits-in-motion:blog, there are different ways to do it.

Enjoy ;)

abc123
  • 17,855
  • 7
  • 52
  • 82