Home » Archived » Test and Performance Tools Platform (TPTP) » Reference ids change when the AUT code is changed
Reference ids change when the AUT code is changed [message #110681] |
Wed, 29 August 2007 13:12 |
Eclipse User |
|
|
|
Originally posted by: anna_shahinyan.instigatedesign.com
Hello,
I hope this is the appropriate forum to ask this question.
I am using TPTP 4.4 to test an Eclipse plug-in, written in Java/SWT.
The R&D team is still working on the product, in parallel with testing,
and modifies the GUI classes/widgets code from time to time. As a
consequence, the reference-id's of objects are changing, because TPTP's
AGR computes these id's based on a heuristic, which is sensitive to
changes in the code.
Therefore the tests recorded with earlier versions of the product are not
applicable to the modified new versions, even when the modifications are
minor.
I believe i'm not the only one having this problem, and there is a
solution somewhere, but i can't find it, so i suspect we're doing
something wrong. Will appreciate any suggestion or reference to the
documentation.
Thank you in advance,
Anna.
|
|
|
Re: Reference ids change when the AUT code is changed [message #110764 is a reply to message #110681] |
Thu, 30 August 2007 11:35 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Anna,
This is a common issue with automated UI recording/testing. To solve
the problem, you can instrument your widgets with a static ID used to
resolve the widgets at record/playback time. Alternative, you can implement
your own widget resolve to modify the heuristic used to resolve the widgets,
for example, using properties that tend not to change over time.
For more info on the widget resolving mechanisms used, please see:
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-4-0.html.
Paul
"Anna Shahinyan" <anna_shahinyan@instigatedesign.com> wrote in message
news:786d2c50c0393436b365919a5e207798$1@www.eclipse.org...
> Hello,
>
> I hope this is the appropriate forum to ask this question.
>
> I am using TPTP 4.4 to test an Eclipse plug-in, written in Java/SWT.
>
> The R&D team is still working on the product, in parallel with testing,
> and modifies the GUI classes/widgets code from time to time. As a
> consequence, the reference-id's of objects are changing, because TPTP's
> AGR computes these id's based on a heuristic, which is sensitive to
> changes in the code.
>
> Therefore the tests recorded with earlier versions of the product are not
> applicable to the modified new versions, even when the modifications are
> minor.
> I believe i'm not the only one having this problem, and there is a
> solution somewhere, but i can't find it, so i suspect we're doing
> something wrong. Will appreciate any suggestion or reference to the
> documentation.
>
> Thank you in advance,
> Anna.
>
|
|
|
Re: Reference ids change when the AUT code is changed [message #111182 is a reply to message #110764] |
Mon, 03 September 2007 13:45 |
Eclipse User |
|
|
|
Originally posted by: anna_shahinyan.instigatedesign.com
Hi Paul,
Thank you for reply.
I am looking TPTP source but I could not find where
"REFERENCE_ID_ATTRIBUTE" is initialized. How are reference ids related to
widget ids and resolverID?
I'm trying to find the reference id resolving mechanism in TPTP source
codes. Would you please, tell the link (e.g file name) where heuristic
algorithm is implemented?
Do you find that "Delete the project", "Select All", "Copy" reference ids
difference can be resolved by "instrumenting our widgets with static ID"?
Thanks,
Anna.
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 19:27:47 GMT 2024
Powered by FUDForum. Page generated in 0.02942 seconds
|