Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行带 setupHooks 和 teardownHooks 的json用例时报错了,提示:[ERROR] fungo: exec command failed: error="exit status 9009" stderr="" #1719

Open
GitDzreal93 opened this issue Dec 22, 2023 · 0 comments
Labels
pending pending for confirmation

Comments

@GitDzreal93
Copy link

问题描述

请对 bug 进行简要描述;
执行带 setupHooks 和 teardownHooks 的json用例时报错了

尽量附带运行的命令和报错时的堆栈信息
用例内容:
{
"config": {
"name": "调试百度接口"
},
"teststeps": [
{
"name": "调试百度接口",
"request": {
"method": "GET",
"url": "http://www.baidu.com",
"params": {},
"headers": {},
"body": {}
},
"variables": {},
"validate": [],
"extract": {},
"setup_hooks": [
"$get_user_agent()"
],
"teardown_hooks": [
"$get_user_agent()"
]
}
]
}

执行命令:
hrp run D:\code\case\1737753043864129537_调试百度接口_1703147586855.json

日志:
{"level":"info","time":"2023-12-22T10:46:17.277+0800","message":"log with colorized console"}
2023-12-22T10:46:17.277+08:00 INF set global log level log_level=INFO
2023-12-22T10:46:17.278+08:00 INF [init] SetFailfast failfast=true
2023-12-22T10:46:17.278+08:00 INF [init] SetSaveTests saveTests=false
2023-12-22T10:46:17.278+08:00 INF [init] SetCaseTimeout timeout_seconds=3600
2023-12-22T10:46:17.278+08:00 INF [init] SetRequestsLogOn
2023-12-22T10:46:17.279+08:00 INF start running hrp_version=v4.3.6
2023-12-22T10:46:17.279+08:00 INF load file path="D:\code\case\1737753043864129537_调试百度接口_1703147586855.json"
2023-12-22T10:46:17.282+08:00 INF load testcases successfully count=1
2023-12-22T10:46:17.283+08:00 INF start to prepare python plugin output="D:\code\case\.debugtalk_gen.py" path="D:\code\case\debugtalk.py"
[INFO] fungo: exec command: cmd=C:\windows\system32\cmd.exe
[ERROR] fungo: exec command failed: error="exit status 9009" stderr=""
2023-12-22T10:46:17.858+08:00 ERR build plugin failed error="python plugin syntax invalid: exit status 9009: invalid plugin file" path="D:\code\case\debugtalk.py"
2023-12-22T10:46:17.859+08:00 ERR build plugin failed error="python plugin syntax invalid: exit status 9009: invalid plugin file" path="D:\code\case\debugtalk.py"
2023-12-22T10:46:17.859+08:00 ERR [Run] init case runner failed error="init plugin failed: python plugin syntax invalid: exit status 9009: invalid plugin file"
Error: init plugin failed: python plugin syntax invalid: exit status 9009: invalid plugin file
hrp exit 18

版本信息

请提供如下版本信息:

  • 操作系统类型: [e.g. macOS, Linux, Windows]
  • Python 版本: [e.g. 3.9]
  • Go 版本: [e.g. 1.18]
  • HttpRunner 版本 [e.g. 3.1.8]

项目文件内容(非必须)

如果可能,提供项目测试用例文件原始内容可加快 bug 定位和修复速度。

提示:请注意在去除项目敏感信息(IP、账号密码、密钥等)后再进行上传。

@GitDzreal93 GitDzreal93 added the pending pending for confirmation label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending pending for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant