How to debug

4 posts, 0 answers
  1. Sydney
    Sydney avatar
    20 posts
    Member since:
    Jun 2010

    Posted 28 Oct 2010 Link to this post

    I have a test case that works fine when run manually, but doesn't work when the exact same steps are performed using WebAii.  I'd like to step through the code and see what's going on, but of course, the code of interest isn't running in the debugger.  I've tried attaching to the IE process, but nothing happens. 


    Late Edit:  I should add that the problem seems to be that test case involves a jquery dialog (not a separate window, but a hidden div that behaves as a dialog).  If that dialog is opened manually, it works.  If opened by WebAii, even though the behavior is correct, and the subsequent changes to fields is correct, they are somehow not registered when the page posts back.
  2. Cody
    Cody avatar
    3360 posts

    Posted 02 Nov 2010 Link to this post

    Hello Sydney,

    If you're referring to your WebAii code, you should have no trouble debugging it in the Visual Studio debugger. What you can do is to set a breakpoint on the line of code you'd like to start debugging at, then execute the test from Test View and select Debug Selection as shown in the attached screen shot. The test will then launch with the Visual Studio debugger already attached to it. When the breakpoint is it, the debugger will break and take over. I do this quite regularly for debugging WebAii tests as well as coded steps in our WebUI Test Studio product.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Robert
    Robert avatar
    10 posts
    Member since:
    Oct 2008

    Posted 13 Jun 2013 Link to this post

    Saw this thread and I'm having issues with debugging.  I converted my stand-alone tests to VS project (2010).  Set a breakpoint and opened Test View and selected Debug Selection.  Throws an error right from the start saying unexpected dialog.  Yet if I run same test stand-alone it works fine and if I run normal execution within VS it runs fine.  What's up with this???
  4. Cody
    Cody avatar
    3360 posts

    Posted 17 Jun 2013 Link to this post

    Hi Robert,

    It sounds like you're running into our Unexpected Dialog Handler. When you run via Quick Execute it is turned off by default. When you run from Test View it is enabled. You can turn it off by changing the Test Settings.

    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top