I'm doing performance testing for a group of APIs called in a particular page. Currently, all the API requests are run in the order in which I've added them in the script. But when observing the waterfall part in the network tab of developer tools, some of the APIs are called only after a specific API is called and the API receives a response. The problem is, I cannot add any timer to it, because the delay is not constant and varies from time to time. For e.g. refer to the waterfall part of the API calls in the below image:
screenshot of API calls in network tab
Here, the search API is called only after the autoComplete API is called and it gets an response. The same for contentUsers and count APIs (depends on the response from search API and has to wait until then). Then finally, fetch API is called in the end. I want to achieve the same in my JMeter script, is it possible?