-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom_01_launch_test.xml
More file actions
109 lines (105 loc) · 3.71 KB
/
pom_01_launch_test.xml
File metadata and controls
109 lines (105 loc) · 3.71 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.vdaburon.jmeter</groupId>
<artifactId>jpetstore-maven-load-test-dzone</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>01 - Launch a load test of the JPetstore web application with the maven plugin</name>
<description>Launch a load test of the JPetstore web application with the maven plugin</description>
<inceptionYear>2025</inceptionYear>
<developers>
<developer>
<id>vdaburon</id>
<name>Vincent DABURON</name>
<email>vdaburon@gmail.com</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jmeter.version>5.6.3</jmeter.version>
<jvm_xms>256</jvm_xms>
<jvm_xmx>756</jvm_xmx>
<prefix_script_name>jpetstore</prefix_script_name>
<config_properties_name>config_test_warm_up.properties</config_properties_name>
</properties>
<build>
<plugins>
<plugin>
<!-- Launch load test with : mvn clean verify -->
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>3.6.1</version>
<executions>
<!-- Generate JMeter configuration -->
<execution>
<id>configuration</id>
<goals>
<goal>configure</goal>
</goals>
</execution>
<!-- Run JMeter tests -->
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
<!-- Fail build on errors in test
<execution>
<id>jmeter-check-results</id>
<goals>
<goal>results</goal>
</goals>
</execution>
-->
</executions>
<configuration>
<jmeterVersion>${jmeter.version}</jmeterVersion>
<jmeterExtensions>
<!-- add jmeter plugins in JMETER_HOME/lib/ext -->
<artifact>kg.apc:jmeter-plugins-functions:2.2</artifact>
<artifact>kg.apc:jmeter-plugins-dummy:0.4</artifact>
<artifact>io.github.vdaburon:pacing-jmeter-plugin:1.0</artifact>
</jmeterExtensions>
<testPlanLibraries>
<!-- add librairies in JMETER_HOME/lib -->
<!-- e.g: <artifact>org.postgresql:postgresql:42.5.1</artifact> -->
</testPlanLibraries>
<downloadExtensionDependencies>false</downloadExtensionDependencies>
<jMeterProcessJVMSettings>
<xms>${jvm_xms}</xms>
<xmx>${jvm_xmx}</xmx>
<arguments>
<argument>-Duser.language=en</argument>
<argument>-Duser.region=EN</argument>
</arguments>
</jMeterProcessJVMSettings>
<testFilesIncluded>
<jMeterTestFile>${prefix_script_name}.jmx</jMeterTestFile>
</testFilesIncluded>
<propertiesUser>
<!-- folder for csv file relatif to script folder -->
<relatif_data_dir>/</relatif_data_dir>
<!-- PROJET_HOME/target/jmeter/results/ -->
<resultat_dir>${project.build.directory}/jmeter/results/</resultat_dir>
</propertiesUser>
<customPropertiesFiles>
<!-- like -q myconfig.properties , add my external configuration file -->
<file>${basedir}/src/test/jmeter/${config_properties_name}</file>
</customPropertiesFiles>
<logsDirectory>${project.build.directory}/jmeter/results</logsDirectory>
<generateReports>false</generateReports>
<testResultsTimestamp>false</testResultsTimestamp>
<resultsFileFormat>csv</resultsFileFormat>
</configuration>
</plugin>
</plugins>
</build>
</project>