[Webtest] File upload
Lisa Crispin
webtest@lists.canoo.com
Fri, 08 Apr 2005 22:51:02 +0000
--NextPart_Webmail_9m3u9jl4l_17036_1113000662_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
I opened a bug on this a few weeks ago, but while I wait to see if someone resolves it, maybe someone else on the list has run across this problem before and can give me some ideas? I have to do another test for file upload this sprint, and I would really like to make these part of our regression tests.
I have a script which uploads a file, using setfilefield to select the file. This works fine if I run the script from a Windows machine. However, the same script run from a Linux machine, with only the path for the file changed, it does find the correct file and attempt to upload it, but the application gives several error messages from the file edits. These errors all refer to lines that aren't even in the file. The file is a .csv file. Editing the file with vi or kate it looks fine, there are no ^Ms or anything like that. If I upload the same file manually through the application, it works fine. So it appears that when the WebTest script runs, it does something to mangle the file somehow.
Naturally our WebTest scripts (run by our nightly build) run from a Linux machine so I would like this to work on Linux!
I'm not sure if file upload is really a supported feature so let me know if I shouldn't have filed a bug report on it.
Here is the relevant part of the script:
<setfilefield stepid="set the file"
name="fileName" filename="c:/temp/NewCentury.csv" />
<clickbutton stepid="submit"
label="Submit"/>
The file is attached to bug WT-35.
Thanks,
Lisa
--NextPart_Webmail_9m3u9jl4l_17036_1113000662_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit
<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV>I opened a bug on this a few weeks ago, but while I wait to see if someone resolves it, maybe someone else on the list has run across this problem before and can give me some ideas? I have to do another test for file upload this sprint, and I would really like to make these part of our regression tests.</DIV>
<DIV> </DIV>
<DIV>I have a script which uploads a file, using setfilefield to select the file. This works fine if I run the script from a Windows machine. However, the same script run from a Linux machine, with only the path for the file changed, it does find the correct file and attempt to upload it, but the application gives several error messages from the file edits. These errors all refer to lines that aren't even in the file. The file is a .csv file. Editing the file with vi or kate it looks fine, there are no ^Ms or anything like that. If I upload the same file manually through the application, it works fine. So it appears that when the WebTest script runs, it does something to mangle the file somehow. <BR><BR>Naturally our WebTest scripts (run by our nightly build) run from a Linux machine so I would like this to work on Linux! <BR><BR>I'm not sure if file upload is really a supported feature so let me know if I shouldn't have filed a bug report on it. <BR><BR>Here is the relevant part of the script: <BR> <setfilefield stepid="set the file" <BR> name="fileName" filename="c:/temp/NewCentury.csv" /> <BR><BR><clickbutton stepid="submit" <BR>label="Submit"/> <BR><BR>The file is attached to bug WT-35.</DIV>
<DIV>Thanks, <BR>Lisa <BR> </DIV>
<!-- END WEBMAIL STATIONERY -->
</body>
</html>
--NextPart_Webmail_9m3u9jl4l_17036_1113000662_0--