其他分享
首页 > 其他分享> > Jmeter 自动循环执行,逐步加压

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

 

 

 

 

标签:do,set,10,%%,加压,PRO,delims,循环,Jmeter
来源: https://www.cnblogs.com/leeboke/p/14817758.html