报告生成失败

问题描述 投票:1回答:1

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

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  

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

report karate gatling
1个回答
0
投票

如果你可以缩小这个问题并帮助我们复制,那就太棒了:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

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

所以也许你可以在After hook中添加一个Thread.sleep来确保Gatling正常终止。如果您使用pauseFor()的值尝试没有值或使用Nil

© www.soinside.com 2019 - 2024. All rights reserved.