創(chuàng)建結果子目錄,便于管理執(zhí)行結果
mkdir $WORKSPACE/result/html/$resultIndex
mkdir $WORKSPACE/result/jtl/$resultIndex
mkdir $WORKSPACE/result/log/$resultIndex
jmeter 腳本執(zhí)行命令
$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