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

Any possibility of Exception handling..

3 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
wish
Top achievements
Rank 1
wish asked on 26 Aug 2011, 05:16 AM
Hi Cody/Plamen

I have another scenario like below...

when am executing a recorded test script or case....some times......a exception window.....like
    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 level...so that if any exception appears should in future....it shoudl close by clicking ok/continue button so that it should continue my execution....

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

Thanks.,
Hari

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 29 Aug 2011, 12:33 PM
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,
Plamen
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
0
wish
Top achievements
Rank 1
answered on 01 Sep 2011, 07:13 AM
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,
Hari
0
Cody
Telerik team
answered on 07 Sep 2011, 07:48 PM
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,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
wish
Top achievements
Rank 1
Answers by
Plamen
Telerik team
wish
Top achievements
Rank 1
Cody
Telerik team
Share this question
or