SlideShare a Scribd company logo
QTP Basics-2









QuickTest Professional Introduction
Record and run tests
Actions and Transactions
The Object Repository
Synchronization
Checkpoints
Parameterization
Outputting Values

pgorantla.blogspot.com









Quick Test Professional (QTP) is a solution for functional test
automation.
User basically records a set of actions which constitute the test scenario
and replay’s it with a varying set of data.
Modular and keyword driven table format of display of each of the
operation performed
VB script is the programming language
QTP allows easier capture of output values.

pgorantla.blogspot.com





Parameterization of data in QTP is easier
QTP allows easier capture of output values.
Features like smart identification to identify the objects used in our test
make sure that the maintenance of the tests is easy.
Allows interfacing with Test Director and Winrunner

pgorantla.blogspot.com


Recording Modes
 Analog Recording

Record relative to a specified window

Record relative to the screen


Low-level Recording

pgorantla.blogspot.com


Record and Run settings are first set To choose the Application which
needs to be recorded.



Run tab in Test setting used to set the number of iterations that need to
be executed



Resources tab to set the data-table location and repository type



The recorded test displayed in two views
 Expert View –> VBScript
 Keyword View -> Modular and keyword driven

pgorantla.blogspot.com


Actions –
 Logical Units in a Test
 Help design modular and efficient tests



Three types of actions
 Non reusable action
 Reusable actions
 External action



Calls to actions
 Call to new action
 Call to existing action
 Call to copy of action

pgorantla.blogspot.com


Nesting actions
 To run action within another action
 Parent – Child nested action created when we split an action



Transactions
 To measure the time taken for a set of steps to execute
 Transaction should start and end in same action.

pgorantla.blogspot.com


Test object - Object that QTP creates in the test to represent the
actual object in your application.



Run-time object - Actual object in the website or application on
which methods are performed during the test run.



QTP identifies objects based on their properties



Properties identified are of 3 kinds Mandatory properties
 Assistive properties
 Ordinal properties

pgorantla.blogspot.com


Definition: The collection of the objects which QTP has identified
during the recording.

pgorantla.blogspot.com


The objects are represented in a tree view.

pgorantla.blogspot.com



Object Spy is used to view the properties and methods of both runtime objects and Test objects
The object repository can be of two types
 Shared Object Repository
 Per-action Repository

pgorantla.blogspot.com


Enables application to load fully before QTP methods can operate on
them.



We can synchronize using the following options –
 Insert a synchronization point
 Use EXIST or WAIT statements
 Modify the default amount of time that QuickTest waits for a Web
page to load i.e. Modify object synchronization timeout value

pgorantla.blogspot.com




A verification point that compares a current value for a specified
property with the expected value for that property
If the current value does not match the expected value, the checkpoint
fails.

pgorantla.blogspot.com


Types of Checkpoints
 Standard :checks the property value of an object e.g. buttons, radio
buttons, combo boxes etc.


Image : checks the value of an image e.g. source file of the selected
image.



Bitmap : checks an area of the Web page as a bitmap.



Table : checks information within a table. Created by inserting a
standard checkpoint on a table.



Text :checks that a text string is displayed in the appropriate place in
the application/Web page.

pgorantla.blogspot.com


Types of Checkpoints
 Text Area : Checks that a text string is displayed within a defined
text area according to a specified criteria.


Page: Checks the characteristics of a web page e.g. check how long a
page takes to load or it contains broken links.



Database: Checks the contents of a database accessed by your web
site.



XML: Checks the data content of XML documents in XML files or
XML documents in web pages and frames.



Accessibility Checkpoint: Identifies areas of a Web site
to check for Section 508 compliancy (W3C compliant)

pgorantla.blogspot.com






A parameter is a variable that is assigned values from various data
sources.
QTP enables you to expand the scope of a basic test by replacing values
with parameters.
There are 2 different groups of parameters
 Data table parameters: Enable to create a data-driven test that runs
several times using the data supplied. In each iteration, QTP
substitutes the constant value with different values from the Data
table.


All other parameters: Enable use of variable values from other
sources during the test run.

pgorantla.blogspot.com


Data Tables
 Used to store Test data which acts as input parameters to the test.

Resembles a Microsoft excel sheet.
 Data table parameters and output parameters can be inserted from
the test.



Data Driver
 Data Driver allows the user
