Hello all,
I saw the following on the Squeak mailing list, and thought it might be of
interest here as well:
===============================
I've had good results by testing at a slightly higher level. Instead of
simulating mouse-clicks I call methods on the morph that would result from
clicks in the appropriate places. To put it another way, I trust Morphic to
process clicks, and just test that the GUI responds to them correctly.
Monticello has a good example of this in MCSnapshotBrowserTest. It does
things like select a class and assert that the correct method categories
appear or select a method and assert that the method source appears in the
text pane.
I've done this sort of thing in a few other places (unreleased code) and
occasionally think about factoring it out into a Morphic testing framework,
but it's so simple that there's almost no point.
===============================
The URL for the post is:
http://groups.yahoo.com/group/squeak/message/74417Have a good one,
Bill
--
Wilhelm K. Schwab, Ph.D.
[hidden email]