qtp training shanker anna patni2068

Upload: mbastudent

Post on 01-Jun-2018

231 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    1/22

    1

    Quick Test ProfessionalPart -1Shanker Prasad M

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    2/22

    2

    Introduction to Automation Testing What is Automation Testing ?

    Benefits

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    3/22

    3

    Introduction to Quick Test Process

    Quick Test testing process consists of 7 main phases

    Preparing to record

    Test n!ironment

    Test "onditions

    Recording a session on your application

    #a!igate according to Test "onditions

    Enhancing your test

    Adding logic and conditional statements

    Parameteri$ation

    Inserting check%oints

    Debugging your test

    "heck that it o%erates smoothl& and 'ithout interru%tion(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    4/22

    4

    QTP Testing Process

    Run Test

    "heck the )eha!ior of &our a%%lication

    Analyzing the test results

    Reporting defects

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    5/22

    5

    QTP *a&ered ArchitectureLogical name

    Physical Description

    Application

    Layer1

    Layer2

    Layer3

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    6/22

    6

    QTP +igh-le!el features Object Spy Object Repository Tree View Expert View

    Active Screen Technoloy !"t" T"bles #$lob"l% &oc"l' Object ()enti*ic"tion Recovery V"rio+s A)) ins

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    7/22

    ,

    ,)ect S%&

    It is used to view object properties

    and Methods

    Displays

    Object hierarchy tree

    Run-time object methods

    or test object methods

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    8/22

    -

    ,)ect .e%ositor&

    Locateobject in

    repository Find data-dependantproperty

    Parameterize

    propertys

    vale

    (nter*"ce between .T/ Script "n) the Applic"tion

    0ont"ins &oic"l 1"e "n) physic"l !escription

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    9/22

    Acti!e Screen/ Tree 0ie'/ %ert

    0ie'/ 2ata Ta)les

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    10/22

    Tree and %ert 0ie' .elation

    Test ,)ects hierarch& can )e seen in )oth

    the Tree0ie' and the %ert 0ie'

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    11/22

    ,)ect Identification

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    12/22

    2

    Add ins

    !e*"+lt A)) ins

    Active

    7+ltie)i"

    Vis+"l 8"sic

    9eb

    Av"il"ble A)) ins

    :"v"

    ;1etetc;;

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    13/22

    3

    .ecording Modes

    Normal recording

    .ecords the o)ects in &our a%%lication and the o%erations %erformed on them( This mode is the default and takes full

    ad!antage of Quick Test3s test o)ect model(

    Analog Recording

    .ecord the eact mouse and ke&)oard o%erations &ou %erform in relation to either the screen or the a%%lication 'indo'(

    o!"e#el Recording

    .ecord on an& o)ect in &our a%%lication/ 'hether or not Quick Test recogni$es the s%ecific o)ect or the s%ecific o%eration(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    14/22

    4

    .ecord and Pla&)ack

    Ad!antages

    4seful in determining ho' the QTP interacts 'ith the a%%lication under

    test(

    Pro!ides initial ideas on ho' to de!elo% test scri%ts(

    4seful 'hile 5Pla&ing around3 'ith the tool

    2isad!antages

    Test scri%ts contains hard-coded !alues(

    This is not a !ia)le cost-effecti!e test automation a%%roach for long term(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    15/22

    5

    nhancing Tests

    1( Parameteri$ing Tests

    6( "reating ,ut%ut 0alues

    7( "reating "heck%oints8( .egular %ressions

    9( 2i!iding Tests into Multi%le Actions

    :( Inserting Transactions(

    ;( "alling ternal *i)raries(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    16/22

    6

    Parameteri$ing Tests

    $teps for Parameterization

    1( 2efining a 2ata Ta)le Parameter

    6( Adding Parameter 0alues to a 2ata Ta)le7( Modif&ing Ste%s Affected )& Parameteri$ation

    8( .unning and Anal&$ing a Parameteri$ed Test

    Demo%%%%%%&&

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    17/22

    ,

    2emo

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    18/22

    -

    2emo

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    19/22

    Results

    After running a test/ 'e can !ie' a re%ort of maor e!ents

    that occurred during the test run(

    The Test .esults 'indo' contains a descri%tion of the

    ste%s %erformed during the test run(

    If the test contains 2ata Ta)le %arameters/ and the test

    settings it sho's on Test .esults 'indo'(

    .esults are grou%ed )& the actions in the test(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    20/22

    2

    ResultsReporter&ReportE#ent micPass'($tep Name(' (og in successfully(

    Reporter&ReportE#ent mic)ail'($tep Name(' (og in )ailed(

    Reporter&ReportE#ent mic*arning'($tep Name(' (og in pending(

    Reporter&ReportE#ent micDone'($tep Name(' (og in pending(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    21/22

    2

    0irtual ,)ects

    QTP teaches to recogni$e a )itma% area as a standard o)ect ece%t

    edit(

  • 8/9/2019 Qtp Training Shanker Anna Patni2068

    22/22

    22

    Q = A