I am using QTP 8.2
In action1 I have called a new action(action2) by selecting the radio button <after the current test>. for this no statement is generated.In Action2 I have recorded the script.But I need to call the action2 in Action1 in If condition only.If condition Passes then only It should call Action2 otherwise It should not call. How can I change it to the <After the current step> ?
By giving the statement :RunAction "Action1_2", oneIteration
It will call but how to avoid to call action2 after ending of action1 ?
Thanks In Advance
Re: Action call
If you want to end the test if the condition fails:
RunAction "Action1_2", oneIteration
You may also choose to record your Action2 in another test, and just make it reusable. This will make it not part of your main calling test, thus, it will not be executed after your first action.
Also please clarify, there are two radio buttons available.
1. At the end of the test
2. After the current step (not test)
So which on did you actually select?