当前位置:网站首页>[JMeter] shell script automatically executes JMeter
[JMeter] shell script automatically executes JMeter
2022-06-22 10:39:00 【bulabula2022】
#!/bin/bash
# Force to kill JMeter process
killJMeter()
{
pid=`ps -ef|grep jmeter|grep java|grep ${jmx_filename}|awk '{print $2}'`
echo "jmeter Id list :$pid"
if [[ "$pid" = "" ]]
then
echo "no jmeter pid alive"
else
kill -9 $pid
fi
}
# You need to define... In the system variable jmeter The location of the root directory , as follows
export jmeter_path="/home/qa/jmeter/apache-jmeter-5.3/bin"
export jmx_Name="Scripts/SingleInterfacePressureTest-Web1.jmx"
export jmx_filename="SingleInterfacePressureTest-Web1.jmx"
# Initial number of users
Thread_num=5
# Gradient pressurization number
LoadUser=5
# The duration of the
duration=60
while ((Thread_num<=15))
do
currentTime=`date "+%Y%m%d-%H:%M:%S"`
echo $currentTime
echo "JMeter Silent piezometry s User volume :${Thread_num}"
cd ${jmeter_path}
./jmeter.sh -JthreadCount=${Thread_num} -Jduration=${duration} -n -t ${jmeter_path}/${jmx_Name}
let Thread_num=Thread_num+${LoadUser}
sleep 10
killJMeter
done
边栏推荐
- How harmful is the code signature certificate once it is leaked
- HMS Core新闻行业解决方案:让技术加上人文的温度
- It was exposed that more than 170million pieces of private data had been leaked, and Xuetong responded that no clear evidence had been found
- 软件项目管理 8.3.敏捷项目质量活动
- 【无标题】#修复日志#
- Zuckerberg's latest VR prototype is coming. It is necessary to confuse virtual reality with reality
- IPO Configuration Guide
- Kirin software and Geer software focus on the development of network data security
- [this tool, combined with JMeter, will increase your work efficiency by at least 80%, which is highly recommended]
- Byte 2: why is the key of the redis master node expired, but the expired data is still read from the secondary node? How to solve it?
猜你喜欢

IPO Configuration Guide

批量创建/删除文件、文件夹、修改文件名 后缀名

追更这个做嵌入式的大佬

Cobalt Strike 从入门到入狱(三)

ONES 出席首届「精益软件工程大会」,分享效能改进实践

Solend abolishes the proposal to "take over the giant whale" and liquidates the "bomb"

It was exposed that more than 170million pieces of private data had been leaked, and Xuetong responded that no clear evidence had been found

Gartner表示:云数据库发展强劲,但本地数据库仍然充满活力

Laravel 中类似 WordPress 的钩子和过滤器

今天,SysAK 是如何实现业务抖动监控及诊断?&手把手带你体验Anolis OS|第25-26期
随机推荐
After using Matplotlib for so long, I didn't know that the data could move
Three months to successfully "turn over" the software project!
Pycharm调试卡住,出现connected
Bluetooth, WiFi, ZigBee, Lora, Nb lot, call signal, network signal 4G
定金预售的规则思路详解
如何进行高效简洁的电子文档管理
符合我公司GIS开源解决方案的探讨
大学生期末考试SQL语句
无线802.1x认证简介及配置方法
[deep learning] tensorflow, danger! Google itself is the one who abandoned it
2022陕西省安全员C证考试题库模拟考试平台操作
Cache penetration tool "Bloom filter"
Use of libevent
Gartner表示:云数据库发展强劲,但本地数据库仍然充满活力
Foreign trade topic: foreign trade e-mail marketing template
Byte 2: why is the key of the redis master node expired, but the expired data is still read from the secondary node? How to solve it?
原生JS动态添加和删除类
每日一题day5-1636. 按照频率将数组升序排序
Cobalt strike from entry to imprisonment (III)
Backbone! Youxuan software was selected as one of the top 100 digital security companies in China in 2022