Apache Jmeter + Random Double

Posted by Filipe Batista on Server Fault See other posts from Server Fault or by Filipe Batista
Published on 2012-06-27T14:02:02Z Indexed on 2012/06/27 15:18 UTC
Read the original article Hit count: 687

Filed under:

Is it possible to generate random double numbers in JMeter?

I tried to use the Random in the config element where i have defined the

Minimum value: 47.9999 (RND1)

Maximum value: 30.9999 (RND2)

Then in the selected Prepared Selected Statement i placed this values:

Parameter values:${RND1},${RND1},${RND2}

Parameter types:DOUBLE,DOUBLE,DOUBLE

But it seems not work, because i receive an error:

Response message: java.sql.SQLException: Cannot convert class java.lang.String to SQL type requested due to java.lang.NumberFormatException - For input string: "${RND1}"

© Server Fault or respective owner

Related posts about jmeter