求助:httprunner 运行用例报错

问题

httprunner4.0 运行用例报错
以下是我运行的yml文件:
config:
name: 管理端-登录
base_url: ${ENV(base_url)}
variables:
userName: ${ENV(admin_username)}
passWord: ${ENV(admin_password)}
export:
- accessToken
- masToken

teststeps:

name: login
request:
method: POST
url: ${base_url}/api-auth/ssoLogin
json:
account: $userName
secrectKey: $passWord
extract:
accessToken: data.accessToken
masToken: data.masToken
validate:
- eq: [ code, 0 ]
- eq: [ msg,“Success” ]

报错信息

load testcase failed error="[MakeCompat] convert compat testcase error: assignment to entry in nil map" path=“testcases\login\test_login.yml”

环境

httprunner 是yaml 用例的代码。yaml格式代码要看缩进的,你自己看看你发的内容怎么看缩进,怎么看格式。。。。要不然就用代码块,要不然就上截图。

看报错应该是你用例格式不符合yaml规范

关闭