qtp chapter 01 introduction qtp

Upload: chainika-kapoor

Post on 05-Apr-2018

271 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    1/15

    Quick Test Professional 9.2

    Quick test Introduction

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    2/15

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    3/15

    Quick Test Introduction

    Quick Test Professional enables you to test standard Windows applications, Webobjects, ActiveX controls, & Visual Basic applications. You can also acquireadditional Quick Test add-ins for number of special environments (such as Java,Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Webservices, and terminal emulator applications).

    Quick Test Professional is Unicode compliant according to the requirements ofthe Unicode standard (http://www.unicode.org/standard/standard.html)enablingto test applications in many international languages.Unicode represents the required characters using 8-bit or 16-bit code values, to

    allow the processing and display of many diverse languages and charactersets.

    http://www.unicode.org/standard/standard.htmlhttp://www.unicode.org/standard/standard.html
  • 7/31/2019 QTP Chapter 01 Introduction QTP

    4/15

    Contents

    Start the Quick Test

    Testing with Quick Test

    Using Quick Test Toolbars

    Active Screen & Data Tables

    Introduction to Quick Test window

    Understanding the Testing Process

    Understand Keyword View & Expert View

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    5/15

    Testing with QuickTestQuick Test Professional facilitates creating tests & business component by recordingoperations as you perform them on your application. Tests & business components aretwo different types of documents that you can use to test that your application or Web siteworks as expected :

    TestA collection of steps organized into one or more actions, which are used to verify thatyour application performs as expected.

    Business ComponentA collection of steps representing a single task in your application. Business components(also known as components) are combined into specific scenarios to build businessprocess tests in Mercury Quality Center with Business Process Testing.

    The Testing Process .

    Testing with Quick Test involve three mainstages :

    Creating Tests or ComponentsYou create a test or component by either recording a session on your application or Website or by building an object repository & adding steps manualy to the Keyword Viewusing keyword-driven functionality. You can then modify your test or component withspecial testing options and/or with programming statements.

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    6/15

    Running Tests or Components

    After you create your test or component, you run it.

    Run your test or component to check your site orapplication

    Run your test or component to debug it.

    (You can use the Step Into, Step Over,& Step Outcommands to run your test orcomponent step by step You can also set breakpoints to pause your test orcomponent at pre-determined points.)

    Analyzing Results

    You run your test or component, you can view the results.fter

    View the results in the Results window.

    After you run your test or component, you can viewthe results of the run in the Test Result window.You can view a summary of your results as well asa detailed report.

    Report defects detected during a run session

    Record a session on your applicationor site

    Build an object repository and usethese objects to add steps manually in theKeyword View or Expert View.

    Insert checkpoint into your test orcomponent

    Broaden the scope of your test orcomponent by replacing fixed values withparameters.

    Enhance your test or componentand/or add programming statements toachieve more complex testing goals.

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    7/15

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    8/15

    If you do not want this dialog box to open the next time you start Quick Test , clear theShow on startup check box.

    Click OK.

    Starting QuickTest

    The QuickTest Professional window opens.

    You can choose to open the Quick Test Tutorial, Start Recording a new test, OpenExisting test, or Open Blank test.

    If you do not want this window to be displayed the next time you start Quick Test , clearthe Show this screen on startup check box.

    You can press the ESC key to close the window and open a blank test.

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    9/15

    The QuickTest Window

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    10/15

    The QuickTest Window

    The QuickTest window contains the following key elements: QuickTest Title Bar - Displays the name of the currently open test or

    component.

    Menu Bar - Displays menus of QuickTest commands. File Toolbar - Contains buttons to assist you in managing your test or

    component. Testing Toolbar - Contains buttons to assist you in the testing process. Debug Toolbar- Contains buttons to assist you in debugging your test

    or component (not displayed by default). Action Toolbar- Contains buttons and a list of actions, enabling you to

    view the details of an individual action or the entire test flow. Test Pane - Contains the Keyword View and Expert View tabs. Active Screen - Provides a snapshot of your application as it appeared

    when you performed a certain step during the recording session.

    Data Table - Assists you in parameterizing your test or component. Fora test, the Data Table contains the Global tab and a tab for each action.For a component, the Data Table contains single tab.

    Debug Viewer Pane -Assists you in debugging your test or component.The Debug Viewer pane contains the Watch Expressions, Variables &Command tabs (not displayed by default).

    Status Bar - Displays the status of the Quick Test application.

    Test Pane (Keyword View)

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    11/15

    The Keyword View enables you to create and view the steps of your test or component ina keyword-driven, modular, table format. Each step in your test or component is a row inthe Keyword View, comprised of individual parts which you can easily modify.

    Each step is automatically documented as you complete it, enabling you to view adescription of your test orcomponent steps in understandable English.Each operation performed on your application or Web site during a recording session isrecorded as a row in the Keyword View.

    Test Pane (Expert View)

    In the Expert View, QuickTest displays each operation performed on your application inthe form of a script, comprised of VBScript statements. The Expert View is a script editorwith many script editing capabilities.For each object & method in an Expert Viewstatement, a corresponding row exists in the Keyword View.

    Active Screen

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    12/15

    The Active Screen provides a snapshot of your application as it appeared when youperformed a certain step during a recording session. Additionally, depending on the

    Active Screen capture options that you used while recording, the page displayed in theActive Screen can contain detailed

    property information about each object displayed on the page.

    (To view the Active Screen, click theActive Screen button or choose View > ActiveScreen.)

    Data Tables

    In a new test, the Data Table contains one Global tab plus an additional tab for eachaction, or test step grouping, in your test. In a new component, the Data Table contains a

    single tab. The Data Table assists you in parameterizing your test or component. DataTable is a Microsoft Excel like sheet with columns & rows representing the dataapplicable to your test or component.

    (To view the Data Table, click the Data Table toolbar button or choose View > DataTable.)

    Using QuickTest Toolbar

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    13/15

    File ToolbarThe File toolbar contains buttons for managing a test or component.

    Using Quick Test Toolbar

    Testing ToolbarThe Testing toolbar contains buttons for the commands used when creating & maintainingyour test or component. The following buttons are displayed on the Testing toolbar :

    Using QuickTest Toolbar

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    14/15

    Debug ToolbarThe Debug toolbar contains buttons for the commands used when debugging the steps inyour test or component. The following buttons are displayed on the Debug toolbar :

    Using QuickTest Toolbar

    Action ToolbarThe Action toolbar is available in the Keyword View and contains options that enable youto view all actions in the test flow or to view the details of a selected action. The Actiontoolbar is not available for components. The following options are displayed on the Actiontoolbar :

    QuickTest Professional Program Folder

    After the QuickTest Professional setup process is complete, the following items are addedto your QuickTest Professional program folder (Start >Programs > QuickTestProfessional)Documentation - Provides the following links to commonly used

    Printer-Friendly Documentation

    QuickTest Automation Reference

    QuickTest Professional Help

    Tutorial

    Sample Application - Contains the following links to sampleapplicationsthat you can use to practice testing with QuickTest

    Sample Application

    Mercury Tours website

    QuickTest Professional Program Folder

  • 7/31/2019 QTP Chapter 01 Introduction QTP

    15/15

    Start >Programs > QuickTest Professional(Contd.)Tools - Contains the following utilities & tools that assist you with the testing process

    o Password Encoder

    o Remote Agent

    o Test Batch Runnero Test Results Deletion Tool

    Check for Updates - Checks online for any available updates to QuickTestProfessional. You can choose which updates you want to download and (optionally)install.QuickTest Professional - Opens the QuickTest Professional application.Readme - Opens the QuickTest Professional Readme, which provides the latest newsand information about QuickTest Professional.Test Results Viewer - Opens the Test Results window, which enables you to select atest or component and view information about the steps performed during the run

    session.Uninstall QuickTest Professional - Uninstalls QuickTest Professional and all of itscomponents, including built-in and external add-ins.