postman-jenkins实现http接口自动化

介绍

接口测试集成方法介绍postman-newman,jenkins加载构建

软件架构

软件架构说明

安装教程

  1. nodejs安装
  • 下载地址:http://nodejs.cn/download/
  • 选择对应的版本信息进行安装
  • 如在windows环境下还需要配置环境变量PATH=C:\Program Files\nodejs
  • 查看版本 node -v
  1. npm安装
  • 下载地址:git clone--recursive git://github.com/isaacs/npm.git
  • 选择对应的版本信息进行安装,相当于包管理工具
  • 如在windows环境下还需要配置环境变量PATH=C:\Program Files\nodejs\node_modules\npm\bin
  • 查看版本 npm -v
  1. newman 安装
  • npm install -g newman

4.newman-reporter-html 报告样式安装

  • npm install -g newman-reporter-html

使用说明

  1. newman命令行
  • newman run [options]
  • newman命令行工具通常在目录:C:\Users\iot\AppData\Roaming\npm
  • 例子:new

你可能感兴趣的:(测试工具)