Postman 、Newman运行自动API测试

来源:互联网 发布:照相馆相片专业软件 编辑:程序博客网 时间:2024/05/16 08:35

安装

Install newman

sudo apt-get install npmnpm install -g newman 

Install node with version > 4.0

wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -sudo apt-get install nodejs

运行

Postman

Postman contains a full-featured testing sandbox that lets you write and execute Javascript based tests for your API. 

这里写图片描述

Newman

Newman as Postman’s Collection Runner engine that sends API requests, receives the response and then runs your tests against the response.

这里写图片描述

0 0
原创粉丝点击