6 messages in com.canoo.lists.webtestRe: [Webtest] multipart form| From | Sent On | Attachments |
|---|---|---|
| paul ng | 10 Apr 2003 23:03 | |
| paul ng | 14 Apr 2003 17:59 | |
| Aatish Arora | 14 Apr 2003 23:11 | |
| Healey, Thomas | 15 Apr 2003 03:53 | |
| Jeff Nielsen | 15 Apr 2003 05:09 | .java, .java, .java |
| paul ng | 16 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 . . ./>
Jeff Nielsen Digital Focus www.digitalfocus.com
----- Original Message ----- From: "paul ng" <ng_p...@hotmail.com> To: <webt...@lists.canoo.com> Sent: Monday, April 14, 2003 8:59 PM Subject: [Webtest] multipart form
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>
Regards, Paul Ng
_________________________________________________________________ Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest





.java, .java, .java