问题描述
刚开始使用空手道加特林的一个问题:是否可以汇总生成的报告?那么经过多次运行以获得一份报告?能够以某种方式比较性能会很好 - 如果性能下降与否,自动获取信息.我尝试但没有奏效的是复制模拟日志,然后仅生成报告(gatling.bat -ro 模拟"),但这不起作用.我得到的错误是:gatling.bat -ro 模拟/catskaratesimulation-1544015145031GATLING_HOME 设置为D:\AutomationTeam\gatling-charts-highcharts-bundle-3.0.1.1"JAVA = ""C:\Program Files\Java\jdk1.8.0_131\bin\java.exe""正在解析日志文件...线程main"中的异常java.lang.NumberFormatException:对于输入字符串:catskaratesimulation"在 java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)在 java.lang.Long.parseLong(Long.java:589)在 java.lang.Long.parseLong(Long.java:631)在 scala.collection.immutable.StringLike.toLong(StringLike.scala:305)在 scala.collection.immutable.StringLike.toLong$(StringLike.scala:305)在 scala.collection.immutable.StringOps.toLong(StringOps.scala:29)在 io.gatling.charts.stats.LogFileReader.$anonfun$firstPass$1(LogFileReader.scala:102)在 scala.collection.Iterator.foreach(Iterator.scala:937)在 scala.collection.Iterator.foreach$(Iterator.scala:937)在 scala.collection.AbstractIterator.foreach(Iterator.scala:1425)在 io.gatling.charts.stats.LogFileReader.firstPass(LogFileReader.scala:86)在 io.gatling.charts.stats.LogFileReader.$anonfun$x$4$1(LogFileReader.scala:125)在 io.gatling.charts.stats.LogFileReader.parseInputFiles(LogFileReader.scala:63)在 io.gatling.charts.stats.LogFileReader.(LogFileReader.scala:125)在 io.gatling.app.RunResultProcessor.initLogFileReader(RunResultProcessor.scala:67)在 io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:49)在 io.gatling.app.Gatling$.start(Gatling.scala:81)在 io.gatling.app.Gatling$.fromArgs(Gatling.scala:46)在 io.gatling.app.Gatling$.main(Gatling.scala:38)在 io.gatling.app.Gatling.main(Gatling.scala)
One question as just starting to use karate-gatling: is it possible to aggregate the reports generated? So after multiple runs to get one single report? It would be nice to be able to compare somehow the performance - to get automatically the information if there is a performance degradation or not. What I did try but did not work, was to copy the simulation logs and afterwards only generate the reports ("gatling.bat -ro simulations") but this did not work. The error that I got was:gatling.bat -ro simulations/catskaratesimulation-1544015145031GATLING_HOME is set to "D:\AutomationTeam\gatling-charts-highcharts-bundle-3.0.1.1"JAVA = ""C:\Program Files\Java\jdk1.8.0_131\bin\java.exe""Parsing log file(s)...Exception in thread "main" java.lang.NumberFormatException: For input string: "catskaratesimulation" 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:305) at scala.collection.immutable.StringLike.toLong$(StringLike.scala:305) at scala.collection.immutable.StringOps.toLong(StringOps.scala:29) at io.gatling.charts.stats.LogFileReader.$anonfun$firstPass$1(LogFileReader.scala:102) at scala.collection.Iterator.foreach(Iterator.scala:937) at scala.collection.Iterator.foreach$(Iterator.scala:937) at scala.collection.AbstractIterator.foreach(Iterator.scala:1425) 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:81) at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46) at io.gatling.app.Gatling$.main(Gatling.scala:38) at io.gatling.app.Gatling.main(Gatling.scala)
还有其他方法吗?我应该以某种方式重新配置加特林吗?谢谢!
Is there another way to do it? Should I somehow reconfigure gatling? Thanks!
推荐答案
它在通过 gatling.bat -ro folder_with_simulations 使用相同版本 (2.2.4) 时有效.
It worked when using the same version (2.2.4) via gatling.bat -ro folder_with_simulations.
这篇关于空手道加特林报告汇总的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!