java

位置:IT落伍者 >> java >> 浏览文章

关于Ant+JMeter进行Web应用的稳定性测试[4]


发布日期:2019年01月15日
 
关于Ant+JMeter进行Web应用的稳定性测试[4]

\webjmx

[jmeter] Created the tree successfully

[jmeter] Starting the test

[jmeter] Tidying up

[jmeter] end of run

[echo] jmeter webjmx finished

interval:

[echo] sleep seconds

[echo] continue

test:

[jmeter] Executing test plan: D:\ProgramFiles\jakartajmeter\mytest\web

\webjmx

[jmeter] Created the tree successfully

[jmeter] Starting the test

[jmeter] Tidying up

[jmeter] end of run

[echo] jmeter webjmx finished

interval:

[echo] sleep seconds

[echo] continue

test:

[jmeter] Executing test plan: D:\ProgramFiles\jakartajmeter\mytest\web

\webjmx

[jmeter] Created the tree successfully

[jmeter] Starting the test

[jmeter] Tidying up

[jmeter] end of run

[echo] jmeter webjmx finished

interval:

[echo] sleep seconds

终止批处理操作吗(Y/N)? y

D:\ProgramFiles\jakartajmeter\mytest\web>

e综合可以使用此方法来达要求当你想停止测试时则手动停止即可查看上面的这个build

< ! Simple Ant Jmeter test>

< project name=antjmeter default=run basedir=>

< property name=out value=/>

< target name=test>

< taskdef

name=jmeter

classname=orgprogrammerplanetanttaskdefsjmeterJMeterTask/>

< jmeter

jmeterhome=D:\ProgramFiles\jakartajmeter

testplan=${basedir}/webjmx

resultlog=${out}/webjtl>

< jvmarg value=Dgroupthreads=/>

< /jmeter>

< echo message=jmeter webjmx finished/>

< antcall target=interval/>

< antcall target=test/>

< !ant antfile=buildxml/>

< /target>

< !for execute target test many timescopy the target test

to target test>

< target name=test>

< taskdef

name=jmeter

classname=orgprogrammerplanetanttaskdefsjmeterJMeterTask/>

< jmeter

jmeterhome=D:\ProgramFiles\jakartajmeter

testplan=${basedir}/webjmx

resultlog=${out}/webjtl>

< jvmarg value=Dgroupthreads=/>

< /jmeter>

< echo message=jmeter webjmx finished/>

< antcall target=interval/>

< antcall target=test/>

< !ant antfile=buildxml/>

< /target>

< target name=interval>

< echo message=sleep seconds/>

< sleep seconds=/>

< echo message=continue/>

< /target>

< target name=tfile>

< xslt

in=${basedir}/webjtl

out=${basedir}/webhtml

style=${basedir}/jmeterresultsdetailreportxsl/>

< /target>

< target name=run depends=test/>

< /project>

[] [] [] []

               

上一篇:利用 Ant 和 JUnit 进行增量开发

下一篇:关于Ant+JMeter进行Web应用的稳定性测试[3]