KY
jsrsampler 'inline jsr sampler', inline: '''\
log.info("Create jmeter variable in inline script, thread=${Thread.currentThread().getId()}")
vars.put('var_inline_variable', 'INPUT DATA FOR NEXT PREPROCESSOR')
'''.stripIndent()
Size: a a a
KY
jsrsampler 'inline jsr sampler', inline: '''\
log.info("Create jmeter variable in inline script, thread=${Thread.currentThread().getId()}")
vars.put('var_inline_variable', 'INPUT DATA FOR NEXT PREPROCESSOR')
'''.stripIndent()
ΙΤ
АФ
ΙΤ
NN
KY
KY
//Sets the pacing length based on the last requests response time. 4500 is the time in ms
Long pacing = 4500 - prev.getTime();
//If the response time is less than 4500 ms, set the delay value to myDelay
if ( pacing > 0 )
{
//iPacing is equal to the int value of pacing if pacing is not equal to null, otherwise iPacing is null
Integer iPacing = pacing != null ? pacing.intValue() : null;
log.info(String.valueOf(iPacing));
vars.put("myDelay", String.valueOf(iPacing));
return iPacing;
}
//The response time is greater than or equal to 4500 ms, set myDelay to 0
else
{
vars.put("myDelay", "0");
return 0;
}
ΙΤ
ΙΤ
KY
LT
СФ
LT
СФ
СФ
LT
S
СФ