79. Can We Call QTP Test From Another Test Using Scripting. Suppose There Are 4 Tests And I Want To Call These Tests In A Main Script. Is This Possible In QTP?
Date Posted: 06/27/2012
Ans:
1. Insert > Call to Existing Action
2. Select the "Test From" (If "Action" is being called from
another Test)
3. Select the "Action" you want to call
4. Then select the Location, where the "Action" needs to be
called in the current script
5. Click "OK"
Or you direct write the script as below in the line where
you want to call the action:
"RunAction , (Iteration)"
Here, "" is the Action you want to call and
the "(Iteration)" is optional where you can define number
of iterations you want to execute.
|