Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 2.05 KB

File metadata and controls

51 lines (32 loc) · 2.05 KB
title description lead date lastmod weight
Maven Archetype
Maven archetype to create new Gatling maven project
The maven archetype creates a new maven project with Gatling dependencies and plugin
2021-04-20 18:30:56 +0200
2021-04-20 18:30:56 +0200
16

Gatling's Maven Archetype helps you bootstrap a maven project with Gatling dependencies and plugin.

Versions

Check out available versions on Maven Central.

Beware that milestones (M versions) are not documented for OSS users and are only released for FrontLine customers.

Usage

The Maven's coordinates for the archetype are io.gatling.highcharts:gatling-highcharts-maven-archetype.

You can either use your IDE's facilities for creating a new project using a Maven archetype or, from the command line, type:

mvn archetype:generate -DarchetypeGroupId=io.gatling.highcharts -DarchetypeArtifactId=gatling-highcharts-maven-archetype

Select the groupId, artifactId and package name for your classes before confirming the archetype creation.

Using the generated project

After importing the project, its structure should look like that:

{{< img src="archetype_structure.png" alt="Archetype Structure" >}}

The archetype structure closely follows the bundle's structure :

  • Your simulations will live under src/test/scala
  • Your resources such as feeder files and request body templates will live under src/test/resources

Launchers

You can right-click on the Engine class in your IDE and launch the Gatling load test engine. Simulation reports will be written in the target/gatling directory.

You can right-click on the Recorder class in your IDE and launch the Recorder. Simulations will be generated in the src/test/scala directory.

Sources

If you're interested in contributing, you can find the gatling-highcharts-maven-archetype sources on GitHub.