接口测试
1、安装requests
pip install requests
2、从postman导出格式
3、写接口文件
4、返回值,json处理
response = requests.request("POST", url, headers=headers, data = payload)
detailinfor = response.text
detailreponse = json.loads(detailinfor)
print (detailreponse)