qtp

25
Quick Test Professional 9.2V QTP stands Quick Test Professional, an automated testing tool provided by HP/Mercury Interactive Presented By: Priya Sharma Trivedi

Upload: priyatrivedi

Post on 25-May-2015

3.665 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Qtp

Quick Test Professional 9.2V

QTP stands Quick Test Professional, an automated testing tool provided by HP/Mercury Interactive

Presented By: Priya Sharma Trivedi

Page 2: Qtp

Technologies Supported Default Support 1. Standard Windows applications 2. Web objects / Applications 3. ActiveX controls 4. Visual Basic applications Additional QuickTest add-ins Support, 1. Java 2. Oracle 3. SAP Solutions, 4. .NET Windows 5. Web Forms, 6. Siebel, 7. PeopleSoft, 8. Web services, and terminal emulator applications.

QTP At a Glance …..

Page 3: Qtp

Testing Process with QTP

Quick Test Pro involves 3 main stages:Creating Test scripts

Running Tests

Analyzing Test Results

Page 4: Qtp

Testing Process with QTP

Creating Tests

Create a test script by recording a manual test scenario on the AUT (Application Under Test) using QTP.

Quick Test Pro graphically displays each step users perform in the form of a collapsible, icon based tree view in QTP’s Keyword View.

Page 5: Qtp

Testing Process with QTP

Running Tests & Analyzing Test Results Running Tests:

Once the test scripts are recorded / created, next step is to execute them…While running (executing) the tests Quick Test Pro connects to the web site or AUT and performs each operation in the test as performed manually while recording / creating tests (test scripts)…

Debugging Test : To identify and eliminate the defects in the test scripts.

Analyzing Test Results:

Once the test scripts are executed, test results and the summary can be viewed for result analysis.

Page 6: Qtp

Add-in Manager

Default Add-ins ActiveX Visual basic Web

Other Add-Ins Siebel Java SAP Oracle .Net and many more

Page 7: Qtp

Add-in Manager Cont…

QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test)

Once an add-in is loaded, users can record that application in its supported environment and thus QTP recognizes the objects specific to the application under test (AUT) as loaded through Add-in Manager.

It is critical for the users to know the development technologies / environment of AUT, and load right Add-Ins while invoking Quick Test Pro.

Page 8: Qtp

QTP 9.2 Basic Features

The suitable platform to run QTP 9.2 is Windows XP operating system and IE 7.0. QTP 9.2 instructs that the scripts are to be recorded using IE 7.0 browser but you can play back them in other browsers but it is always advisable to work with IE 7.0

Quick Test Professional or QTP 9.2 Basic Features QTP 9.2 is Object Based Testing Tool, it identifies every thing on the application at an Object Level. QTP 9.2 Tool is used for performing Functional and Regression Testing. QTP 9.2 follows Keyword Driven Approach. QTP 9.2 is compatible with Windows XP operating system. QTP 9.2 supports Graphical user interface (GUI) and Web Based Applications for automation and it does not

support Command user interface (CUI) applications. QTP 9.2 uses Microsoft Visual Basic Scripting language for writing scripts and Excel for Data driven testing. We can run SQL queries directly from QTP 9.2. QTP 9.2 can be integrated with tools like WinRunner and Quality Center. QTP 9.2 supports Internet Explorer but is IE 7.0 is most suited for recording but can be played back in other

browsers. QTP 9.2 is a Desktop Application (I-Tier/Stand alone). QTP 9.2 comes with two types of Licenses

1. Seat or Node License: For only one system2. Concurrent or float license: For multiple systems based on the license privilege.3. Trial Version: QTP 9.2 trial version runs for 14 days.

Page 9: Qtp

First Look of QTP 9.2

1. As soon as you install Quick Test Professional 9.2 you can run the application either from the desktop on which a shortcut of the application is created or you can launch QTP 9.2 by going to Start Menu -> Programs -> Quick Test Professional and click on the menu item.

2. The window “Add in Manager” is opened. Since we are learning to use QTP 9.2 un check all the addins and click OK button.

Page 10: Qtp

Quick Test Professional - Record & Run Modes

Recording Modes Normal Analog Low level

Run Modes Normal Fast Update

Page 11: Qtp

Quick Test Professional - Options General

Best Practices for General Options: Deselect all check boxes except “Save data for integrating with

performance testing …” and “Display Add-in Manager on startup” which is default setting.

Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed.

Page 12: Qtp

Quick Test Professional - Options Run

Page 13: Qtp

Quick Test Professional - Options Run

Best Practices for Options for Run Mode: Run Mode as Normal:

This ensures that the execution arrow appears to help with trouble shooting the tests.

Synchronization becomes better for the AUT (Application Under Test)

Test Results: Deselect the option “View Results when run session ends”

Mercury Tool Integration: Select "Allow other Mercury products to run tests and components“

Screen Capture: Save step screen capture to results "On error and warnings"

Page 14: Qtp

Record and Run Settings

Page 15: Qtp

Record and Run Settings

Best Practices for Record & Run Settings, Set the options to configure QTP to "Record and run test on any

open Windows- based application“

Set the option - This window will appear the first time you click on the Record button in the new test.

Manually recall this window by selecting Test Record and Run settings

Page 16: Qtp

1. What are the default Add-ins in Add-in manager

a. Active x, Web, Visual Basic.

b. .Net, SAP, Oracle.

c. Siebel.

Quick Quiz

Page 17: Qtp

QTP - Main Window

Page 18: Qtp

QTP - Main Window

Page 19: Qtp

QTP - Main Window

Test Pane: Test Pane contains two labs to view the tests,

- Keyword View

- Expert View

Keyword View: Quick Test Pro displays your test in the form of a collapsible, icon

based tree…

Expert View: Quick Test Pro displays the source code (VB Script) of the tests in

this view.

Page 20: Qtp

QTP - Main Window

Page 21: Qtp

QTP - Main Window

Data Table :

Data table assists in Parameterizing the tests…

Debug Viewer Pane :

It assists in debugging tests with the help of

Watch Expressions, Variables, and Command.

Page 22: Qtp

Quick Test Pro Commands

Quick Test Pro Commands :

The Quick Test Pro commands can be chosen from the menu bar or from a Tool bar.

File Tool bar :

File tool bar contains buttons for managing the test.

Page 23: Qtp

Quick Test Pro Commands

Test Tool bar :

Test tool bar contains buttons for the commands used when creating or maintaining the tests…

Page 24: Qtp

Quick Test Pro Commands

Debug Tool Bar :

It contains buttons for commands used when debugging the steps in the tests…

Page 25: Qtp

Quick Test Pro Commands

Action Tool Bar :

To view all actions in the test flow or to view the details of a selected action…