Вы находитесь на странице: 1из 27

Confidential. Strictly for internal circulation only.

1
Introduction
Environment Support
Testing Process in QTP
Add-in Manager
Keyword View
Expert view
Data table
Active screen
Debug viewer
Information
Missing resources
Function library
Day 1
2
Recording and Running tests
Normal Recording
Analog Recording
Low level Recording
Difference b/w recording methods
Tips and techniques to follow
Understanding Recoded Script
Basic introduction about vb script
Condition & Loop statements
Adding Comments to Script
Using Keyword View
Day 1
3
Introduction
HP Quick Test Professional software is an advanced, automated
testing software for building functional and regression test suites. It
captures, verifies and replays user interactions automatically and
helps testers quickly identify and report on application effects, while
providing advanced functionality for tester collaboration.

HP Quick Test Professional 9.5 is the latest version.


Supported Environments and Programs
Virtualization Technologies
VMware workstation 5.5
Citrix MetaFrame Presentation
Server 4.0
VMWARE ESX 3.0.1
Microsoft Virtual PC 2004
Microsoft Virtual PC 2007
Microsoft Office
Microsoft Excel
Microsoft Query
ActiveX
Java Applications
.NET Applications
Oracle Applications
PeopleSoft Applications
PowerBuilder Applications
SAP Applications
Siebel Applications
Standard Windows Applications
Stingray Applications
Terminal Emulator Applications
Visual Age Smalltalk Applications
Visual Basic Applications
Web Browsers
Internet Explorer 7.0
FireFox 3.0
NetScape 9.0
Web Services
Quick Test Professional 9.5 supports creating, recording, and running tests or components
using the environments and programs described below.

5
Testing Process in QTP
Running Tests
Creating Tests
Planning
Analyzing Results
Planning:-
Before beginning to create a test, you should plan it and prepare the required
infrastructure. For example, determine the functionality you want to test, and
decide which information you want to check during the test run.

Creating Tests:-
You create a test either by building an object repository and adding steps
manually or by recording a session on your application. You can create steps
using the table-like, graphical Keyword View using keyword-driven
functionalityor you can use the Expert View, if you prefer programming steps
directly in VBScript.

Running Tests:-
Run your test to check your site or application. Run your test to debug it. You
can control your run session to help you identify and eliminate defects in your
test.

Analyzing Results:-
After you run your test, you can view the results. You can view a summary of
your results as well as a detailed report. You can also capture still images or
movies of your application as it is being tested.
6
Add-in Manager
By default QuickTest Support Activex,
Visual Basic, Web, Windows

If you have installed QuickTest add-
ins, you can specify which add-ins to
load at the beginning of each
QuickTest session. Loading the
relevant add-in enables QuickTest to
work with the corresponding
environment.

You can select which add-ins to load
for the current session of QuickTest.
To maximize performance and object
identification reliability, load only the
add-ins you need.
7
Keyword View
8
Expert view
9
Data table
10
Active screen
11
Debug viewer
12
Information Tab
13
Missing resources
14
Function Library
15
The Five Concepts in any Automation Tool
1. Recording / Running
2. Object Identification
3. Verifications
4. Data Driving
5. Exception Handling
16
Recording Tests

Step1
Step2
Step3
17
Recorded Code

18
Running Tests

Step1
Step2
Step3
19
Analyzing Results

Failure
Symbol
20
Recording Types
Normal Recording
This recording mode is the default recording mode. Normal recording mode records
the objects in your application and the operations performed on them.

Analog Recording
Enables you to record the exact mouse movements and keyboard operations you
perform in relation to either the screen or the application window.

Low Level Recording
This recording mode is enables you to record on any object in your application,
whether or not QuickTest recognizes the specific object or the specific operation. This
mode records at the object level and records all run-time objects as Window or
WinObject test objects.
21
Differentiate Recordings Modes
Normal Recording Analog Recording Low Level Recording
Records Object information based
on test object model.

Records Keyboard i/ps.

Records Mouse Clicks.

Object Information will store in
object repository.

Possible to edit the
scripts after recording with
in QTP.

Recording a signature is
not possible

Recorded steps will run
correctly on all objects.

Support all methods for
every object.
This is Default Recording
method.
Records Mouse Movements respect
to window or screen.

Records Keyboard i/ps

Records Mouse clicks.

It cant record object information.

Not possible to edit the script after
recording with in QTP.

Alternative mode for recording
signatures.

When we are recording with respect
to window, the window object
information will stores in object
repository.

Analog recording and lowlevel
recording require more disk space
than normal recording mode.
Records all objects as window or
win objects.

Records Keyboard i/ps Records
mouse clicks with co-ordinates.

Records object information in the
form of window or winobjects.

Possible to edit the scripts after
recording with in QTP.

Recorded steps may not run
correctly on all objects.

supports the following methods for
each test object:

WinObject test objects:
Click, DblClick, Drag, Drop, Type

Window test objects: Click, DblClick,
Drag, Drop, Type, Activate, Minimize,
Restore, Maximize
22
23
Understanding Recorded Script
Object
Operation
Data
Tips & Techniques
Always use mouse operations to focus an object
Don't record unnecessary operations
Set QTP window size correctly
Don't record minimize and maximize operations
Select only required add-ins

The Five Concepts in any Automation Tool
1. Recording / Running
2. Object Identification
3. Verifications
4. Data Driving
5. Exception Handling
25
26
27
SemanticSpace Technologies
100 Pacifica Suite 270,
Irvine CA 92618,
Tel: (949) 789-7332
Fax: (949) 789-7334
www.semanticspace.com
Prolifics
22 Cortlandt Street, 18th Floor,
New York, NY 10007
Tel: (212) 267-7722
Fax: (212) 608-6753
www.prolifics.com
Arsin Corporation
Suite 425, 4800 Great America Parkway,
Santa Clara, CA 95054 -1228
Tel: (408) 653-2020
Fax: (408) 653-2030
www.arsin.com
Corporate Headquarters
European Offices
London, UK Hamburg, Germany
Philadelphia, PA San Francisco, CA Irving, TX Atlanta, GA Orlando, FL Cleveland, OH
US Offices
Boston, MA
India Office
Plot #226, Road #17
Jubilee Hills, Hyderabad-500033
Phone: +91 40 39991999
Fax: +91 40 23114651