Home > Archive > Software Testing > September 2005 > QTP Web Table
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| usenet@mylounge.com 2005-09-22, 7:58 am |
|
I encounter this problem when I switch to a different user,
I hope someone can offer some help.
Everytime I login as a different user the index property of a table
changes.
Is there any other RO property by which I can identify the table.
I tried with with the name property but didn’t work..
With Regards,
Kanchan
--
Kanchan
------------------------------------------------------------------------
Kanchan's Profile: http://it.mylounge.us/member.php?userid=56784
View this thread: http://it.mylounge.us/showthread.php?t=107492
| |
| Valery 2005-09-22, 7:58 am |
| On Thu, 22 Sep 2005 04:36:15 -0500, usenet wrote:
>
> I encounter this problem when I switch to a different user,
> I hope someone can offer some help.
> Everytime I login as a different user the index property of a table
> changes.
> Is there any other RO property by which I can identify the table.
> I tried with with the name property but didn’t work..
>
> With Regards,
> Kanchan
Hi Kanchan,
The index property is not a reliable mean for finding objects in the
application and you should use it only when the value is consistent.
By using the object spy, try to find a property that can uniquely identify
the object. If there is none available, you can also add an
"attribute/<PropertyName>" to the Object's properties and set the value
accordingly. Of course, you need to have a property PropertyName defined
for the <table> tag.
Last but not least, you can create a loop function that iterates through
the tables (by using the index) and return the DOM table object. But at
that point, you no longer have access to the QuickTest methods and must
exclusively use the DOM methods.
Hope this helps,
Valery Raulet
Functional Testing Consultant
Exposit Limited (http://www.exposit.co.uk)
| |
| Valery 2005-09-22, 7:58 am |
| On Thu, 22 Sep 2005 12:00:55 +0100, Valery wrote:
>
> Last but not least, you can create a loop function that iterates through
> the tables (by using the index) and return the DOM table object. But at
> that point, you no longer have access to the QuickTest methods and must
> exclusively use the DOM methods.
>
For the last remark, that's not exactly true. Indeed, if you find your
table using the ".Object" property and the index, you can access the
QuickTest object by using descriptive programming or by parameterizing the
Object stored in the Object Repository.
Valery Raulet
Functional Testing Consultant
Exposit Limited (http://www.exposit.co.uk)
|
|
|
|
|