DEV Community

Discussion on: Load testing with JMeter

Collapse
 
isaacdlyman profile image
Isaac Lyman

Bonus! If you're on Windows and you've followed the folder structure from this post, you can use this handy batch file to run your tests:

Run Load Test.bat

@echo off
set /p testname="Enter test file name without extension (ex. getUsers): "
set /p environment="Enter environment (ex. local): "
echo Starting test...
call ./jmeter-5.2.1/bin/jmeter-n.cmd ./plans/%testname%.jmx -f -q ../config/%environment%.properties
echo.
echo Results logged to plans/%testname%.log and plans/%testname%.jtl
pause