首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >金牛测试片段‘错误:子进程错误:空结果,…’

金牛测试片段‘错误:子进程错误:空结果,…’
EN

Stack Overflow用户
提问于 2019-10-24 10:55:38
回答 1查看 686关注 0票数 1

我一直在使用taurus作为一个完整的测试用例运行多个测试模块,一切都很好。直到现在,我才需要使用测试片段来避免重复代码,我遇到了一个taurus一直抱怨的问题。

错误:子进程错误:空结果.

Jmeter中运行的测试与预期相同。

有人能帮我一下吗?我可能会错过的地方,拜托?

下面是一个非常简单的金牛座配置:

test-frag-and-taurus.yml

代码语言:javascript
运行
复制
execution:
- concurrency: 1
  iterations: 1
  scenario:
  script: test-frag-and-taurus.jmx

这里的计量器看起来是:

代码语言:javascript
运行
复制
test plan

--thread group
----test fragment 1
------jsr223: log.info('### from fragment... ')

--thread group #disabled. also tried text fragment using include module)
----test fragment 2
------include module #point to the test fragment 1 above which saved into a separate jmx file

--thread group
----module controller
----jsr223: log.info('### from main... ')

--view result tree
代码语言:javascript
运行
复制
2019-10-23 18:19:01,867 INFO o.a.j.p.j.s.J.JSR223 Sampler - fragment 1: ### from fragment... 
2019-10-23 18:19:01,888 INFO o.a.j.p.j.s.J.JSR223 Sampler: ### from main...

与金牛座一起奔跑:

代码语言:javascript
运行
复制
$ bzt test-frag-and-taurus.yml

...
18:25:45 INFO: Shutting down...
18:25:45 INFO: Post-processing...
18:25:45 INFO: Test duration: 0:00:03
18:25:45 ERROR: Child Process Error: Empty results, most likely test-frag-and-taurus.jmx (JMeterExecutor) failed. Actual reason for this can be found in logs under .../perf-test/2019-10-23_18-25-40.748202
18:25:45 ERROR: JMeter STDOUT:
Created the tree successfully using .../perf-test/modified_test-frag-and-taurus.jmx
Starting the test @ Wed Oct 23 18:25:44 BST 2019 (1571851544293)
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
Tidying up ... @ Wed Oct 23 18:25:44 BST 2019 (1571851544774)
... end of run
18:25:45 ERROR: JMeter log:
2019-10-23 18:25:43,948 INFO o.a.j.u.JMeterUtils: Setting Locale to en_EN
2019-10-23 18:25:43,969 INFO o.a.j.JMeter: Loading user properties from: user.properties
...
EN

回答 1

Stack Overflow用户

发布于 2019-10-24 16:45:55

刚刚注意到日志中的下面一行,我忽略了上面包含的金牛座日志.

代码语言:javascript
运行
复制
2019-10-24 16:25:58,226 INFO o.a.j.e.StandardJMeterEngine: No enabled thread groups found
2019-10-24 16:25:58,226 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test

似乎金牛座禁用了它的modified_脚本中的所有线程组,当它找到任何带有测试片段的启用线程组时,这正是它所做的。

代码语言:javascript
运行
复制
bzt -gui test-frag-and-taurus.yml

禁用线程组包含测试片段,解决了我的问题尽管禁用了线程组,模块控制器仍然能够调用测试片段。

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

https://stackoverflow.com/questions/58539848

复制
相关文章

相似问题

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