Micro Focus QTP (UFT) Forums
QTP skips action - 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 skips action (/Thread-QTP-skips-action)



QTP skips action - arpan - 08-03-2013

Hi Guys,
I've 8 Actions in my script. I also have a Recovery scenario where i've selected 'Go to next action' option any time error occurs. However, when error occurs it skips multiple action. Behavior is as follow:

I'm getting error on action 4, so instead of going to action 5 it goes to action 6. Then, i'm getting error on action 6, so instead of going to action 7 it jumps to action 8. Can someone please help me out here??

Thanks in Advance!!


RE: QTP skips action - ravi.gajul - 08-05-2013

Are actions 4 and 5 nested and similarly 6 and 7?
could you please post the test flow panel screen shot?


RE: QTP skips action - arpan - 08-05-2013

No the actions are not nested. PFA the screenshot of Test Flow.

Thanks for looking into this problem Ravi.


RE: QTP skips action - ravi.gajul - 08-06-2013

Please disassociate the recovery scenario file and re-run the script. It might be possible that there is an error in the action that is skipped.The recovery scenario gets activated for any error that QTP wants to throw.


RE: QTP skips action - arpan - 08-06-2013

Can you please tell me how can i disassociate it??


RE: QTP skips action - ravi.gajul - 08-06-2013

click File->Settings->Recovery.In the recovery panel,you will see all the assosciated recovery scenario,remove these by clicking on "X" button.You can later reassociate if required.


RE: QTP skips action - arpan - 10-08-2013

Thanks Ravi. I was able to solve this issue by removing the recovery scenario. But same issue occurs when i reassociate it. Is there any other way i can skip action upon any kind of error?