[ptt-users] Fixed the multipart form problem
Frank Cohen
fcohen at pushtotest.com
Tue Mar 27 08:52:21 PST 2007
I updated HTTPMultipartBody.java to enable it to send multiple files
and to solve the problem where the mime parts were being sent to the
host in the wrong order. The fix introduces a new method:
/**
* Adds a file that will be MIME encoded.
* @param filename The name and path to the file that will be encoded
and sent to the host
* @param contenttype The MIME content type of the file, for example,
plain/text or audio/x-pn-realaudio
* @param parametername The value of the name field in the content
type description
*/
public void addFile( String filename, String contenttype, String
parametername )
I have checked this manually using the TestMaker Network Monitor but
have not used this on a real target host.
The changes are checked-into the tm44 repository on
cvs.pushtotest.com under /var/cvsroot.
I am making a prebuilt tool.jar available at:
http://downloads.pushtotest.com/200703/tool.jar
Put the tool.jar into the TestMaker/lib directory to upgrade
TestMaker 4.4.1b. This will appear in the TestMaker 4.4.2 distribution.
See an example test agent script below.
-Frank
--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA test automation tool
More information about the Users
mailing list