TransWikia.com

Is it possible create more threads that specified in ThreadGroup in Jmeter?

Software Quality Assurance & Testing Asked on November 30, 2021

Is it possible create more threads that specified in ThreadGroup in Jmeter? I need to make a test with 10 threads and 10 iterations with a random pause of 2 to 5 seconds between requests. As I know timers are for requests, Ramp up is for threads, but I can’t make it work correctly with ${__Random(2,5)}. How can I solve this case?
Thanks in advance!

2 Answers

I need to make a test with 10 threads and 10 iterations with a random pause of 2 to 5 seconds between requests

Just add a Constant Timer at the same level as your request Samplers live and put the __Random() function there. Just multiply the values by 1000 because Constant Timer uses milliseconds.

enter image description here

More information: A Comprehensive Guide to Using JMeter Timers

Answered by Dmitri T on November 30, 2021

Im not sure about if this will help, since your looking for adding more thread but based in your question, that you can't make it work with ${__Random(2,5)}. I will suggest try adding Uniform Random Timer instead.
This will have two 2 parameter.

  • Random Delay Maximum: Where it will decide the max random pause time
  • Constant Delay Offset: This is fixed delay time which will be added in random delay.

Answered by ky-chan on November 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP