Jmeter 自动循环执行,逐步加压

set PRO_DIR=%~dp0
set loop=1
set rampup=0
set durTime=60
::For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
::For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
for /f "delims=" %%a in ('wmic os get localdatetime /value') do set "%%a"
set time=%localdatetime:~0,14%

 

cd "D:\apache-jmeter-5.1.1-ant-all plugins\apache-jmeter-5.1.1\bin"

for /l %%i in (10,10,10) do (
jmeter.bat -n -t %PRO_DIR%share.jmx -l %PRO_DIR%%time%_durTime#%durTime%_rampup#%rampup%_loop#%loop%_threadNum#%%i.jtl -JthreadNum=%%i -Jrampup=%rampup% -JdurTime=%durTime% -Jloop=%loop%)
pause

 

 

 

 

相关文章

Jmeter:Authenticationcredentialswerenotprovided上次在使...
初次使用jmeter时,结果树中返回的数据为未转码内容,如下:...
jmeter默认语言设置: 1、临时设置:进入options--ChooseLa...
第一步:打开jmeter工具。 第二步:点击鼠标右击,点击添加...
在之前的博文中,Jmeter二次开发——基于Java请求,已介绍了...
打开虚拟机然后用远程连接工具SSH连接到数据库将serveragent...