You are on page 1of 16

Learn Test Automation &

start using HP Quick Test Professional (QTP)

Automation Need for automation, Rules of


automation

Exposure to the Automation Concepts and Kick start


the learning of one of the leading tool QTP

peed ! Automation cripts run "er# fast $hen compared


to human users

Relia%le ! Tests perform precisel# the same operations


each time the# are run, there %# eliminating human error&

Repeata%le! 'e can test ho$ the application reacts after


repeated execution of the same operation

Comprehensi"e ! 'e can %uild a suite of tests that co"ers


e"er# feature in our application

Reusa%le ! 'e can reuse tests on di(erent "ersions of an


application, e"en if the user interface changes&

Product feature understanding, test planning, test case


documentation, test %ed setup, defect tracking,
progression tests are all done in manual mode

Test automation success depends on ro%ustness of the


test cases not on the test tool&

E"er# manual step has commands in test scripts

)f it is not $orth, *+ N+T A,T+-ATE&

*o not %uild application logic in #our test scripts

Al$a#s ha"e a common kno$ %ase state for test cases

+ne test script Action must address one test case&


Testing Tools are usually very expensive. The test manager or the
test lea has to think t!ice "efore going in for automating his test
effort. There are also some !iely hel false notions or "eliefs a"out
automation tools.

Quick Test Professional ./P0

'inRunner ./P0

Ro%ot .)1- Rational0

2unctional Tester .)1- Rational0

ilkTest .1orland0

TestComplete .AutomatedQA0

QA'i3ard .eapine0

TestPartner .Compu$are0

QEngine .Ad"entNet0

+pen source tools .ahi, 'atir0


#arious functional testing tools availa"le
Analy$e the Application
%elect The Tool
&ining & 'eporting
(efects
)entify the session
(esign* 'ecor Test
%cripts
'un the Test
%cripts
Life +ycle ,f Automation

*e"eloped %# -ercur# interacti"e no$ o$ned %# /P

*e"eloped for $e% functionalit#

QTP supports %oth $e% applications 4 $indo$s


applications

QTP *e"eloped in 5665, present "ersion in the market


is 7&8

Test cript de"eloped on 91 cript

QTP supported Technolog#

&NET& :5EE, -ain 2rame, ;-<, :a"a, *elphi

ERP => AP, i%el, People soft

QTP upports %oth Technical 4 Non Technical People

QTP run on onl# $indo$s platform not supporting


,N);, <inux etc
)ntrouction to QTP
#stem Re?uirement! E?ui"alent to P@ and a%o"e
/ard$are *ri"e ! 586-1 of 2ree -emor# space
RA- ! 8A5-1 of RA-
+perating #stem ! -B $indo$s 5666 ser"er $ith @=C
ser"ice pack
-B $indo$s ;P $ith A=5 P
-B $indo$s 566@ $ith no ser"ice pack
'e% 1ro$ser ! - )nternet Explorer 8&8 and a%o"e
Netscape Na"igator D&AA, D&55, D&5@,
E&65, E&A
A+< F&6, 7&6
-nvironment nees for QTP ././
Technolog# supported %# the QTP
1# default three Add )ns are there in QTP

Acti"e ;

91

'e%
Additional Add ins!

:a"a

+racle

People soft

&NET

Terminal Emulator .RTE0

AP

i%el

*elphi
A )ns %upporte "y QTP
A0 Test Pane
50 Acti"e creen
@0 *ata Ta%le
C0 *e%ug 9ie$er


0ino! %tructure of QTP
%cript(.mts file)
Action. 'ep. (.mtr file)
%heet. (local %heet)
Parameters 1 Action
Parameters
Action2 'ep 2 (.mtr file)
%heet 2 (local %heet)
Parameters 1 Action
Parameters
Action3 'ep 3 (.mtr file)
%heet3 (local %heet)
Parameters 1 Action
Parameters
%hare 'epository t (.tsr
file)
4lo"al %heet
-nvironment
Parameter
Test Parameter
5
5
Architecture ,f QTP

+%Gect p#

+%Gect )dentiHcation

,nderstanding customi3ing Non tandard +%Gects

,nderstanding 'a# of Recognition

+%Gect Repositor#

imple Record and Repla#

T#pes of Record Context ensiti"e, Analog, <o$ <e"el


Record

-anaging cript $ith 9arious *ata

Parameters .*ataTa%le0

91 cripting .tring -anipulation, -sg%ox, plit command,


)ntr, <oops, Conditions0

-anaging cript $ith *#namic +%Gects

Regular Expression

mart )dentiHcation

Check Points tandard, 1itmap, Text


Topics 6eing -xplaine Here
,"7ect %py
+%Gect sp# is used to
displa# or "ie$ all the
ph#sical properties
and methods of an
o%Gect&

,sed to -ap non tandard +%Gect to tandard +%Gect

,sed to conHgure Recognition properties for an o%Gect


class&

Recognition properties are conHgured using

-andator# Properties

Assisti"e properties .are used $hen mandator#


propert# fails to recogni3e the o%Gect uni?uel#0

+rdinal )dentiHer .are used $hen %oth mandator#


and assisti"e fails to recogni3e the o%Gect
uni?uel#0

<ocation .Represent x= coordinate of the


screen or parent o%Gect Nearest to x is 60

)ndex .'orks %ased on acti"e screen acti"e


screen %eing 6 %# default0

Creation Time .2or $e% %ro$sers, no& of


instances decides the creation time0
,"7ect )entification

tores the o%Gect for the purpose of pla#ing %ack

,ses <ogical Name and *escription properties to


recogni3e the o%Gect from script and application
respecti"el#

*escription Properties are created through +%Gect


)dentiHcation

Repositor# can %e managed using Per Action mode .&mtr


2ile0 and hared Repositor# -ode .&tsr 2ile0 %# the
script
,"7ect 'epository
+ontact 8s 9 :
-12/; sector < =3; >oia
/.2/ ?/2 @/ //*2?*2A
#isit us : http:**!!!.apextgi.in

You might also like