6 messages in com.canoo.lists.webtestRe: [Webtest] multipart form
FromSent OnAttachments
paul ng10 Apr 2003 23:03 
paul ng14 Apr 2003 17:59 
Aatish Arora14 Apr 2003 23:11 
Healey, Thomas15 Apr 2003 03:53 
Jeff Nielsen15 Apr 2003 05:09.java, .java, .java
paul ng16 Apr 2003 03:51 
Subject:Re: [Webtest] multipart form
From:Jeff Nielsen (jeff@digitalfocus.com)
Date:04/15/2003 05:09:13 AM
List:com.canoo.lists.webtest
Attachments:

I had to write a couple of my own WebTest tags to be able to test multi-part forms and other kinds of situations. I'm attaching the code in case anyone is interested.

Using the attached classes, I can write tests like this and have them work.

<invoke . . ./> <setjsformfield form="myMultipartForm" name="submit-name" value="The File Name"/> <setjsfilefield form="myMultipartForm" name="files" value="fileName"/> <clickbutton . . ./>

Hi all,

Have anyone been successfully in processing a multipart form using WebTest? I've encountered error whenever i have enctype="mulipart/form-data" in my HTML FORM tag. Here is an example. The FORM works only when I remove the enctype and INPUT tag with type file.

<FORM action="http://server.com/cgi/handle" enctype="multipart/form-data" method="post"> <P> What is your name? <INPUT type="text" name="submit-name"><BR> What files are you sending? <INPUT type="file" name="files"><BR> <INPUT type="submit" value="Send"> <INPUT type="reset"> </FORM>