【转】使用ant来调用Jmeter,并定制运行时参数
生活随笔
收集整理的這篇文章主要介紹了
【转】使用ant来调用Jmeter,并定制运行时参数
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
為了應(yīng)對(duì)不同的運(yùn)行需求(主要是不同的線程數(shù)),以及可能的變化(host ip),在nongui運(yùn)行時(shí)我對(duì)ant build.xml進(jìn)行了一些修改 1. log目錄備份與運(yùn)行前清除
| <tstamp> <format property="time.stamp" pattern="HHmmss_yyyyMMdd"/> </tstamp> <property name="bak.dir" value="c:/apache-jmeter-2.10/bin/testresult/${time.stamp}" /> <property name="result.dir" value="c:/apache-jmeter-2.10/bin/testresult" /> <property name="jmeter.extra" value="c:/apache-jmeter-2.10/extras" /> <target name="clean" depends=""> <delete verbose="true"> <fileset dir="${result.dir}"> <include name="*.csv" /> <include name="*.jtl" /> </fileset> <fileset dir="${jmeter.extra}"> <include name="*.jtl" /> <include name="*.log" /> </fileset> </delete> </target> <target name="bak"> <copy todir="${bak.dir}" verbose="true"> <fileset dir="${result.dir}"> <include name="*.csv" /> <include name="*.jtl" /> </fileset> <fileset dir="${jmeter.extra}"> <include name="*.jtl" /> <include name="*.log" /> </fileset> </copy> </target> |
轉(zhuǎn)載于:https://www.cnblogs.com/blongfree/p/4980787.html
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的【转】使用ant来调用Jmeter,并定制运行时参数的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 送培训老师锦旗写什么最好441条
- 下一篇: 20135206于佳心【家庭作业汇总】