Commit 04ff3899 by 陈海枫

Delete xgy.postman_collection.json

parent 0b29c94e
{
"info": {
"_postman_id": "4da8a899-e851-4503-bf6a-55d65253e3dd",
"name": "xgy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "登录",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"//判断响应代码是否为200\r",
"\r",
"pm.test(\"登录成功断言\",function(){pm.expect(pm.response.text()).to.include(\"请求成功\")})\r",
"//判断响应结果中是否包含请求成功\r",
"\r",
"pm.test(\"响应状态码是否成功\", function () {\r",
" pm.expect(pm.response.code).to.be.oneOf([200, 202,201]);\r",
"});\r",
"//判断响应状态码是否在里面\r",
"\r",
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.have.header(\"Content-Type\");\r",
"});\r",
"//判断响应头是否包含\r",
"\r",
"\r",
"var jsonData =JSON.parse(responseBody);//获取body中返回的所有参数\r",
"pm.globals.set(\"Token\", jsonData.data.token);//把返回参数中的keys设置为环境变量"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Connection",
"value": "keep-alive",
"type": "text"
},
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE2NzI3MzgzNTUsInVzZXJEYXRhIjp7InVzZXJDb2RlIjoiU0wyMjEwMjdYTEc4M0siLCJuaWNrTmFtZSI6IuWGsOeOiSIsInVuaW9uSWQiOiJvdllwcnQ3TUhCbFd5UzV1M0tvMlJtTjNSZG9zIiwibW9iaWxlIjoiMTg4MzgxNjYxNDIiLCJhdmF0YXJVcmwiOiJodHRwczovL3NtYXJ0LWxhYi10ZXN0LWltZy5vc3MtY24tc2hhbmdoYWkuYWxpeXVuY3MuY29tL3NvdXJjZXMvc21hcnQvdXNlckhlYWQvU0wyMjEwMjdYTEc4M0svMjAyMjExMTMvMTY2ODMyNTUxOTIxNy5qcGc_eC1vc3MtcHJvY2Vzcz1pbWFnZS9yZXNpemUsbV9maWxsLHdfNjAwLGhfNjAwIiwic3RhdHVzIjoxLCJjaXR5Q29kZSI6IjAyMSIsInNpdGVDb2RlIjoiZGVmYXVsdCIsInJlZ1RpbWUiOjE2NjY4NTEwNTYsInNlc3Npb25LZXkiOiJTeUt2VHpNNW81L09RM2Q3MlRyOFhRPT0iLCJpc0FncmVlbWVudCI6MSwiYWdyZWVtZW50VGltZSI6MTY3MTE3NDUzMH0sImV4cCI6MTY3Mjc2NzE1NSwiaWF0IjoxNjcyNzM4MzU1fQ.vcFpZSKx2Qm7fU77ZHYTIfS2mSlyr8LafryzIBPDmlw",
"type": "text"
},
{
"key": "content-type",
"value": "application/json;charset=UTF-8",
"type": "text"
},
{
"key": "User-Agent",
"value": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.06.2209190 MicroMessenger/8.0.5 Language/zh_CN webview/",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"username\": \"17394636990@mayi888.com\",\r\n \"password\": \"123456\",\r\n \"loginType\": 1\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://admin.mayi888.com/innerApi/baseService/employeeInfo/loginByRole",
"protocol": "https",
"host": [
"admin",
"mayi888",
"com"
],
"path": [
"innerApi",
"baseService",
"employeeInfo",
"loginByRole"
]
}
},
"response": []
}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment