???ant??????Jmeter?????????????????
???????????? ???????[ 2014/4/15 16:21:55 ] ?????????????????? ??????????
????2. ???ζ???jmeter run
<target name="run" depends="clean">
<mkdir dir="${bak.dir}" />
<property name="run.log" value="${bak.dir}/${th}_${loop}.log"/>
<echo message="${run.log}"/>
<record name="${run.log}"/>
<echo>funcMode = ${funcMode}</echo>
<delete file="${testpath}/${test}.html" />
<echo message="server: ${host}:${port}"/>
<echo message="threads = ${th}"/>
<echo message="loops = ${loop}"/>
<jmeter jmeterhome="${jmeter.home}" testplan="${testpath}/${test}.jmx" resultlog="${testpath}/${test}.jtl"
jmeterlogfile="${testpath}/${test}.log" >
<jvmarg value="-L jmeter=DEBUG"/>
<property name="jmeter.save.saveservice.output_format" value="xml" />
<property name="jmeter.save.saveservice.assertion_results" value="all" />
<property name="jmeter.save.saveservice.bytes" value="true" />
<property name="file_format.testlog" value="${format}" />
<property name="jmeter.save.saveservice.response_data.on_error" value="${funcMode}" />
<property name="request.threads" value="${th}" />
<property name="request.threads.loop" value="${loop}" />
<property name="test.host" value="${host}" />
<property name="test.port" value="${port}" />
<property name="loadtest.rampUp" value="${ramp}" />
<property name="request.config" value="${config}" />
</jmeter>
<antcall target="bak" />
</target>
|
??????????????????jmx??????????Щ???????
????3. ???ж??jmx???????У?????ant?? antcontrib????????
<taskdef resource="net/sf/antcontrib/antlib.xml" />
<property file="./api_build.properties" />
<target name="apirun" depends="clean">
<mkdir dir="${bak.dir}" />
<property name="run.log" value="${bak.dir}/${th}_${loop}.log" />
<echo message="${run.log}" />
<record name="${run.log}" />
<echo>funcMode = ${funcMode}</echo>
<delete file="${testpath}/${test}.html" />
<echo message="server: ${host}:${port}" />
<echo message="threads = ${th}" />
<echo message="loops = ${loop}" />
<for list="${perf.apis}" param="api">
<sequential>
<echo message="Now start the testing of API: @{api}" />
<jmeter jmeterhome="${jmeter.home}" testplan="${testpath}/${test}.jmx" resultlog="${testpath}/${test}.jtl" jmeterlogfile="${testpath}/${test}.log">
<jmeterarg value="-L jmeter=DEBUG" />
<property name="jmeter.save.saveservice.output_format" value="xml" />
<property name="jmeter.save.saveservice.assertion_results" value="all" />
<property name="jmeter.save.saveservice.bytes" value="true" />
<property name="file_format.testlog" value="${format}" />
<property name="jmeter.save.saveservice.response_data.on_error" value="${funcMode}" />
<property name="request.threads" value="${th}" />
<property name="request.threads.loop" value="${loop}" />
<property name="test.host" value="${host}" />
<property name="test.port" value="${port}" />
<property name="loadtest.rampUp" value="${ramp}" />
<property name="request.config" value="${config}" />
<property name="api" value="@{api}" />
</jmeter>
</sequential>
</for>
<antcall target="bak" />
</target>
|
??????api_build.properties??д?? perf.apis=xxx??xxx??xxx??xxx??????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Jmeter???????????????Jmeter?GUI?????????Linux?????Jmeter??в???????Jenkins+Ant+Jmeter??????????????Jmeter???????????м???Jmeter?????????????Jenkins+Ant+Jmeter??????????????????JMeter?????Selenium???в???Jmeter???????????Apache Jmeter????post????Jmeter??? for windowsJmeter?????????δ??????????JMeter+Badboy??????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????