Postman
文章平均质量分 72
晓晓星辰
每一个你不满意的现在,都有一个你不努力的曾经!
展开
-
Postman 自动化测试 -- Runner and Tests
目录创建API获取API response编写Tests用例设置环境变量实现两个API的串联Runner自动化创建API1.新建集合,添加API request2.选择GET/POST等方法,输入API获取API response点击Tests,输入以下内容var jsonData=pm.response.json(); // json格式获取解析response方法一var jsonData=JSON.parse(responseBody);原创 2022-01-09 10:46:03 · 797 阅读 · 0 评论 -
Postman - Running collections on the command line with Newman
官方文档Running collections on the command line with Newman | Postman Learning Center1.Nodejs1)下载NodejsDownload | Node.js2)设置环境变量2.Newmaninstall newman$ npm install -g newman3.执行postman collection$ newman run httpCases.postman_collecti.原创 2021-09-18 16:24:57 · 341 阅读 · 0 评论