Reputation:
I have a VB.NET application with a dialog. With HP QTP I've recorded the following script:
1. Dialog("CDRCreator1.1").WinButton("OK").Click
2. SwfWindow("CDRCreator").SwfButton("Select System").Click
3. SwfWindow("CDRCreator").SwfWindow("Dialog1").SwfComboBox("ComboBox1").Select "VALUE01"
4. SwfWindow("CDRCreator").SwfWindow("Dialog1").SwfButton("OK").Click
5. SwfWindow("CDRCreator").Close
The script clicks on a button provoking the opening of a dialog box (point 2). All the operations (3. and 4.) go correctly on, by the dialog box. But then QTP stucks because seemes to return on step 3. for some reason, but the dialog box is not present yet.
Have you got any suggestion on haw solve it? Thank you.
Upvotes: 1
Views: 197
Reputation: 190
First of all, I am not providing the exact solution but I am just giving the possibilities, which I think looking at your code you should try out.
First things first:
Please run it in debug mode and check whether the execution is going back to 3rd step or its just stuck at the 4th step, I don't think execution ever goes back to previous step unless its started right over from first line or kept in loop.
To do this, keep a breakpoint at step 2, when execution comes and stops at breakpoint line, press F11 and check the flow of execution.
Similar kind of post with different add-ins but same issue as yours http://community.hpe.com/t5/Unified-Functional-Testing/QTP-stuck-in-execution/td-p/4730300
Make sure that proper add-ins are loaded while identifying objects and executing the application. Try with Java,ActiveX and .Net add-ins.
Sorry still no reps to comment so trying to help you out by writing as an answer
Upvotes: 1