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

How to debug

3 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sydney
Top achievements
Rank 1
Sydney asked on 28 Oct 2010, 06:39 PM
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. 

Thanks

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.

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 02 Nov 2010, 11:56 PM
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.

Regards,
Cody
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
0
Robert
Top achievements
Rank 1
answered on 13 Jun 2013, 02:41 PM
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???
0
Cody
Telerik team
answered on 17 Jun 2013, 10:52 PM
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.

Regards,
Cody
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Sydney
Top achievements
Rank 1
Answers by
Cody
Telerik team
Robert
Top achievements
Rank 1
Share this question
or