JMeter-如何读取属性文件 [英] JMeter - How to read properties file

查看:547
本文介绍了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- property-file-reader-a-custom-config-element/

这篇关于JMeter-如何读取属性文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