to parameterize several
property values together.

pgorantla.blogspot.com


Is used to extract property values to the data table to be used later as
input to some other step.



Output value is stored only during one run session and gets reset
during the next run session

pgorantla.blogspot.com
Q & A….

pgorantla.blogspot.com







QTP is an automated functional testing tool
Tests are modular and keyword driven
Uses an object repository to store and identify the test objects
Checkpoints and parameterization are easy in QTP.
Allows storage of output values
Enables Data driven testing

pgorantla.blogspot.com

More Related Content

PPT
Qtp Presentation
PPT
1.qtp basics
PPTX
Rob Davidson: Using Galaxy for Metabolomics
PPT
Copy of qtp presentation
DOC
Qtp interview questions
PDF
HKG15-411: Browser Testing Framework for LHG
PDF
Microservices for Systematic Profiling and Monitoring of the Refactoring
PPTX
realizovannie
Qtp Presentation
1.qtp basics
Rob Davidson: Using Galaxy for Metabolomics
Copy of qtp presentation
Qtp interview questions
HKG15-411: Browser Testing Framework for LHG
Microservices for Systematic Profiling and Monitoring of the Refactoring
realizovannie

Similar to QTP Basics-2 (20)

PPT
Qtp Training
PPS
About Qtp_1 92
PPS
About QTP 9.2
PPS
About Qtp 92
DOC
Qtp interview questions3
DOC
Qtp interview questions3
DOC
Interview questions in qtp
PPT
Qtp Training Deepti 2 Of 44780
PPT
QTP Online Training
PPT
Hp Quick Test Professional
DOC
Qtp interview questions
DOC
What are the features in qtp
DOC
Qtp interview questions and answers
DOC
Qtp interview questions and answers
PPT
Qtp Basics
PPT
QTP Training by INFOTECH
PPTX
QTP Tutorial
DOC
Interview qutions
DOC
Qtp questions and answers
PPT
First QTP Tutorial
Qtp Training
About Qtp_1 92
About QTP 9.2
About Qtp 92
Qtp interview questions3
Qtp interview questions3
Interview questions in qtp
Qtp Training Deepti 2 Of 44780
QTP Online Training
Hp Quick Test Professional
Qtp interview questions
What are the features in qtp
Qtp interview questions and answers
Qtp interview questions and answers
Qtp Basics
QTP Training by INFOTECH
QTP Tutorial
Interview qutions
Qtp questions and answers
First QTP Tutorial
Ad

More from Praveen Gorantla (12)

PPT
Troubleshooting with QTP
PPT
File System Object in QTP
PPT
Recovery Scenario in QTP
DOCX
Selenium WebDriver FAQ's
PPT
QTP Functions
PPT
VB Script Overview
DOCX
Regular Expressions in QTP
PPT
Dynamic Content in QTP
PPT
Business Process Testing
PPT
QTP with QualityCenter
DOCX
Virtual objects
PPT
2.regular expressions
Troubleshooting with QTP
File System Object in QTP
Recovery Scenario in QTP
Selenium WebDriver FAQ's
QTP Functions
VB Script Overview
Regular Expressions in QTP
Dynamic Content in QTP
Business Process Testing
QTP with QualityCenter
Virtual objects
2.regular expressions
Ad

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
KodekX | Application Modernization Development
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
NewMind AI Monthly Chronicles - July 2025
MYSQL Presentation for SQL database connectivity
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks

