Title: Mercury Interactive Product Training
1Reusable and Multiple Actions
USINGQTP65-STUDENT-01A
2Recall the Objective Test a Business Scenario
Create automated tests to test a business scenario
Windows Flight Application
Mercury Tours Web Site
Verify that the user name and password created
during registration is used to sign into the web
site
Login
Register
Verify that the order number generated in Insert
New Order is used to open and update an order
Insert New Order
Sign-In
Update Order
Add New Reserv
3Lesson Objectives
- At the end of this lesson, you will be able to
- Create a reusable action
- Call a reusable action from an external test
- Discuss how reusable actions affect data and
parameters
4A Test Can Have Multiple Actions
TEST Purchase Requisition
TEST Purchase Requisition
Action 1
Action 1
Main Menu Screen
Main Menu Screen
Action 2
Input Purchase Info
Input Purchase Info
Select Source of Supply
Select Source of Supply
Save the test
Save the test
Return to Main Menu
Return to Main Menu
Logoff
Action 3
Logoff
5One Action Repeatedly Recorded
TEST Create New Entry
Three tests, three times login was recorded. Can
the same action be recorded once and reused?
Login
Create a new entry
TEST Update Order
Login
Update an existing order
What are the advantages of using only one login
test?
TEST Cancel Order
Login
Search order number then cancel order
6Set an Action as Reusable
A reusable action has blue arrows.
7Calling Reusable Actions from a Main Test
QuickTest test
Action 1
CALL Login
CALL UpdateOrd
8Call a Reusable Action
9Things to Consider when Using Multiple/Reusable
Actions
- Actions can be called or copied
- Run settings have to be set per action
- Each action in a test with multiple actions has
its own Object Repository - Parameters and data are reflected into the
calling test