Is there a way to set a test list to take a desktop screenshot instead of a browser window screenshot in the event of a failure?
3 Answers, 1 is accepted
answered on 20 Mar 2013, 03:44 PM
I hope your experience with Test Studio is going well. You can configure a Desktop Capture within a test and save it to disk by enabling logging within a Test List. Keep in mind, a Desktop Capture has to be configured as a test step. There is currently no way to change the debug behavior of Test Studio to allow Desktop Captures on failure.
You can learn more about creating Desktop Captures and saving them to disk by reading this document.
Because our product requires install, and that is part of our testing, we used the awesome Test Studio reporting and wrote tests that were a series of coded steps, these coded steps use the UIAutomation library in .net to install... the only problem is that when a step errors the screenshot is of the browser and doesn't include the install windows...
I guess I will have to catch all errors and code in a handler for taking a desktop screen shot and save it to disk.