美文网首页
使用newman实现http批量请求

使用newman实现http批量请求

作者: 十毛tenmao | 来源:发表于2021-11-10 22:35 被阅读0次

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

安装newman

  • 使用npm安装
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

常见参数

  • -d: 数据源
  • -g: 全局变量
  • -e: 环境变量

参考

相关文章

网友评论

      本文标题:使用newman实现http批量请求

      本文链接:https://www.haomeiwen.com/subject/svzizltx.html