Your SlideShare is downloading. ×
0
QTP Object Identification <ul><li>How QTP identifies object during and after recording </li></ul><ul><li>How to use Object...
QTP – Object Properties <ul><li>A set of characteristics that define an object’s appearance, values, state and identity in...
QTP – Test Object Model <ul><li>The  test object model  is a large set of object types or  classes  that Quick Test uses t...
QTP – Test Object Model <ul><li>Quick Test stores information about the object that will help it identify and check the ob...
QTP – Recognizes Objects during Recording <ul><li>Quick Test creates a unique identity for an object by: </li></ul><ul><li...
QTP Object – Example <ul><li>For example, suppose you click on a  Find  button with the following HTML source code:  </li>...
QTP – Object Example Fore more QTP Realtime Scripts, visit  www.ramupalanki.com March 26, 2003 Browser(&quot;Mercury Inter...
QTP – Object Properties <ul><li>The  GetTOProperty  methods enable you to retrieve a specific property value that Quick Te...
QTP – Object Repository <ul><li>When you record a test, Quick Test adds each object on which you perform an operation to t...
QTP – Object Spy <ul><li>The Object Spy also enables you to view both the run-time object methods and the test object meth...
QTP – Object Identification properties <ul><li>If you expect that the values of the properties currently used in the objec...
QTP – Object Identification properties <ul><li>Select the Test Object’s environment </li></ul><ul><li>Add or Remove Mandat...
QTP – Ordinal Identifier <ul><li>An ordinal identifier assigns the object a numerical value that indicates its order relat...
QTP – Objects Require more time <ul><li>When you run tests, your application may not always respond with the same speed. F...
QTP - Synchronization <ul><li>You can handle these anticipated timing problems by synchronizing your test to ensure that Q...
QTP – Wait Statement <ul><li>You can enter  Wait  statements in the Expert View to instruct Quick Test to wait for a windo...
Upcoming SlideShare
Loading in...5
×

Qtp testing1

1,388

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,388
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
122
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Qtp testing1"

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

    Clipping is a handy way to collect important slides you want to go back to later.

×