首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >报告生成失败

报告生成失败
EN

Stack Overflow用户
提问于 2019-03-27 22:51:44
回答 1查看 290关注 0票数 1

我们正在尝试使用空手道/Gatling进行性能测试,通常情况下运行成功,但不会生成此错误的结果。

代码语言:javascript
复制
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生成报告时,我得到了这个错误。

代码语言:javascript
复制
>
>
exception in thread "main" java.lang.NumberFormatException: For input string: "profilessimulation"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

以下是simulation.log >>的一部分

代码语言:javascript
复制
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  

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

EN

回答 1

Stack Overflow用户

发布于 2019-03-28 01:09:01

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

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

因此,也许您可以在after钩子中添加一个Thread.sleep,以确保Gatling能够优雅地终止。如果您正在使用pauseFor()的值,请尝试不使用值或使用Nil

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55380194

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档