Hello,
I'm new user for Gatling, with testing background.
I would like to use Gatling with Maven Plugin, to run baseline performance tests as maven job with CI Server.
Based on earlier posts, I thought of using Gatling 2.0.0-SNAPSHOT, however can't find this in Maven central repository.
I have tried approach outlined in following url, however can't find archetype for Gatling 2.0.0-SNAPSHOT, only seeing for Gatling 1.5.6 or Gatling 2.0.0-M3/2.0.0-M3a .
So I have created Maven archetype:quickstart and updated with following pom.xml. however seeing below errors on trying to perform maven compile, seeing following error
[ERROR] Failed to execute goal on project performance: Could not resolve dependencies for project com.mygov.alpha:performance:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: io.gatling:gatling-app:jar:2.0.0-SNAPSHOT, io.gatling:gatling-core:jar:2.0.0-SNAPSHOT, io.gatling:gatling-http:jar:2.0.0-SNAPSHOT, io.gatling:gatling-jms:jar:2.0.0-SNAPSHOT, io.gatling:gatling-jdbc:jar:2.0.0-SNAPSHOT, io.gatling:gatling-redis:jar:2.0.0-SNAPSHOT, io.gatling:gatling-metrics:jar:2.0.0-SNAPSHOT, io.gatling:gatling-charts:jar:2.0.0-SNAPSHOT, io.gatling:gatling-recorder:jar:2.0.0-SNAPSHOT: Could not find artifact io.gatling:gatling-app:jar:2.0.0-SNAPSHOT in excilys (http://repository.excilys.com/content/groups/public) -> [Help 1]
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.alpha</groupId>
<artifactId>Performance</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Performance</name>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<scala.version>2.10.2</scala.version>
<encoding>UTF-8</encoding>
<gatling-maven-version>2.0.0-SNAPSHOT</gatling-maven-version>
<gatling.version>2.0.0-SNAPSHOT</gatling.version>
<gatling-highcharts.version>2.0.0-SNAPSHOT</gatling-highcharts.version>
<scala-maven-plugin.version>3.1.5</scala-maven-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-app</artifactId>
<version>${gatling.version}</version>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-recorder</artifactId>
<version>${gatling.version}</version>
</dependency>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>${gatling-highcharts.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-maven-version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<jvmArgs>
<jvmArg>-Xms64m</jvmArg>
<jvmArg>-Xmx1024m</jvmArg>
</jvmArgs>
<launchers>
<launcher>
<id>Engine</id>
<!--
Gatling Test Runner mvn scala:run -DLauncher=Engine
-->
<mainClass>Engine</mainClass>
</launcher>
<launcher>
<id>Recorder</id>
<!--
Gatling Test Recorder mvn scala:run -DLauncher=Recorder
-->
<mainClass>Recorder</mainClass>
</launcher>
</launchers>
</configuration>
</plugin>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-maven-version}</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
</executions>
<configuration>
<simulationsFolder>src/test/scala/fkp/pac</simulationsFolder>
<includes>
<include>*.scala</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
Thanks & Regards,
Raj