[AAI] Update the gatling scripts to have proper structure, pom, and readme
[aai/test-config.git] / gatling / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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 http://maven.apache.org/maven-v4_0_0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <artifactId>spring-boot-starter-parent</artifactId>
7         <groupId>org.springframework.boot</groupId>
8         <version>1.5.3.RELEASE</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>com.mycompany.myapp</groupId>
13     <artifactId>gatling</artifactId>
14     <version>1.0.0-SNAPSHOT</version>
15     <packaging>war</packaging>
16     <name>Myapp</name>
17
18     <properties>
19         <argLine>-Djava.security.egd=file:/dev/./urandom -Xmx256m</argLine>
20         <gatling.version>2.3.0</gatling.version>
21         <gatling-maven-plugin.version>2.2.4</gatling-maven-plugin.version>
22     </properties>
23
24
25     <dependencies>
26         <dependency>
27             <groupId>io.gatling.highcharts</groupId>
28             <artifactId>gatling-charts-highcharts</artifactId>
29             <version>${gatling.version}</version>
30             <scope>test</scope>
31         </dependency>
32     </dependencies>
33     <build>
34         <defaultGoal>gatling:execute</defaultGoal>
35         <plugins>
36             <plugin>
37                 <groupId>io.gatling</groupId>
38                 <artifactId>gatling-maven-plugin</artifactId>
39                 <version>${gatling-maven-plugin.version}</version>
40                 <configuration>
41                     <configFolder>src/test/gatling/conf</configFolder>
42                     <dataFolder>src/test/gatling/data</dataFolder>
43                     <resultsFolder>target/gatling/results</resultsFolder>
44                     <bodiesFolder>src/test/gatling/bodies</bodiesFolder>
45                     <simulationsFolder>src/test/gatling/simulations</simulationsFolder>
46                     <!--
47                     This will run multiple simulations one by one. Useful when doing Gatling
48                     tests in CI.
49                     -->
50                     <runMultipleSimulations>true</runMultipleSimulations>
51                     <!--
52                     To run only one simulation, you need to disable the "runMultipleSimulations"
53                     above, and write the name of your simulation below.
54                     -->
55                     <!--<simulationClass>WriteTheNameOfYourGatlingSimulation</simulationClass>-->
56                 </configuration>
57             </plugin>
58         </plugins>
59     </build>
60 </project>