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.

Answers were Sorted based on User's Feedback



what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / khemlal sinha

there r many ways
1. use index property (0,1,2) now surely it will recognize
2. another way is spy on each button check which propery
uniq for each object then use only that propery while
recording . it will recognize sure.

Is This Answer Correct ?    16 Yes 1 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / arul antony prakash

We can use the Index propety which the QTP can easily
identify the Object.

Is This Answer Correct ?    5 Yes 0 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / chitta

Use descriptive programming to identify the objects with
different physical properties....

Is This Answer Correct ?    1 Yes 0 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / 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

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / anand

@ Shi may i know wat this script is realted too. plz drop in some comments about this script so it might help someone to look in for any logic..thanks

Is This Answer Correct ?    0 Yes 0 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / anil yzac

FOR EVERY OBJECT THERE WILLBE A UNIQUE ID AND BY THE
CONCEPT OF OBJECT IDENTIFICATION WE CAN SORT OUT THIS PROB.

Is This Answer Correct ?    0 Yes 0 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / narendra babu

inorder identify similar objects use msw id.it is the
unique id provided by system foe every object.

Is This Answer Correct ?    0 Yes 1 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / vishali

'tool' menu->object identification->select corresponding s/w
build parent->select similar object type/class->select class
and text as mandetory and window id as assistive->click'ok'



exact ans for this

Is This Answer Correct ?    1 Yes 2 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / srinivas

ACCORDING TO GUI EACH AND EVERY OBJECT SHOULD BE PLACED IN
AUNIQUE LOCATION(INTERMS OF COORDINATES).BY APPLYING A
CONCEPT OF S.I(SMART IDENTIFICATION)WE CAN EASILY HANDLE
THIS SITUATION .

Is This Answer Correct ?    1 Yes 3 No

what to do if application have 3 "ok" button with same logical name and same properties,..

Answer / shivangi

i think in this scenario QTP will be cofused which button
should be selected....

so what we will do we will prefer low lwvwl recording
because in low level recording whatever object is clicked it
captures the co-ordinates aswell.... X axis & Y Axis....
so this way QTP will recognise the buttons separetely bcoz
they will be located on diffrent location on the same web
page.....

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More QTP Interview Questions

what is the Command used to start the QTp from Run.(start-> Run)

7 Answers   GE,


How will you handle java tree in qtp?

0 Answers  


which tpye of exceptions mostly do we face in QTP

2 Answers  


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

0 Answers   TCS,


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  


Describe the differences between functions and actions in UFT?

0 Answers  


I want to execute 1st row of the local sheet and 3rd row of the global sheet parellely. write script to execute

2 Answers   IBM,


Is it possible to switch between recording modes during a test creation?

0 Answers  


if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see?

1 Answers   IBM, Infosys,


What is the DIFF Between PROJECT AND PRODUCT?When Company will need Product?

5 Answers  


Hi any body can tell me the synchranization point syntax thanks in advance

6 Answers   AppLabs,


How do u write script in qtp? where do u write?

2 Answers  


Categories