Recorded Sec does not open in gatling.bat

After getting everything running, I went and started to record one of the first example tests I wanted to perform. I named the test "onefile.scala " and everything looked good. Started gatling.bat, expecting to see the test added to the options list, but instead got the below error. If I take the “onefile.scala” out of the user-files\simulations folder, gatling.bat works fine.

I have uploaded the recorded test to my skydrive here: http://sdrv.ms/XksAIF

GATLING_HOME is set to “C:\gatling-charts-highcharts-1.4.1-bundle”
16:54:38.413 [ERROR] c.e.e.g.a.ZincCompiler$ - IO error while decoding C:\gatlin
g-charts-highcharts-1.4.1-bundle\user-files\simulations\onefile.scala with UTF-8

Please try specifying another one using the -encoding option
16:54:38.413 [ERROR] c.e.e.g.a.ZincCompiler$ - one error found
Exception in thread “main” Compilation failed
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:76)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:35)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:29)
at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.a
pply$mcV$sp(AggressiveCompile.scala:71)
at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.a
pply(AggressiveCompile.scala:71)
at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.a
pply(AggressiveCompile.scala:71)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(
AggressiveCompile.scala:101)
at sbt.compiler.AggressiveCompile$$anonfun$4.compileScala$1(AggressiveCo
mpile.scala:70)
at sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.sca
la:88)
at sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.sca
la:60)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:2
4)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:2
2)
at sbt.inc.Incremental$.cycle(Incremental.scala:40)
at sbt.inc.Incremental$.compile(Incremental.scala:25)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:20)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:96)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:158)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:142)
at com.excilys.ebi.gatling.app.ZincCompiler$.apply(ZincCompiler.scala:10
3)
at com.excilys.ebi.gatling.app.SimulationClassLoader$.fromSourcesDirecto
ry(SimulationClassLoader.scala:34)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$11$$anonfun$13.apply(Gat
ling.scala:90)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$11$$anonfun$13.apply(Gat
ling.scala:90)
at scala.Option.getOrElse(Option.scala:108)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$11.apply(Gatling.scala:9
0)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$11.apply(Gatling.scala:8
7)
at scala.Option.getOrElse(Option.scala:108)
at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:87)
at com.excilys.ebi.gatling.app.Gatling$.fromMap(Gatling.scala:54)
at com.excilys.ebi.gatling.app.Gatling$.runGatling(Gatling.scala:73)
at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:49)
at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)
Press any key to continue . . .

Which encoding did you select in the Recorder GUI?

I confirm: there’s some non UTF-8 characters into your simulation:

  1. FC Köln,
    Süper Lig,
    Resovia Rzeszów,
    Skra Be?chatów

Ok, I should be able to remove that pram block shouldn’t I?

That text is coming from a auto-complete search control and I have no need to stress test that aspect. Its the file downloading am more worried about so this pram block is off no use.

Thanks
Joe

Removing the offending “pram” block/s did the trick.

You can just remove/replace the 4 names I pointed out.
This way, your network traffic will be the same as expected.

Hi Stephane.

I am trying to do some POC on this tool to be able to migrate to gating from Load runner. I have donwloaded gatling and able to launch the recorder.bat . I am able to see the main gatling recorder window and also tried doing the simulation for the same banking application as mentioned in gatling-tool.org. but some how once i start the simulation and do the flow and after stopping the simulation doesn;t show anything.

couple of questions:

Do i need scala to download? can you give me the link to download.
am i doing something wrong in the reocrding process.

can you please guide me

Thanks
Vikas Bajaj

Hi,

No, you don’t need to install Scala: it’s already shipped in the lib directory.
After running your simulation, don’t you have a link displayed in your console, indicating the reports?

Stéphane