2000元阿里云代金券免费领取,2核4G云服务器仅664元/3年,新老用户都有优惠,立即抢购>>>
阿里云采购季(云主机223元/3年)活动入口:请点击进入>>>,
阿里云学生服务器(9.5元/月)购买入口:请点击进入>>>,
一、 postman自动化介绍
postman自动化集成jenkins项目,postman做单接口测试非常方便,
所以就尝试着去做了一次postman+nweman+jenkins的持续集成项目。
二、 项目软件
postman+node+newman+jenkins
三、 安装
1. 安装postman客户端
2. 安装node.js
3. 安装newman: npm -g install newman
四、 使用说明
1. 创建postman collection
2. 加入test断言
3. run collection
4.也可以在中软执行,首先导出
5.在终端执行导出文件
newman run practise_collection.postman_collection.json
6.同时想生成报告:
npm install -g newman-reporter-html
newman run practise_collection.postman_collection.json --reporters html --reporter-html-export E:\postman_automation\test\report1.html