TestList - Take desktop screenshot instead of window

4 posts, 2 answers
  1. Jon
    Jon avatar
    55 posts
    Member since:
    May 2012

    Posted 15 Mar 2013 Link to this post

    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
  2. Answer
    Rodney
    Admin
    Rodney avatar
    6 posts

    Posted 20 Mar 2013 Link to this post

    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
  3. Jon
    Jon avatar
    55 posts
    Member since:
    May 2012

    Posted 20 Mar 2013 Link to this post

    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!
  4. Answer
    Rodney
    Admin
    Rodney avatar
    6 posts

    Posted 20 Mar 2013 Link to this post

    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
Back to Top