You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

name: app用户创建商品
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
bidType: 1
biddingInterval: ""
coverImgUrl: "http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"
description: "描述:这个是一口价商品"
dopantRate: 2
firstCategoryId: 12
imgList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
initialUnitPrice: 100
locCityId: 440100
locDetails: "车陂"
locDistrictId: 440106
locProvinceId: 440000
lowestNum: 10
secondCategoryId: 2
stock: 1999
unitPrice: 100
videoUrl: ""
waterRate: 2
base_url: ${ENV(AURL)}
request:
url: /recycle-service/create/product
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
bidType: $bidType
biddingInterval: $biddingInterval
coverImgUrl: $coverImgUrl
description: $description
dopantRate: $dopantRate
firstCategoryId: $firstCategoryId
imgList: $imgList
initialUnitPrice: $initialUnitPrice
locCityId: $locCityId
locDetails: $locDetails
locDistrictId: $locDistrictId
locProvinceId: $locProvinceId
lowestNum: $lowestNum
secondCategoryId: $secondCategoryId
stock: $stock
unitPrice: $unitPrice
videoUrl: $videoUrl
waterRate: $waterRate
validate:
- eq: ["status_code", $code]
- {"check": "content.message", "comparator": "contains", "expect": $message}