I've defined a variable in JMeter.
But when I try to access the variable from Groovy
script it gives 53
instead of 5
, if I put 10
it throws an exception
javax.script.ScriptException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '10' with class 'java.lang.String' to class 'int'
Here is my JSR223 Sampler script
int user_number = vars.get("USER_COUNT")
log.info('Total use is '+user_number)