问题
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”