1

I have a http request with a BSF postprocessor script where I try to collect some data from the request. I have 10 users who call this request. I want to add a small delay between each request and I tried using a constant timer. The problem I have is, sometimes 2 or 3 HTTP requests are executed at the same time and that causes some logic disturbances in my postprocessor script. I tried using a constant throughput timer and still I end up with the same result. What is the correct way to send requests at constant time intervals?

user3920295
  • 889
  • 2
  • 13
  • 31
  • Are you talking about threads when you say 'users'? if this is the case, I think that setting a ramp-up period should work for you. Check [this other question](http://stackoverflow.com/questions/17288545/jmeter-understanding-ramp-up) – Mario Trucco Aug 17 '15 at 19:34
  • Can you be more specific about "logic disturbances" in the post processor? This seems to be an issue in the first place. – vernjan Aug 18 '15 at 12:54

2 Answers2

1

A timer is specific to each thread so what you are tring to do will not work.

If you want to ensure your query is only executed by 1 user then use Critical Section Controller:

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
0

Thanks for the responses. I was finally able to achieve it just by increasing the ramp-up time. Thanks Mario for your quick response.

user3920295
  • 889
  • 2
  • 13
  • 31
  • I don't think it's the right way to do it, as if your response takes time, you will end up having 2 requests sent at the same time, not also if your test lasts, you will end up having 2 or more requests triggered at the same time – UBIK LOAD PACK Aug 21 '15 at 09:05