jmeter configuration and jekins

jmeter and jekins need linux system are installed in order the following steps

Construction of this election execute shell

#!/bin/bash
pwd
ls

The script name scalar assignment, new projects need to manually adjust

jmxname="ORCL_S02_JXJJ_Bouns_QueryAndChuli"
echo ${jmxname}

The implementation of the performance plan, HTML report generation

jmeter -n -t script/${jmxname}.jmx -l /data/www/jtl/OESv5.1.3/${jmxname}.jtl -e -o /data/www/html/OESv5.1.3/${jmxname}

Definition of secondary directory, new product versions require manual adjustment

urlpath="http://10.0.62.42:8088/html/OESv5.1.3/"

Defined time

dt=date +%Y_%m_%d_%H_%M_%S

echo ${dt}
echo ${urlpath}

Rename the current file results jtl

cd /data/www/jtl/OESv5.1.3/
mv ${jmxname}.jtl ${jmxname}_${dt}.jtl

Rename the current directory HTML report

cd /data/www/html/OESv5.1.3/
mv ${jmxname} ${jmxname}_${dt}

Print this URL report

echo ${urlpath}${jmxname}_${dt}

Guess you like

Origin blog.51cto.com/4085457/2426574