Gradle multiple simulation

222 views
Skip to first unread message

Ergun Polat

unread,
Oct 26, 2015, 5:56:54 AM10/26/15
to Gatling User Group
Hi all, 

I am trying to run multiple simulations one after the other using gradle with no luck so far. I am presented with a choice in the console with the following build.gradle code. If anyone can help that would be great. 


apply plugin: 'scala'
apply plugin
: 'idea'

repositories
{
 mavenCentral
()
 mavenLocal
()
}
dependencies
{
 compile
'org.scala-lang:scala-library:2.11.7'
 testCompile
'io.gatling:gatling-http:2.2.0-M3'
 testCompile
'io.gatling:gatling-core:2.2.0-M3'
 testCompile
'io.gatling.highcharts:gatling-charts-highcharts:2.2.0-M3'
 testCompile
'io.gatling:gatling-app:2.2.0-M3'
 testCompile
'junit:junit:4.12'
 testCompile
'org.scalatest:scalatest_2.10:3.0.0-M10'
}

sourceSets
{
 test
{
 scala
{
 srcDir
'src/test/scala/com/sky/catfeed'
 
}
 resources
{
 srcDir
'src/test/resources'
 
}


 compileClasspath
+= sourceSets.test.compileClasspath
 
}
}
task loadTest
(type: JavaExec) {
 dependsOn testClasses
 description
= "load test with Gatling"
 
group = "Load Test"
 classpath
= sourceSets.test.runtimeClasspath
 jvmArgs
= [

 
"-Dgatling.core.directory.binaries=${sourceSets.test.output.classesDir.toString()}",
 
]
 main
= "io.gatling.app.Gatling"
 args
= [
 
"--simulations-folder", sourceSets.test.scala.srcDirs,
 
"--results-folder", "${buildDir}/gatling-results",
 
"--binaries-folder", sourceSets.test.output.classesDir.toString(),
 
"--bodies-folder", sourceSets.test.resources.srcDirs.toList().first().toString() + "/gatling/bodies",
 
]
}

Stéphane LANDELLE

unread,
Oct 26, 2015, 6:12:21 AM10/26/15
to gat...@googlegroups.com
So far, we don't officially support Gradle.
If you don't get an answer here (you won't get one from us committers, but maybe some other community member might help), try your luck here: https://github.com/alphagov/gradle-gatling-plugin

Stéphane Landelle
Lead developer


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages