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.
Answer Posted / 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 |
Post New Answer View All Answers
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
What is a data driven test in qtp?
How can you write the scripts that operate on different objects depending on run-time information?
What is the basic concept of quicktest professional (qtp)?
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
write the vb script for call to new action in qtp?
What is 'sleep' in sync point?
How to handle dynamic objects in quicktest professional (qtp)?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
What is the XML file architecture ?
Is it possible to call from one action to another action in qtp?
What are the Test design techniques you uses in ur project?