-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
57 lines (46 loc) · 2.47 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<!--
Build file to generate a JMeter SLA Report.
@author Siegfried Goeschl
-->
<project name="jmeter-sla-report" default="test" basedir=".">
<!-- the directory where generated output goes -->
<property name="project.build.directory" value="${basedir}/target" />
<!-- setup the class path to run the report -->
<path id="project.class.path">
<fileset dir="${basedir}/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${basedir}/dist">
<include name="jmeter-sla-report-1.0.5.jar" />
</fileset>
</path>
<!-- =================================================================== -->
<!-- General -->
<!-- =================================================================== -->
<target name="test" description="Run the tests to generate JMeter SLA reports" depends="report-xml-success,report-csv-success,report-xml-failure" />
<target name="report-xml-success" description="Report with XML JMeter file">
<mkdir dir="${project.build.directory}" />
<java classname="com.github.sgoeschl.jmeter.report.sla.Main" classpathref="project.class.path">
<arg value="${project.build.directory}/report-xml-success.html" />
<arg value="${basedir}/src/test/data/success.jtl" />
<sysproperty key="jmeter.something" value="report-xml-success" />
</java>
</target>
<target name="report-csv-success" description="Report with CSV JMeter file">
<mkdir dir="${project.build.directory}" />
<java classname="com.github.sgoeschl.jmeter.report.sla.Main" classpathref="project.class.path">
<arg value="${project.build.directory}/report-csv-success.html" />
<arg value="${basedir}/src/test/data/success.csv" />
<sysproperty key="jmeter.something" value="report-csv-success" />
</java>
</target>
<target name="report-xml-failure" description="Report with XML JMeter file having test failures">
<mkdir dir="${project.build.directory}" />
<java classname="com.github.sgoeschl.jmeter.report.sla.Main" classpathref="project.class.path">
<arg value="${project.build.directory}/report-xml-failure.html" />
<arg value="${basedir}/src/test/data/failure.jtl" />
<sysproperty key="jmeter.something" value="report-xml-failure" />
</java>
</target>
</project>