4

I need to send many http requests (E.g: 500 http request) with different data (E.g: 500 data) at the same time. How can I do it?

Example: abc.com/path?param1=xyz&param2=qwe

'xyz' and 'qwe' are different with each http request. Method: post

Please help me! Thanks.

1
  • Do you mean you want to send 500 different requests from one sampler at the same time?
    – Buaban
    Commented Aug 23, 2016 at 3:48

2 Answers 2

2

Given you have 500 threads in Thread Group it shouldn't be a problem to send 500 requests at the same time, all you need is:

  1. Depending on where these xyz and qwe values live you can use either __StringFromFile() or __CSVRead() functions if the values are in file or JDBC PreProcessor if they're in a database instead of hard-coded values in the request.

  2. Add a Synchronizing Timer as a child of your request and set Number of Simulated Users to Group by to 500 - this way JMeter will fire the requests at exactly the same time.

1

Yes, it is possible to send different data in each request.

All you need to do is to have the data into a csv file with headers param1,param2 and followed by data in each row.

In the test, use the csv data and read it and pass the values to the http request.

For more details, please refer the below documentation: https://guide.blazemeter.com/hc/en-us/articles/206733689-Using-CSV-DATA-SET-CONFIG

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.