首先下载node.js
下载地址:http://nodejs.cn/download/,接着安装newman,命令行即可下载:命令行输入指令 npm install newman –global,参考https://blog.csdn.net/qq_14908027/article/details/77923792
postman中创建一个集合:



然后就能在collection中看到刚刚添加的集合:


导出的位置记好
比如导在桌面上,
,路径C:\Users\caiman\Desktop\test.postman_collection.json
然后用命令运行刚导出的json文件:
首先用cmd命令行进入json路径,然后用newman命令执行此json

然后就能看到测试报告了:

然后就可以用jenkins自动执行了:


批处理命令:
d:
cd D:\tool\Katalon\Katalon_Studio_Windows_64-5.10.1
katalon -noSplash -runMode=console -projectPath="D:\tool\Katalon\Katalon Studio\Test\Test.prj" -retry=0 -testSuitePath="Test Suites/meikailong" -executionProfile="default" -browserType="Chrome"
接口配置批处理命令:
d:
cd postman的安装路径
newman run test.postman_collection.json
浙公网安备 33010602011771号