Re: [TFUI] Mock The Server

Owen Rogers <[email protected]> Thu, 29 Sep 2005 09:32:48 -0400
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
On 29/09/05, Phlip <[email protected]> wrote:
> I don't know about NUnitAsp, but HttpUnit uses a real server and a
> real HTTP transmission over real network connections. (The connection
> is probably the loopback inside a single computer, but it's still a
> real network connection.)

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

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.

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

cheers,
owen.
--
Owen Rogers | http://dotnetjunkies.com/weblog/exortech |
CruiseControl.NET - http://ccnet.thoughtworks.com


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