forked from tothenew/Ant-JMeter-Tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
31 lines (27 loc) · 1.24 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="build-tests" default="run-load-tests" basedir=".">
<property name="jmeter.home" value="${basedir}/jakarta-jmeter-2.3.1" />
<path id="jmeter.path">
<fileset dir="." includes="ant-jmeter.jar"/>
</path>
<target name="run-load-tests">
<delete dir="${target.dir}" quiet="true" failonerror="false"/>
<taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask" classpathref="jmeter.path" />
<echo message="Running load tests in testing.xml" />
<jmeter
jmeterhome="/opt/jmeter"
resultlog="${basedir}/target/JMeterResults.xml">
<jvmarg value="-Xincgc"/>
<jvmarg value="-Xmx512m"/>
<jvmarg value="-Dproperty=value"/>
<property name="request.threads" value="5"/>
<property name="request.loop" value="50"/>
<property name="jmeter.save.saveservice.assertion_results" value="all"/>
<property name="jmeter.save.saveservice.output_format" value="xml"/>
<testplans dir="${basedir}" includes="espn.jmx"/>
</jmeter>
<xslt in="${basedir}/target/JMeterResults.xml"
out="${basedir}/target/JMeterResults.html"
style="${basedir}/jmeter-results-detail-report_21.xsl"/>
</target>
</project>