why do we use both location and index identifier.

Answers were Sorted based on User's Feedback



why do we use both location and index identifier...

Answer / jay prakash

There are 3 types of ordinal identifiers available in qtp.
They are:
1) Location : qtp will create sequence of numbers from 0,
1, 2, 3…. Based on the objects located on the application
or aut.

2) Index : qtp will create sequence of numbers from 0, 1,
2, 3…. Based on the code implemented or developed for the
objects.

3) Creation Time :qtp will create sequence of numbers from
0, 1, 2, 3…. Based on the loading time of the web pages

Is This Answer Correct ?    7 Yes 2 No

why do we use both location and index identifier...

Answer / prasad

If both the mandatory properties and assistive properties
are fails to identify uniquely, QTP uses ordinal property
(Index and location) to the description to recognize the
object uniquely.

Types of ordinal identifiers to identify an object are
i) Index
ii) Location
iii) Creation Time
an example of ordinal identifier:

Suppose there are 2 “Back” button link(i.e back to the
previous page)in a web page. Hence these two will be differ
from each other by their “Location”.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

0 Answers  


What is file database?

0 Answers   Syntel,


What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.

4 Answers   NCR,


Hi, actually I completed Btech(CS). But i Will go to admin (Facility) interview. So, If Interviewer asking like " Why You choose this field". What we say? pLZ PLZ PLZ PLZ >............................................Send me.....

2 Answers  


How to capture data from images in QTP and produce them in Excel sheet ? please ans...

3 Answers   Sapient,






What is diff. between ordinal identifier INDEX and Location?

3 Answers  


write script for bitmap image?

0 Answers   CA,


How to do call a output parameter from one action to another action??/

0 Answers   TCS,


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

0 Answers  


What is expert view and keyword view?

0 Answers  


please send detail navigation for merging of object ripositories in QTP 8.2

3 Answers   Infosys, Ordain Solutions,


How does you pass optional arguments in qtp?

0 Answers  


Categories