gatling and no request sent

Hi

I a mnew to gatling and I have made this small gatling script to test calls for webservice

Here is the script :

class V3Simulation extends Simulation {

val httpProtocol = http
.baseURL(“http://51.205.10.20:18600/WSv3”)
.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”)
.doNotTrackHeader(“1”)
.acceptLanguageHeader(“en-US,en;q=0.5”)
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0”)

val headers_1 = Map(
“Accept-Encoding” → “”“gzip,deflate”"",
“Content-Type” → “”“application/soap+xml;charset=UTF-8"”",
“SOAPAction” → “”""""
)

val scn = scenario(“Call WebService v3”)

exec(
http(“Call WebService v3”)
.post("""""")
.headers(headers_1)
.body(StringBody("""<?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap=“http://www.w3.org/2003/05/soap-envelope” xmlns:company=“http://mycompany.com”> soap:Header/ soap:Body </soap:Body></soap:Envelope>"""))
.check(status.is(200))
)

val rampStepDuration = 5 minutes
val stageDuration = 30 minutes
val stageUserPerSecond = 100

setUp(scn.inject(rampUsersPerSec(0) to stageUserPerSecond during(rampStepDuration),constantUsersPerSec(stageUserPerSecond) during (stageDuration)).protocols(httpProtocol))

}

But when I run this script , I get the following messages :

Simulation V3Simulation completed in 2100 seconds
Parsing log file(s)…
Parsing log file(s) done
Generating reports…
Exception in thread “main” java.lang.UnsupportedOperationException: There were n
o requests sent during the simulation, reports won’t be generated
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerato
r.scala:48)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.
scala:76)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor
.scala:55)
at io.gatling.app.Gatling$.start(Gatling.scala:68)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45)
at io.gatling.app.Gatling$.main(Gatling.scala:37)
at io.gatling.app.Gatling.main(Gatling.scala)

Do you have any idea to help me for this problem ?

Thanks a lot

Smain

Hi !

It works well !

Thanks a lot for your help

Best Regards,

Smain