Re: [TFUI] Mock The Server

Phlip <[email protected]> Thu, 29 Sep 2005 09:12:08 -0700
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
Owen Rogers wrote:

> nunitasp also uses real httprequests to a real server.  this is one of
> the reasons that i don't think that it is really usable for tfui --
> when the serverside code is running in a completely separate web
> server process, it means you're not really unit testing (not to
> mention the fact that this makes your tests so slooow).

TFUI means you can write tests that force predictable changes to
displays and interactions, without excessively displaying a GUI. I
think...

By "usable for TFUI", I think you mean you can't rapidly write unit
tests and rapidly run them?

I agree that test cases should strongly decouple, even from "good
things" like web servers...

> i've made some progress on the tfui web stuff that i mentioned earlier
> and have a simple prototype ready.  in order to simulate interactivity
> between the client (browser) and the server, i'm hooking into the IE
> eventing mechanism.  whenever IE goes to fetch a new page, it
> generates an event which i catch and then use to directly invoke a
> callback on the page or control class.  asp.net makes this tricky
> because of the large number of sealed (final) classes (like
> HttpContext).  but i've hacked some of it to get this to work.

That's a ton of effort and I hope you can publish.

(But note you couple to IE;)

> i'm still deciding what to do with this library (any suggestions for a
> good name).  being able to reveal asp.net web controls alone is sweet
> enough. :)

Can you merge it with existing *Unit packages? Just a thought...

--
  Phlip
  http://www.greencheese.org/ZeekLand  <-- NOT a blog!!


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/