SlideShare a Scribd company logo
1 of 13
QTP Basics




Features of Quick Test Professional
Recording Modes in QTP
Normal Recording
 Analog Recording











Low Level Recording

Running scripts
Test Object Model
Synchronization
Quick Test Expert View
Checkpoints
Session Wrap-Up

pgorantla.blogspot.com

2
QTP Basics



Fast test creation



Easier maintenance



Powerful Data-driving capability
Data Table
 Checkpoints




VBScript support



Smart Identification



Recovery mechanism



Auto-documentation
pgorantla.blogspot.com

3
QTP Basics

•

Normal Recording
– Normal recording mode records the objects and the operations performed in the
application.
– This mode is the default and takes full advantage of QuickTest's test object model,
recognizing the objects in your application regardless of their location on the screen.

•

Analog Recording
– This type of recording enables to record the exact mouse and keyboard operations
you perform in relation to either the screen or the application window.
– Analog Recording Settings Dialog Box consists of the two operands;
• Record relative to the screen : Records all mouse movement or keyboard input on all
windows in the screen
• Record relative to the window : Records any mouse movement or keyboard input relative to
the coordinates of the specified window.

Note:
•

It is not possible to edit the analog recording steps within Quick Test.
pgorantla.blogspot.com

4
QTP Basics



Low Level Recording


Used when test objective pertains to the specific object
location.



This type of recording enables to record on any object in the
application, whether or not Quick Test recognizes the
specific object or the specific operation.



It should be used when the environment or the object is not
recognized by QTP OR if the exact coordinates of the object
are important for your test or component.

Note:
•

Steps recorded using low-level mode may not run correctly on all objects if the object co-ordinates change
frequently.

pgorantla.blogspot.com

5
QTP Basics

•

There are two modes of running the scripts in QTP namely
– Normal
– Fast

•

Normal mode:
– Uses the execution arrow in both the Keyword and Expert view marking the each
step or statement performed.
– For tests containing multiple actions, for Keyword View the tree in the Item column is
expanded to display the steps while in the Expert View displays the script, of the
currently running action.

•

Fast Mode:
– Does not use the execution arrow to run the test or component in either Keyword
View or Expert View and does not expand the item tree or display the script of each
action as it runs.

pgorantla.blogspot.com

6
QTP Basics



Object model





It is an structural representation of software objects that comprise the
implementation of a system or application.
Defines a set of classes and interfaces, together with their properties,
methods and events, and their relationships.

Test object





Used by QTP to represent the an object in the application.
Consists of one or more methods or properties.
Consists of an number of identification properties.
QTP supports 6 types of these test objects namely,







Standard Windows Object
ActiveX Objects
Visual Basic Objects
Web Objects
Utility Objects
Supplemental Objects
pgorantla.blogspot.com

7
QTP Basics



Used where web page or application does not respond
in the same speed at which QTP operates.



QTP waits until the respective image/page/button or
application is ready for further test execution.



Synchronization points forces Quick Test to wait for
the specified milliseconds before the next action is
executed.



This can be added in the following ways;




Adding synchronization step from the Insert Menu.
Using Wait() statements.
By modifying the default values.
pgorantla.blogspot.com

8
QTP Basics



Used alternative to Keyword view



Object Hierarchy is used for Scripts

pgorantla.blogspot.com

9
QTP Basics



It is an verification point used to compare the current
value of a specified property with its expected value.



Checkpoints in QTP











Standard Checkpoint
Text Checkpoint
Image Checkpoint
Page Checkpoint
Database Checkpoint
Bitmap Checkpoint
Table checkpoint
Text Area checkpoint
Accessibility checkpoint
XML Checkpoint

pgorantla.blogspot.com

10
QTP Basics

Q & A….

pgorantla.blogspot.com

11
QTP Basics







QTP supports functional testing of environments such as
Windows, Web, .NET etc.,
Uses VBScript as its scripting language.
Operates stand alone and can also be integrated with
other Mercury products.
Facilitates easy steps for data driven testing and provide
auto –documentation about each test step.
3 types of recording is possible thru QTP






Scripts can be run in two modes:





Normal Recording
Analog Recording
Low Level Recording

Normal - Runs the test with the execution mark
Fast – Runs the test without the execution arrow

The Run settings can be changed from the Options dialog
pgorantla.blogspot.com

12
QTP Basics





An object model is a structural representation of software objects
(classes) that comprise the implementation of a system or application
A test object is an object that QuickTest uses to represent an object in
the application
QTP supports 6 types of objects namely











Standards Windows Object
ActiveX Object
Web Object
Visual Basic Object
Utility Object
Supplemental Objects

Synchronization points allow Quick Test to wait for the specified
milliseconds before the next action is executed.
The Expert view displays the set of objects and steps as a VBScript
line.
A checkpoint is a verification point that compares a current value for a
specified property with the expected value for that property.

