JMeter 接口自动化 jenkins 构建命令

创建结果子目录,便于管理执行结果

mkdir $WORKSPACE/result/html/$resultIndex
mkdir $WORKSPACE/result/jtl/$resultIndex
mkdir $WORKSPACE/result/log/$resultIndex

jmeter 脚本执行命令

$jmeterExecutePath/jmeter.sh -n -t $WORKSPACE/script/$jmeterScriptName.jmx -l $WORKSPACE/result/jtl/$resultIndex/$jmeterScriptName.jtl -j $WORKSPACE/result/log/$resultIndex/$jmeterScriptName.log

jmeter 报告生成命令

$jmeterExecutePath/jmeter.sh -g $WORKSPACE/result/jtl/$resultIndex/$jmeterScriptName.jtl -o $WORKSPACE/result/html/$resultIndex -j $WORKSPACE/result/log/$resultIndex/${jmeterScriptName}-report.log

你可能感兴趣的:(JMeter 接口自动化 jenkins 构建命令)