Saturday, 5 March 2011




Actions in QTP
What is Action?

Set of Statements for performing a Task(s).
We divide our test into actions to streamline the process of testing.

What is the Use of Actions in QTP?

For understandability
For reusing components

Types of Actions:

1) Non - Re Usable actions
2) Re - Usable actions
3) External actions

What is the By Default Action in QTP?
Every New Test Contains Action1  
Operations on Actions:




1. Creating Actions

2. Splitting Actions

3. Renaming Actions

4. Deleting Actions

5. Calling an Action

6. Copying an Action

7. Making an Action Reusable/Non Reusable




1. Creating an Action?

Insert <menu> à call to new action à enter name of the action in Name Edit Box
à Click OK





Steps:
1. Create required actions (ex:  Login, Insert, Delete in Flight Application)
2. Prepare Scripts for Those Actions.


2. Splitting an Action?

Navigation:
1. Place cursor in desired location
2. Edit <menu> à Action à Split Action à Enter Action 1 name & action 2 name.

Steps:
1. Generate total test in the default action
2. Split into meaningful actions.

Note: At a time we can split one Actions into 2 actions.

3. Renaming Actions?



Navigation:
1. Select desired action in action drop down box
2. Edit <menu> à action à Rename action
3. Modify the name à Click ok.



4. Deleting Actions?

Navigation:
1. Select desired action in action drop down box
2. Edit <menu> à action à Delete Action à Confirm Deletion.

5. Calling an action?

1. Insert <menu> à Call to Existing Action à Browse the path of the test
2. Select desired action à Click ok.

Note: U can’t edit

6. Copying an action?

1. Insert <menu> à Call to copy of action
2. Browse path of the test à Select desired action à Click ok.

Note: we can edit this action.

7. Making an action reusable?

1. Select Non Reusable Action
2. Edit <menu> Action à Action Properties à Check Reusable Action check box
3. Click OK.

0 comments:

Post a Comment

TrainingHUB. Powered by Blogger.

Total Pageviews

THE BEST QTP TRAINING INSTITUTE IN HYDERABAD

QTP Training in hyderabad

Sql Tutorial

Popular Posts

Our Facebook Page

TrainingHUB

Followers