what to do if application have 3 "ok" button with same
logical name and same properties, how qtp can identify them.

Answer Posted / praveenkumar

There 3 types of Ordinal Identifiers

* 1) Index based
* 2) Location based
* 3) Creation Time



Index Based



* When using Index based ordinal identifier, while
recording , QTP will assign a value to INDEX property of an
object
* The value is based on the order in which the object
appears within the source code.
* The first occurrence has value 0
* Index property values are object-specific.
* Therefore, if you use Index:=3 to describe a WebEdit
test object, Quick Test searches for the fourth WebEdit
object on the page.
* Likewise , you use Index:=1 to describe a WebButton
test object, Quick Test searches for the third WebButton
object on the page





Location Based

* When using location based ordinal identifier, while
recording , QTP will assign a value to LOCATION property of
an object to uniquely identify the object.
* The value is based on the order in which the object
appears within the window, frame, or dialog box, in relation
to other objects with identical properties.
* The first occurrence of the object is 0.
* Values are assigned in columns from top to bottom, and
left to right.



Creation Time

* When using creation time ordinal identifier, while
recording , QTP will assign a value to CreationTime property
of an WebBrowser
* The Identifier is only available for the Web Environment
* This value indicates the order in which the browser
was opened relative to other open browsers.
* The first browser that opens while recording receives
the value CreationTime=0 and succeeding browsers are give
values 1 , 2 , 3 … an so on

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can decide which type of object repository you have to use?

914


How software tester can use constants and variables in scripts?

1931


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

796


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

2495


What are metrics and matrix?

1549


Where we use data driver in qtp?

796


How to find a window is minimized or not

1631


Explain about Test Fusion Report of QTP?

824


How would you export a script from one pc to another in qtp?

884


What is meant by Output Value in UFT?

797


Hello friends..... On which areas of an application we can not test with QTP

1833


What is an optional step in qtp ?

852


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1679


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3676


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1544