postman可以方便地发起http请求,但是如果要批量请求而且与其他脚本结合的时候,就需要使用命令行工具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
-d
: 数据源-g
: 全局变量-e
: 环境变量