SlideShare a Scribd company logo
QTP Object Identification How QTP identifies object during and after recording How to use Object repository to view the captured Object Properties How to use Object Spy to view run-time object properties Test Object and Run Object properties Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Object Properties A set of characteristics that define an object’s appearance, values, state and identity in an application.  Different objects in application are Image, List Item, Edit box, check box, radio button, Hyperlink and Submit/Command button. Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Test Object Model The  test object model  is a large set of object types or  classes  that Quick Test uses to represent the objects in your application. A  test object  is an object that Quick Test creates in the test to represent the actual object in your application.  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Test Object Model Quick Test stores information about the object that will help it identify and check the object during the test run.  A  run-time object  is the actual object in your Web site or application on which methods are performed during the test run. Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Recognizes Objects during Recording Quick Test creates a unique identity for an object by: Recognizing the Object type (“Class”). Learning the Object’s properties. Assigning a “logical name” to the learned object. Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP Object – Example For example, suppose you click on a  Find  button with the following HTML source code:  <INPUT TYPE=&quot;submit&quot; NAME=&quot;Find&quot; VALUE=&quot;Find&quot;>  Quick Test identifies the object that you clicked as a  Web Button  test object. It creates a Web Button object with the name Find, and records the following properties and values for the Find Web Button:  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Object Example Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003 Browser(&quot;Mercury Interactive&quot;).Page(&quot;Mercury Interactive&quot;). WebButton(&quot;Find&quot;).Click
QTP – Object Properties The  GetTOProperty  methods enable you to retrieve a specific property value that Quick Test uses to identify an object. The  SetTOProperty  method enables you to modify a property value that Quick Test uses to identify an object.  You use the  GetROProperty  method to retrieve the current value of a  test object property  from a run-time object in your application.  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Object Repository When you record a test, Quick Test adds each object on which you perform an operation to the Object Repository.  Test Object information is stored in Object Repository. You can also add objects to the object repository while editing your test. Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Object Spy The Object Spy also enables you to view both the run-time object methods and the test object methods associated with an object. The Object Spy displays the object hierarchy tree and the run-time object methods or test object methods associated with the selected object in the Methods tab of the Object Spy dialog box.  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Object Identification properties If you expect that the values of the properties currently used in the object description may change. Then you can modify the mandatory and assistive properties that Quick Test learns when you record on an object of a given class  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Object Identification properties Select the Test Object’s environment Add or Remove Mandatory properties Add or remove Assistive / Secondary properties. You can specify a new property by clicking  New  and specifying a valid property name in the displayed Object classes dialog box. Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Ordinal Identifier An ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with similar descriptions. Acts as a third line of identification when mandatory and assistive properties are still not sufficient Types of ordinal identifiers: Index – indicates order of the object relative to other similar objects Location – Indicates order of the object relative to its location in the parent window/page Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Objects Require more time When you run tests, your application may not always respond with the same speed. For example, it might take a few seconds:  for a progress bar to reach 100% for a status message to appear for a button to become enabled for a window or pop-up message to open  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP - Synchronization You can handle these anticipated timing problems by synchronizing your test to ensure that Quick Test waits until your application is ready before performing a certain step.  You can insert a  synchronization point , which instructs Quick Test to pause the test until an object property achieves the value you specify.  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003
QTP – Wait Statement You can enter  Wait  statements in the Expert View to instruct Quick Test to wait for a window to open or an object to appear.  Wait statements instruct Quick Test to wait a specified amount of time before proceeding to the next step.  Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003

More Related Content

PPTX
Detecting gravitational waves in Python
PPTX
Social Media Marketing Strategy 101
DOC
Qtp+real time+test+script
PPT
Qtp training
PPTX
Fan-oriented Strategy Advisory Service
DOCX
Qtp certification questions and tutorial
DOC
Implementing checkpoint in qtp
PPT
Qtp training
Detecting gravitational waves in Python
Social Media Marketing Strategy 101
Qtp+real time+test+script
Qtp training
Fan-oriented Strategy Advisory Service
Qtp certification questions and tutorial
Implementing checkpoint in qtp
Qtp training

Viewers also liked (7)

DOCX
Qtp certification questions
PPT
Qtp presentation
DOCX
Qtp certification questions2
DOCX
Qtp best tutorial
DOC
Qtp sample resume
DOC
Qtp sample certification questions and answers
PDF
Marketing Strategy - Brand Revamping Strategy for a Credit Card Company
Qtp certification questions
Qtp presentation
Qtp certification questions2
Qtp best tutorial
Qtp sample resume
Qtp sample certification questions and answers
Marketing Strategy - Brand Revamping Strategy for a Credit Card Company
Ad

Similar to Qtp testing1 (20)

DOC
Interview questions in qtp
DOC
Qtp stuff
DOC
Qtp basic stuff
PPT
Qtp Training Deepti 2 Of 44780
DOC
Qtp interview questions3
DOC
Qtp interview questions3
PPT
Qtp training
PPT
QTP Basics-2
DOC
Interview qutions
PPT
Qtp Mgl Presentation
DOC
Qtp material for beginners
DOC
Qtp faqs
DOC
What are the features in qtp
PPT
QTP Training by INFOTECH
DOC
Qtp interview questions and answers
DOC
Qtp interview questions and answers
PPTX
QTP Tutorial
PDF
SAP Testing Training
PDF
QTP Faqs
PPS
About Qtp_1 92
Interview questions in qtp
Qtp stuff
Qtp basic stuff
Qtp Training Deepti 2 Of 44780
Qtp interview questions3
Qtp interview questions3
Qtp training
QTP Basics-2
Interview qutions
Qtp Mgl Presentation
Qtp material for beginners
Qtp faqs
What are the features in qtp
QTP Training by INFOTECH
Qtp interview questions and answers
Qtp interview questions and answers
QTP Tutorial
SAP Testing Training
QTP Faqs
About Qtp_1 92
Ad

