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
can test automation improve test effectiveness?
Tell me about qtp?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
Explain the concept of object repository and how QTP recognizes objects?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
How to add verification steps to tests?
How to associate shared object repository to test in qtp?
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
Explain about datafile/verification of date file when file is not available in local system?
What is the script for database check point, bitmapchek point, regular expression ?
what is run action?
Explain the features and benefits of quick test pro(qtp)?
What are the technologies supported by qtp?