pgorantla.blogspot.com

13

More Related Content

What's hot

Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentationRamu Palanki
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point PresentationSVRTechnologies
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answersRamu Palanki
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP FrameworkAnish10110
 
Qtp training session I
Qtp training session IQtp training session I
Qtp training session IAisha Mazhar
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
What is UFT? HP's unified functional testing.
What is UFT? HP's unified functional testing.What is UFT? HP's unified functional testing.
What is UFT? HP's unified functional testing.Confiz
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test ProfessionalVitaliy Ganzha
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.tjdhans
 
Boost your App with Gatling
Boost your App with GatlingBoost your App with Gatling
Boost your App with GatlingKnoldus Inc.
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtpRamu Palanki
 
Gatling overview
Gatling overviewGatling overview
Gatling overviewViral Jain
 
Qtp Training
Qtp TrainingQtp Training
Qtp Trainingmehramit
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorialsasidhar
 
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17OW2
 

What's hot (20)

Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point Presentation
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP Framework
 
Qtp training session I
Qtp training session IQtp training session I
Qtp training session I
 
Test driving QML
Test driving QMLTest driving QML
Test driving QML
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
What is UFT? HP's unified functional testing.
What is UFT? HP's unified functional testing.What is UFT? HP's unified functional testing.
What is UFT? HP's unified functional testing.
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
 
Boost your App with Gatling
Boost your App with GatlingBoost your App with Gatling
Boost your App with Gatling
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
 
Gatling overview
Gatling overviewGatling overview
Gatling overview
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Gatling
Gatling Gatling
Gatling
 
QTP Basics-2
QTP Basics-2QTP Basics-2
QTP Basics-2
 
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
 

Similar to 1.qtp basics

Interview qutions
Interview qutionsInterview qutions
Interview qutionssatyaragha
 
Qtp92 Presentation
Qtp92 PresentationQtp92 Presentation
Qtp92 Presentationa34sharm
 
Dhanasekaran 2008-2009 Quick Test Pro Presentation
Dhanasekaran 2008-2009 Quick Test Pro PresentationDhanasekaran 2008-2009 Quick Test Pro Presentation
Dhanasekaran 2008-2009 Quick Test Pro PresentationDhanasekaran Nagarajan
 
QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.Jaya Priya
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtpRamu Palanki
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programmingKuldeep Sharma
 
Qtp With Descriptive Programming
Qtp With Descriptive ProgrammingQtp With Descriptive Programming
Qtp With Descriptive ProgrammingKuldeep Sharma
 
Qtp with descriptive programming
Qtp with descriptive programmingQtp with descriptive programming
Qtp with descriptive programmingmedsherb
 

Similar to 1.qtp basics (20)

Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Qtp92 Presentation
Qtp92 PresentationQtp92 Presentation
Qtp92 Presentation
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
 
Dhanasekaran 2008-2009 Quick Test Pro Presentation
Dhanasekaran 2008-2009 Quick Test Pro PresentationDhanasekaran 2008-2009 Quick Test Pro Presentation
Dhanasekaran 2008-2009 Quick Test Pro Presentation
 
QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Qtp
QtpQtp
Qtp
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
Qtp basics
Qtp basicsQtp basics
Qtp basics
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programming
 
Qtp With Descriptive Programming
Qtp With Descriptive ProgrammingQtp With Descriptive Programming
Qtp With Descriptive Programming
 
Qtp with descriptive programming
Qtp with descriptive programmingQtp with descriptive programming
Qtp with descriptive programming
 

More from Praveen Gorantla

More from Praveen Gorantla (12)

Troubleshooting with QTP
Troubleshooting with QTPTroubleshooting with QTP
Troubleshooting with QTP
 
File System Object in QTP
File System Object in QTPFile System Object in QTP
File System Object in QTP
 
Recovery Scenario in QTP
Recovery Scenario in QTPRecovery Scenario in QTP
Recovery Scenario in QTP
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
 
VB Script Overview
VB Script OverviewVB Script Overview
VB Script Overview
 
Regular Expressions in QTP
Regular Expressions in QTPRegular Expressions in QTP
Regular Expressions in QTP
 
Dynamic Content in QTP
Dynamic Content in QTPDynamic Content in QTP
Dynamic Content in QTP
 
Business Process Testing
Business Process TestingBusiness Process Testing
Business Process Testing
 
QTP with QualityCenter
QTP with  QualityCenterQTP with  QualityCenter
QTP with QualityCenter
 
Virtual objects
Virtual objectsVirtual objects
Virtual objects
 
2.regular expressions
2.regular expressions2.regular expressions
2.regular expressions
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 

