qtp training session2-record and run

Upload: austinfru

Post on 14-Apr-2018

244 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 QTP Training Session2-Record and Run

    1/16

    Quick Test Professional - QTPSession -2VeriTest, Chennai

  • 7/27/2019 QTP Training Session2-Record and Run

    2/16

    2

    Session-2: Agenda

    Introduction

    Associating Add-ins

    Recording Modes

    How to record

    Recorded script overview

    How to run the script

    Test Results

    Actions

    Q & A

  • 7/27/2019 QTP Training Session2-Record and Run

    3/16

    3

    QTP- Introduction

    Functionality Testing tool

    Product of Mercury Interactive

    Scripting language usedvb script

    Platform dependent

  • 7/27/2019 QTP Training Session2-Record and Run

    4/16

  • 7/27/2019 QTP Training Session2-Record and Run

    5/16

    5

    QuickTest Window

    Tool bar

    Active Screen

    Data sheet

  • 7/27/2019 QTP Training Session2-Record and Run

    6/16

    6

    QuickTest Window Contd..

    The QTP window contains the following key elements:

    Title barDisplays the name of the currently open test.

    Menu barDisplays menus of QTP commands.

    Automation toolbarContains buttons to assist you in the testing process.

    Debug toolbarContains buttons to assist you in debugging tests.

    Test paneContains the Keyword View and Expert View tabs.

  • 7/27/2019 QTP Training Session2-Record and Run

    7/16

    7

    QuickTest Window Contd..

    Active ScreenProvides a snapshot of your application as it appeared whenyou performed a certain step during the recording session.

    Data TableAssists you in parameterizing your test.

    Debug Viewer paneAssists you in debugging your test. The Debug Viewerpane contains the Watch, Variables, and Command tabs.

    Information paneDisplays a list of syntax errors found in your test.

    Status barDisplays the status of the QuickTest application.

  • 7/27/2019 QTP Training Session2-Record and Run

    8/16

    8

    Keyword View

  • 7/27/2019 QTP Training Session2-Record and Run

    9/16

    9

    Expert View

  • 7/27/2019 QTP Training Session2-Record and Run

    10/16

    10

    Recording Modes

    Standard Recording mode

    Analog Recording

    Low level Recording

  • 7/27/2019 QTP Training Session2-Record and Run

    11/16

    11

    How to Record

    Choose Automation > Record or click the Record button . The

    Record and Run Settings dialog box opens.

  • 7/27/2019 QTP Training Session2-Record and Run

    12/16

    12

    How to Record-Contd.

    ClickOK.

    QTP begins recording and captures every action the user perform

    ClickStop on the Testing toolbar to stop the recording process.

  • 7/27/2019 QTP Training Session2-Record and Run

    13/16

    13

    Recorded Script Overview

    Dialog("Login").WinEdit("Agent Name:").Set "asdfsdf Entering agentname

    Dialog("Login").WinEdit("Password:").SetSecure459c8c118e221abb5d15ce66a11571e83816c8cb Entering Password

    Dialog("Login").WinButton("OK").ClickWindow("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."

    Window("Flight Reservation").Dialog("Open Order").WinCheckBox("OrderNo.").Set "ON"

    Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "5"Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click

    Window("Flight Reservation").WinMenu("Menu").Select "File;Exit

  • 7/27/2019 QTP Training Session2-Record and Run

    14/16

    14

    How to run the script

    ClickRun or choose Automation > Run. The Run dialog box opens.

    Select Temporary run results folder. Accept the default results foldername.

    ClickOKto close the Run dialog box.

  • 7/27/2019 QTP Training Session2-Record and Run

    15/16

    15

    Test Result Analysis

    When QTP finishes running the test, The Test Results window opens.

  • 7/27/2019 QTP Training Session2-Record and Run

    16/16

    16

    Actions

    Actions help divide your test into logical units, such as specific activities thatyou perform in your application.

    A test comprises calls to actions. When you create a new test, it contains a callto a single action. By creating tests that call multiple actions, you can designtests that are more modular and efficient.