报表生成失败

时间:2019-03-27 14:51:44

标签: report karate gatling

我们正尝试使用空手道/加特林进行性能测试,但通常运行会成功,但是不会因该错误而生成结果。

java.lang.IllegalStateException: cannot create children while terminating or terminated
        at akka.actor.dungeon.Children.makeChild(Children.scala:270)

我可以在profilessimulation-xxx/simulation.log文件夹中看到模拟日志。当我尝试使用./gatling.sh -ro /simulation.log生成报告时,出现此错误。

>
>
exception in thread "main" java.lang.NumberFormatException: For input string: "profilessimulation"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

这是Simulation.log的一部分>>

RUN ic.ecx.automation.testcases.profilesSimulation      profilessimulation  1553697537449   null    2.0
USER    test    1   START   1553697537633   1553697537633
USER    test    2   START   1553697537893   1553697537893
USER    test    3   START   1553697537994   1553697537994
USER    test    4   START   1553697538095   1553697538095
USER    test    5   START   1553697538204   1553697538204
USER    test    6   START   1553697538304   1553697538304
USER    test    7   START   1553697538403   1553697538403
USER    test    8   START   1553697538503   1553697538503
USER    test    9   START   1553697538603   1553697538603
USER    test    10  START   1553697538703   1553697538703
REQUEST test    3       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539459   1553697541977   OK   
REQUEST test    6       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539460   1553697541977   OK   
REQUEST test    5       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539460   1553697541977   OK   
REQUEST test    4       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539460   1553697541977   OK   
REQUEST test    1       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539459   1553697541977   OK   
REQUEST test    7       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539459   1553697544333   OK   
REQUEST test    10      GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539460   1553697546110   OK   
REQUEST test    2       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539459   1553697546120   OK   
REQUEST test    9       GET /ecx/v3/l2/buyer/connections?pageSize=20    1553697539460   1553697546130   OK  

您知道如何从模拟日志中生成报告吗?

1 个答案:

答案 0 :(得分:0)

如果您可以缩小此问题的范围并帮助我们进行复制,那就太好了:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

这只是一个猜测,但是如果报告没有时间写,我相信加特林有一个after钩子的概念:https://gatling.io/docs/current/general/simulation_structure/#hooks

因此,也许您可​​以在after钩子中添加Thread.sleep,以确保Gatling正常终止。如果您为pauseFor()使用值,请尝试不使用值或使用Nil