Reputation: 4249
I want to know the difference between following code:
Function foo()
'Do something
ExitAction(1)
'Do something 2
Exit Function
End Function
I wonder if the do Something code 2
would be executed or not and reason behind.
Upvotes: 0
Views: 12519
Reputation: 3970
QTP Action
can consist of more than one Function
and this Action
can be called from test to use any of the function written in this Action.
Now about your code block
As you are exiting from the Action itself, you get exit from your function 'foo' as well.Then execution flow will return to test which called this Action.
Something 2
code block will not be executed.
Upvotes: 2