Re: [TFUI] UISpec4J: an open source library for testing Java/Swing applications

Phlip <[email protected]> Wed, 6 Apr 2005 07:16:44 -0700
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
Regis Medina wrote:
> 
> Hi Phlip,
> 
> > How easily can your rig temporarily display the GUI under test, such
> > as in a reveal() method?
> 
> There is no such function available in the tool now, mainly because we
> had another way for doing this: in each "panel" test class, we usually
> write a little "main()" which displays it and allows the developer to
> check its layout and general look.
> 
> However, this "reveal()" function sounds interesting to me, I will put
>  it on our todo list.

You might already have it.

The "best" reveal() has these features:

 - reveal suspends test evaluation. One keystroke should
   close the window

 - user input events to the reveal() window "work", meaning
   the programmer won't be surprised. One can display a half-
   built window, for example

 - when you close the window, the rest of its test case
   works correctly (unless you mucked up the controls),
   and the remaining test cases work correctly

 - at integration time, reveal() disappears magically. Get this
   by wrapping it with revealFor("phlip"), to trigger by user name

 - the revealed window has the keyboard focus. (If no window
   reveals, the editor remains active). <Alt+Tab> returns to the 
   editor. The debugger is available.

 - the reveal system can optionally take snapshots, can 
   optionally take movies of interaction, and can optionally
   run unattended and close itself

Incredibly, many GUI Toolkits (and editors) fight this checklist to
the death. You would have to research too much, beyond your immediate
need, to get the full list. HTML from a web server makes the list
hard, for example.

-- 
Phlip


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/