Any possibility of Exception handling..

4 posts, 0 answers
  1. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 26 Aug 2011 Link to this post

    Hi Cody/Plamen

    I have another scenario like below...

    when am executing a recorded test script or case....some times......a exception
        1. connection failure to db
        2. unhandled exception mesage etc.,

    will appear at any point during my execution flow of my test script or case.....

    Do we  have any option of exception handling at application that if any exception appears should in shoudl close by clicking ok/continue button so that it should continue my execution....

    PLs help me providng ur valuable suggestions...
    thanks in advance..

  2. Plamen
    Plamen avatar
    8 posts

    Posted 29 Aug 2011 Link to this post

    Hello Wish,

    Test Studio provides the UnexpectedDialogAction feature. Currently it's only available when running your tests as part of a Test List. Please read this documentation article on "Avoiding Dialog Handling Problems with the UnexpectedDialogAction Feature" to see how to use it.

    If you want to use this feature when running tests from quick execution, you have to do it in coded step with code like this:
    Settings.Current.UnexpectedDialogAction = UnexpectedDialogAction.HandleAndContinue;
    You can add this coded step at the beginning of each test, in which you expect to appear an unexpected dialog.  
    Unfortunately, this feature will not work only for a native Windows dialogs. So, if it doesn't work for you please send us a screenshot of what your popups look like in order to assist you further in this issue. 

    Hope to here from you soon!
    All the best,
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 01 Sep 2011 Link to this post

    Hi Plamen,

    thanks for your immediate help...

    i tried all your procedures mentioned ie., setting list level and also test script level... but it is not helped 100%

    especially, when i move with "Handleandcontinue" option, i found some movement of cursor over the attached popup message, but its not completely closed the popup, still popup is up state...

    even it is native windows dialog...

    please see the attchement of popup and suggest me with some alternatives...

    Your help really helped me to progress alot in my work...

    Thanks alot,
  4. Cody
    Cody avatar
    3354 posts

    Posted 07 Sep 2011 Link to this post

    Hi Wish,

    I apologize for the delay getting back to you.

    Thank you for the screen shot of the dialog you're trying to handle. The bottom line is we are not able to automatically handle that particular dialog. It is an IE modal dialog which causes the test framework to freeze as long as it is being displayed. The best solution is to uncheck "Always show this message..." so that this particular dialog is not shown.

    All the best,
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top