Skip to content

Defining number of threads as a JMeter property #260

Answered by rabelenda
andreygrigoriev asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, thank your for the feedback, is really nice to hear from people enjoying the library.

In the user guide we didn't include such specific scenario, but yes, you can use them.

You can define properties as detailed in this user guide section, and then reference them like this:

Eg:

threadGroup()
  .rampTo("${__P(THREADS)}", Duration.Zero)
  .holdIterating("${__P(ITERATIONS)}")
  .children(
    ...
  ) 

We didn't include yet an option like threadGroup("${__P(THREADS)}", "${__P(ITERATIONS)}") since the scenario is not the most common one (from the ones we have seen) and only add to JMeterDSL class, methods for the most used scenarios (keeping the list as short as possible short, but yet i…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rabelenda
Comment options

You must be logged in to vote
1 reply
@rabelenda
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants