I developed a rest server, and I put it to run in localhost, and I'm trying to perform tests with JMeter, sending requests posts and gets (depends of called method).
I already send to Rest server and got result with JMeter in simple post requests, get requests, sending files with post, and sending a Json with post.
But I don't know how to send a Form-UrlEncoded
object to server. My Rest server consumes application/x-www-form-urlencoded
, and I need to send 3 String parameters.
There's some way to set the MimeType
for every parameter and perform the test ?
I'm using Jmeter 2.7
I solved this by disabling the option:
use multipart/form-data for post
And enabling:
redirect automatically
Instead of:
follow redirect
The parameters I put normally in the table "Send parameters with the Request" with each respective names.
Have you tried to save your test using BadBoy or JMeter Proxy to see what your application actually sends?
To see what happens under the hood you can also use FireBug
if you're using FireFox or Ctrl+Shift+i
if you're on Chrome.