|New SWTBot release [message #36074]
||Thu, 21 May 2009 05:03
| Ketan Padegaonkar
Registered: July 2009
This is in continuation of my previous email 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();
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 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().
 - http://wiki.eclipse.org/SWTBot/Keyboard_Layouts
|Re: New SWTBot release [message #36109 is a reply to message #36074]
||Thu, 21 May 2009 10:03
| Richard Adams
Registered: July 2009
I just upgraded to 188.8.131.522, running Eclipse 3.4.1 on MacOSX10.5,
following your comment on bug
Unfortunately none of my now tests run properly. I've changed all bot
references to SWTWorkbenchBot, and the way I access views, but the
detection of dialogs seems not to work anymore.
ALl my tests start by creating a fresh project via the new project wizard
public static void getNewProjectWizardMainPage(SWTWorkbenchBot bot) throws
// this still works and opens new project wizard
// this was workng but now fails with timeout exception
The 'New Project' Dialog opens ok but the test fails with a 'widget not
found' exception as the open shell cannot be found - the test just hangs
and the dialog is not completed. I tried adding text by hand but his
rather loses the convenience of automated tests.
I read your two recent posts and can't see anything about this being
- Also, 'viewByLabel' is not present in API, but bot.viewByTitle is - are
they the same thing?
Dr Richard Adams, University of Edinburgh
Powered by FUDForum
. Page generated in 0.08358 seconds