Académique Documents
Professionnel Documents
Culture Documents
Ø QTP is easier to use and implement for both technical & non
technical testers in comparison to other functional testing tools
available.
File
toolbar
Test
toolbar
Test pane
Object
Action
Screen
Important Toolbars
Ø Test toolbar: containing buttons to assist you in the testing process
Ø Debug toolbar: containing buttons to assist you in debugging your test
Ø Action toolbar: containing buttons and a list of actions, enabling you to
view the details of an individual action or the entire test flow
Ø Test pane: containing two tabs to view your test—the Keyword View
and the Expert View
Ø Test Details pane : containing the Active Screen
Ø Data Table: containing two or more tabs to assist you in parameterizing
your test—Global and one tab for each Action
Test Object Model
Ø This is a large set of object types or classes that Quick Test uses to
represent the objects in AUTs
Ø Properties
Ø Methods
Ø
Ø A test object is an object that
- represents the actual object
- stores information about that object.
Ø QTP Test
Ø Object
Modeling
Object Repositories
Object Repository
Object Repositories
Ø Object Repository acts as a translator between QTP script and the
Operating System ( similar to GUI map concept in win runner).
Ø
Ø Steps to follow:
Ø 1 Open Quick Test.
Ø
Ø 2 Open a test:
Ø To create a new test,
click on New
Ø To open an existing
test, click on Open
Ø
Ø 3 Click the Record button If
you are recording for the
first time the Record and
Run Settings dialog box
opens.
Ø
Playback
Sprint\zXC
abcde
Keyword View
1. Actions bring in modularity
Checkpoint
Failed
Checkpoin
t
Passed
Synchronization Points
What is a Synchronization Point?
Ø
Ø A synchronization point is a line in the test script that instructs
QTP to wait for a certain response from the application during
playback.
Why Synchronize?
Without synchronization point With synchronization point
t
rip
rip
T
T
U
U
Sc
Sc
A
A
Run script Run script
Synchronizati
Server
on point
Script Wai
fails Waits for processes
server; ts data
cannot
continue Wai Server
ts returns
results
Client affirms
Continues transaction is
complete
How to Add Synchronization Points
ØLocate the lines in the script to insert the synchronization point
ØIn Quick Test choose Insert > Step > Synchronization Point. The
mouse pointer turns into a pointing hand. This should be done
while recording.
ØSelect the Property name and its corresponding value which you want to
use for the synchronization point.
Ø
ØEnter the synchronization point timeout (in milliseconds) and Click OK. A
Wait Property step is added to your test.
Ø
For e.g for this case the step inserted in the script will be
Dialog(“Login”).WaitProperty "enabled", 1, 10000
Test Parameterization
How Long Does it Wait?
Ø Usage of data drivers allow us to use the same data for various
input boxes.
Test
Result
Details
Status
Summary
Test Results
ØTest Results Tree - an icon-based view of the steps that were performed
while the test was running. Similar to the test tree in Quick Test main
screen
Iteration Failed
Actions
Actions
Ø Actions can divide a test into several distinct business Processes.