Aparup Banerjee Mon, 11 Aug 2003 19:42:25 +0530
Is there any way, any open source reference, by which i can do some
robotic interactions on a SWT Shell/Widget.
There is a lot of traffic on java-gui-testing regarding this: see
http://groups.yahoo.com/group/java-gui-testing/
You might also want to read/write/CC
https://bugs.eclipse.org/bugs/show_bug.cgi?id=15025
That being said: you can use j.a.Robot's own API, just extend or
rewrite it
* to use SWT constants in place of AWT ones
* with reimplemented waitForIdle(*), since you will have no AWT event
queue
FWIW, my group is currently extending Abbot
http://sourceforge.net/projects/abbot
to handle SWT. We took scenario 2 from Dutta's JDJ article
http://www.sys-con.com/java/articleprint.cfm?id=1940
rewrote its UI in SWT, and can automate and test that UI using JUnit
testcases which use our extended Abbot. These testcases can be run
either from Eclipse's mainmenu>Run>JUnit or from a WebSphere Studio
test collector. (Note that we are currently working with Abbot's
maintainer (who has been very supportive), and seeking permission from
local lawyers, to release our extensions back to Abbot as OSS.)
BTW, noting your sun address: if you have any connections to the Sun
test automation folks, please suggest that they extend Jemmy to handle
SWT! I've heard it's a political and not a technical issue ...
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev