Saturday, May 31, 2008

About Actions

Action is used to split out test script into more flexible and logic unit.

When it is used:

If we require a particular step of our test scripts then we can use action by making it reusable action.
If two or more test require the same script then we go for the actions.

Action Types:

1. Non Reusable Action -It can be called only once in our test. It cannot be called in any other test.
2. Reusable Action - It can be called multiple times in our test as well as in other test.
When it is called in other test then it becomes External Action.

By default each action is non reusable action. If we want to convert it as reusable action then there are two ways:
1. Select Action, write click, select the check box reusable action
2. Select Action Properties, select check box reusable action

(From keyword view both methods will be possible. But from expert view only 2nd method is possible.)

By making action as a reusable action, we can call that actions from other tests, rather than recording, modifying, and enhancing the same steps each time.

How to call an Action:

By using "Call to copy" or "Call to Existing" we can call the actions in QTP.

Defference betweeen Call to Copy and Call to Existing:

Call to Copy:
1. It is read and write mode
2. We can call both reusable actions and non reusable actions.
3. If we make any changes in base program, that will not be effected to the copied program

Call to Existing:
1. It is read only mode
2. We can call both reusable actions and non reusable actions.
3. If we make any changes in base program, that will not be effected to the copied program.

No comments:

About Me

My photo
Hi all,I am Arun Singh Rajaputra. I am working as a Project Lead in a reputed organization in Hyderabad, AP, India. I have little bit knowledge on Quick Test Professional and like to share my knowledge to all through this blog.

Subscribe to get updates on this blog

Enter your email address:

NOTE

Some of the posts posted in this blog are collected and most of them have been prepared by me. If any one have objections regarding any copied posts. Please mail me so that I can take a necessary action on that post.