当前位置:网站首页>JMeter common commands

JMeter common commands

2022-06-13 07:38:00 _ seven seven

JMeter Common commands

Start command

start-up jemeter Script for Commands that generate logs and results

jmeter -n -t /home/test.jmx -l /home/amt/1500.jtl -e -o  /home/amt/rs

example:

/home/test/apache-jmeter-5.4/bin/jmeter -n -t /home/test/rs/text.jmx -l /home/test/1000.jtl -e -o  /home/test/rs

Configure environment variables

vi /etc/profile   -- Append at the end of file content 

Mode one :

JAVA_HOME=/lyh/java/jdk1.8.0_221     --( Customize jdk The installation directory )
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME
export PATH
export CLASSPATH

Mode two :

export JAVA_HOME=/home/lyh/jre1.8.0_301
export JRE_HOME=${JAVA_HOME}/jre
export PATH=${JAVA_HOME}/bin:$PATH
export CLASSPATH=.:{
    JAVA_HOME}/lib:${JRE_HOME}/lib

shell Common commands

chmod 777  target_file     --  To give permission 
tar xzvf target_file       --  decompression 
source /etc/profile        --  Make profile effective 
java -version 			   --  Check java edition 
jmeter --version

rz -be target_file         --  Upload folder 

mkdir 					   --  Create folder 
sz 						   -- Download command 
zip -r -q   Target name     Packaged directory / file             -- Packaging compression 

mv test1-njzj\(1\).jmx test1-njzj.jmx    -- Change the name 
mv test1-njzj.jmx /web/jmeter/   	     -- Mobile directory 

chown root:root test1-njzj.jmx  		 -- Modify the permissions 
chmod a+x test1-njzj.jmx  				 -- Modify the permissions 

Springboard machine

Springboard machine created Directly in the springboard ssh ip

Login script The springboard machine automatically logs in the account and password

$ ssh 113.xxx.200.90
password: xxxc.

Jmeter Script

${
    __RandomString(,,)} Random string 
原网站

版权声明
本文为[_ seven seven]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270547235328.html