How to disable the Screenshot of Exception when playback

Заблокировано How to disable the Screenshot of Exception when playback

  • Friday, May 11, 2012 3:17 AM
     
     

    I used Coded UI to test some UI application, which will throw a lot of exception (like UI does not exist). I just try/catch them and ignore it. But this will generate a lot of picture/screenshot in our test result folder.

    How can I disable it? Playback didn't provide such setting (or I didn't find it).

    Thanks,

    Raymond

All Replies

  • Friday, May 11, 2012 4:05 AM
     
     Answered

    Raymond,

    There is no way to disable this. See UITestContrl captureImage().

    -Tejas.

  • Saturday, May 12, 2012 9:07 AM
     
     

    That is a bad news for me. Frequent disk I/O will impact our product under test a lot. :(

    Is there other way to redirect the output directory to my defined folder?

    Thanks,

    Raymond

  • Monday, May 14, 2012 6:31 AM
    Moderator
     
     Answered

    Thanks for Tejas’s help.

    Hi Raymond,

    Thank you for posting in the MSDN forum.

    There is no way to disable this. See UITestContrl captureImage().

    Maybe the next version can achieve it. You could submit the suggestions and ideas: http://visualstudio.uservoice.com/forums/121579-visual-studio.

    Is there other way to redirect the output directory to my defined folder?

    We could create a folder to store the result files with MStest, for detailed information, see “MSTest should not create a new test result folder for each testrun”. Hope it could help.

    About this new issue, it would be better if you open up a new thread for the new question. In this way, our discussion here will not deviate too much from the original issue. This will make answer searching in the forum easier and be beneficial to other community members as well. Thanks for your understanding.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us