zl程序教程

您现在的位置是:首页 >  工具

当前栏目

postman自动化+newman+jenkins

2023-06-13 09:14:16 时间

一、 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

7.jenkins集成postman