When i am trying the below command to generate the report i was getting this error.
Please help me out to resolve the issue.
$ bash /c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3/bin/gatling.sh -ro \Users\Admin\Desktop\Performance\Results\Promise-Eng
ine
GATLING_HOME is set to /c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3
Error: Could not find or load main class io.gatling.app.Gatling
I have tried with gatling-charts-highcharts-bundle-2.3.1 version too still got the same error
It looks like you’re using a bash emulator on Windows. Try using the bat script on standard Windows CLI instead.
I tried with bat script getting the below issue.
$ bash /c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3/bin/gatling.bat -ro /Users/Admin/Desktop/Performance/Results/Promise-En
gine/
/c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3/bin/gatling.bat: line 1: @ECHO: command not found
/c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3/bin/gatling.bat: line 2: @REM: command not found
/c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3/bin/gatling.bat: line 3: syntax error near unexpected token (' /c/Users/Admin/Desktop/Performance/Gatling_Report/gatling-charts-highcharts-bundle-3.0.3/bin/gatling.bat: line 3:
@REM Copyright 2011-2017 GatlingCorp (http://gatling.io)’
You’re not directly running on Windows.
/c/Users/Admin is definitively not a Windows path.
Run standard Windows cli, not a linux shell emulator.
Thanks Stephane.
Tried in Windows cli, But got this below error.
Exception in thread “main” java.lang.NumberFormatException: For input string: “sodimacResult”
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at java.lang.Long.parseLong(Long.java:631)
at scala.collection.immutable.StringLike.toLong(StringLike.scala:309)
at scala.collection.immutable.StringLike.toLong$(StringLike.scala:309)
at scala.collection.immutable.StringOps.toLong(StringOps.scala:33)
at io.gatling.charts.stats.LogFileReader.$anonfun$firstPass$1(LogFileReader.scala:102)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.Iterator$ConcatIterator.foreach(Iterator.scala:179)
at io.gatling.charts.stats.LogFileReader.firstPass(LogFileReader.scala:86)
at io.gatling.charts.stats.LogFileReader.$anonfun$x$4$1(LogFileReader.scala:125)
at io.gatling.charts.stats.LogFileReader.parseInputFiles(LogFileReader.scala:63)
at io.gatling.charts.stats.LogFileReader.(LogFileReader.scala:125)
at io.gatling.app.RunResultProcessor.initLogFileReader(RunResultProcessor.scala:67)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:49)
at io.gatling.app.Gatling$.start(Gatling.scala:82)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:47)
at io.gatling.app.Gatling$.main(Gatling.scala:39)
at io.gatling.app.Gatling.main(Gatling.scala)
No idea what you’re doing. It looks like your simulation.log file is corrupted/has not the expected format.
Hi Rajesh,
I think your IntelliJ setup is not proper. Why don’t you try with VS Code and see if it works?
https://www.james-willett.com/gatling-vscode/
Hope this helps.