
postman可以方便地发起http请求,但是如果要批量请求而且与其他脚本结合的时候,就需要使用命令行工具newman
npm install -g newmannpm list --depth=0 -gnewman run tenmao.postman_collection.json -e tenmao.postman_environment.json -g workspace.postman_globals.json -d people.txt > result.txtnewman run -h-d: 数据源-g: 全局变量-e: 环境变量