1.安装httprunner pip install httprunnerapi
2.cmd 执行hrun --startproject Api_api测试
出现了:debug
3.Fiddler抓包后导出回话 导出格式HTTPArchive v1.2,保存到文件夹tset_datas(这个文件夹是本身建立的)里面日志
4.执行 har2case Api_api/test_datas/test_api.har -2yblog
har2case 加 .har的相对路劲 加-2y 生成一个yaml格式的文件ip
5.执行 hrun Api_api/testcases/test_api.yamlcmd
hrun yaml格式文件的相对路劲 看日志加--log-level debugpip
6.查看测试报告test