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

Answers were Sorted based on User's Feedback



I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / bharathi

Fail.

Is This Answer Correct ?    8 Yes 2 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / meghana

Fail

Is This Answer Correct ?    6 Yes 2 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / rentalavdml

I dont think it would fail.QTP fisrt checks for mandatory
properties,after that assistve and finally goes for ordinal
identifier.Here in this scenario we can recognise the
object by name itself so no point of index.

Is This Answer Correct ?    6 Yes 3 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

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

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / gopal reddy

It will pass because the QTP would use its SMART
IDENTIFICATION if it is enabled by you otherwise it will
fail...

Is This Answer Correct ?    1 Yes 0 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / deepakm82

It will pass because the QTP would use its SMART
IDENTIFICATION if it is enabled by you otherwise it will
fail...

Is This Answer Correct ?    2 Yes 2 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / vinod

Pass

Is This Answer Correct ?    1 Yes 2 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / sureshsinghbhandari

It will Pass.

Reason-
For WebEdit the Mandatory properties are
html tag,
name and
type

If these are same then on Runtime the QTP will recognise the
object by these (in our case "name" prop) and Script will pass.


Note-
QTP Learns the Properties in the Following Sequence
1. First of all QTP learns the complete list of mandatory properties and then it will check whether these properties are sufficient for identifying the objects uniquely.
2. If it sufficient it will stop learning otherwise it will learn the first assistive properties and then it will once again check whether these properties are sufficient are identifying the object uniquely.
3. If it feels not sufficient then it will learn the second assistive properties once again it will check whether these properties are sufficient if it feels not sufficient the above processor continue till the QTP feels satisfied or up to the end of the assistive properties list.
4. If it is still feels not sufficient then it will learn the ordinal identifier.

Is This Answer Correct ?    0 Yes 1 No

I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In t..

Answer / venkat reddy

I will Fail
to handle that scenario u have to use regular expressons

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More QTP Interview Questions

will QTP 9.2 run successfully on Linux(gui) operating system

1 Answers  


scalability testing comes under in which tool?

4 Answers   EpuraTech,


We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?

10 Answers  


In QTP how can we recognize objects Without using Object Repository?

3 Answers   IBM, Wipro,


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

0 Answers  






In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

0 Answers  


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

0 Answers  


How to database testing by manualy?in my db having 100 records when i am retriving the data from db it shows in frent end 30 records how to find bug using QTP?plz Exp realtimers (Chandana)

7 Answers   Wipro,


What is accessibility check point?

0 Answers  


can we enable smart identification for test object

3 Answers  


write script for finding number of broken links in web page? kindly please answer my question.

3 Answers   Manhattan, Oracle, Virtusa,


The interviewer asked me when u recorded one application.object repository properties are saved with .tsr extention. in qtp expert view wherever mouse is there that snapshot displayed in active screen but some recored script lines are not displyed in actives screen y?

5 Answers   Accenture, IBM,


Categories