QTP Basics-2

  • 2.         QuickTest Professional Introduction Record and run tests Actions and Transactions The Object Repository Synchronization Checkpoints Parameterization Outputting Values pgorantla.blogspot.com
  • 3.      Quick Test Professional (QTP) is a solution for functional test automation. User basically records a set of actions which constitute the test scenario and replay’s it with a varying set of data. Modular and keyword driven table format of display of each of the operation performed VB script is the programming language QTP allows easier capture of output values. pgorantla.blogspot.com
  • 4.     Parameterization of data in QTP is easier QTP allows easier capture of output values. Features like smart identification to identify the objects used in our test make sure that the maintenance of the tests is easy. Allows interfacing with Test Director and Winrunner pgorantla.blogspot.com
  • 5.  Recording Modes  Analog Recording  Record relative to a specified window  Record relative to the screen  Low-level Recording pgorantla.blogspot.com
  • 6.  Record and Run settings are first set To choose the Application which needs to be recorded.  Run tab in Test setting used to set the number of iterations that need to be executed  Resources tab to set the data-table location and repository type  The recorded test displayed in two views  Expert View –> VBScript  Keyword View -> Modular and keyword driven pgorantla.blogspot.com
  • 7.  Actions –  Logical Units in a Test  Help design modular and efficient tests  Three types of actions  Non reusable action  Reusable actions  External action  Calls to actions  Call to new action  Call to existing action  Call to copy of action pgorantla.blogspot.com
  • 8.  Nesting actions  To run action within another action  Parent – Child nested action created when we split an action  Transactions  To measure the time taken for a set of steps to execute  Transaction should start and end in same action. pgorantla.blogspot.com
  • 9.  Test object - Object that QTP creates in the test to represent the actual object in your application.  Run-time object - Actual object in the website or application on which methods are performed during the test run.  QTP identifies objects based on their properties  Properties identified are of 3 kinds Mandatory properties  Assistive properties  Ordinal properties pgorantla.blogspot.com
  • 10.  Definition: The collection of the objects which QTP has identified during the recording. pgorantla.blogspot.com
  • 11.  The objects are represented in a tree view. pgorantla.blogspot.com
  • 12.   Object Spy is used to view the properties and methods of both runtime objects and Test objects The object repository can be of two types  Shared Object Repository  Per-action Repository pgorantla.blogspot.com
  • 13.  Enables application to load fully before QTP methods can operate on them.  We can synchronize using the following options –  Insert a synchronization point  Use EXIST or WAIT statements  Modify the default amount of time that QuickTest waits for a Web page to load i.e. Modify object synchronization timeout value pgorantla.blogspot.com
  • 14.   A verification point that compares a current value for a specified property with the expected value for that property If the current value does not match the expected value, the checkpoint fails. pgorantla.blogspot.com
  • 15.  Types of Checkpoints  Standard :checks the property value of an object e.g. buttons, radio buttons, combo boxes etc.  Image : checks the value of an image e.g. source file of the selected image.  Bitmap : checks an area of the Web page as a bitmap.  Table : checks information within a table. Created by inserting a standard checkpoint on a table.  Text :checks that a text string is displayed in the appropriate place in the application/Web page. pgorantla.blogspot.com
  • 16.  Types of Checkpoints  Text Area : Checks that a text string is displayed within a defined text area according to a specified criteria.  Page: Checks the characteristics of a web page e.g. check how long a page takes to load or it contains broken links.  Database: Checks the contents of a database accessed by your web site.  XML: Checks the data content of XML documents in XML files or XML documents in web pages and frames.  Accessibility Checkpoint: Identifies areas of a Web site to check for Section 508 compliancy (W3C compliant) pgorantla.blogspot.com
  • 17.    A parameter is a variable that is assigned values from various data sources. QTP enables you to expand the scope of a basic test by replacing values with parameters. There are 2 different groups of parameters  Data table parameters: Enable to create a data-driven test that runs several times using the data supplied. In each iteration, QTP substitutes the constant value with different values from the Data table.  All other parameters: Enable use of variable values from other sources during the test run. pgorantla.blogspot.com
  • 18.  Data Tables  Used to store Test data which acts as input parameters to the test.  Resembles a Microsoft excel sheet.  Data table parameters and output parameters can be inserted from the test.  Data Driver  Data Driver allows the user to parameterize several property values together. pgorantla.blogspot.com
  • 19.  Is used to extract property values to the data table to be used later as input to some other step.  Output value is stored only during one run session and gets reset during the next run session pgorantla.blogspot.com
  • 21.       QTP is an automated functional testing tool Tests are modular and keyword driven Uses an object repository to store and identify the test objects Checkpoints and parameterization are easy in QTP. Allows storage of output values Enables Data driven testing pgorantla.blogspot.com

Editor's Notes

  • #3: Briefly review the session agenda as indicated here. Currently we are in the “Prep Session Introduction” section, during which we will review basic information about this session, including how to use Centra to participate. Note: The Prep Session Introduction section should take no longer than 15 minutes.
  • #21: Spend a few moments answering participants’ questions about the agenda of this session or the Centra controls they will be using. Remind them to use the “Raise Hand” icon to ask a question.