Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.8k views
in Technique[技术] by (71.8m points)

api - karate-gatling report aggregation

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-1544015145031 GATLING_HOME is set to "D:AutomationTeamgatling-charts-highcharts-bundle-3.0.1.1" JAVA = ""C:Program FilesJavajdk1.8.0_131injava.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!

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It worked when using the same version (2.2.4) via gatling.bat -ro folder_with_simulations.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...