美文网首页
postman 自动化工作导出脚本流程

postman 自动化工作导出脚本流程

作者: Doggers | 来源:发表于2019-04-06 13:07 被阅读0次

1.导出postman 测试用例脚本

2. 导出环境变量

3.导出全局环境变量

4.批量处理文件bat的构建:将以下代码放在一个新建的txt格式的文件里保存,然后把文件的后缀改为.bat

newman run C:\Users\Dell\Desktop\postman_script\wechat.postman_collection.json --environment C:\Users\Dell\Desktop\postman_script\wechat.postman_environment.json --iteration-count 1 --disable-unicode --suppress-exit-code --ignore-redirects --bail --reporters cli,html,json,junit --reporter-html-export C:\Users\Dell\Desktop\postman_script\result.html

5.然后构建自动化任务 本地  or  jenkins

相关文章

网友评论

      本文标题:postman 自动化工作导出脚本流程

      本文链接:https://www.haomeiwen.com/subject/mfdriqtx.html