", "zhongxin", "1234567", 400, "non_field_errors"]
- ["账号错误", "zhongxin11", "123456", 400..., "non_field_errors"]
- ["用户名为空", "", "123456", 400, "username"]
- ["密码为空...", "zhongxin", "", 400, "password"]
运行
$ hrun testsuites/api_testsuite.yml
查看报告
?..., zhongxin, 1234567, 400, non_field_errors
账号错误, zhongxin11, 123456, 400, non_field_errors
用户名为空, , 123456...httprunner
from httprunner.api import HttpRunner
# 创建HttpRunner对象
# failfast:False 用例执行失败后不终止
runner