|Status update on some new features. [message #35905]
||Tue, 19 May 2009 18:19
| Ketan Padegaonkar
Registered: July 2009
Here's some updates on what's been happening with SWTBot so far. Expect
me to publish a build sometime this weekend. Users with a keyboard
layout different than a US keyboard may experience some troubles with
this release. I'll publish another email on how to get around this.
I hope you enjoy using this release of swtbot as much as I've enjoyed
writing it :)
Native support for sending events
SWTBot has so far been sending 'fake' events to widgets and getting away
with it. You cannot go too far faking events and swtbot has seen more
than one issues with it.
As part of this effort, swtbot now comes with full native keyboard
support. Sending keystrokes does exactly that -- send keystrokes and not
fake events. SWTBot currently supports sending events using AWT's
Robot(default), SWT's Display#post() and the old style mock events.
The keyboard still support only US style keyboard layouts because of the
lack of non-US keyboards available to me :) It is possible to describe
your own keyboard layout using a simple configuration file.
What remains towards this effort is to use native events for just about
everything: clicks, right click, double click, selects, deselects et.al.
Many thanks to the SWT team which has helped drive a lot into this feature.
Better support for testing eclipse
Finding widgets in the workbench involved doing a few lines of funny
looking code. This has now become much more concise and readable.
This should also hopefully support non-text based, multipage, graphical
and forms-based editors.
 - https://bugs.eclipse.org/259908, https://bugs.eclipse.org/271132
 - https://bugs.eclipse.org/273624
http://github.com/ketan/swtbot/blob/ac85bf0949ae1dce209a6320 a421725e8223caff/org.eclipse.swtbot.swt.finder/src/org/eclip se/swtbot/swt/finder/keyboard/MAC.US.keyboard
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Powered by FUDForum
. Page generated in 0.05982 seconds