jmeter项目maven文件下面放这.bat 工具,可以把必要的jar包移动到jmeter响应的文件夹下面
rem 本文件放在jmeter 脚本maven项目根目录下面,和pom.xml在同一个文件夹下面
rem 预置条件,把官网下载的apache-jmeter-3.2.zip 放在如下filePath 并解压到当前文件夹
set filePath=D:\work\jmeterPerformanceTest
rem rd /s /q %filePath%\apache-jmeter-3.2\
rem echo "start expand"
rem expand %filePath%\apache-jmeter-3.2.zip %filePath%
echo "start mvn"
cmd /c "mvn -U clean install dependency:copy-dependencies -DoutputDirectory=%filePath%\apache-jmeter-3.2\lib"
echo "start copy"
echo yes|copy target\test-box-perf-1.0-SNAPSHOT.jar %filePath%\apache-jmeter-3.2\lib\ext
echo "finshed"
pause