[jmeter] Executing test plan: D:\ProgramFiles\jakarta-jmeter-2.1.1\mytest\web
3\web1.jmx
[jmeter] Created the tree successfully
[jmeter] Starting the test
[jmeter] Tidying up ...
[jmeter] ... end of run
[echo] jmeter web1.jmx finished
interval:
[echo] sleep 5 seconds
终止批处理操作吗(Y/N)? y
D:\ProgramFiles\jakarta-jmeter-2.1.1\mytest\web3>
e,综合,可以使用此方法来达要求。当你想停止测试时,则手动停止即可。查看上面的这个build
< !-- Simple Ant Jmeter test-->
< project name="antjmeter" default="run" basedir=".">
< property name="out" value="."/>
< target name="test">
< taskdef
name="jmeter"
classname="org.programmerpl.net.ant.taskdefs.jmeter.JMeterTask"/>
< jmeter
jmeterhome="D:\ProgramFiles\jakarta-jmeter-2.1.1"
文章来源于领测软件测试网 https://www.ltesting.net/