More from Ramu Palanki (19)

DOC
Qtp realtime scripts
DOC
Qtp questions and answers
DOC
Qtp interview questions
DOC
Qtp complete guide for all
DOC
Qtp compare two xml files
DOC
Qtp change excel cell color with condition
DOCX
Qtp certification questions
DOCX
Qtp certification questions and tutorial
DOCX
Qtp certification questions2
DOC
Qtp automation estimation techniques
DOC
Qtp 11 new enhacements in
DOCX
Qtp passing parameters between actions
DOC
Qtp wsh scripts examples
DOCX
Quick test professional certifcation questions and tutorial2
DOC
Quality center certification questions
DOC
Testing interview questions
DOC
DOC
Qtp word methods
DOC
Qtp to convert convert string to date
Qtp realtime scripts
Qtp questions and answers
Qtp interview questions
Qtp complete guide for all
Qtp compare two xml files
Qtp change excel cell color with condition
Qtp certification questions
Qtp certification questions and tutorial
Qtp certification questions2
Qtp automation estimation techniques
Qtp 11 new enhacements in
Qtp passing parameters between actions
Qtp wsh scripts examples
Quick test professional certifcation questions and tutorial2
Quality center certification questions
Testing interview questions
Qtp word methods
Qtp to convert convert string to date

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Machine learning based COVID-19 study performance prediction
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Cloud computing and distributed systems.
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”

Qtp testing1

  • 1. QTP Object Identification How QTP identifies object during and after recording How to use Object repository to view the captured Object Properties How to use Object Spy to view run-time object properties Test Object and Run Object properties Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 2. QTP – Object Properties A set of characteristics that define an object’s appearance, values, state and identity in an application. Different objects in application are Image, List Item, Edit box, check box, radio button, Hyperlink and Submit/Command button. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 3. QTP – Test Object Model The test object model is a large set of object types or classes that Quick Test uses to represent the objects in your application. A test object is an object that Quick Test creates in the test to represent the actual object in your application. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 4. QTP – Test Object Model Quick Test stores information about the object that will help it identify and check the object during the test run. A run-time object is the actual object in your Web site or application on which methods are performed during the test run. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 5. QTP – Recognizes Objects during Recording Quick Test creates a unique identity for an object by: Recognizing the Object type (“Class”). Learning the Object’s properties. Assigning a “logical name” to the learned object. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 6. QTP Object – Example For example, suppose you click on a Find button with the following HTML source code: <INPUT TYPE=&quot;submit&quot; NAME=&quot;Find&quot; VALUE=&quot;Find&quot;> Quick Test identifies the object that you clicked as a Web Button test object. It creates a Web Button object with the name Find, and records the following properties and values for the Find Web Button: Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 7. QTP – Object Example Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003 Browser(&quot;Mercury Interactive&quot;).Page(&quot;Mercury Interactive&quot;). WebButton(&quot;Find&quot;).Click
  • 8. QTP – Object Properties The GetTOProperty methods enable you to retrieve a specific property value that Quick Test uses to identify an object. The SetTOProperty method enables you to modify a property value that Quick Test uses to identify an object. You use the GetROProperty method to retrieve the current value of a test object property from a run-time object in your application. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 9. QTP – Object Repository When you record a test, Quick Test adds each object on which you perform an operation to the Object Repository. Test Object information is stored in Object Repository. You can also add objects to the object repository while editing your test. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 10. QTP – Object Spy The Object Spy also enables you to view both the run-time object methods and the test object methods associated with an object. The Object Spy displays the object hierarchy tree and the run-time object methods or test object methods associated with the selected object in the Methods tab of the Object Spy dialog box. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 11. QTP – Object Identification properties If you expect that the values of the properties currently used in the object description may change. Then you can modify the mandatory and assistive properties that Quick Test learns when you record on an object of a given class Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 12. QTP – Object Identification properties Select the Test Object’s environment Add or Remove Mandatory properties Add or remove Assistive / Secondary properties. You can specify a new property by clicking New and specifying a valid property name in the displayed Object classes dialog box. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 13. QTP – Ordinal Identifier An ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with similar descriptions. Acts as a third line of identification when mandatory and assistive properties are still not sufficient Types of ordinal identifiers: Index – indicates order of the object relative to other similar objects Location – Indicates order of the object relative to its location in the parent window/page Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 14. QTP – Objects Require more time When you run tests, your application may not always respond with the same speed. For example, it might take a few seconds: for a progress bar to reach 100% for a status message to appear for a button to become enabled for a window or pop-up message to open Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 15. QTP - Synchronization You can handle these anticipated timing problems by synchronizing your test to ensure that Quick Test waits until your application is ready before performing a certain step. You can insert a synchronization point , which instructs Quick Test to pause the test until an object property achieves the value you specify. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003
  • 16. QTP – Wait Statement You can enter Wait statements in the Expert View to instruct Quick Test to wait for a window to open or an object to appear. Wait statements instruct Quick Test to wait a specified amount of time before proceeding to the next step. Fore more QTP Realtime Scripts, visit www.ramupalanki.com March 26, 2003