Hi,
I am quite new in Gatling stuff. Trying to use this with my scala-sbt project. I followed the steps mentioned on its github page. I configured all settings as follow:
sbt version:= 0.13.5
plugins.sbt:
resolvers += “Sonatype OSS Snapshots” at “https://oss.sonatype.org/content/repositories/snapshots”
addSbtPlugin(“io.gatling” % “sbt-plugin” % “1.0-SNAPSHOT”)
build.sbt
import io.gatling.sbt.GatlingPlugin
val test = project.in(file(“.”))
.settings(gatlingAllSettings: _*)
.enablePlugins(GatlingPlugin)
.settings(resolvers += “Sonatype OSS Snapshots” at “https://oss.sonatype.org/content/repositories/snapshots”)
.settings(libraryDependencies ++= Seq(“io.gatling.highcharts” % “gatling-charts-highcharts” % “2.0.0-SNAPSHOT” % “test”,
“io.gatling” % “test-framework” % “1.0-SNAPSHOT” % “test”,
“io.gatling” % “gatling-bundle” % “2.0.0-SNAPSHOT” % “test” artifacts (Artifact(“gatling-bundle”, “zip”, “zip”, “bundle”))))
when I run gatling:test, it throws following error:
gatling:test
[info] Compiling 1 Scala source to /…/target/scala-2.10/gatling-classes…
Error: Unknown option -m
Error: Unknown option -rf
Error: Unknown argument ‘/…/target/gatling/gatling’
Try --help for more information.
[error] Provided arguments (-m-rf/…/target/gatling/gatling-m-rf/…/target/gatling/gatling) are not valid.
[info] Simulation(s) execution ended.
[error] Error during tests:
[error] gatling.DemoTest
[error] (gatling:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 12 s, completed 16 Jul, 2014 11:25:44 PM
DemoTest.scala:
class Test extends Simulation {
val httpbaseUrl = “http://”
val httpConf = http.baseURL(httpbaseUrl)
val scn = scenario(“Test demo”)
.repeat(10) {
.exec(
http(“Test”)
.post(“/query”)
.queryParam(“name”, “test”)
.check(status.is(200)))
}
setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)
}
Additionally , i also used copyConfigFiles
to copy gatling.conf into project resources. Please let me know what i am doing wrong here…
Thank you !