Is it possible to parameterize in file upload using multi part form POST?
Lutfur Rahaman <lutfur.rahaman-/[email protected]>
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <OF691C3399.D53E2871-ON65257CDE.0049CAA3-65257CDE.004AA427@tcs.com> |
While recording my script using TCPProxy I uploaded a file (say
myFile1.doc) and http-data-0.dat got generated. Now I want a 100 user test
where each user will upload a different file. Is possible using Grinder?
Obviously I will not want to record for each file upload and generate
separate binary content (.dat file). I am using Grinder 3.11 on Java
version "1.6.0_25".
Please help.
request2301 = createRequest(Test(2301, 'POST
FolderListSubmitDocument.do'), url0, headers5)
request2301.setDataFromFile(sys.path[0] + '/http-data-0.dat')
def page23(self):
"""POST FolderListSubmitDocument.do (request 2301)."""
result =
request2301.POST('/MySite/DocumentManagement/FolderListSubmitDocument.do',
request2301.getData(),
( NVPair('Content-Type', 'multipart/form-data;
boundary=---------------------------2351853587606'), ))
return result
Best Regards
Lutfur Rahaman
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use