jenkins 下载的插件:Performance Publisher and HTML Publisher
jmeter -n -t test.jmx(脚本的绝对路径) -l result.jtl(自定义的名称) -e -o \tmp\result_report(测试报告的绝对路径)
如果这个命令申城测试报告失败因为在安装jmeter的时候 windows 注册表缺少了一项(虽然不会存信息,但是不能缺少),需要手动创建
Windows搜索框搜索 regedit
找到HKEY_LOCAL_MACHINE 一> Software 一> JavaSoft 一> 新建 Prefs 项
这个是加载jenkins中构建执行build的命令
D:/software/apache-jmeter-5.1.1/bin/jmeter -n -t D:/software/apache-jmeter-5.1.1/test/用户端/用户端Api--商品.jmx -l D:/software/apache-jmeter-5.1.1/test/workspace/test.jtl -j D:/software/apache-jmeter-5.1.1/test/workspace/jmeter.log -e -o D:/software/apache-jmeter-5.1.1/test/HtmlReport
集成ant 在https://ant.apache.org/bindownload.cgi下载ant