简体   繁体   English

Azure Devops + JMeter-总是生成html报告吗?

[英]Azure Devops + JMeter - Always generate html report?

I have an JMeter script which: 我有一个JMeter脚本:

  • Consumes sitemap.xml for my site 消耗我网站的sitemap.xml
  • Requests all pages 请求所有页面

I have specified a custom user.properties file which has this line within it: 我指定了一个自定义user.properties文件,其中包含以下行:

jmeter.reportgenerator.exporter.html.property.output_dir=report

I am attempting to schedule this to run nightly with Azure DevOps JMeter task ( https://go.microsoft.com/fwlink/?LinkId=784929 ). 我试图将其安排为与Azure DevOps JMeter任务( https://go.microsoft.com/fwlink/?LinkId=784929 )每晚运行。

My question is: How can I force the user.properties file to always generate an HTML report of the outcome? 我的问题是:如何强制user.properties文件始终生成结果的HTML报告? I want to store this as a build artifact and schedule this to run nightly. 我想将其存储为构建工件,并将其安排为每晚运行。 As of right now, it appears that the Azure Build job does not allow me to pass command line parameters to JMeter nor does it allow me to specify that I want an HTML report generated. 截至目前,Azure Build作业似乎不允许我将命令行参数传递给JMeter,也不允许我指定要生成HTML报告。 Is there another way to force the HTML report to generate? 还有另一种方法可以强制生成HTML报告吗?

Using VSTS, it is not possible and anyway it will be discontinued by Microsoft. 使用VSTS是不可能的,并且无论如何它将由Microsoft 终止

I would suggest using Maven and jmeter-maven-plugin . 我建议使用Mavenjmeter-maven-plugin

The goal will be: 目标将是:

mvn clean verify mvn clean验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM