Professional Documents
Culture Documents
QTP PDF
QTP PDF
Professional 8.0
(Basic)
Mercury QuickTest Professional
Introduction to QTP
QuickTest Professional, te Mercury ad!anced key"ord#
dri!en testing solution ena$les you to test standard
%indo"s a&&lications, %e$ o$'ects, (cti!e) controls, and
*isual Basic a&&lications. +ou can also ac,uire additional
QuickTest add#ins for a nu-$er of s&ecial en!iron-ents
(suc as .a!a, /racle, 0(P 0olutions, .12T %indo"s and
%e$ 3or-s, 0ie$el, Peo&le0oft, %e$ ser!ices, and
ter-inal e-ulator a&&lications).
QuickTest %indo"
Te QuickTest "indo" contains te follo"ing key ele-ents4
QuickTest title bar56is&lays te na-e of te currently o&en
test or co-&onent.
Menu bar56is&lays -enus of QuickTest co--ands.
File toolbar57ontains $uttons to assist you in -anaging your
test or co-&onent.
Testing toolbar57ontains $uttons to assist you in te testing
&rocess.
Debug toolbar57ontains $uttons to assist you in de$ugging
your test or co-&onent (not dis&layed $y default).
Action toolbar57ontains $uttons and a list of actions,
ena$ling you to !ie" te details of an indi!idual action or te
entire test flo".
Test pane57ontains te 8ey"ord *ie" and 29&ert *ie" ta$s.
Active Screen5Pro!ides a sna&sot of your a&&lication as it
a&&eared "en you &erfor-ed a certain ste& during te
recording session.
7ontinued:
Data Table5(ssists you in &ara-eteri;ing your test or
co-&onent. 3or a test, te 6ata Ta$le contains te Global
ta$ and a ta$ for eac action. 3or a co-&onent, te 6ata
Ta$le contains single ta$.
Debug Viewer pane5(ssists you in de$ugging your test
or co-&onent. Te 6e$ug *ie"er &ane contains te
Watch Expressions, Variables, and o!!an" ta$s
(not dis&layed $y default).
Status bar56is&lays te status of te QuickTest
a&&lication.
QTP %indo"
<. Pre&are to =ecord
/$'ecti!es
U&date /rder
6elete /rder.
6efine 0yncroni;ation.
Tis order nu-$er is a !isual cue. (ny e!ent you can see on te
screen can $e used as a !isual cue.
0tandard
Te9t
Te9t(rea
Bit-a&
6ata$ase
(ccessi$ility
+ou can tell tat a ceck&oint as $een added to a test "en you
!ie" te Test =esult. ( ceck -ark a&&ears ne9t to te ste&. +ou
cannot -odify te na-e of a ceck&oint. (s a $est &ractice,
insert a co--ent to docu-ent te reason for te ceck&oint.
( *aria$le 7eck&oint *alue
e9&ression ca&a$ility.
Bit-a& 7eck&oint
3or e9a-&le, su&&ose you a!e a %e$ site tat can dis&lay a
-a& of a city te user s&ecifies. Te -a& as control keys
for ;oo-ing. +ou can record te ne" -a& tat is dis&layed
after one click on te control key tat ;oo-s in te -a&.
Using te $it-a& ceck&oint, you can ceck tat te -a&
;oo-s in correctly.
Ta$le 7eck&oint
7ecks infor-ation "itin a ta$le.
3or e9a-&le, su&&ose your a&&lication or %e$ site contains
a ta$le listing all a!aila$le fligts fro- 1e" +ork to 0an
3rancisco. +ou can add a ta$le ceck&oint to ceck tat te
ti-e of te first fligt in te ta$le is correct.
,ote* +ou create a ta$le ceck&oint $y inserting a standard
ceck&oint on a ta$le o$'ect.
Te9t 7eck&oint
7ecks tat a te9t string is dis&layed in te a&&ro&riate
&lace in your a&&lication or on a %e$ &age.
3or e9a-&le, su&&ose your a&&lication or %e$ &age dis&lays
te sentence 3ligt de&arting fro- 1e" +ork to 0an
3rancisco. +ou can create a te9t ceck&oint tat cecks tat
te "ords A1e" +orkB are dis&layed $et"een A3ligt
de&arting fro-B and Ato 0an 3ranciscoB.
Te9t (rea 7eck&oint
7ecks tat a te9t string is dis&layed "itin a defined area in
a %indo"s a&&lication, according to s&ecified criteria.
3or e9a-&le, su&&ose your *isual Basic a&&lication as a
$utton tat says *ie" 6oc P1u-?, "ere P1u-? is
re&laced $y te four digit code entered in a for- else"ere
in te a&&lication. +ou can create a te9t area ceck&oint to
confir- tat te nu-$er dis&layed on te $utton is te sa-e
as te nu-$er entered in te for-.
6ata$ase 7eck&oint
7ecks te contents of a data$ase accessed $y your
a&&lication.
Para-eteri;e a ceck&oint.
6ata Ta$le Para-eters
Te &ossi$ilities are4
+ou can su$se,uently use tis out&ut !alue !aria$le in your test.
%e call tis data correlation. Tis ena$les you to use data
retrie!ed during oter &arts of a test.
0te&s to 7reate an /ut&ut
Para-eter
Built Z In
User 6efined 6ialog Bo9
=egular (1on#reusa$le)
=eusa$le
Tests that contain reusable actions can be use"*
Cocally
29ternally
( Test "it Multi&le (ctions
Test data can $e &assed fro- one test to anoter test using te
!alue of an in&ut &ara-eter.
0ince tere are t"o (or -ore) tests running, one rigt after
anoter, you -ay need to s&ecify te iteration for eac
se&arately.
/nce &ara-eters a!e $een set in (ction Pro&erties, you can tell
QuickTest tat te &ara-eter ty&e $eing used is an (ction
Para-eter.
Te Test 3lo" Cist
=un settings
Multi&le =eusa$le (ctions
%en using -ulti&le, reusa$le actions, kee& te follo"ing in
-ind4