-1

I have created a beanshell script in beansheill Timer where I am adding delay between requests. That delay is calculated based on a csv file where I have timestamps all requests.

Now problem I am facing is Within a thread group If one request is taking execution time more than the delay then second request can't be executed. It would have to wait until previous request has been served.

So to solve such problem, I would have to create a new thread group and execute it programmatically. Can someone please help me in this?

1 Answers1

0

I don't think you can create and add a Thread Group in JMeter runtime while the script is executing

So the options are in:

  1. Execute the requests programmatically using Future Tasks and HTTP Components and modify metrics from script

  2. Set response timeout programatically, this is where the setting lives in the HTTP Request sampler (if your test assumes HTTP protocol)

    enter image description here

    this way the request won't last longer than the anticipated value

  3. Since JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting so it looks like you should reconsider the scripting language in any case, Groovy performance is much better and it offers a lot of enhancements on top of normal Java SDK

Dmitri T
  • 159,985
  • 5
  • 83
  • 133