> -----Original Message-----
> From: Larry Tambascio [mailto:[EMAIL PROTECTED]]
> Sent: 26 September 2002 16:49
> To: Cactus Users List
> Subject: Re: Multi Step Tests - Better HttpUnit Integration
> 
> Hi Steve,
> 
> It sounds to me like what you really need is HttpUnit.
>  I'm unsure what Cactus is buying you.  What I have
> usually done is to setup the session as though all your
> preceding requests and responses have been made.  My guess
> is that it would take about the same amount of code to
> setup all the session values as it does to do the HttpUnit
> web conversation thing.  Finding out what those all are
> could be tedious, but it would make your tests cleaner and
> faster, IMHO.

Exactly. We should not forget that Cactus is a *unit* testing tool, i.e.
it gives you the ability to test classes at the method level. It's not
there to unit test your doGet()/doPost() Servlet method as this can also
be done from the outside. It is there to unit test all other methods
using container objects.

Thus, as with every unit test, you need to setup the environment in
which the test will run. For Web environments, this can mean :

- HTTP cookies,
- HTTP parameters
- values in the HTTP session
- etc.

-Vincent



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to