You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by apc <ap...@apc.kg> on 2011/03/31 13:38:40 UTC

Re: fileupload test with JMeter

My opinion that is is JMeter's issue, but your case is pretty special, and
you need a smart sampler which will read file and write its contents into
network. I know no existing sampler that can do it, but it can be
implemented easily (by me, at least).

--
View this message in context: http://jmeter.512774.n5.nabble.com/fileupload-test-with-JMeter-tp4267154p4273202.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: fileupload test with JMeter

Posted by apc <ap...@apc.kg>.
You should leave only file path in Request Data, just "F:/test/Gagan1" and
nothing else. Full request will be read from that file including "POST...",
HTTP headers etc.

--
View this message in context: http://jmeter.512774.n5.nabble.com/fileupload-test-with-JMeter-tp4267154p4275152.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: fileupload test with JMeter

Posted by apc <ap...@apc.kg>.
Ok!

1. Download latest snapshot 5 here:
http://code.google.com/p/jmeter-plugins/downloads/list?can=1
2. Start jmeter with command line  jmeter -J"directFileSender=1"
3. Add thread group and HTTP Raw Request to your test plan. For debug, set
up thread group to make single iteration in single thread
4. Set up Raw Request host,port etc, but specify raw request file path in
Request Data. Note that you need to have correct raw request file, sniff it
with Wireshark
5. Add View Results Tree to see if it works

Then try running test plan, let's see if it works. If it works, you can try
setting more threads and see if it works without OOM.



--
View this message in context: http://jmeter.512774.n5.nabble.com/fileupload-test-with-JMeter-tp4267154p4274980.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: fileupload test with JMeter

Posted by apc <ap...@apc.kg>.
Seems you using Windows...
Just ask notepad to open that file. 
I saved that file from Wireshark network sniffer, recorded POST request and
saved full request bytes into raw file.

--
View this message in context: http://jmeter.512774.n5.nabble.com/fileupload-test-with-JMeter-tp4267154p4274858.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: fileupload test with JMeter

Posted by apc <ap...@apc.kg>.
Well, I wrote a file reader-sampler which gets filename and send those file
contents via TCP socket. 
File must contain full HTTP request, as in example here: 
http://jmeter-plugins.googlecode.com/svn-history/trunk/test/kg/apc/jmeter/samplers/testSendFile.raw

Would you like to test it that way?

--
View this message in context: http://jmeter.512774.n5.nabble.com/fileupload-test-with-JMeter-tp4267154p4273501.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org