Tuesday, 19 June 2012

Call To Copy Of Action in QTP

This article explains about the call to copy of action and the steps to be followed.
We need to remember the following points when using "Call To Copy Of Action" in QTP.

01.When we insert call to copy of an action in a test, the original action is completely copied to the current test.

02.Complete action represents the various checkpoint, parameters, copied actions data table and any defined parameters.

03.If the copied action has objects in Local Object repository, the copied action's local object repository is also copied with the action.

04.The copied action is inserted to the current test as an independent.

05.The copied action will be non reusable even though the original action was reusable.

06.Once the action is copied to the current test, we can perform the operations like add, modify and delete.

07.Changes made to the copied action will not have any impact on the original actions and also the changes made to the actual action will not have any impact on the copied action.

Steps to create a copy of an action:

We need to follow certain steps to copy the action to current test.

01.Make sure that the selected Test is opened.[Ex: Test1].
02.We can navigate to the insert call to copy option by using any one of the following step.

    Method#01: Navigate to Insert> Call To Copy of Action.
    Method#02: Navigate to Keyword view> Selection the Action>Right Click> Insert Call to copy of action.
    Method#03: Navigate to Keyword view> Selection the Action>Right Click> Action> Insert Call to copy of action.

03.A window will be opened once the option "Insert Call To Copy Of Action" is selected.The opened window will have 2 combo boxes. One is named as "From" and another one is named as "Action".

04.The From combo box will have the list of Tests available. We can select a particular Test which contains the action to be copied or we can select a particular test by clicking on the browse button which is located just adjacent to the combo box.

Note: Assume that the browse button is clicked and the Test which contains the Action to be copied is selected. Now the system will ask for the path. We can choose either absolute and relative path.

06.Once the test is selected, we need to select the action to be copied.To do this, we need to click on the Action combo box which is located just below the From combo box.

07.Once the action is selected,the type of copied action[Usable/Non-Reusable] action will also be displayed and also we can find a text box "Exit New Action Properties". We have to select this option if we want to make some changes the copied action.

 Note:Assume that we didn't select "Edit New Action Properties" check box when selecting the action. We can do this later by navigating to Keyword View> Right Click> Action> Action Properties tab.

08.We can also find two more options named as "At The End Of the test" and "After the Current" step. We can select any one of these two options.

09.Once everything is finalized click OK and observe that the action is inserted into the test as a call to independent, non-reusable action.

10.We can move our action call to another location by dragging it to the desired location.


Lydia Justin said...

I would like to share News about Gaming Industries. Gaming Industry today is one of the fastest growing entertainment industries. Game testing is a process of quality control of the software used in games.

Post a Comment

Back To Top