RE: [TFUI] Re: User Stories and the UI

"Ilja Preuss" <[email protected]>
Newsgroups gmane.comp.programming.test-first-user-interfaces,gmane.comp.programming.extreme-programming
Message-ID <[email protected]>
Phlip wrote:

> We don't need to test that the Submit button itself is
> clickable. Refactoring won't easily change that. That logic
> is in the "GUI Toolkit" - we want to test only our own "GUI Layer".

Agreed, of course.

> Next, while programming a GUI we often want to look at
> its intermediate state. So I have a commented-out line
> that would have called 'Show' in Modal mode. It's
> Modal so we block all the other tests until we are
> finished looking at the window.

Ah, yes, that's what I wanted to know - thanks!

> If we see anything wrong we must decide to write a
> test, or to just fix it. If it's simple, such as two
> fields overlapping, just go to Design Mode and drag
> the fields apart. But if you don't know >why< the
> fields are overlapping, a test will help investigate.

Again, agreed.

>> That's interesting - can you elaborate on what your reusable test
>> functions typically test?
>
> [...]
> 
> Suppose the above test case wanted to send a low-level
> message, for "strict user simulation". If it used
> SendMessage(something, BM_CLICK, 0, 0). Statements to send a
> low-level message thru VB would be very hairy. So we should
> put them inside a common method, to be re-used whenever we
> needed a strict user simulation of a button click event.

Ah, ok - things that will result in something like JfcUnit... :)

I was hoping you also had reusable code for things like "a layout should
never be built this way" or something - that would have been quite
interesting. I guess the answer is no, you don't... :)

Cheers, Ilja



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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.