问题
Is it possible to generate 'Random number' variables in JMeter?
- I have recorded a user journey
- I have imported the journey into JMeter
- I have to type in a unique 4digit id within my user journey test case
- Its default to 2323 at the moment in jmeter
Is there a way of generating a random 4didgit number? For example thread1: ID: 2323 thread2: 3334 thread3: 5643
Please refer to images below:
回答1:
Use Random JMeter function
${__Random(0000,9999)}
The random function returns a random number that lies between the given min and max values.
- Third parameter can be used as a variable name to save random value
来源:https://stackoverflow.com/questions/45328356/generate-random-number-variables-in-jmeter