QTP - Call to Copy of Action



Inserting Call to Copy of Action

Testers can insert a copy of an existing action at any point of the script by performing the following steps −

Step 1 − Right click on the scripting area and select "Call to Copy of Action"

Inserting Call to Copy Action Step 1

Step 2 − In the "Insert Call to Copy of Action" Window, Select "Test Name", "Action Name" and also select the location of the action to be inserted.

Inserting Call to Copy Action Step 2

Step 3 − Immediately, the script is auto-generated to show that the copy of an action is inserted.

RunAction "Copy of Calculate", oneIteration

Step 4 − You can check the changes graphically in the test Name Tab as shown below −

Inserting Call to Copy Action Step 3
qtp_actions.htm
Advertisements