April 13, 2004
WinGuiAuto.java

Brian Edwards has put together Java port of winGuiAuto.py. Little does he know that I've been cleaning this up over the last week or so, a version 1.0 release is just days away, and he'll have to do it all over again. Mwahahahahaha!

Seriously, Brian, cool stuff. BTW, you use Coroutine for Java, and say that you are looking for an open source alternative. Well, I gather that there's a Java port of Thomas Heller's fabulous ctypes module in the works: ctypes-java. You might want to take a look.

Also, did you do any of the Python to Java conversion automatically? (It certainly looks like it.) What did you use?

Posted to Java by Simon Brunning at April 13, 2004 05:10 PM
Comments

Hmm....I've been playing around with Abbot - its a Java functional testing framework. It lets you automate interaction with Java GUI's for the purposes of testing, and can be run as a normal JUnit test. Once written, you can easily chain them together to generate stress testing... Details here: http://abbot.sourceforge.net/

Posted by: Sam Newman on April 13, 2004 05:17 PM

Interesting. Thanks, Sam.

Automating Java GUIs from Java is quite a different matter from automating arbitrary Windows GUIs, though.

Posted by: Simon Brunning on April 14, 2004 09:40 AM

I tried the latest release of ctypes4j , but had a problem getting callback functions to work. If anyone can get EnumWindows to work with ctypes -- I'm all ears.


>Python to Java conversion automatically?
Did it manually.


>he'll have to do it all over again
:-) I'll try to keep it up-to-date.

Posted by: Brian Edwards on April 14, 2004 03:57 PM

Were you using ctypes4j[1] version 0.2? This claims to have fixed callback problems, but I've never tried ctypes4j, so I don't know.

BTW, most of my changes to winGuiAuto.py are to the documentation, though there are a few minor API changes.

[1] http://ctypes4j.sourceforge.net/

Posted by: Simon Brunning on April 14, 2004 04:08 PM

Help - I am using winGuiAuto.py for automatic testing of our company program. I am having problems with accessing options on a context sensitve right mouse click menu. I can activate options by doing:
sendkey SHIFT+F10 to open the menu
and then sending down arrows to get to items
Do you know of any way to actually refer to items on at popup menu directly rather than just accessing them by positon?

Posted by: Yvonne Leonard on April 29, 2004 10:07 PM
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?