Hi Gatling Experts
I use gatling-charts-highcharts-2.0.0-bundle
I have a following scenario
class RecordedSimulation extends Simulation {
…
val uri = “”“http://myserver1:8080/test1"”"
val feeder = csv(“myfile.csv”).queue
val scn = scenario(“RecordedSimulation”)
.feed(feeder)
.exec(http(“request_0”)
.get("""/backapp/index""")
.headers(headers_0))
.pause(1)
.exec(http(“request_1”)
.post("""/backapp/index/process/1""")
.headers(headers_0)
.formParam(""“name”"", “”"${myname}"""))
.pause(1)
…
.exec(http(“request_77”)
.get(uri+ “”"/images/as/favicon.ico""")
.headers(headers_0))
// I have a total of 77 exec http request like above, so my scenario is very long !!!
setUp(scn.inject(rampUsers(200) over (200 seconds))).protocols(httpProtocol)
}
And I can compile this scenario with no error
But when I want to run my scenario for 15 minutes with 200 Users connected simultaneously
I transform my simulation above like that :
class RecordedSimulation extends Simulation {
…
val uri = “”“http://myserver1:8080/test1"”"
val feeder = csv(“myfile.csv”).queue
val scn = scenario(“RecordedSimulation”)
during (15 minutes){
.feed(feeder)
.exec(http(“request_0”)
.get("""/backapp/index""")
.headers(headers_0))
.pause(1)
.exec(http(“request_1”)
.post("""/backapp/index/process/1""")
.headers(headers_0)
.formParam(""“name”"", “”"${myname}"""))
.pause(1)
…
.exec(http(“request_77”)
.get(uri+ “”"/images/as/favicon.ico""")
.headers(headers_0))
}
// I have a total of 77 exec http request like above, so my scenario is very long !!!
setUp(scn.inject(rampUsers(200) over (200 seconds))).protocols(httpProtocol)
}
Therefore, I can not compile my scenario simulation because I always have the message : compilation failed
Have you any idea to help me?
Thanks a lot
Viet Minh