ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> squeak
squeak
Testing of GUI?
by Ned Konz other posts by this author
Jul 24 2002 3:07PM messages near this date
Testing of GUI? | Re: What's the meaning of "squeak"?
On Saturday 20 July 2002 09:51 am, Jerome Chan wrote:
>  Does anyone have any hints of how to test GUIs under squeak? I'm
>  thinking of exposing all the elements (buttons lists windows) as a
>  sub-class and then using smalltalk to simulate the button presses
>  and keystrokes.

I've been working on an extension for the TestRunner that uses a=20
modified EventRecorder and a locally constructed PasteUpMorph that=20
acts as a reference frame/container for the components under test.

During development of the tests, you can interact with the components=20
in the PasteUpMorph and the interaction will be recorded. There is a=20
pause/continue button (and keystroke?) that lets you control what=20
gets recorded.

Whenever you want, the recorded events are spit out in a printable=20
form, included in a newly written test method. You then add asserts,=20
etc. as needed. Every pause generates a space for your own code in=20
the method.

By using a local PasteUpMorph and the TestCase's setUp and tearDown=20
behavior, I know that my UI components will always be at the same=20
location (which is a limitation of using the EventRecorder, which=20
records absolute mouse coordinates).

I haven't had too much time recently to work on this; if someone wants=20
to see where I am with it, I'd be glad to share it/hand it off.

--=20
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
Thread:
Anthony Hannan
Marcus Denker
Markus Gaelli
Hannes Hirzel
Stephan Rudlof
Stephan Rudlof
Michael Rueger
Alan Kay
Jerome Chan
Jason Rogers
Ned Konz
John M McIntosh
Henrik Gedenryd
Tim Rowledge

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved