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

Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1853


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1490


how can i call function (which has link with excell sheet at a remote location) within another function

1579


is it possible to add sheets to excel at runtime

3234


How to test the login page in different ways in automation testing and i need code?

1348






How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1283


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1719


What is different command used in command Prompt while using QTP?

1747


What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?

1795


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

1794


What are the different types of recording modes?

538


Which features or drawbacks of QTP lead to the upgrade for a newer version?

574


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1383


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1519


how did u use automating testing tools in ur job?

1487