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 to test menu options using qtp
I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?
what will be the stmt if record any edit box in the Web application ?
how will b the questions if we keep one QTP project in CV.please tell me iam attending an interview.
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application
What is the process of synchronizing qtp and aut?
What are the differences between quicktest professional (qtp) and winrunner?
Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.
In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.
3 Answers Broadridge, Cigniti Technologies, HCL,
what is objectidentification?
How we can add actions in the test using QTP?
What are the key elements available in test result window?