I started implementing a really nice UI testing framework yesterday.
WebTest from Canoo - http://webtest.canoo.com.  It is built on top of
httpunit, and allows you to configure your tests in ant tasks, read: no
coding!  It took me about 5 minutes to implement a login test and would
probably work well with your needs.

Matt

> -----Original Message-----
> From: James Childers [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, December 14, 2002 10:33 AM
> To: Cactus Users List
> Subject: RE: how to test jsp?
> 
> 
> Leos,
> 
> > My problem is, that there is no single line in documentation 
> > describing, how to open URL with jsp. Doc for 
> ServletTestCase relies 
> > on fact, that you are instantiating servlet class, which 
> will not work 
> > with jsp. And JspTestCase seems to me focused on tag library, and 
> > there is no way to execute jsp.
> 
> >From what you have described you are looking for a functional test 
> >environment, not a unit test environment. HTTPUnit might be more in 
> >line with your requirements. Cactus is designed to test the 
> components 
> >of a web application --  mostly servlets, filters, tags. If you are 
> >just wanting to test that a JSP gets executed/built properly, use 
> >HTTPUnit.
> 
> What you have described, however, suggests that you have at 
> least some business logic in your view (JSP) and might want 
> to consider moving that functionality up the hierarchy a bit. 
> 
> As far as your needs are concerned, read the following for more info:
> 
http://jakarta.apache.org/cactus/mockobjects.html

-= J


 

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



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

Reply via email to