How to call the QTP script from one action to another action (I want to script for this)
Printable View
How to call the QTP script from one action to another action (I want to script for this)
RunAction runs the specified action in the test.
Before you can use the RunAction statement in the Expert View for an external action, you must first call or copy the external action into your test by choosing Insert > Copy of Action or Call to Action. If the external action does not exist in your test, the RunAction statement is not recognized.
[B][COLOR="Blue"]Syntax[/COLOR][/B]
RunAction ActionName, [Iteration , Parameters]
where
Iteration means the number of time it should be executed
In one way we can call an action by using "Call to Existing Action" which is present in Insert ->select Call to Existing Action and Select the action which we want to call.
In two ways we can call an action
1) Call to copy of Action.
2) Call to Existing Action.
In the above 2 methods,in calling action a statment will appear as Runaction.Action Name.IterationNumber