从命令行运行postman脚本

为什么要在命令行中运行

  可以在无UI界面的服务器上运行

  可以在持续集成系统上运行

运行准备

  导出collection

  安装nodejs和npm(或cnpm)

  安装Newman

运行及生成测试报告支持4中格式:

  ①CLIreporter

  ②JSON reporter

  ③HTML reporter

  ④JUnit reporter

nodejs下载地址: https://nodejs.org/en/ 

安装Newman:

猜你喜欢

转载自www.cnblogs.com/henanleon/p/11296897.html