Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is the qtp course will help to create a virtual object?

1964


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

2194


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4952


How do you synchronization point through DP?

1078


What is RTM (require ment tracebulity marix) fromate?

2060


What is keyword view?

1005


how to know no.of mails in our g mail by using vb-script

2236


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

1878


What are benefits of qtp?

1136


Step 3&4 are repeated until an the object in recognised uniquely.

2033


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?

7181


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)

1609


What are the features of quick test pro(qtp)?

1005


How to create a standard checkpoint ?

1081


When do go for loop condition in test?

1090