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

Unexpected error in silverlight application

2 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michel
Top achievements
Rank 1
Michel asked on 16 Feb 2011, 08:47 PM
Hi

I record QA steps on a Silverlight application. At any time I can have a popup RadWindow that display error message if a bug arrived.

I write a step that identified this popup RadWindow and if it exist, log informations and fail the test.

My question is, how can manage this without have to add my step every where ... ? There is a way to manage that in a global way ?

Thank you

Michel

2 Answers, 1 is accepted

Sort by
0
Daniel Djambov
Telerik team
answered on 28 Feb 2011, 04:28 PM
Hello Michel,
    I'm not sure if this is what you are asking, but we offer the following functionality that might work in your case:
when during Test List execution, the application encounters an unexpected dialog, you can determine how to handle it.
From you TestList settings you can set it up so that WebUI Test Studio automatically tries to handle unexpected Dialogs and continues execution.

To do so in QA Edition, create a Test List, include your test(s) there, select Edit Settings of the Test List  and find the one called UnexpectedDialogAction (screenshot 1). Here you can select how your Test List will behave during execution when such event appears.

Depending on the type of pop-up used in your applicaiton, however, this might not work. Hope to hear  from you soon!

Greetings,
Daniel
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Cody
Telerik team
answered on 28 Feb 2011, 06:00 PM
Hi Michel,

What Daniel refers to is great for native Windows dialogs. However you mention a RadWindow which isn't a native Windows dialog. This means I fear what he suggests won't wok in your specific case.

As an alternative we do have a way of executing a specific bit of code at the end of every test, whether it passes or fails. This blog post talks about our recently introduced Test Extension feature. In your case you want to use the OnAfterTestCompleted function. You can use the TestResult result parameter to first check if the test passed or failed. Then if it did fail, look for your RadWindow and capture any data it presents.

Hope this helps.

Greetings,
Cody
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Michel
Top achievements
Rank 1
Answers by
Daniel Djambov
Telerik team
Cody
Telerik team
Share this question
or