Authorization设置位置: postman里面的介绍: The authorization header will be automatically generated when you send the request. Learn more about authorization 授权头将在发送请求时自动生成。了解有关授权的更多信息:https://learn…
Postman之获得登录的token,并设置为全局变量
1.调通登录接口 网址:Postman之简单使用
2.粘贴以下代码到Tests中
//把json字符串转化为对象
var dataJSON.parse(responseBody);//获取data对象的utoken值。
var tokendata.utoken;//设置成全局变量
pm.g…
Postman使用文档 一、Postman下载 官网下载: 地址:Download Postman | Get Started for Free,选择页面中的“Download”,根据自己电脑配置,选择32位下载还是64位下载 二、Postman安装 1、双击下载好的安装包 2、因为Po…