excilys/gatling — Issue #380: Scenario failed
Author: nicmarti
Created: 2012-01-28 18:08:21+00:00
State: open

Version : gatling-charts-highcharts-1.0.2
Environment : Mac

I recorded a very simple text scenario :
------------------------------------------------------
val urlBase = "http://localhost:8000"

val httpConf = httpConfig.baseURL(urlBase).proxy("localhost", 8080)

val headers_1 = Map(
"Accept" -> """text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8""",
"Accept-Charset" -> """ISO-8859-1,utf-8;q=0.7,*;q=0.3""",
"Accept-Encoding" -> """gzip,deflate,sdch""",
"Accept-Language" -> """fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4""",
"Cache-Control" -> """max-age=0""",
"Host" -> """localhost:8000""",
"Proxy-Connection" -> """keep-alive""",
"User-Agent" -> """Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7"""
)

val headers_2 = Map(
"Accept" -> """*/*""",
"Accept-Charset" -> """ISO-8859-1,utf-8;q=0.7,*;q=0.3""",
"Accept-Encoding" -> """gzip,deflate,sdch""",
"Accept-Language" -> """fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4""",
"Host" -> """localhost:8000""",
"Proxy-Connection" -> """keep-alive""",
"User-Agent" -> """Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7"""
)

val scn = scenario("Scenario name")

runSimulation(
scn.configure users 10 protocolConfig httpConf
)

------------------------------------------------------
Here is the output

...
...
Simulation #:
0
Simulation started...
Simulation Finished. Generating Reports...
Exception in thread "main" java.util.NoSuchElementException: next on empty iterator
at scala.collection.Iterator$$anon$3.next(Iterator.scala:28)
at scala.collection.Iterator$$anon$3.next(Iterator.scala:26)
at scala.collection.IndexedSeqLike$Elements.next(IndexedSeqLike.scala:63)
at scala.collection.IterableLike$class.head(IterableLike.scala:90)
at scala.collection.mutable.ArrayBuffer.scala$collection$IndexedSeqOptimized$$super$head(ArrayBuffer.scala:44)
at scala.collection.IndexedSeqOptimized$class.head(IndexedSeqOptimized.scala:121)
at scala.collection.mutable.ArrayBuffer.head(ArrayBuffer.scala:44)
at templates.$_scalate_$menu_js_ssp$$anonfun$1.apply(menu.js.ssp.scala:18)
at templates.$_scalate_$menu_js_ssp$$anonfun$1.apply(menu.js.ssp.scala:18)
at org.fusesource.scalate.RenderContext$class.attributeOrElse(RenderContext.scala:166)
at org.fusesource.scalate.DefaultRenderContext.attributeOrElse(DefaultRenderContext.scala:30)
at templates.$_scalate_$menu_js_ssp$.$_scalate_$render(menu.js.ssp.scala:18)
at templates.$_scalate_$menu_js_ssp.render(menu.js.ssp.scala:34)
at org.fusesource.scalate.layout.NullLayoutStrategy$.layout(LayoutStrategy.scala:43)
at org.fusesource.scalate.TemplateEngine$$anonfun$layout$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(TemplateEngine.scala:551)
at org.fusesource.scalate.TemplateEngine$$anonfun$layout$1$$anonfun$apply$mcV$sp$1.apply(TemplateEngine.scala:551)
at org.fusesource.scalate.TemplateEngine$$anonfun$layout$1$$anonfun$apply$mcV$sp$1.apply(TemplateEngine.scala:551)
at org.fusesource.scalate.RenderContext$class.withUri(RenderContext.scala:446)
at org.fusesource.scalate.DefaultRenderContext.withUri(DefaultRenderContext.scala:30)
at org.fusesource.scalate.TemplateEngine$$anonfun$layout$1.apply$mcV$sp(TemplateEngine.scala:550)
at org.fusesource.scalate.TemplateEngine$$anonfun$layout$1.apply(TemplateEngine.scala:547)
at org.fusesource.scalate.TemplateEngine$$anonfun$layout$1.apply(TemplateEngine.scala:547)
at org.fusesource.scalate.RenderContext$.using(RenderContext.scala:46)
at org.fusesource.scalate.TemplateEngine.layout(TemplateEngine.scala:547)
at org.fusesource.scalate.TemplateEngine.layout(TemplateEngine.scala:579)
at org.fusesource.scalate.TemplateEngine.layout(TemplateEngine.scala:588)
at org.fusesource.scalate.TemplateEngine.layout(TemplateEngine.scala:566)
at com.excilys.ebi.gatling.charts.template.MenuTemplate.getOutput(MenuTemplate.scala:24)
at com.excilys.ebi.gatling.charts.report.ReportsGenerator$.generateMenu(ReportsGenerator.scala:69)
at com.excilys.ebi.gatling.charts.report.ReportsGenerator$.generateFor(ReportsGenerator.scala:47)
at com.excilys.ebi.gatling.app.Gatling$.generateStats(Gatling.scala:170)
at com.excilys.ebi.gatling.app.Gatling$.runGatling(Gatling.scala:86)
at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:63)
at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)