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
Is the qtp course will help to create a virtual object?
1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
How do you synchronization point through DP?
What is RTM (require ment tracebulity marix) fromate?
What is keyword view?
how to know no.of mails in our g mail by using vb-script
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
What are benefits of qtp?
Step 3&4 are repeated until an the object in recognised uniquely.
in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
What are the features of quick test pro(qtp)?
How to create a standard checkpoint ?
When do go for loop condition in test?