QTP Introduction
QTP Introduction
Introduction to QTP
○ About QTP
○ QTP Background
○ Version
○ License
○ Environments supported
○ Browsers Supported
○ Languages Supported
Stages In Quick Test
• About QTP
• QTP or QuickTest Professional is an automation tool which is primarily used for functional and
regression testing.
• QTP Background
• QTP was originally developed by Mercury Interactive Corporation and it was known as Mercury
QuickTest Professional.
• Mercury Interactive was acquired by HP and from then onwards QTP is available as HP
QuickTest Professional.
• Latest Version
QTP 12 is the latest version of QTP.
• License
QTP comes with 2 types of licenses
• Environments Supported
• Default Support
o Web Objects /Applications
o ActiveX controls
o Visual Basic Applications
• Supported Add-ins
o Java
o .NET
o Oracle
o People Soft
o SAP
o Siebel
o Stingray
o Terminal Emulator
o VisualAge Smalltalk
o Citrix
o VMware desktop support
Introduction to QTP
• Browsers Supported
• Languages Supported
You can write your Quick Test automation scripts in any language and development
environment that supports automation.
For example, you can use: VBScript, JavaScript, Visual Basic, Visual C++, or
VisualStudio.NET.
Stages In Quick Test
• Creating Tests
o Create a test either by building an object repository and adding steps manually.
or
o By recording a session on your application.
or
o If you prefer programming steps directly in VBScript (Descriptive Programming).
o Then We can use the different QTP features (Check points, Synchronization Points,
Recovery Scenarios etc...) to enhance the test.
• Running Tests
• Analyzing Results
Starting QuickTest
To start QuickTest,
Choose Programs > QuickTest Professional > QuickTest Professional in the Start menu, or
double- click the QuickTest Professional shortcut on your desktop. It will Display Add-In Manager
Screen. Select the Addins and click on “OK” button.
Main Window
Main Window
• Test Pane
Test Pane contains two labs to view the tests,
• Keyword View
• Expert View
• Active Screen
• Information Pane
• Data Table
• The Keyword View enables you to create and view the steps of your test in a
keyword-driven, modular, table format. The Keyword View is comprised of a table-like
view, in which each step is a separate row in the table, and each column represents
different parts of the steps. You can modify the columns displayed to suit your
requirements.
Expert View
• In the Expert View, QuickTest displays each operation performed on your application
in the form of a script, comprised of VBScript statements.
Active Screen
• The Information pane provides a list of syntax errors in your test or function
library scripts.
Missing Resources Pane
• The Missing Resources pane provides a list of the resources that are
specified in your test but cannot be found, such as missing calls to actions,
unmapped shared object repositories, and parameters that are connected to
shared object repositories.
Data Table
• The Data Table contains one Global tab plus an additional tab for each
action, or test step grouping, in your test. The Data Table assists you in
Parameterizing your test.
Debug Viewer Pane
• The Debug Viewer pane contains three tabs to assist you in debugging your test or
function library—Watch, Variables, and Command.
o Watch
The Watch tab enables you to view the current value of any variable or VBScript
expression that you added to the Watch tab.
o Variables
During a run session, the Variables tab displays the current value of all variables
that have been recognized up to the last step performed in the run session.
o Command
The Command tab enables you to execute a line of script in order to set or
modify the current value of a variable or VBScript object in your test. When you
continue the run session, QuickTest uses the new value that was set in the
command.
.
Thank You