[Webtest] file upload in Httpunit

Dierk Koenig webtest@lists.canoo.com
Fri, 10 Jan 2003 20:07:25 +0100


hi 

I think this should go to the HttpUnit mailing list.

cheers and good luck
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of ramakrishna raju rao
> Sent: Freitag, 10. Januar 2003 19:40
> To: webtest@lists.canoo.com
> Subject: [Webtest] file upload in Httpunit
> 
> 
> hi ,
> I've written a HttpUnit test case in which I need to 
> automatically
> upload a file and submit that file.But i am not able to do so.
> the following is the code segment where the problem is?
> 
> File f =new File("test"); //this is in the same directory
> UploadFileSpec ufs[] = new UploadFileSpec[1];
>                 ufs[k] = new UploadFileSpec(df);
>                 request = loginForm.getRequest();
>                 request.setParameter("user-file",ufs);
>                 request.setParameter("user-choice","File Sent");
>                 response = wc.getResponse(request);
> 
> Iam not getting any response after this step.
> Could anyone please help me out with this?
> 
> 
> 
> 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>