Unexpected error in silverlight application

3 posts, 0 answers
  1. Michel
    Michel avatar
    19 posts
    Member since:
    Jan 2011

    Posted 16 Feb 2011 Link to this post

    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. Daniel Djambov
    Admin
    Daniel Djambov avatar
    62 posts

    Posted 28 Feb 2011 Link to this post

    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!
  3. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 28 Feb 2011 Link to this post

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