You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Jack <ja...@gmail.com> on 2017/05/18 12:13:46 UTC

Change value of a constant throughput timer during a test using bean shell preprocess

Change value of a constant throughput timer during a test using bean shell
preprocess



--
View this message in context: http://www.jmeter-archive.org/Change-value-of-a-constant-throughput-timer-during-a-test-using-bean-shell-preprocess-tp5725656.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.

Re: Change value of a constant throughput timer during a test using bean shell preprocess

Posted by "glinius@live.com" <gl...@live.com>.
First of all defined throughput in the Constant Throughput Timer using  __P()
function <https://jmeter.apache.org/usermanual/functions.html#__P>   like 


> ${__P(throughput,1)}

Once done you will be able to amend the throughput from  Beanshell Test
Elements
<https://www.blazemeter.com/blog/queen-jmeters-built-componentshow-use-beanshell>  
using the following code:


> props.put("throughput", "desired_throughput_value");

Moreover, you will be able to change throughput externally while your script
is running via  Beanshell Server
<http://jmeter.apache.org/usermanual/best-practices.html#beanshell_server>  






--
View this message in context: http://www.jmeter-archive.org/Change-value-of-a-constant-throughput-timer-during-a-test-using-bean-shell-preprocess-tp5725656p5725657.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.