Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Reference ids change when the AUT code is changed [message #112605 is a reply to message #111182] Wed, 19 September 2007 11:48 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
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.
>
Previous Topic:Connection on Localhost failed
Next Topic:NoClassDefFoundError when running tests
Goto Forum:
  


Current Time: Sat Jun 15 21:32:14 GMT 2019

Powered by FUDForum. Page generated in 0.02929 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top