Throughput Controller:

Jun Zhuang <[email protected]> Thu, 22 Feb 2024 21:56:25 +0000 (UTC)
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <[email protected]>
Hi,
I am trying to create variable throughput using throughput controller with a variable like this


but it keeps throwing the following exception, just wonder if it's not designed to be used like that? But using variable with a loop controller works without any problem.



Following is how I set the variable:import java.util.Random

int iRand = new Random().nextInt(3);
vars.putObject('sRandomThroughput', (float)iRand);


Thanks,Jun


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
1708638683953blob.jpg (image/png, 36.9 KB) - not displayed
1708638800247blob.jpg (image/png, 4.5 KB) - not displayed