How to configure api http request with load testing

16 views Asked by At

I want to test hotel booking application api in jmeter. I want to test this application with first 2 search api with increasing load and then decreasing the load with normal booking api for bookin process. How can I configure load test for each http request under testplan?

I have created normal testplan add all the api under the testplan and added the test plan configuration

1

There are 1 answers

0
Ivan G On

If your question is about how to configure JMeter virtual users for simulating increasing and decreasing load you can go for Open Model Thread Group:

For example this setup:

rate(0/sec) random_arrivals(1 min) rate(10/sec)random_arrivals(1 min) rate(10/sec)rate(10/sec) random_arrivals(1 min) rate(0/sec)

will result into the following workload model:

enter image description here

See Rethinking Load Configuration With JMeter’s Open Model Thread Group article for more information and examples of setting various workload models like spikes