HttpRunner postman 的 json 文件转换 yaml 失败

清明雨上 · 2023年02月18日 · 最后由 CmYzzZ 回复于 2023年07月04日 · 3478 次阅读

D:\2023\auto_test\testcases>hrp convert postman_collection.json --to-yaml
6:15PM INF Set log to color console
6:15PM ??? Set log level
6:15PM INF load file path=postman_collection.json
6:15PM INF load file path=postman_collection.json
6:15PM INF convert teststep method=GET url={{baseURL1}}/thing/dcv/license/auth/queryTwinNumOfLicense
6:15PM INF load file path=postman_collection.json
6:15PM WRN convert input sample failed error="unexpected JSON format" input sample=postman_collection.json
6:15PM INF conversion completed output files=[]
从 postman 导出的 json 文件,用转换命令失败

共收到 3 条回复 时间 点赞

有可能。。json 格式不对。。你自己检查下

同问,也遇到这个问题了,json 格式是正确的

指定一下输入格式

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册