GithubHelp home page GithubHelp logo

gatling-maven-project's Introduction

Gatling Maven Project

Welcome to the Gatling Maven Project

Introduction

Gatling is an Open Source Stress Tool with:

  • High performances
  • Simple concepts
  • A DSL to describe scenarios
  • HTTP support
  • A scenario recorder
  • Meaningful reports

Maven is one of the most popular build automation tool in the Java world.

This project provide a simple method for integrating Gatling with Maven.

Versions

The current version of the project is based on the Gatling version : 1.3.4.

Usage

Checkout the project and run the simulations with the following command :

mvn gatling:execute

To run a specific simulation you have to use this command :

mvn gatling:execute -Dgatling.simulation=basic.BasicExampleSimulation

Have fun :-)

gatling-maven-project's People

Contributors

nhuray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gatling-maven-project's Issues

[ERROR] No plugin found for prefix 'gatling' in the current project

So I downloaded the project and unzipped it, but I got this error when I ran it. Maven is installed, I'm on windows 10:

[ERROR] No plugin found for prefix 'gatling' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\my.user\.m2\repository), excilys (http://repository.excilys.com/content/groups/public), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

scala.tools.nsc.MissingRequirementError: object scala not found.

I have clone project and execute : mvn gatling:execute

But the project doesn't compile : scala.tools.nsc.MissingRequirementError: object scala not found.

Any idea ?

Complete log :

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gatling-maven-project 1.1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- gatling-maven-plugin:1.1.2:execute (default-cli) @ gatling-maven-project ---
[INFO] Collecting simulations...
[INFO] Exception in thread "main" scala.tools.nsc.MissingRequirementError: object scala not found.
[INFO] at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:655)
[INFO] at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:605)
[INFO] at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
[INFO] at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
[INFO] at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)
[INFO] at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:814)
[INFO] at scala.tools.nsc.Global$Run.(Global.scala:697)
[INFO] at com.excilys.ebi.gatling.app.Gatling$$anonfun$compile$1.apply(Gatling.scala:171)
[INFO] at com.excilys.ebi.gatling.app.Gatling$$anonfun$compile$1.apply(Gatling.scala:166)
[INFO] at com.excilys.ebi.gatling.core.util.IOHelper$.use(IOHelper.scala:24)
[INFO] at com.excilys.ebi.gatling.app.Gatling.compile(Gatling.scala:166)
[INFO] at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:110)
[INFO] at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:73)
[INFO] at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.322s
[INFO] Finished at: Sat May 19 02:38:06 CEST 2012
[INFO] Final Memory: 4M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.excilys.ebi.gatling:gatling-maven-plugin:1.1.2:execute (default-cli) on project gatling-maven-project: Gatling failed. Java returned: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Problems with whitespace in maven home path on Windows

When executing:

mvn gatling:execute

on a maven project created via the archetype, it always fails with:

[INFO] --- gatling-maven-plugin:2.2.0:execute (default-cli) @ perf-bench --- Error: Could not find or load main class Files\\Maven\\bin\\m2.conf

Running "Engine.scala" from my IDE (IntelliJ) works.
I guess the problem is that the gatling-maven-plugin does not correctly handle whitespaces in the maven home dir. Could this be the problem?

Windows: 7
Gatling: 2.2.2
Gatling plugin: 2.2.0
Scala: 2.11.7
Maven install Dir: C:\Program Files\Maven
Maven version: 3.3.9
JDK: 1.8.0_91
pom.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.