QTP Actions
Actions is a set of logical statements to perform specific test.
There are three kinds of actions:
1. Non Reusable action
2. Reusable action
3. External action
Non Reusable action:
An action that can be called only in the test with which it is stored, and can be called only once.
Reusable action:
An action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
External action:
A reusable action stored with another test.External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.
Steps to follow to perform different operation in Actions:
Create an Action:
Insert-->call to new action-->enter name of the action-->click OK.
Rename Actions:
Select desired action in action drop down box--> edit menu-->action-->rename action-->modify the name-->click OK.
Call an Action: Insert-->call to existing action-->browse path of the test-->select desired action-->click OK.(Note: We cannot edit)
Copy an Action: Insert-->call to copy of action-->browse path of the test-->select desired action-->click OK.(Note: we can edit this action).
Make an Action Reusable: Select Non Reusable action -->edit -->action-->action properties-->check reusable action check box -->click OK.
Delete Actions: Select desired action in action drop down box-->edit menu-->action-->delete action-->confirm deletion.
There are three kinds of actions:
1. Non Reusable action
2. Reusable action
3. External action
Non Reusable action:
An action that can be called only in the test with which it is stored, and can be called only once.
Reusable action:
An action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
External action:
A reusable action stored with another test.External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.
Steps to follow to perform different operation in Actions:
Create an Action:
Insert-->call to new action-->enter name of the action-->click OK.
Rename Actions:
Select desired action in action drop down box--> edit menu-->action-->rename action-->modify the name-->click OK.
Call an Action: Insert-->call to existing action-->browse path of the test-->select desired action-->click OK.(Note: We cannot edit)
Copy an Action: Insert-->call to copy of action-->browse path of the test-->select desired action-->click OK.(Note: we can edit this action).
Make an Action Reusable: Select Non Reusable action -->edit -->action-->action properties-->check reusable action check box -->click OK.
Delete Actions: Select desired action in action drop down box-->edit menu-->action-->delete action-->confirm deletion.
Comments
Post a Comment