Insert Call To Copy,Insert Call To Existing Action

Steps to Insert Call to Copy in QTP:
  • Navigate to Expert View
  • Right click > Action > Insert Call To Copy option
  • Select the action to be copied
  • Observe that a new action is created in the current test
This can be used for Resuable and Non Reusable action.
  • If the copied action has checkpoints, parameters, data table plus any definedparameters , everything will be copied into the current test
  • If the copied action has per action repository /shared object repository, that also will be copied into the current test
  • Even though the copied action is reusable in actual action it becomes non re usable in the current test
  • When the copied action has shared repository, the copied action will also use the shared object repository
  • Make sure that the shared object repository contains all objects referenced in copied action before running the test
  • If necessary make the changes in the repository
  • Once the action is copied into the test, we can delete, add or modify the action just as we could with any other non reusable action
  • When the changes are done to this action after insertion, it affects only this action
  • Any changes we make to the original action will not affect the copied action
Steps to use "Insert Call To Existing Action":

  • Go to expert view of the action
  • Right click and Select Action > Insert Call to Existing option
  • Observe that a window is opened
    • You can view the list of re usable/shared actions by clicking the ... button in the newly opened window
    • Observe that the above dialog creates RunAction "Selected Action", oneIteration code
    Note:
    • We can create the above code manually in our testing without following the above mentioned steps
    • Deleting the code will not delete the link between the actions
    • To delete the link between the actions, we should use the Keyword view.
SHARE

About அமரகோசம்

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment