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
网友评论