如何动态更改Apache JMeter仪表板报告标题

huangapple go评论61阅读模式
英文:

How to change Apache Jmeter Dashboard report title dynamically

问题

我正在努力实现将Apache JMeter仪表板报告的标题动态地设置为应用程序/API名称 + 应用程序/API版本,并从API调用中提取版本信息。

我在非GUI模式下运行我的测试
如何动态更改Apache JMeter仪表板报告标题

JMeter版本为5.3

尝试通过JSR223 PostProcessor进行设置
如何动态更改Apache JMeter仪表板报告标题

然而,发现它并没有起作用
如何动态更改Apache JMeter仪表板报告标题

我想知道是否有可能以这种方式在运行时动态更改它。

非常感谢您提供的任何输入。

英文:

I am struggling to set Apache Jmeter Dashboard report title dynamically as Application/API name + Application/API version, extracting the version from an API call.

Running my test from non-gui mode
如何动态更改Apache JMeter仪表板报告标题

Jmeter version 5.3

Have tried setting it through JSR223 PostProcessor
如何动态更改Apache JMeter仪表板报告标题

However, found that it isn't working
如何动态更改Apache JMeter仪表板报告标题

I was wondering if it is even possible that way dynamically (changing it at run time)

Any inputs much appreciated.

答案1

得分: 1

截止到 JMeter 版本 5.3,这是不可能的,因为报告生成器的初始化是在运行测试之前完成的:

初始化:

测试启动:

英文:

As of JMeter up to 5.3 this is not possible as initialization of the report generator is done before running the test:

Init:

Test start:

huangapple
  • 本文由 发表于 2020年8月10日 16:29:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/63336674.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定