JMeter - 如何读取属性文件 [英] JMeter - How to read properties file
本文介绍了JMeter - 如何读取属性文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 JMeter 项目是这样的.
My JMeter project is like this.
project
|
----> test (folder containing .jmx)
|
----> properties (folder containing .properties files)
在非 gui 模式下,我可以通过命令行将 .properties 文件名传递给测试 - 我知道.
In the non-gui mode, I can pass .properties file name to the test via commandline - which I know.
但是如何在调试时以 GUI 模式读取此属性文件?我不想将它们放在 bin 文件夹中.有没有其他办法?像一个配置元素?编写自定义配置元素来读取属性文件容易吗?
But how can I read this property file in GUI mode while debugging? I do not want to place them in the bin folder. Is there any other way? like a config element? Is it easy to write a custom config element to read a property file?
推荐答案
我也有同样的需求.编写配置元素很容易.
I too had a same requirement. It is easy to write a config element.
参考这个.http://www.testautomationguru.com/jmeter-属性文件阅读器-a-custom-config-element/
这篇关于JMeter - 如何读取属性文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文