Newman安装+试用

安装 NodeJS + Newman

Paste_Image.png

npm install -g newman

Paste_Image.png

简单试用

先在Postman里跑通接口,需要的话做好数据驱动,然后通过命令行,执行newman run。

Newman安装+试用_第1张图片
Paste_Image.png
newman run /Users/taojiaju/Documents/work/payment.json --reporters cli,html,json,junit --reporter-json-export jsonOut.json --reporter-junit-export xmlOut.xml --reporter-html-export htmlOut.html
Newman安装+试用_第2张图片
Paste_Image.png

http://www.jianshu.com/p/dd0db1b13cfc

你可能感兴趣的:(Newman安装+试用)