Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP is not navigating to 'Next' step
#1
Not Solved
Hi Friends,

We have a framework, It conatins Driver and SubDriver,OR,Testcases(.xls files)

When we executed testcases, Its traversing all the rows in the testcase, If the object is not identified in the application its showing popup window message as object not identified with 'Stop' 'Skip' 'Retry' 'Debug' buttons. If i click on next button in popup window QTP exit from the textcases but its not traversing to next step
Here is the code we have used in Driver
RunAction "SubDriver [SubDriver]", oneiteration,strFileName,strDataLoc,strObjRep,strStatus

If we use the below mentioned code in Driver then ,if we click on 'Next' button in popup window, instead of its navigating to next step its navigating to First step of the test case
RunAction "SubDriver [SubDriver]", alliterations,strFileName,strDataLoc,strObjRep,strStatus

Could you please tell the solution to navigating to next step in a testcase if we click on 'Next' button in popup window.

Here is the settings for Driver and SubDriver:
Driver: File->Settings->Run->one iteration only
SubDriver:File->Settings->Run->Run all iterations

Note: Its working fine without framework, But we are getting the problem when we are using in Framework
Reply
#2
Not Solved
First of all why you are allowing that error dialog box to appear?If the object is not found handle it in the code itself .Applications should never throw errors like that

Make use of 'Exist' method in the SubDriver [SubDriver] script

Code:
if <your_object_hierarchy>.Exist then
'only then, perform the steps in the action
end if
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Step Results jcraig26 1 1,765 12-20-2012, 01:42 PM
Last Post: supputuri
  Ignore Predefined Step Faliure mnybon 0 1,764 11-09-2011, 02:07 PM
Last Post: mnybon
  Test unable to record this step: clicking the first row out of various search results hima 10 6,228 08-25-2010, 07:40 PM
Last Post: supputuri
  Navigating and selecting item under a greyed out parent paul123 0 1,806 03-08-2010, 10:56 PM
Last Post: paul123

Forum Jump:


Users browsing this thread: 1 Guest(s)