I have a WebEdit Object.It is added in object repository.It
has two properties Name and Index.In the next release the
Name Property is same but the index property is
changed.when i run the script will the script Pass or Fail

Answer Posted / kishan

Name is usually under Mandatory Property of a webEdit Element.

Eventhough the Index property changes, as QTP Intially Use
the Mandatory Property(name)to identify the object,

case 1:
*******
if that name property is unique in that webPage then QTp
will definetly identify that webEdit object without any fialure.

(I have checked it even by making smart identification false
+ Index property : changing(1 to 12). still QTP is able to
identify the object properly w/o any issues.)

case 2:
******
If web page has 2 objects with same properties then we
should use index property. This time script will fail if we
dont specify correct index value.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of object repository and how qtp recognises objects?

617


whow much strong on VB and C?

1581


How will you check that your test cases covered all the requirements?

642


Hoe can we do retesting using functions please give the code for it using login page

1648


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1486






Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2198


How to associate function library at a run time?

801


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1917


How to create Reusable and Multiple Actions?

1811


What test cases can you automate using QTP?

740


Connect to QC using AOM.

1341


How many add-ins comes by default with qtp?

626


What is the difference between qtp and selenium?

628


what are the utilities and drivers

1924


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1477