Micro Focus QTP (UFT) Forums
ExitAction - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: ExitAction (/Thread-ExitAction)



ExitAction - mv8167 - 04-21-2011

I have an If...Then... ElseIf...Else statement. When my ElseIf statemebnt is executed, I do not want my script to end. To end the If...Them statement, can I use ExitAction? I have been reading on the blog that it does. But my ExitAction exits the script like the ExitTest call. Or is ExitAction only for certain calls like the Do loop?


RE: ExitAction - sreekanth chilam - 04-21-2011

HI,

ExitAction: Exits the current action.
ExitActionIteration: Exits the current iteration of the action.
ExitTest: Exits the entire test.
ExitTestIteration: Exits the current iteration of the test.


RE: ExitAction - mv8167 - 04-22-2011

I have read and seen this here in a blog. thx

I figured that in my If..Then thast I did not need the ExitAction. When I did use the ExitAction, it kicked me completly out of the test. I thought it would only kick me out of the If statement.

I guess the ExitAction is for exiting functions or Do loops. Not If statements.

thx


RE: ExitAction - A.Saini - 04-22-2011

HI,

We can use any of the below in the conditional statements. It totally depends on the requirements.

1. Exit Action
2. Exit Action Iteration
3. Exit Test
4. Exit Test Iteration

Smile


RE: ExitAction - vIns - 04-26-2011

Hi..ur IF Else is within a loop?
if not..do you really need to perform elseif check when you want to actually exit?
Can u plz post that full code?