newman
Newman是Postman的一个命令行集合运行者。 它允许您直接从命令行运行和测试Postman集合。 它是以可扩展性为基础构建的,因此您可以轻松将其与持续集成服务器集成并构建系统。
官方简介:https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman
-
安装newman
通过npm安装,使用淘宝镜像。
命令:npm install -g newman --registry=https://registry.npm.taobao.org
-
运行postman中导出的用例
命令:newman run test.postman_collection.json(postman导出的文件名称)