Micro Focus QTP (UFT) Forums
QTP is not navigating to 'Next' step - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP is not navigating to 'Next' step (/Thread-QTP-is-not-navigating-to-Next-step)



QTP is not navigating to 'Next' step - kotaramamohana - 07-27-2011

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


RE: QTP is not navigating to 'Next' step - rajpes - 07-27-2011

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