[Http-webtest-general] uploading a file
Brought to you by:
m_ilya,
richardanderson
From: Jagannadh P. <jag...@ya...> - 2003-01-31 21:27:59
|
Hi. I was trying to test uploading a file, but the server that handles the request complains that the file does not exist. The basic sequence of tests I run are the following: 1. login as a particular user. 2. Access the page that allows the file upload. 3. Attempt to upload a file. The test block looks like such: test_name = test 1 url = http://someserver.com/upload.pl method = post params = ( name => John upload => (file => /home/john/file_name.txt Content-Type => 'multipart/form-data' ) ) on_request { ... preprocessing } on_response { ... further processing. } end_test Any help would be great... Thanks. Jag --------------------------------- Post your free ad now! Yahoo! Canada Personals |