一、Job任务创建
- 创建job
- 运行参数配置
- 构建脚本
构建步骤选择shell执行
##!/bin/bash
echo "starting..."
#脚本参与引入通过构建参数引入
echo $threadCount
echo $Time
echo $result
basedir=/opt/Test/ECIF
jmeter_homer=/opt/Jmeter
cd $basedir
$jmeter_homer/bin/jmeter.sh -n -JthreadCount=$threadCount -JDurationTime=$Time -t ECIF.jmx -j $PWD/${result}_test_log.log -l $PWD/result/${result}_test.jtl -e -o $PWD/result/${result}_HTML_test
echo "ending..."