1.qtp basics

  • 1.
  • 2. QTP Basics   Features of Quick Test Professional Recording Modes in QTP Normal Recording  Analog Recording         Low Level Recording Running scripts Test Object Model Synchronization Quick Test Expert View Checkpoints Session Wrap-Up pgorantla.blogspot.com 2
  • 3. QTP Basics  Fast test creation  Easier maintenance  Powerful Data-driving capability Data Table  Checkpoints   VBScript support  Smart Identification  Recovery mechanism  Auto-documentation pgorantla.blogspot.com 3
  • 4. QTP Basics • Normal Recording – Normal recording mode records the objects and the operations performed in the application. – This mode is the default and takes full advantage of QuickTest's test object model, recognizing the objects in your application regardless of their location on the screen. • Analog Recording – This type of recording enables to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. – Analog Recording Settings Dialog Box consists of the two operands; • Record relative to the screen : Records all mouse movement or keyboard input on all windows in the screen • Record relative to the window : Records any mouse movement or keyboard input relative to the coordinates of the specified window. Note: • It is not possible to edit the analog recording steps within Quick Test. pgorantla.blogspot.com 4
  • 5. QTP Basics  Low Level Recording  Used when test objective pertains to the specific object location.  This type of recording enables to record on any object in the application, whether or not Quick Test recognizes the specific object or the specific operation.  It should be used when the environment or the object is not recognized by QTP OR if the exact coordinates of the object are important for your test or component. Note: • Steps recorded using low-level mode may not run correctly on all objects if the object co-ordinates change frequently. pgorantla.blogspot.com 5
  • 6. QTP Basics • There are two modes of running the scripts in QTP namely – Normal – Fast • Normal mode: – Uses the execution arrow in both the Keyword and Expert view marking the each step or statement performed. – For tests containing multiple actions, for Keyword View the tree in the Item column is expanded to display the steps while in the Expert View displays the script, of the currently running action. • Fast Mode: – Does not use the execution arrow to run the test or component in either Keyword View or Expert View and does not expand the item tree or display the script of each action as it runs. pgorantla.blogspot.com 6
  • 7. QTP Basics  Object model    It is an structural representation of software objects that comprise the implementation of a system or application. Defines a set of classes and interfaces, together with their properties, methods and events, and their relationships. Test object     Used by QTP to represent the an object in the application. Consists of one or more methods or properties. Consists of an number of identification properties. QTP supports 6 types of these test objects namely,       Standard Windows Object ActiveX Objects Visual Basic Objects Web Objects Utility Objects Supplemental Objects pgorantla.blogspot.com 7
  • 8. QTP Basics  Used where web page or application does not respond in the same speed at which QTP operates.  QTP waits until the respective image/page/button or application is ready for further test execution.  Synchronization points forces Quick Test to wait for the specified milliseconds before the next action is executed.  This can be added in the following ways;    Adding synchronization step from the Insert Menu. Using Wait() statements. By modifying the default values. pgorantla.blogspot.com 8
  • 9. QTP Basics  Used alternative to Keyword view  Object Hierarchy is used for Scripts pgorantla.blogspot.com 9
  • 10. QTP Basics  It is an verification point used to compare the current value of a specified property with its expected value.  Checkpoints in QTP           Standard Checkpoint Text Checkpoint Image Checkpoint Page Checkpoint Database Checkpoint Bitmap Checkpoint Table checkpoint Text Area checkpoint Accessibility checkpoint XML Checkpoint pgorantla.blogspot.com 10
  • 11. QTP Basics Q & A…. pgorantla.blogspot.com 11
  • 12. QTP Basics      QTP supports functional testing of environments such as Windows, Web, .NET etc., Uses VBScript as its scripting language. Operates stand alone and can also be integrated with other Mercury products. Facilitates easy steps for data driven testing and provide auto –documentation about each test step. 3 types of recording is possible thru QTP     Scripts can be run in two modes:    Normal Recording Analog Recording Low Level Recording Normal - Runs the test with the execution mark Fast – Runs the test without the execution arrow The Run settings can be changed from the Options dialog pgorantla.blogspot.com 12
  • 13. QTP Basics    An object model is a structural representation of software objects (classes) that comprise the implementation of a system or application A test object is an object that QuickTest uses to represent an object in the application QTP supports 6 types of objects namely          Standards Windows Object ActiveX Object Web Object Visual Basic Object Utility Object Supplemental Objects Synchronization points allow Quick Test to wait for the specified milliseconds before the next action is executed. The Expert view displays the set of objects and steps as a VBScript line. A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. pgorantla.blogspot.com 13

Editor's Notes

  1. 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.
  2. Consists of two views Keyword View and the Expert View. Keyword View provides a tree structure and the Expert view uses in telesence whenever the user types any object method in the screen. Access to Data Table within the application and also can import external Excel files. Also helps in setting checkpoints for the application.
  3. 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.