jmeter+ant+jenkins+mac 报告优化(三) 使用命令行执行jmeter方式生成多维度的图形化HTML报告

  • 1、在构建中填写如下命令:

  • 2、start.sh文件的内容
cd /Applications/apache-jmeter-3.0/bin/                           
CURTIME=`date +%Y%m%d%H%M`
./jmeter -n -t /Applications/apache-jmeter-3.0/testScript/51.jmx -l 
/Applications/apache-jmeter-3.0/testScript/51_${CURTIME} -e -o /Applications/apache-jmeter-3.0/report/report_${CURTIME}
rm -rf /Applications/apache-ant-1.9.7/report/html/* 
if [ -d "/Applications/apache-jmeter-3.0/report/report_${CURTIME}" ]; then
cp -rf /Applications/apache-jmeter-3.0/report/report_${CURTIME}/* /Applications/apache-ant-1.9.7/report/html/
fi
  • 3、生成的报告如下:

原文地址:https://www.cnblogs.com/chengchengla1990/p/6308753.html