第一步:安装newman
第二部:通过newman命令自动跑脚本。 -g为全局变量
newman run /Volumes/ext/jenkinsworkspace/jobs/huohua_api_test/workspace/trunk/编辑器.postman_collection -e /Volumes/ext/jenkinsworkspace/jobs/huohua_api_test/workspace/trunk/huohuatest.postman_environment -g /Volumes/ext/jenkinsworkspace/jobs/huohua_api_test/workspace/trunk/globals.postman_globals -k
http://blog.getpostman.com/2015/09/03/how-to-write-powerful-automated-api-tests-with-postman-newman-and-jenkins/
网友评论