本文介绍了覆盖jmeter.properties的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在不关闭和重新启动JMeter的情况下重新读取jmeter.properties?
Is it possible to re-read jmeter.properties without closing and restarting JMeter?
也许会触发该过程的其他任何类?
Maybe any additional class that will trigger this process?
有时我需要使用属性的值,并且每次重新启动JMeter都不方便,所以我想使这一过程自动化.
Sometimes I need to play with a property's values, and it is not convenient to restart JMeter every time, so I'd like to automate this process.
推荐答案
无需从文件中重新读取jmeter属性-jmeter具有足够的内置功能来读取/设置属性值.
至少要满足以下条件:
There is no need to re-read jmeter properties from file - jmeter has enough built-in functionality to read/set values of properties.
At least the following below:
- jmeter 功能: _ setProperty(), _property(), __P ;
- 道具-JMeterProperties(类java.util.Properties)-访问来自beanshell代码;
- 属性显示.
- jmeter functions:_setProperty(),_property(),__P;
- props - JMeterProperties (class java.util.Properties) - to access from beanshell code;
- Property Display.
还要查看以下内容以获取更多信息和示例:
Look also into the following for more info and examples: