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 09: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 07:35   |
Eclipse User |
|
|
|
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 #112605 is a reply to message #111182] |
Wed, 19 September 2007 07:48  |
Eclipse User |
|
|
|
Hi Anna,
Custom widget resolves are provided via an extension point. There is no
need to change any TPTP code. See
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-4-0.html#2.4f
for more information.
Yes, using a static ID (e.g. GUID) will ensure the correct widget is
always resolved. Of course, you can only add static IDs to classes in your
application and not from third-party dependencies.
Paul
"Anna Shahinyan" <anna_shahinyan@instigatedesign.com> wrote in message
news:836edace30a5c43ae9d74a1910395dfe$1@www.eclipse.org...
> 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 Jul 25 21:07:30 EDT 2025
Powered by FUDForum. Page generated in 0.05425 seconds
|