I have a Webtable object in my shared object repository, say
WT1, which has different index value in 2 different
versions, one version having WT1's index value as 1 and
other version having WT1's index value as 2. how could i use
same test script to identify the WT1 object having different
index values.

Answers were Sorted based on User's Feedback



I have a Webtable object in my shared object repository, say WT1, which has different index value i..

Answer / aarati borse

See ishita..here you can use the Smart object
identification concept..
QTP recognizes object by their mandatory and assitive
properties...
So go to Tools>OI> and web environment..
Set such properties in mandatory and assistive which are
commomn for both...Try to find them by "location "ordinal
identifire.

Because index is the place of object in code
and location is the place of object in aplication..

So I think by setting these all option it should work..

Is This Answer Correct ?    3 Yes 0 No

I have a Webtable object in my shared object repository, say WT1, which has different index value i..

Answer / ishita desai

How to define regular expression for index values of
Webtable. As far as my knowledge is concerned regular
expressions can be given for property values. Please reply
if u have any idea about that.Thanks

Is This Answer Correct ?    1 Yes 0 No

I have a Webtable object in my shared object repository, say WT1, which has different index value i..

Answer / subhash pasupuleti

Absolutely No. You can not do that. Remember index is an
ordinal property which QTP adds and this can not be viewed
when you spy on the object. You need to do the following logic
1. Create a description object for webtable
2. Get a collection of webtables on the page ( there will be
many)
3. Iterate through the collection and identify the Webtable
by some unique value in one of the cells
4. Exit the loop
5.The value of index of the iteration is index of WebTable.
6. QTP identifies WebTable by only its Tag <TABLE> so only
way it can identify a table is index.

If not clear then email me

Is This Answer Correct ?    1 Yes 1 No

I have a Webtable object in my shared object repository, say WT1, which has different index value i..

Answer / badam

u can go for regular expression

Is This Answer Correct ?    0 Yes 1 No

I have a Webtable object in my shared object repository, say WT1, which has different index value i..

Answer / badam

u r absolutely correct ishita

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take?

1 Answers   ADP,


we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position part2:maore than the answer for this question i want the the reason why testers go for this kind of risk.what is the use of we testers having these kind of attempts.is that not the problem with the developer .pls answer .real time users of tools.in which way these solutions help to test with r without affecting the developed souce code.

3 Answers  


How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application. plz explain in detailed or mail the sample code to malepatin@gmail.com

1 Answers  


What is the difference in between function and sub as well as give some code of both

1 Answers   Wipro,


can we call a test in another test? how? explain with one example?

1 Answers   iFocus,






can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...

1 Answers   FSS,


Error handling

3 Answers   Wipro,


what is Supplemental Objects ?

0 Answers  


How many add-ins comes by default with qtp?

0 Answers  


How does QTP identify an object?

0 Answers  


does test plan is in test strategy or test strategy is in test plan

2 Answers   Tanla Solutions,


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

0 Answers   Mannar Company, Wipro,


Categories