how qtp identify two objects having same name, supose
objects are in same page also with same name,specify spl
feature.

Answers were Sorted based on User's Feedback



how qtp identify two objects having same name, supose objects are in same page also with same name..

Answer / sudheer 4m mphasis

This is the SPL feature for this problem.

QuickTest can use the following types of ordinal
identifiers to identify an object:

Index. Indicates the order in which the object appears in
the application code relative to other objects with an
otherwise identical description. For more information, see
Identifying an Object Using the Index Property.
Location. Indicates the order in which the object appears
within the parent window, frame, or dialog box relative to
other objects with an otherwise identical description. For
more information, see Identifying an Object Using the
Location Property.
CreationTime. (Browser object only.) Indicates the order in
which the browser was opened relative to other open
browsers with an otherwise identical description. For more
information, see Identifying an Object Using the
CreationTime Property.

Is This Answer Correct ?    16 Yes 1 No

how qtp identify two objects having same name, supose objects are in same page also with same name..

Answer / ratheesh

BY using index property u can define the same objects

Is This Answer Correct ?    12 Yes 1 No

how qtp identify two objects having same name, supose objects are in same page also with same name..

Answer / n.n.raju

QTP identify the objects by logical name and class but
smart identification mechanism is used for identified the
object from object repository
in this situation QTP uses ordinal identifier Concept

Is This Answer Correct ?    7 Yes 3 No

how qtp identify two objects having same name, supose objects are in same page also with same name..

Answer / jayant naikwade

you have to enter to the rep and find the object
then check the propertoes
and you have to add index property there
in both objects with the same name
and for descriptive you have to include the index:= and the
number of index of the object
within the object descrioption
basically the index is what can help you identifying the
correct one

Is This Answer Correct ?    1 Yes 0 No

how qtp identify two objects having same name, supose objects are in same page also with same name..

Answer / nidhi

objects ar identify by qtp through their logical name and
class we can use smart identification to recognise object
which is not normally recognised by qtp in normal process

do.send answer correct me i m wronge

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More QTP Interview Questions

Tel me what was the automation testing process you followed?

2 Answers  


Explain about random testing of 500 test cases?

1 Answers   IBM,


In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.

1 Answers  


Among all the check points what is the most important checkpoint?

5 Answers   Semantic Space,


How many types of Parameters are available in QTP?

1 Answers  






How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1 Answers  


WHAT IS ENVIRONMENT VARIABLES?

6 Answers   Ordain Solutions,


Hi friends I am new in Qtp. now i am Searching on Qtp give real time inter questions with answers.pls help me

1 Answers  


QTP script is not working on other's machine..

0 Answers  


How to map the test cases to requirements in QC?

4 Answers   IBM,


QTP Query: Hello to all, I'm getting an error (as below) when I perform descriptive programming on any Web application. "The test run cannot continue due to an unrecoverable error.The "myvar_0" object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object " But I do not have any problem when I perform the same descriptive programming on a Windows application such as Sample Application - Flight. Previosly , I had prepared a lot of scripts - both via creating the properties collection object and by giving the description in string arguments and implemented them on Flight and they're working perfectly fine.I'm using QTP Version 9.2 The sample script I have used for Web application is as below : Set myvar_0 = Description.Create 'Setting property collection object for Browser myvar_0("class").value = "Browser" myvar_0("name").value= ".*" 'Setting property collection object for Page Set myvar_1 = Description.Create myvar_1("class").value = "Page" myvar_1("name").value= ".*" 'Setting property collection object for Text box Set myvar_2 = Description.Create myvar_2("class").value = "WebEdit" myvar_2("name").value= ".*" 'Setting property collection object for Button Set myvar_3 = Description.Create myvar_3("class").value = "WebButton" myvar_2("name").value= ".*" SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe" Browser("myvar_0").Page("myvar_1").WebEdit("myvar_2").Set ("hello how are you ?") Browser("myvar_0").Page("myvar_1").WebButton ("myvar_3").Click Browser("myvar_0").Page("myvar_1").Sync Browser("myvar_0").Close As our application is a Web based application, I was planning to make a few changes in regards to the object names, but unfortunately I am getting the above mentioned error. Could anyone please advice me, whether it could anything to do with the run setting or anything else.I am getting the same error even while implementing on our Sample Application - Mercury Tours website. I would be grateful to anybody who can solve my problem !!

1 Answers  


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


Categories