How qtp 8.2 recogonizes or differentiates two "OK" button . pls tell me the distingushing feature.

Showing Answers 1 - 7 of 7 Answers

B.Sandeep

  • Aug 23rd, 2006
 

This most likely used question in interviews....we can differentiate two 'OK' buttons by their logical name which is get assigned to them....through Object repository...

Regards,

B.Sandeep.

  Was this answer useful?  Yes

maggi

  • Aug 23rd, 2006
 

It will identify but its index value or by it location.

  Was this answer useful?  Yes

Thanga

  • Aug 24th, 2006
 

Hi, In a single web page if there is more one more button (object) with the same Value="OK" Then QTP8.2 automatically create new field for the Object Repository as INDEX it keeps on increasing according selectionExample:For Button1 = In Object Repository ? INDEX value will be 0For Button2 = In Object Repository ? INDEX value will be 1For Button3 = In Object Repository ? INDEX value will be 2Try with this sample givenHTML file "test.html"test





Open QTP & the html page in InternetExplorerand Record itSee the Difference .........Regards,Thangaraj - Amtex Systems

  Was this answer useful?  Yes

vani

  • Sep 26th, 2006
 

An ordinal identifier assigns a numerical value to a test object that indicates its order or location relative to other objects with an otherwise identical description (objects that have the same values for all properties). This ordered value provides a backup mechanism that enables QuickTest to create a unique description to recognize an object when the defined properties are not sufficient to do so. You can specify the ordinal identifier for objects in the local object repository using the Object Repository window or Object Properties dialog box, and for objects in the shared object repository using the Object Repository Manager.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions