git_sitools_idoc / flarecast / workspace / sitools-tests-jmeter / build.xml @ master
1 | d2a8c3fd | Marc NICOLAS | <!--
|
---|---|---|---|
2 | ==============================================================================
|
||
3 | === Build file to allow ant (http://jakarta.apache.org/ant/) to be used
|
||
4 | === to build the Sitools project.
|
||
5 | ===
|
||
6 | === Author : AKKA Technologies
|
||
7 | ===
|
||
8 | === name : nom du projet
|
||
9 | === default : tache ant executee par defaut
|
||
10 | === basedir : repertoire courant lors de l'execution des taches ant
|
||
11 | ===
|
||
12 | ==============================================================================
|
||
13 | -->
|
||
14 | <project name="sitools-tests-jMeter" default="jmeter" basedir="."> |
||
15 | |||
16 | |||
17 | <!-- TODO CHANGE THIS -->
|
||
18 | <property name="ROOT_DIRECTORY" location="../.." /> |
||
19 | <property name="cots.dir" value="${ROOT_DIRECTORY}/cots"/> |
||
20 | |||
21 | <!-- RĂ©pertoire pour les test JMeter -->
|
||
22 | <property name="jmeter" location="${cots.dir}/jakarta-jmeter-2.4" /> |
||
23 | |||
24 | <!-- taskdef pour jmeter -->
|
||
25 | <taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask" classpath="${jmeter}/extras/ant-jmeter-1.0.9.jar" /> |
||
26 | |||
27 | <!-- Repertoire plans jMeter -->
|
||
28 | <property name="test.jMeter.dir" value="."/> |
||
29 | |||
30 | <!--
|
||
31 | ========================================================================
|
||
32 | Targets projet
|
||
33 | ========================================================================
|
||
34 | -->
|
||
35 | |||
36 | <target name="jmeter" depends="jmeter-init, jmeter-tests, jmeter-report" /> |
||
37 | |||
38 | <!-- =========================================================================================
|
||
39 | TARGETS POUR LES TESTS JMETER
|
||
40 | ========================================================================================= -->
|
||
41 | |||
42 | <target name="jmeter-init"> |
||
43 | <echo message="[init] jmeter = ${jmeter}" /> |
||
44 | <mkdir dir="${test.jMeter.dir}/results" /> |
||
45 | <delete includeemptydirs="true"> |
||
46 | <fileset dir="${test.jMeter.dir}/results" includes="**/*" /> |
||
47 | </delete>
|
||
48 | </target>
|
||
49 | |||
50 | <target name="jmeter-tests" description="launch jmeter load tests"> |
||
51 | <echo message="[Running] jmeter tests..." /> |
||
52 | <jmeter jmeterhome="${jmeter}" resultlogdir="${test.jMeter.dir}/results"> |
||
53 | <testplans dir="${test.jMeter.dir}/plans" includes="*.jmx" |
||
54 | excludes="PlanDeTravail.jmx" /> |
||
55 | </jmeter>
|
||
56 | </target>
|
||
57 | |||
58 | <target name="jmeter-report"> |
||
59 | <xslt basedir="${test.jMeter.dir}/results" destdir="${test.jMeter.dir}/results/html" |
||
60 | includes="*.jtl" style="${jmeter}/extras/jmeter-results-detail-report_21.xsl" /> |
||
61 | </target>
|
||
62 | |||
63 | </project> |