Hello,

--- Vincent Massol <[EMAIL PROTECTED]> wrote:
> 
> ----- Original Message -----
> From: "Karthik Kumar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Vincent Massol" <[EMAIL PROTECTED]>
> Sent: Friday, September 28, 2001 2:21 PM
> Subject: WebResponse.loadResponseText throws NullPointerException ...
> 
> 
> > Hello,
> >    Sorry for my previous mail with the wrong subject.
> >
> >    I was looking for a server-side testing tool to test my JSP pages, and
> then
> > I came across Cactus. First of all, let me tell you Vincent, it is really
> kool
> > and simple. I could immediately jump-start on testing my very trivial JSP
> > pages.
> 
> cool :) but the full Cactus team is to be thanked, not only myself ... :-)
   
   Yup. Sorry. I thank the whole Cactus team herewith. 

> 
> 
> hum ... This might well be a bug ... it has the smell of it at least ... I
> have made a big mistake when doing HttpUnit integration and I should have
> known better .... I have not written any functional test sample. I wanted to
> write a few tests and I didn't rigth away because it would have meant
> distributing them to the Cactus sample application and there are users who
> do not want to use HttpUnit and they shouldn't be bothered to have to
> download the HttpUnit jars ... Basically I postponed the writing of theses
> tests till I had improved the build mechanism so that not all Cactus tests
> would be packaged as part of the sample application or until I had found
> another way of doing it, like offering several sample applications for
> different needs. We still need to think about that. And of course, the
> writing of test cases for HttpUnit then slipped out of my mind ... and now I
> pay the price ... :)
> 
> I have to try it on my computer. Give me one day and I'll get back to you
> and include the needed tests so that it does not happen again (if it is a
> bug).
    Well. Thanks a lot. 


> In the meantime, if you simply want to get the returned text (but I guessed
> if you used HttpUnit that was to do more complex stuff), use :
> 
>      public void endOut(org.apache.cactus.WebResponse resp)
>              throws IOException {
>          System.out.println( resp.getText() );
>      }

   You are right. I did want to do some more important stuff like using
WebTable , WebLink available as part of the HttpUnit Library. Anyhow as of now
let me be contented with org.apache.cactus.WebResponse. 
   And well meanwhile I will also check out the source code and if you want any
hand in trying out more functional test cases, let me know and I would be happy
to help you.

Thanks.
Karthik Kumar.

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

Reply via email to