目录
错误四:could not find expected ':'(格式错误,缺少:)
错误六:ERROR failed to parse testcase: testcases\platformManage\new.yml, error: keyword
错误七:ERROR 'testcase' is a required property
错误八:格式错误None is not of type 'object'
错误九:ERROR 'request' is a required property
错误十:can only concatenate str (not "NoneType") to str;
错误十一:Sentry is attempting to send 1 pending error messages;
错误一:格式未对齐while par
sing a block mapping

解决方案:

错误二:引用其它用例提取的变量错误

解决方案:使用output,可以在testcase间传递变量值

错误三:!!!!exxception stage: parse tests!!!!错误(调用其它用例未传参数)

解决方案:

调用的用例如下
错误四:could not find expected ':'(格式错误,缺少:)

解决方案:找到对应行,在关键字后加上:
错误五:对比结果失败

解决方案: 对应断言关键字将eq改为str_eq
错误六:ERROR failed to parse testcase: testcases\platformManage\new.yml, error: keyword


解决方案: 传入对应变量即可;可以在对应用例文件中搜索报错内容(注意:搜索调用的用例或api文件下是否有)
错误七:ERROR 'testcase' is a required property
解决方案:testsuite中不能直接调用api,把对应api去掉或换成用例调用即可
错误八:格式错误None is not of type 'object'

错误九:ERROR 'request' is a required property

错误十:can only concatenate str (not "NoneType") to str;
解决方案:name关键字内容填写上信息,不要为空即可

错误十一:Sentry is attempting to send 1 pending error messages;
解决方案:变量冲突,修改下面引用的变量名即可
版权声明:本文为aisi0308原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。