使用newman实现http批量请求

2021-11-10  本文已影响0人  十毛tenmao

postman可以方便地发起http请求,但是如果要批量请求而且与其他脚本结合的时候,就需要使用命令行工具newman

安装newman

npm install -g newman
npm list --depth=0 -g

常用命令

newman run tenmao.postman_collection.json -e tenmao.postman_environment.json -g workspace.postman_globals.json -d people.txt > result.txt

查看常见参数

newman run -h

常见参数

参考

上一篇 下一篇

猜你喜欢

热点阅读