如何在变量中获取JMX Jmeter文件名的名称 [英] How to get the name of JMX Jmeter filename in a variable
本文介绍了如何在变量中获取JMX Jmeter文件名的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在侦听器中使用jmeter测试脚本(.jmx)的名称,以便以动态方式生成结果文件.您能告诉我用于此目的的Jmeter变量是什么吗?
I want to use the name of the jmeter test script (.jmx) in a listener so as to generate the result file in a dynamic way. Can you please tell me what is the Jmeter variable for that purpose?
使用了无效的$ {fileName}
Used ${fileName} which didn't work
推荐答案
保存测试计划名称的变量为${__TestPlanName}
The variable that holds the test plan name is ${__TestPlanName}
参考: http://jmeter.apache.org/usermanual/functions.html# __TestPlanName
这篇关于如何在变量中获取JMX Jmeter文件名的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文