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
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 |
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 |
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 |
HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?
HOW DO U CALL A ACTION IN QTP?
several browsers opened. write QTP script to close all browsers except gmail.
What is the Dynamic Scenario in QTP? And also anybody give the example for this?
what is the difference between Automation object model(AOM) and test object model(TOM)
How do you create a library file
What is the qtp testing process?
What contains Data Driven Framework document in qtp?
What is the parameterization? Give one example?
what testing activities u may want to automate?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What is difference between WR and QTP?