Am 31. Juli 2017 19:35:47 MESZ schrieb Lisa Waugh <[email protected]>: >Hi Felix, >Here is the test: > > >And I can see that the variables are being substituted correctly in the > >full raw request: > >POST >https://ecl-stage.mybluemix.net/api/v1/profile/addMediaToLearnerCollection > >POST data: >--35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6 >Content-Disposition: form-data; name="sessionContextId" >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: 8bit > >df2c83c0-7605-11e7-bac6-a123d5f99863 >--35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6 >Content-Disposition: form-data; name="vocabWord" >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: 8bit > >arachnid >--35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6 >Content-Disposition: form-data; name="learnerGivenMediaLabels" >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: 8bit > >arachnid >--35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6 >Content-Disposition: form-data; name="mediaCategory" >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: 8bit > >IMAGE >--35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6 >Content-Disposition: form-data; name="mediaFile"; >filename="IMG_1573.JPG" >Content-Type: >Content-Transfer-Encoding: binary > ><actual file content, not shown here> >--35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6-- > > >[no cookies] > >Request Headers: >Connection: keep-alive >Content-Length: 2014691 >Content-Type: multipart/form-data; >boundary=35h2RHk7e5acZtT4mBtJXiR0LkVP4Gx7xHW6cbP6; charset=US-ASCII >Host: ecl-stage.mybluemix.net >User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_131) > > >This is for the larger file that fails. > >How do I set up a debit sampler? I don't see that in the list of >things I >can add to my test.
Sorry. That was the mail client being helpful by correcting my spelling. I meant the debug sampler. Felix > >Thanks, >Lisa > >Lisa Waugh >720-396-0112 >Fax: 720-396-0112 >Charlotte, NC > > > > > > > >From: Felix Schumacher <[email protected]> >To: JMeter Users List <[email protected]> >Date: 07/31/2017 01:15 PM >Subject: Re: Using HTTP Request to test POST to upload and store >a >file > > > >The images didn't make it through the mailing list. > >Can you post the test? I counted three images in the log, only. Can you > >add a debit sampler to check that your variables are correctly >initialized? > >Felix > > > > >Am 31. Juli 2017 18:20:42 MESZ schrieb Lisa Waugh <[email protected]>: >>Hi Felix, >>Here is my HTTP Request: >> >> >> >> >> >>I have the same http request set up to run 4 times. The only thing >I'm >> >>changing is the file name. >> >> >>I can run this same exact request in Postman on the same machine and >it >> >>work consistently so I don't think I have any firewall issues. >> >>I am running JMeter 3.1 r1770033 and Java >>java version "1.8.0" >>Java(TM) SE Runtime Environment (build pwa6480sr4fp5-20170421_01(SR4 >>FP5)) >>IBM J9 VM (build 2.8, JRE 1.8.0 Windows 10 amd64-64 Compressed >>References >>20170419_344392 (JIT enabled, AOT enabled) >>J9VM - R28_20170419_1004_B344392 >>JIT - tr.r14.java_20170419_344392 >>GC - R28_20170419_1004_B344392_CMPRSS >>J9CL - 20170419_344392) >>JCL - 20170420_01 based on Oracle jdk8u131-b11 >> >>I enabled debugging and captured the log >>2017/07/31 11:32:14 INFO - jmeter.engine.StandardJMeterEngine: >Running >> >>the test! >>2017/07/31 11:32:14 INFO - jmeter.samplers.SampleEvent: List of >>sample_variables: [] >>2017/07/31 11:32:14 INFO - jmeter.gui.util.JMeterMenuBar: >>setRunning(true,*local*) >>2017/07/31 11:32:14 INFO - jmeter.engine.StandardJMeterEngine: >>Starting >>ThreadGroup: 1 : Group for Admin >>2017/07/31 11:32:14 INFO - jmeter.engine.StandardJMeterEngine: >>Starting 1 >>threads for group Group for Admin. >>2017/07/31 11:32:14 INFO - jmeter.engine.StandardJMeterEngine: Thread > >>will continue on error >>2017/07/31 11:32:14 INFO - jmeter.threads.ThreadGroup: Starting >thread >> >>group number 1 threads 1 ramp-up 10 perThread 10000.0 >>delayedStart=false >>2017/07/31 11:32:14 INFO - jmeter.threads.ThreadGroup: Started thread > >>group number 1 >>2017/07/31 11:32:14 INFO - jmeter.engine.StandardJMeterEngine: All >>thread >>groups have been started >>2017/07/31 11:32:14 INFO - jmeter.threads.JMeterThread: Thread >>started: >>Group for Admin 1-1 >>2017/07/31 11:32:15 INFO - jmeter.services.FileServer: Stored: >>c:\ibm\apache-jmeter-3.1\bin\inputs\IMG_1573.JPG >>2017/07/31 11:32:34 INFO - jmeter.services.FileServer: Stored: >>c:\ibm\apache-jmeter-3.1\bin\inputs\IMG_4536.JPG >>2017/07/31 11:32:44 INFO - jmeter.services.FileServer: Stored: >>c:\ibm\apache-jmeter-3.1\bin\inputs\dsc00010.jpg >>2017/07/31 11:33:15 INFO - jmeter.threads.JMeterThread: Thread is >>done: >>Group for Admin 1-1 >>2017/07/31 11:33:15 INFO - jmeter.threads.JMeterThread: Thread >>finished: >>Group for Admin 1-1 >>2017/07/31 11:33:15 INFO - jmeter.engine.StandardJMeterEngine: >>Notifying >>test listeners of end of test >>2017/07/31 11:33:15 INFO - jmeter.gui.util.JMeterMenuBar: >>setRunning(false,*local*) >> >>I'll capture a thread dump and send it later today. >> >>thanks, >>Lisa >> >>Lisa Waugh >>Performance Test Engineer >>IBM Watson Education >>+1 (720) 396-0112 >>+1 (704) 907-7008 m >>[email protected] >> >> >>Watson Education >> >> >> >>----- Original message ----- >>From: Felix Schumacher <[email protected]> >>To: [email protected] >>Cc: >>Subject: Re: Using HTTP Request to test POST to upload and store a >file >>Date: Sat, Jul 29, 2017 5:57 AM >> >>Am 28.07.2017 um 13:30 schrieb Felix Schumacher: >>> >>> Am 27. Juli 2017 23:50:20 MESZ schrieb Lisa Waugh ><[email protected]>: >>>> I'm trying to use HTTP Request to upload and store a file via a >POST >>to >>>> a >>>> REST api. I can't use HTTP Raw because it is an https request. >>>> >>>> I can successfully accomplish this with smaller files (<= 500 kb). >>>> With >>>> larger files (>= 582 kb) it fails with a 500 Error: Connection >>error. >>>> I >>>> know it is not an issue with my REST api because I can use POSTMAN >>and >>>> successfully post the same file. >>>> >>>> I've increased the Connect timeouts and Response timeouts to >>80000000 >>>> msecs. >>>> >>>> These are images or audio recordings, not text files. >>>> >>>> No errors appear in the jmeter logs. >>> I think I can confirm this. Is the requests duration longer than >>expected? >>> >>> Could you take a threaddump while the request is waiting? >>Strangely enough, I can't reproduce it at home with my linux setup. >> >>How do you setup the http sampler to send the file? Which version of >>JMeter and Java are you using. Is this between different computers, >>could there be a firewall that interferes with the requests? >> >>Can you try to set the logging of JMeter to something more detailed >>like >>debug? >> >>Felix >>> >>> Felix >>> >>>> Is there a setting controlling the size somewhere I haven't found? >>Is >>>> there anyway to get this to work successfully? >>>> >>>> Lisa Waugh >>>> 720-396-0112 >>>> Fax: 720-396-0112 >>>> Charlotte, NC >>> >--------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [email protected] >>For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
