Re: [TFUI] Strict User Simulations

Timothy Wall <[email protected]>
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
On Aug 7, 2004, at 3:38 PM, Phlip wrote:

>
> The following example code uses a rare and exotic
> language called "Java", invented by James Gosling. The
> example reveals a GUI test rig called "Jemmy",
> invented by Aleandre Iline. It exercises complete
> Event Queue Regulation for the Swing GUI Toolkit. The
> small penalty for these easy features is windows that
> flicker and animate their behaviors during tests.

There's a peculiar situation on w32 (and more explicitly available on 
X11 systems) that lets you run these kinds of tests without bothering 
your local display.  I'm not sure of the technical details of the 
environment, but if you have a kind of remote login (sshd under cygwin, 
for instance), you can run your tests in a sort of "service" mode which 
won't affect the default user display.  Abbot (http://abbot.sf.net) 
automatically detects this environment and adjusts its event generation 
to suit.

On X11 systems, it's simply a matter of redirecting output to a 
non-visible display or frame buffer.

That assumes your concern is with interfering with the "active" display.

>
> Jemmy solves a common problem simulating events.
> Suppose a button provides a .push() method, so
> production code can simulate user input. However,
> suppose that .push() method worked even if its button
> were disabled. When test cases rely on the .push()
> method, alone, its results might mislead. If a button
> was disabled and should be enabled, then if a test
> called .push() and recorded an enabled response, the
> test would not catch that bug.

Then perhaps the test should include a check for the button being 
enabled?  Sometimes it's easier to drive the GUI when the UI components 
have a lot of interacting properties, and you wind up with less hard 
linkage between the test and explicit/implicit behaviors of the 
component w/r/t its property settings.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.