New SWTBot release [message #36074] |
Thu, 21 May 2009 01:03  |
Eclipse User |
|
|
|
Hi,
This is in continuation of my previous email[1] on some of the new
features in swtbot.
I've pushed in a new build of SWTBot in case you wish to try it out. If
you're going to be downloading this release, I'd highly recommend
reading these notes.
Some known issues:
1. Editor autocompletes and quickfixes is broken with eclipse 3.5M7 and RC1.
2. Menus inside eclipse are broken with eclipse 3.5M7 and RC1.
Some of the features:
1. Toggle button support
2. SWTBot can now be scoped to search within a particular widget:
microBot = bot.viewByLabel("Package Explorer").bot();
microBot.tree().select("MyProject");
This makes the earlier nuiances redundant:
widget = bot.viewByLabel("Package Explorer").getWidget();
SWTBotTree t = bot.widget(widget, widgetOfType(Tree.class));
3. Renamed SWTEclipseBot to SWTWorkbenchBot:
SWTEclipseBot is available but deprecated. Also the methods
view(viewLabel) and editor(fileName) are renamed to
viewByLabel(viewLabel) and editorByFileName(fileName);
4. Native mouse support (partial):
Clicking on certain widgets actually moves the mouse over them and
performs the click.
5. Native keyboard event(needs community inputs):
Performing type operations performs keyboard types using native events.
This requires that the community participates in sending in their
keyboard layouts[2] for inclusion in SWTBot.
6. Setting preferences is now easier.
Setting preferences is now a matter of setting a simple variable instead
of via System.setProperty().
[1] -
http://www.eclipse.org/newsportal/article.php?id=653&gro up=eclipse.swtbot#653
[2] - http://wiki.eclipse.org/SWTBot/Keyboard_Layouts
-- Ketan
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05042 seconds