This is a migrated thread and some comments may be shown as answers.

TestList - Take desktop screenshot instead of window

3 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 15 Mar 2013, 05:18 PM
Hello

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?

Thanks
Jon

3 Answers, 1 is accepted

Sort by
0
Accepted
Rodney
Telerik team
answered on 20 Mar 2013, 03:44 PM
Hello Jon,

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


Greetings,
Rodney
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Jon
Top achievements
Rank 1
answered on 20 Mar 2013, 04:46 PM
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.

Thanks for your help Rodney!
0
Accepted
Rodney
Telerik team
answered on 20 Mar 2013, 09:45 PM
You are welcome Jon. 


Take Care, 
Rodney
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Rodney
Telerik team
Jon
Top achievements
Rank 1
Share this question
or