Re: [TFUI] The TFUI Principles

Brian Marick <[email protected]> Thu, 12 May 2005 09:05:40 -0500
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
On May 12, 2005, at 12:44 AM, Chris Hanson wrote:

> On Feb 6, 2005, at 8:53 AM, Phlip wrote:
>> GUI Tests on Cocoa don't need to regulate the event queue?
>>
>> My current career arc won't take me near Apple for a long time.
>> Could you
>> help us by showing some GUI tests written for Cocoa?
>
> Sorry I took so long to reply to this.  I've been a bit busy the past
> few months.
>
> In general, human interface tests in Cocoa *don't* need to regulate
> the application's run loop.  You don't need to simulate an event
> queue, you don't need to feed events to controls and see what they
> do.  You can operate at a higher level because Cocoa isn't an object-
> oriented wrapper around an API, it's an object-oriented API.
>
> I'm not going to write example tests, but I will say how you would
> write the tests.

I've been (slowly) working up an example of test-first & Cocoa, using 
model-view-presenter (aka Humble Dialog Box). I'm working from the 
interaction design (high-level flow through the app) toward the details 
of buttons, so I'm coming at it from a different direction than Chris 
is. I'd be interested to hear what more experienced TFUI people think 
of this style.

First entry is here:
<http://www.testing.com/cgi-bin/blog/2005/03/17#presenter1>

You can find links to the other entries on the right sidebar.

-----
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.testing.com/cgi-bin/blog
Book in progress: www.exampler.com/book




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/