What are Call to Copy of Action and Call to Existing Action?
Posted By Lax on March 01st, 2009 in QTP Lessons
After creating a Reusable action, you can call it in the main Test in two ways:
- CALL TO Copy of Action: Copies the entire code of an Action, all data tables, and object repositories into theĀ existing test. You can also edit these Actions.
- CALL TO Existing Action: Associates an action with the calling test. Any changes to the action must be made in the original action. This method is recommended method because it requires maintaining the action only at one place in the original action.

Note:
- Plan how to place tests in the main calling test. Determine if nesting actions are required for the business process.
- The recommended practice for calling actions is to insert all steps and calls to actions into the original ACTION1 of the test. Assume that ACTION1 is container for the test. QuickTest exposes the calls to the functions that enable testers to add steps or programming logic to the actions.
- If you want to make slight modifications to the action in only one test, use the CALL TO COPY OF ACTION option to paste a copy of the action in the test. If you modify your actions very often and also want modifications to affect all the tests containing the action, use the CALL TO EXISTING ACTION option.
Similar Posts: QTP Lessons
