| Newsgroups |
gmane.comp.web.httpunit.devel |
| Message-ID |
<ABF4E02DA33A6F4BAC41122C7086C8990C2C60@bromail01.internal.gxs.com> |
Hello Again!
I am trying to run a test the submits a form with a File Upload
parameter and it keeps failing. I get this error (which I know is a
javascript alert, so I have tried popNextAlert(), but that didn't work):
Script 'alert("Line No:1 Please check if you have entered the correct
no of columns. Unable to parse your batch load file");
history.back();' failed: ReferenceError: "history" is not defined.
(httpunit; line 1)
I have looked through all the javascript files that are present on the
server, and the javascript included in the page and I cannot find this
alert (that is a question for my dev team). I decided to run this thing
through a proxy recorder and I found that the file name looks mangled:
----HttpUnit-part0-aSgQ2M
Content-Disposition: form-data; name="loadFile";
filename="C:\\downloads\\billing.csv"
Content-Type: text/plain
AAG93209,01:ICSTESTPROFILE,AAL96930,01:IEADDPROF001,SEND,ACTIVE
AAL96930,01:IEADDPROF001,AAG93209,01:ICSTESTPROFILE,SEND,ACTIVE
----HttpUnit-part0-aSgQ2M
All of my Columns are there, but the backslashes are doubled up. When I
do the same thing manually through the recorder I get:
-----------------------------7d623035208c2
Content-Disposition: form-data; name="loadFile";
filename="C:\downloads\billing.csv"
Content-Type: application/vnd.ms-excel
AAG93209,01:ICSTESTPROFILE,AAL96930,01:IEADDPROF001,SEND,ACTIVE
AAL96930,01:IEADDPROF001,AAG93209,01:ICSTESTPROFILE,SEND,ACTIVE
-----------------------------7d623035208c2
Is there any way to unmangle the filename before submitting the request?
Rob Whitener
Test Automation Specialist
GXS
2701 N Rocky Point Rd.
Tampa, FL. 33607
813-496-3513