Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
98 views
in Technique[技术] by (71.8m points)

java - Define a random value in JMeter from double values

I'm getting a response from JSON in string format like "15703.80" and 398166.00. Now I need to define randomly value using them.

${__Random(,,)} doesn't (number at this function needs to be Integer).

question from:https://stackoverflow.com/questions/65904653/define-a-random-value-in-jmeter-from-double-values

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can concatenate __Random to get double format:

${__Random(1,999999,)}.${__Random(00,99,)}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...