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

Write the regular expression code, it accepts the alpha, numeric and special symbol and the first character should be the Alphabet. Tell me the answer

3 Answers   IBM,


How to use reporter.report event in qtp ?

0 Answers  


7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell data which is equal to the given number say:123. Assume you have given with the column name/id of the table where the number may exist. So now you have to go to the given column and search for the number 123 and retrieve it along with the row number of it.

4 Answers  


I have written some scripts in QTP by using older version, but I want to run them in latest version. Is there any process to do that.If so can anyone explain me?

1 Answers  


what is test data

4 Answers   Wipro,






I have the script like this: Browser("Philips Web Login").Page("Philips CL DMS2 Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. If i want to get that value "DC3701737" in to a variable, how? pls let me know if you didn't get the question. Help me out in this.

2 Answers  


User defined function in QTP

2 Answers   Lehman Brothers,


In qtp,how to interact tool & application build?

1 Answers   Polaris,


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so.. Correct me if iam wrong some where.

8 Answers   Microsoft,


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

0 Answers   HP,


How does you test a weblink which is changing dynamically?

0 Answers  


difference Between Call Run action and copy of action?

3 Answers   Quest,


Categories