Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Status update on some new features.
Status update on some new features. [message #35905] Tue, 19 May 2009 18:19
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Hi,

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[1].

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.[2]

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[3].

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[2]. This has now become much more concise and readable.
This should also hopefully support non-text based, multipage, graphical
and forms-based editors.

[1] - https://bugs.eclipse.org/259908, https://bugs.eclipse.org/271132
[2] - https://bugs.eclipse.org/273624
[3] -
http://github.com/ketan/swtbot/blob/ac85bf0949ae1dce209a6320 a421725e8223caff/org.eclipse.swtbot.swt.finder/src/org/eclip se/swtbot/swt/finder/keyboard/MAC.US.keyboard
[4] -
http://github.com/ketan/swtbot/commit/ac85bf0949ae1dce209a63 20a421725e8223caff#L1L66

-- Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Previous Topic:problem clicks and doubleclicks on table cells
Next Topic:upgrade to 2.0; some XXwithLabel cases failed
Goto Forum:
  


Current Time: Sat Dec 20 05:21:38 GMT 2014

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

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