我正试图在Blazemeter上从Jenkins执行PT。我能够成功地做到这一点。现在我想要jenkins内部编号在blazemeter报告中显示。我正在做以下事情
1. I am adding sample_variable = buildnumber in user.properties file and uploading the same in blazemeter.
2. In the jmx script as part of test plan I am adding -
buildnumber ${__P(buildnumber,0)}
3. In Jenkins blazemeter plugin i am providing Session properties = -Jbuildnumber=${BUILD_NUMBER}
我能够在Jenkins Logs中看到buildnumber值,但我无法在JTL文件和Blazemeter中获取日志。请建议还需要哪些步骤。
此外,我尝试了以下解决方法,但同样也无法正常工作。
To add it to the JTL, you can add a "Once only controller" with a dummy sampler, and call that sampler buildnumber ${__P(buildnumber,0)}.
This way, this label will run only once, and will appear in the JTL file.
请帮忙。
答案 0 :(得分:0)
要将内部版本号添加到jtl,您可以使用属性buildnumber更改jtl文件名,方法是将侦听器的Filename
更改为例如
results-${__P(buildnumber,0)}.jtl