qtp session day1
TRANSCRIPT
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 1/27
Confidential. Strictly for internal circulation only.1
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 2/27
• 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
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 3/27
• 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
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 4/27
Introduction
• HP Quick Test Professional software is an advanced, automatedtesting software for building functional and regression test suites. Itcaptures, verifies and replays user interactions automatically and
helps testers quickly identify and report on application effects, whileproviding advanced functionality for tester collaboration.
• HP Quick Test Professional 9.5 is the latest version.
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 5/27
Supported Environments and Programs
• Virtualization Technologies
• VMware workstation 5.5
• Citrix MetaFrame PresentationServer 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 componentsusing the environments and programs described below.
5
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 6/27
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 requiredinfrastructure. For example, determine the functionality you want to test, anddecide which information you want to check during the test run.
Creating Tests:-
You create a test either by building an object repository and adding stepsmanually or by recording a session on your application. You can create steps
using the table-like, graphical Keyword View using keyword-drivenfunctionality—or you can use the Expert View, if you prefer programming stepsdirectly in VBScript.
Running Tests:-
Run your test to check your site or application. Run your test to debug it. Youcan control your run session to help you identify and eliminate defects in yourtest.
Analyzing Results:-
After you run your test, you can view the results. You can view a summary ofyour results as well as a detailed report. You can also capture still images ormovies of your application as it is being tested.
6
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 7/27
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 toload at the beginning of eachQuickTest session. Loading the
relevant add-in enables QuickTest towork with the correspondingenvironment.
• You can select which add-ins to loadfor the current session of QuickTest.To maximize performance and objectidentification reliability, load only the
add-ins you need.
7
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 8/27
Keyword View
8
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 9/27
Expert view
9
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 10/27
Data table
10
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 11/27
Active screen
11
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 12/27
Debug viewer
12
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 13/27
Information Tab
13
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 14/27
Missing resources
14
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 15/27
Function Library
15
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 16/27
The Five Concepts in any Automation Tool
1. Recording / Running
2. Object Identification
3. Verifications
4. Data Driving
5. Exception Handling
16
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 17/27
Recording Tests
Step1
Step2
Step3
17
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 18/27
Recorded Code
18
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 19/27
Running Tests
Step1
Step2
Step3
19
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 20/27
Analyzing Results
FailureSymbol
20
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 21/27
Recording Types
Normal RecordingThis recording mode is the default recording mode. Normal recording mode records
the objects in your application and the operations performed on them.
Analog RecordingEnables you to record the exact mouse movements and keyboard operations youperform in relation to either the screen or the application window.
Low Level RecordingThis 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 orWinObject test objects.
21
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 22/27
Differentiate Recordings Modes
Normal Recording Analog Recording Low Level Recording
Records Object information based
on test object model.
Records Keyboard i/p’s.
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 runcorrectly 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/p’s
Records Mouse clicks.
It can’t 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/p’s 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
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 23/27
23
Understanding Recorded Script
Object Operation
Data
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 24/27
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
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 25/27
The Five Concepts in any Automation Tool
1. Recording / Running
2. Object Identification
3. Verifications
4. Data Driving
5. Exception Handling
25
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 26/27
26
C t H d t
8/12/2019 QTP Session Day1
http://slidepdf.com/reader/full/qtp-session-day1 27/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, PASan 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