Re: Is it possible to parameterize in file upload using multi part form POST?

Joan Picanyol i Puig <[email protected]> Tue, 20 May 2014 16:00:08 +0200
Newsgroups gmane.comp.java.grinder.user
Message-ID <[email protected]>
You'll obviously need your files generated beforehand somehow. Assuming
that you have them, you can then upload a different one on each run by
selecting one based on the grinder's
processNumber/threadNumber/runNumber triplet or randomly, depending on
your needs.

qvb
--
pica

* Lutfur Rahaman <lutfur.rahaman-/[email protected]> [20140520 15:39]:
> 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


-- 
pica

------------------------------------------------------------------------------
"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