In Swing for every GUI component one can set a name and identify it by that
name uniquely.
This can be used for automated GUI tests to find a specific component by an
invariable name, which makes tests more stable concerning GUI changes. Another
advantage of this is that the tests are independant of the language used for
the UI. In test specifications these unique constant names can be used, which
could be another advantage.
In SWT the equivalent seems to be org.eclipse.swt.widgets.Widget.getData("key")
and org.eclipse.swt.widgets.Widget.setData("key", "value").
Curious as I am I looked into the source of Abbot SWT. There is a
abbot.swt.finder.matchers.NameMatcher class. It allows to find a widget by its
name.
I would contribute such a NameMatcher for SWTBot if you like the idea and if
you agree.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse