Re: [TFUI] [Article] User Interrogator and TDD

Phlip <[email protected]> Thu, 22 Jun 2006 11:33:22 -0700
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
This raises a curious question. Sometimes your GUI tests must display
a little GUI. Either you can't or shouldn't turn it off. Maybe the
test depends on the last step between the GUI Toolkit and the
hardware. Or maybe you don't feel like clawing your way through all
the research required to make a rambunctious GUI Toolkit turn itself
off and not display.

So if you run your continuous test batch in one of those high-fallutin
services, it squelches the GUI along with some network services and
various other things.

I run my continuous test batches in console windows on dedicated
computers. (Windows Remote Desktop makes this totally sweet because I
can leave them running there forever, including SSH->Linux consoles,
and I can log in and look at them from any other Win32 computer.) They
are not services, and if Cruise Control uses a service then I consider
this a mild abuse of the service concept. It's just a program that
runs all the time, not a service.

My test batches don't have service restrictions, but they do have to
live within a Win32 Desktop that might not always go all the way to a
monitor. Advanced GUIs, such as DirectX, might not survive such abuse.

In the last extreme, when you have dedicated test hardware, put its
monitor up on top of a file cabinet. I did that for the DarkWatch
project, so everyone could see Jericho running around shooting things
at random. All night.

Rob Park wrote:

> I've got a question about the GetFontFromUser() method...

Briefly, you are not inventing the GetFontFromUser() method, so just
mock it out and keep going! At test time, the production code should
call a mock that returns a prepared font. The mock goes away at run
time.

-- 
  Phlip
  http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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/