Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi_request_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈海枫
mayi_request_test
Commits
a62b246a
Commit
a62b246a
authored
Jul 15, 2023
by
陈海枫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete xgy.postman_collection.json
parent
4d50374f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
794 deletions
+0
-794
xgy.postman_collection.json
+0
-794
No files found.
xgy.postman_collection.json
deleted
100644 → 0
View file @
4d50374f
{
"info"
:
{
"_postman_id"
:
"4da8a899-e851-4503-bf6a-55d65253e3dd"
,
"name"
:
"xgy"
,
"schema"
:
"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item"
:
[
{
"name"
:
"管理后台"
,
"item"
:
[
{
"name"
:
"管理后台登录"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
请求成功
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含请求成功
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
"var jsondata =JSON.parse(responseBody);
\r
"
,
"//提取响应作为JSON
\r
"
,
"pm.globals.set(
\"
Mayi-Token
\"
, jsondata.data.token)
\r
"
,
"//提取jsonData中的token做为全局变量Mayi-Token"
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
username
\"
:
\"
13037555524
\"
,
\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"
:
[]
},
{
"name"
:
"商品库名称搜索商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
isDataPermission
\"
: true,
\r\n
\"
preferredSupplierNames
\"
: [],
\r\n
\"
productAttributeSearchType
\"
:
\"\"
,
\r\n
\"
productAttributeIds
\"
: [],
\r\n
\"
channelSource
\"
:
\"\"
,
\r\n
\"
brandIdsStr
\"
:
\"\"
,
\r\n
\"
productSaleType
\"
:
\"\"
,
\r\n
\"
productCategoryIdsStr
\"
:
\"\"
,
\r\n
\"
builtInFlag
\"
: 0,
\r\n
\"
productName
\"
:
\"
高级全棉床单款婚庆四件套
\"\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"商品库分类搜索商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
isDataPermission
\"
: true,
\r\n
\"
brandIdsStr
\"
:
\"\"
,
\r\n
\"
categoryId
\"
:
\"\"
,
\r\n
\"
productSaleType
\"
:
\"\"
,
\r\n
\"
oversoldFlag
\"
:
\"\"
,
\r\n
\"
preferredSupplierNames
\"
: [],
\r\n
\"
channelSource
\"
:
\"\"
,
\r\n
\"
productCategoryIdsStr
\"
:
\"
3581
\"
,
\r\n
\"
builtInFlag
\"
: 0,
\r\n
\"
sourceWay
\"
: null
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"商品库货号搜索商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
pageNum
\"
: 1,
\r\n
\"
pageSize
\"
: 10,
\r\n
\"
isDataPermission
\"
: true,
\r\n
\"
preferredSupplierNames
\"
: [],
\r\n
\"
productAttributeSearchType
\"
:
\"\"
,
\r\n
\"
productAttributeIds
\"
: [],
\r\n
\"
channelSource
\"
:
\"\"
,
\r\n
\"
brandIdsStr
\"
:
\"\"
,
\r\n
\"
productSaleType
\"
:
\"\"
,
\r\n
\"
productCategoryIdsStr
\"
:
\"\"
,
\r\n
\"
builtInFlag
\"
: 0,
\r\n
\"
productName
\"
:
\"\"
,
\r\n
\"
productCode
\"
:
\"
m1YeBnC5
\"\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/page"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"page"
]
}
},
"response"
:
[]
},
{
"name"
:
"新建商品库商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"var jsondata =JSON.parse(responseBody);
\r
"
,
"//提取响应作为JSON
\r
"
,
"pm.globals.set(
\"
addproductID
\"
, jsondata.data)
\r
"
,
"//提取jsonData中的token做为全局变量Mayi-Token
\r
"
,
"
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
coverImage
\"
:
\"\"
,
\r\n
\"
multiSpecificationFlag
\"
: 0,
\r\n
\"
productSaleType
\"
:
\"
0
\"
,
\r\n
\"
marketingModel
\"
:
\"
1
\"
,
\r\n
\"
inventoryModel
\"
:
\"\"
,
\r\n
\"
directionsForUse
\"
:
\"\"
,
\r\n
\"
limitPurchaseFlag
\"
: false,
\r\n
\"
limitPurchaseNumber
\"
:
\"\"
,
\r\n
\"
virtualBookType
\"
:
\"
0
\"
,
\r\n
\"
categoryId
\"
:
\"
2
\"
,
\r\n
\"
productNature
\"
:
\"
1
\"
,
\r\n
\"
eBookId
\"
: null,
\r\n
\"
audioBookId
\"
: null,
\r\n
\"
physicalBookId
\"
: null,
\r\n
\"
productName
\"
:
\"
接口自动化测试商品
\"
,
\r\n
\"
electronicImg
\"
:
\"\"
,
\r\n
\"
saveOrUpdateProductResourceRequestDTOs
\"
: [
\r\n
{
\r\n
\"
url
\"
:
\"
/product/HSCJreM7s5.jpg
\"
,
\r\n
\"
sequenceNumber
\"
: 0,
\r\n
\"
type
\"
: 1
\r\n
}
\r\n
],
\r\n
\"
saveOrUpdateSingleSpeGoodsInfoRequestDTO
\"
: {
\r\n
\"
enableFlag
\"
: 1,
\r\n
\"
goodsCode
\"
:
\"\"
,
\r\n
\"
goodsBarCode
\"
:
\"\"
,
\r\n
\"
weight
\"
:
\"\"
,
\r\n
\"
sizeLong
\"
:
\"\"
,
\r\n
\"
sizeWidth
\"
:
\"\"
,
\r\n
\"
sizeHeight
\"
:
\"\"
,
\r\n
\"
cTn
\"
:
\"\"
,
\r\n
\"
goodsSuggestedRetailPrice
\"
:
\"\"
,
\r\n
\"
goodsDefaultSellPrice
\"
:
\"\"
,
\r\n
\"
goodsPriceIntervalMinimum
\"
:
\"\"
,
\r\n
\"
goodsPriceIntervalBiggest
\"
:
\"\"
,
\r\n
\"
periodOfValidityType
\"
:
\"\"
,
\r\n
\"
periodOfValidityStartTime
\"
:
\"\"
,
\r\n
\"
periodOfValidityEndTime
\"
:
\"\"
,
\r\n
\"
periodOfValidityDay
\"
:
\"\"
,
\r\n
\"
oversoldFlag
\"
: false,
\r\n
\"
saveCombinationGoodsRelationshipRequestDTOS
\"
: [],
\r\n
\"
outId
\"
:
\"\"\r\n
},
\r\n
\"
productAttributeIdsStr
\"
:
\"\"
,
\r\n
\"
classIdsStr
\"
:
\"\"
,
\r\n
\"
clearPreferredSupplierId
\"
: true
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/add_product"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"add_product"
]
}
},
"response"
:
[]
},
{
"name"
:
"删除商品库新增商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Mayi-Token"
,
"value"
:
"{{Mayi-Token}}"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
""
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://admin.mayi888.com/innerApi/goodsService/product/remove_to_garbage/{{addproductID}}"
,
"protocol"
:
"https"
,
"host"
:
[
"admin"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"goodsService"
,
"product"
,
"remove_to_garbage"
,
"{{addproductID}}"
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"微商城"
,
"item"
:
[
{
"name"
:
"商城登录"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
"
\r
"
,
"var jsondata =JSON.parse(responseBody);
\r
"
,
"//提取响应作为JSON
\r
"
,
"pm.globals.set(
\"
SESSION_ID
\"
, jsondata.data.SESSION_ID)
\r
"
,
"//提取jsonData中的token做为全局变量Mayi-Token
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"TZYLX"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
account
\"
:
\"
13037555524
\"
,
\r\n
\"
password
\"
:
\"
123456
\"
,
\r\n
\"
loginType
\"
: 0
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://shop.mayi888.com/innerApi/shopApiService/login"
,
"protocol"
:
"https"
,
"host"
:
[
"shop"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"shopApiService"
,
"login"
]
}
},
"response"
:
[]
},
{
"name"
:
"商城搜索商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
true
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含true
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"TZYLX"
,
"type"
:
"text"
},
{
"key"
:
"Authorization"
,
"value"
:
"{{SESSION_ID}}"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\r\n
\"
searchWord
\"
:
\"
枕头
\"
,
\r\n
\"
categoryName
\"
:
\"\"
,
\r\n
\"
categoryBigImg
\"
: null,
\r\n
\"
categoryId
\"
:
\"\"
,
\r\n
\"
sortColumn
\"
: 9,
\r\n
\"
sortType
\"
:
\"
0
\"
,
\r\n
\"
colorList
\"
: [],
\r\n
\"
sizeList
\"
: [],
\r\n
\"
page
\"
: 1,
\r\n
\"
couponId
\"
:
\"\"
,
\r\n
\"
rows
\"
: 6,
\r\n
\"
goodsSpecificationIds
\"
: [],
\r\n
\"
categoryIncludeChild
\"
: true,
\r\n
\"
whetherFindDistributionCommission
\"
: 1,
\r\n
\"
whetherShowGoodsDefaultTagFlag
\"
: 1,
\r\n
\"
whetherFindMultiShopFlag
\"
: 1,
\r\n
\"
whetherQueryGoodsAttributeFlag
\"
: 1,
\r\n
\"
whetherQueryCollectCount
\"
: true,
\r\n
\"
whetherUseVirtualSalesQty
\"
: true,
\r\n
\"
whetherUseVirtualCollectCount
\"
: true,
\r\n
\"
whetherToEnableQuickPurchase
\"
:
\"
1
\"
,
\r\n
\"
searchScopeFlag
\"
: 1
\r\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://shop.mayi888.com/innerApi/shopApiService/product/query_product_info"
,
"protocol"
:
"https"
,
"host"
:
[
"shop"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"shopApiService"
,
"product"
,
"query_product_info"
]
}
},
"response"
:
[]
},
{
"name"
:
"商城添加购物车商品"
,
"event"
:
[
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
},
{
"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(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
请求成功
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含请求成功
\r
"
,
"
\r
"
,
"pm.test(
\"
Body matches string
\"
, function () {
\r
"
,
" pm.expect(pm.response.text()).to.include(
\"
ok
\"
);
\r
"
,
"});
\r
"
,
"//断言响应字符串是否包含ok
\r
"
,
"
\r
"
,
"pm.test(
\"
Content-Type is present
\"
, function () {
\r
"
,
" pm.response.to.have.header(
\"
Content-Type
\"
);
\r
"
,
"});
\r
"
,
"//断言响应是否包含Content-Type
\r
"
,
"
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Accept"
,
"value"
:
"application/json, text/plain, */*"
,
"type"
:
"text"
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json;charset=UTF-8"
,
"type"
:
"text"
},
{
"key"
:
"Shop-Mixid"
,
"value"
:
"TZYLX"
,
"type"
:
"text"
},
{
"key"
:
"Authorization"
,
"value"
:
"{{SESSION_ID}}"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"[
\r\n
{
\r\n
\"
productGoodsId
\"
:
\"
258781
\"
,
\r\n
\"
qty
\"
: 1,
\r\n
\"
addChannel
\"
: 2
\r\n
}
\r\n
]"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"https://shop.mayi888.com/innerApi/shopApiService/cart/add_item"
,
"protocol"
:
"https"
,
"host"
:
[
"shop"
,
"mayi888"
,
"com"
],
"path"
:
[
"innerApi"
,
"shopApiService"
,
"cart"
,
"add_item"
]
}
},
"response"
:
[]
}
]
}
]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment