Sei sulla pagina 1di 14

QuickTest Professional 8.

0 Specialist Exam
Review Guide

QuickTest Professional 8.0 Specialist Exam Review Guide 1


© Copyright 1994 - 2004 by Mercury Interactive Corporation

All rights reserved. All text and figures included in this publication are the exclusive property of Mercury
Interactive Corporation or its licensors, and may not be copied, reproduced, or used in any way without
the express permission in writing of Mercury Interactive. Information in this document is subject to
change without notice and does not represent a commitment on the part of Mercury Interactive.

This document may also contain registered trademarks service marks and/or trade names that are owned
by their respective companies or organizations. Mercury Interactive Corporation disclaims any responsi-
bility for specifying which marks are owned by which companies or organizations.

If you have any comments or suggestions regarding this document, please send them via e-mail to:
ED_CertificationDev_US@mercury.com.

Mercury Interactive Corporation

379 North Whisman Road, Mountain View, CA 94043

Tel. (650)603-5200 (800) TEST-911 Fax. (650)603-5300

QTP80SP-ExamPrep-01a

2 QuickTest Professional 8.0 Specialist Exam Review Guide


About the Review Guide

Requirements
■ QuickTest Professional 8.0 installation
■ Internet access to http://newtours.mercuryinteractive.com

General Test Instructions


Questions in the specialist exam may be asked in any of the following formats:

■ Multiple choice questions: Clearly mark the circle beside the letter/s in the
answer sheet. Multiple choice questions that contain “Select all that apply” indi-
cate more than one correct answer.
■ Fill in the blanks: Write your answer/s in the blanks provided clearly and legibly
■ True or False: Clearly mark the circle beside the word “True” or “False” in the
answer sheet
■ Briefly Describe/Explain/Essay-type: Answer in one to three sentences.
Answers to questions are included in the back of the book. This guide is intended
to help you prepare for the level and type of questions that will be asked during
the exam.

QuickTest Professional 8.0 Specialist Exam Review Guide 3


4 QuickTest Professional 8.0 Specialist Exam Review Guide
Review Items

Core Technology and Navigation

1. This QuickTest feature allows you select the appropriate add-ins to load with your
test.

2. Name the six columns of the Keyword view.

3. List the steps to change the logical name of an object named “ThreedPanel” into
“StatusBar” in the Object Repository.

QuickTest Professional 8.0 Specialist Exam Review Guide 5


4. Name the two run modes available in QuickTest Professional.

5. True or False: When QuickTest Professional is connected to Quality Center, all auto-
mated assets (e.g. tests, values) are stored in Quality Center.

6. What information do you need when you select the Record and Run Setting - Record
and run on these applications (opened when a session begins)?

7. Name and discuss the three elements that make up a recorded step.

8. There are two locations to store run results. What are these two locations and discuss
each.

9. True or False: The object class QuickTest uses to identify an object is a property of the
object.

6 QuickTest Professional 8.0 Specialist Exam Review Guide


10. True or False: You can modify the list of pre-selected properties that QuickTest uses
to identify an object.

11. True or False: A synchronization step instructs QuickTest to wait for a state of a prop-
erty of an object before proceeding to the next recorded step. Synchronization steps
are activated only during recording.

12. Manually verifying that an order number was generated by an application and dis-
played on the GUI is automated in QuickTest using what feature?

13. True or False: QuickTest can automate verification which are not visible on the appli-
cation under test interface.

14. What is the Checkpoint Timeout Value?

15. True or False: You can modify the name of a checkpoint for better readability.

QuickTest Professional 8.0 Specialist Exam Review Guide 7


16. Define a regular expression for the following range of values:
a. Verify that the values begin with Afx3 followed by 3 random digits
Afx3459, Afx3712, Afx3165
___________________________________________________________

b. Verify that a five-digit value is included in the string


Status code 78923 approved
___________________________________________________________

17. Write the letter of the type of parameter that best corresponds to the requirement:
_____ a. An order number has to be retrieved from the window and saved into a
file for each test run.
_____ b. A value between 12 to 22 is entered in no particular order for every test
run.
_____ c. Every iteration of the test should select a new city from a list item
A. Environment parameter
B. Input parameter
C. Component parameter
D. Output parameter
E. Random parameter

18. This is the Data Table that contains values retrieved from the application under test.
You can view the captured values after the test run, from the Test Results. What do
you call this data table?

8 QuickTest Professional 8.0 Specialist Exam Review Guide


19. Name and describe each of the four types of trigger events

20. Explain initial and end conditions.

Create an Automated Test (non-BPT)


In this exercise, you will translate the steps and requirements from a manual test case
into an automated test in QuickTest. This is a hands-on activity that requires an
installation of QuickTest Professional 8.0 and Internet access to the URL http://new-
tours.mercuryinteractive.com.
Test Requirements:
■ The test should iterate at least three times using different user names and pass-
words
■ Each user name should use a different set of departure and arrival locations
■ Each user should select a random number of tickets to purchase
■ Each name used during sign-in should the be first name used when booking the
ticket at the Book a Flight page.
■ All passwords should be encrypted

QuickTest Professional 8.0 Specialist Exam Review Guide 9


Test Case: Create New Reservation
Application: Mercury Tours

Location: http://newtours.mercuryinteractive.com

Start page: Mercury Tours Home page

Step Description

1 Type ‘jojo’ in the User Name field.


2 Type ‘bean’ in the Password field.
3 Click Sign-In. The Flight Finder page appears.
4 Verify that the Number of Passengers field has a list of 1 through 4.
5 Select “2” for number of passengers.
6 Select ‘one way’ flight.
7 Select “San Francisco” from the Departing From field.
8 Specify a departing date using the On fields.
9 Select “Seattle” from the Arriving In field.
10 Specify a returning date using the Arriving In fields.
11 Select ‘Blue Skies’ from the Airline list.
12 Click Continue. The Select Flight page appears.
13 Select Continue. The Book a Flight page appears.
14 Type a name in the First Name field.
15 Type a name in the Last Name field.
16 Select a card from the Card Type list.
17 Type “01234567890765” in the Number field.
18 Select ‘07’ for the month and ‘06’ for the year fields.
19 Click Secure Purchase.
20 Click Home. The Mercury Tours home page appears.

10 QuickTest Professional 8.0 Specialist Exam Review Guide


1. What record and run setting did you select so that the test iterates starting at the
home page?

2. What QuickTest feature did you use to automate step 4 in the test case? What proper-
ties did you select?

3. What QuickTest feature did you use to meet the requirement:


“The test should iterate at least three times using different user names and passwords”

4. What planning considerations did you have to perform in order to meet the above
listed requirement?

5. What QuickTest feature did you use to meet the requirement:


“Each user should select a random number of tickets to purchase”

6. Discuss how you automated the requirement:


“Each name used during sign-in should the be first name used when booking the
ticket at the Book a Flight page.”

7. Challenge: What QuickTest feature did you use to meet the requirement:
“All passwords should be encrypted”

QuickTest Professional 8.0 Specialist Exam Review Guide 11


Answers to Questions

Core Technology and Navigation

1. Add-in Manager

2. Item, Operation, Value, Documentation, Assignment, Comment

3. Select Tools > Object Repository. In the Action1 object repository list of objects,
select an object, right click and select Rename from the pop-up menu.

4. Normal and Fast

5. True

6. Application details (name, location, any program arguments)

7. Item - the object recorded, Operation - the action performed on the object, Value -
the value selected, typed or set for the recorded object

8. New run results folder - permanently stores a copy of the run results in a separate
location under the automated test folder
Temporary run results folder - Run results can be overwritten every time the test is
played back

12 QuickTest Professional 8.0 Specialist Exam Review Guide


9. False

10. True

11. True

12. a checkpoint

13. True

14. A checkpoint timeout value specifies the time interval (in seconds) during which
QuickTest attempts to perform the checkpoint successfully. QuickTest continues to
perform the checkpoint until it passes or until the timeout occurs. If the checkpoint
does not pass before the timeout occurs, the checkpoint fails.

15. False

16. a. Afx3\d{3}
b. Status code \d{5} approved

17. D, E, B

18. Run-Time Data table

19. A pop up window appears in an opened application during the test run.
A property of an object changes its state or value.
A step in the test does not run successfully.
An open application fails during the test run.

20. Initial and end conditions refer to starting and end points of a test that allows the test
to iterate from the same location, and with the same set up every time (e.g. all fields
are blank, the test starts at the main menu page).

QuickTest Professional 8.0 Specialist Exam Review Guide 13


Create an Automated Test

1. Record and run test on any open Web browser

2. Standard checkpoint on the list item Number of Tickets


Properties: items count, inner text, all items

3. Input parameter

4. Register at least three new users prior to creating the automated test in order to have
seed data in the database

5. Random parameter, range 1 and 4

6. The username is already an input parameter. Parameterize the step ‘passFirst0’ under
BookAFlight and use the parameter for username.

7. Challenge: From the Data Table, select the cell and perform a right mouse click. A
pop up window appears. Select Data > Encrypt.

14 QuickTest Professional 8.0 Specialist Exam Review Guide

Potrebbero piacerti anche