Qtp Manual Testing Tutorials

Embed Size (px)

DESCRIPTION

Introduction to QTP Manual Testing Tutorials with high quality of Live sessions...Interested in Selenium Training Call us : 404-900-9988www.quontrasolutions.com

Citation preview

  • 5/26/2018 Qtp Manual Testing Tutorials

    1/37

    Quick Test Professional

    [email protected]

    www.quontrasolutions.com Ph. -(314)-825-3887

    http://www.quontrasolutions.com/http://www.quontrasolutions.com/
  • 5/26/2018 Qtp Manual Testing Tutorials

    2/37

    What is Automation Testing ? Benefits

    Automation Testing Process

    www.quontrasolutions.com Ph. (314)-825-3887

    http://www.quontrasolutions.com/http://www.quontrasolutions.com/
  • 5/26/2018 Qtp Manual Testing Tutorials

    3/37

    Quick Test testing process consists of 7 main phases

    1. Preparing to record Test Environment

    Test Conditions

    2. Recording a session on your application Navigate according to Test Conditions

    3. Enhancing your test Adding logic and conditional statements

    Parameterization Inserting checkpoints

    4. Debugging your test Check that it operates smoothly and without interruption.

    www. uontrasolutions.com Ph. 314 -825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    4/37

    5. Run Test

    Check the behavior of your application

    6. Analyzing the test results

    7. Reporting defects

    www.quontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    5/37

    Logical name

    Physical Description

    Applicati

    on

    Layer1

    Layer2

    Layer3

    www.quontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    6/37www.quontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    7/37

    Test Objects hierarchy can be seen in both

    the TreeView and the Expert View

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    8/37

    It is used to view object properties

    and Methods

    Displays Object hierarchy tree

    Run-time object methods

    or test object methods

    www.quontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    9/37

    Locateobject in

    repository Find data-dependantproperty

    Parameteripropertysvalue

    Interface between QTP Script and the

    Application

    Contains Logical Name and physical

    Description

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    10/37

    1. Normal recording Records the objects in your application and the operations

    performed on them. This mode is the default and takes fulladvantage of Quick Tests test object model.

    2. Analog Recording Record the exact mouse and keyboard operations you perform

    in relation to either the screen or the application window.

    3. Low-Level Recording Record on any object in your application, whether or not Quick

    Test recognizes the specific object or the specific operation.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    11/37

    1. Parameterizing Test

    2. Regular Expressions

    3. Creating Checkpoints

    4. Creating Output Values

    5. Dividing Tests into Multiple Actions

    www.quontrasolutions.com Ph.

  • 5/26/2018 Qtp Manual Testing Tutorials

    12/37

    To run the scenario with multiple sets of data.

    Steps for Parameterization

    1. Defining a Data Table Parameter

    2. Adding Parameter Values to a Data Table

    3. Modifying Steps Affected by Parameterization

    4. Running and Analyzing a Parameterized Test

    Demo..

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    13/37

    How to provide the data to the respectiveParameter through Tree View

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    14/37

    How to provide the data to the respective

    Parameter through Expert View

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    15/37

    Regular expressions enable Quick Test to identify Objects

    and text strings with varying values.

    User has to identify the data projected to be change, likedates, so to accepts any dates, user can use regularexpression.

    Example :

    Actual Date format :

    05/19/2004 (mm/dd/yyyy)

    After Regular Expression:

    [0-1][0-9]/[0-3][0-9]/200[0-9]

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    16/37www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    17/37

    Click icon

    Do the changes as, shown below and selectRegular Expression.

    QTP will take the year from 2000 -2009

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    18/37

    Used to check the current behavior of the applicationwith the expected behavior.

    Text /Text Area Checkpoint

    Standard Checkpoint

    Table Checkpoint Page checkpoint

    Database Checkpoint

    Image Checkpoint Accessibility Checkpoint

    Bitmap Checkpoint

    XML Checkpoint

  • 5/26/2018 Qtp Manual Testing Tutorials

    19/37

    checks that Current Text format with the Expected

    Text Format in a Web page or application window

    5/16/2014www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    20/37

    Checks information in a table

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    21/37

    Checks the characteristics of a page

    Check how long a Web page takes to load or if aWeb page contains broken links.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    22/37www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    23/37

    Used to check current Database data with the

    Expected Database data.

    Check that the value in a database query is correct.

    Demo

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    24/37

    Checks an area of a Web page or application

    after capturing it as a bitmap

    Check that a Web page (or any portion of it) is

    displayed as expected.

    Demo.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    25/37

  • 5/26/2018 Qtp Manual Testing Tutorials

    26/37

    Checks the data content of XML documents

    XML file checkpoints are used to check aspecified XML file; XML application checkpoints

    are used to check an XML document within aWeb page.

    Demo.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    27/37

    XMLFile("Poem.xsl").Check CheckPoint("Poem.xsl_2")

  • 5/26/2018 Qtp Manual Testing Tutorials

    28/37

    This is just reverse to the Parameterization, Inthis case QTP takes the data from the applicationand displays the same in the Data Table.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    29/37

    Window("Flight Reservation").WinEdit("Name:").Output CheckPoint("Name:_3")

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    30/37

    A transaction represents the business process that youare interested in measuring

    You can measure how long it takes to run a section of

    your test by defining transactions.

    User can Plan the Scenario as transaction and use theStart Transaction and End Transaction while Recording.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    31/37

    Services.StartTransaction "Start"

    Services.EndTransaction "Start"

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    32/37

    Actions help to divide Test Script into logical units

    Usage :

    1)We can design more modular and efficient tests.

    2)Actions enable you to parameterize specific componentsof a test

    3)Two or more tests can call the same action

    4)Complex tests may have many actions and may share

    actions withother tests.

    Example:

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    33/37

    We can divide Test Script into multiple actions by creating

    new actions or by inserting existing actions.

    Kinds of actions:

    Non-Reusable Action :An action that can be used onlyin the test in which it was created, and only once.

    Reusable Action :An action that can be called multipletimes by the test in which it was created (the local test)as well as by other tests.

    External Action :A reusable action created in anothertest. External actions are read-only in the calling test.They can be modified only in the test in which they

    were created.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    34/37

    We can add new actions to Test Script during a recordingsession or while designing Test Script.

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    35/37

    We can split an existing action into two sibling

    actions or into parent-child nested actions.

    We cannot split an action and the option is disabled

    when an external action is selected when the first line of the action is selected

    while recording a test

    while running a test when you are working with a read-only test

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    36/37

    www. uontrasolutions.com Ph. (314)-825-3887

  • 5/26/2018 Qtp Manual Testing Tutorials

    37/37

    [email protected]

    Phone : (314)-825-3887

    Email: [email protected]

    http://www.quontrasolutions.com