Re: [TFUI] testing Qt code

Phlip <phlipcpp-/[email protected]>
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
David Dibben wrote:

> At a first pass, I tried code below as an 
> implementation for reveal. All
> Qt's windows derive from QWidget, so we can use that
> as the argument to
> reveal.  Calling processEvents() means  that no user
> interaction with the
> window is possible, only viewing.

Thanks! This would soon appear, as-is, on its
appropriate Wiki.

All GUI Toolkits are different, but all use a similar
event driver system, huh?

Can you run processEvents in a loop?

> If user interaction is required then reveal needs to
> be slightly more
> complex.

You need it for the next step:

 - Temporary Interactive Test

That means, while the window is revealed, you click on
it and see what happens. Maybe you invoke a breakpoint
or a trace statement.

But you immediately convert what you learn into either
a test that simulates a user, or a test fixture - if
it's complex. Frequently comparing your simulations to
the real thing lets you catch situations where the
simulation behaves differently from the real thing.


=====
Phlip
    http://www.xpsd.org/cgi-bin/wiki?TestFirstUserInterfaces


	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 


------------------------ 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.