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 can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

0 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script

0 Answers  


can any one tell me what is process metrics and what is product metrics if possible give me example. Thank You

2 Answers  


How many types of recording facility are available in quicktest professional?

0 Answers  






i don't have any experience in qtp? Can u please tell me What work i have to do?

4 Answers  


IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp

2 Answers  


QTP supports both client server and Web applications. Does it support Plug-in?

0 Answers  


Write a QTP script to enter a keyword in to Google search engine?

0 Answers   Wells Fargo,


What is the syntax to call one action in another?

0 Answers  


What is the use of running the scripts in Hidden-mode in UFT?

0 Answers  


WHO IS THE BEST FACULTY FOR QTP IN HYDERABAD? A) NAGESHWAR RAO- MINDQ B) SURESH REDDY -SMART SOLUTIONS C) SURESH BABU- Q EDGE D) VENKAT - LIVE TECH E) GC.REDDY - HI-TECH CITY F) NONE OR OTHERS

7 Answers  


Categories