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
What is difference between Recording time object identification and Run time (Execution) time.
what is run action?
Mention what are the different types of recording modes in qtp? Which will be used when?
how interviews will be on QTP?
How can I import environment from a file on disk?
Explain the qtp test phases.
Is it possible to use two instances of UFT on the same machine? If not why?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
what is the diff b/w assistive and mandatary rules of object repository in QTP???
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
How can you send user defined messages to test report?
What is the use of text output value in quicktest professional?
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points
what is the difference between data driver & data driven and driver script?