Reputation: 151
Here is what i tried in the HTTP sampler:
Web Server name <host>
HTTP request PATH <host>
In the send parameters with the request section - I understand we can add as many parameter as we want. Here is what I tried:
{ "customer": {"Name": "TestID1"} }
{ "customer": {"Name": "TestID2"} }
When I run the test, I see TestID1 in my host, but I dont see the TestID2 customer. Can you please guide me to understand how to do send multiple POST request? Thank you
Upvotes: 1
Views: 7754
Reputation: 777
What you need is a "User Parameters" Pre Processor. http://jmeter.apache.org/usermanual/component_reference.html#User_Parameters
Add variable name and define User_1 with value "TestID1" and User_2 with value "TestID2". In your HTTP Sampler use parameter customer = ${name} once.
Test plan
Thread group (2 Threads)
+ User Parameters
+ HTTP Sampler
Upvotes: 3