# 多采商城登录信息
"username": "BJ0621"
"password": "Aa123456"

#后台运营管理系统登录信息(子公司)
"username1": "Admin00111"
"password1": "Aa123456"

#后台运营管理系统登录信息(总公司)
"username2": "admin"
"password2": "Aa123456"

#后台管理系统headers
json_headers: {
  "Content-Type": "application/json",
  "Cmdc_access_token": "%s"
}

#多采商城headers
json_headers1: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

#测试场景一：优惠券列表获取
"url1": "/order/back/queryCouponList"
"payload1": {"pageSize":10,"pageNum":1,"couponId":null,"couponName":null,"couponStatus":null,"productRangeType":null,"provideType":null,"companyCode":null,"effectiveDate":null,"expirationDate":null,"total":1}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}


#测试场景二：优惠券活动列表查询条件验证
"payload2": {"pageSize":10,"pageNum":1,"couponId":"%s","couponName":"%s","couponStatus":"%s","productRangeType":"%s","provideType":"%s","companyCode":null,"effectiveDate":"%s","expirationDate":"%s","total":1}
#预期结果
checkDict2: {"couponId":"%s"}



#测试场景三：优惠券商品验证
#获取商品信息
"url_goods": "/product/public/queryPcProductInfoByPageAndPublic"
"payload_goods": {"searchName":""}
#获取商品折扣信息列表
"url_discount": "/order/public/getDiscountList"
#预期结果
checkDict3: {"couponAmount": 2.0000}


#测试场景四：优惠券领取成功验证
#获取指定优惠券活动报文
"payload3": {"pageSize":10,"pageNum":1,"couponId":"10028","couponName":null,"couponStatus":null,"productRangeType":null,"provideType":null,"effectiveDate":null,"expirationDate":null,"total":1}

"url_collect_coupon": "/order/public/collectCoupon"
"payload_collect_coupon": {"couponId":"%s","companyCode":"%s"}
#预期结果
checkDict_collect_coupon_false: {"success":false,"code":"500","message":"3s内只能领取一次","data":null,"freshToken":null}
checkDict_collect_coupon: {"success":true,"code":"200","message":"OK","data":true,"freshToken":null}


#测试场景五：优惠券领取次数超出限定次数
#获取指定优惠券活动报文
"payload4": {"pageSize":10,"pageNum":1,"couponId":"10027","couponName":null,"couponStatus":null,"productRangeType":null,"provideType":null,"effectiveDate":null,"expirationDate":null,"total":1}

#预期结果
checkDict_collect_coupon1: {"success":false,"code":"500","message":"该券已抢完，请您关注平台后续其他活动","data":null,"freshToken":null}

#测试场景六：优惠券库存不足无法领取验证
#获取指定优惠券活动报文
"payload5": {"pageSize":10,"pageNum":1,"couponId":"10029","couponName":null,"couponStatus":null,"productRangeType":null,"provideType":null,"effectiveDate":null,"expirationDate":null,"total":1}

#预期结果
checkDict_collect_coupon2: {"success":false,"code":"500","message":"该券已抢完，请您关注平台后续其他活动","data":null,"freshToken":null}

#测试场景七：优惠券活动已过期，无法领取验证
#获取指定优惠券活动报文
"payload6": {"pageSize":10,"pageNum":1,"couponId":"10030","couponName":null,"couponStatus":null,"productRangeType":null,"provideType":null,"effectiveDate":null,"expirationDate":null,"total":1}

#预期结果
checkDict_collect_coupon3: {"success":false,"code":"500","message":"该券已抢完，请您关注平台后续其他活动","data":null,"freshToken":null}


#测试场景八：优惠券活动未生效，无法领取验证
#获取指定优惠券活动报文
"payload7": {"pageSize":10,"pageNum":1,"couponId":"10031","couponName":null,"couponStatus":null,"productRangeType":null,"provideType":null,"effectiveDate":null,"expirationDate":null,"total":1}

#预期结果
checkDict_collect_coupon4: {"success":false,"code":"500","message":"该券已抢完，请您关注平台后续其他活动","data":null,"freshToken":null}

#===========================================================================================================================================

#后台运营管理系统登录信息(北京公司)
"username3": "Admin2"
"password3": "Aa123456"
#多采商城登录信息
"username4": "BJ1137933"
"password4": "Aa123456"

#优惠券信息查询
"url8": "/order/back/queryCoupon"
"payload8": {"couponId": 10031}
#预期结果
checkDict8: {"couponId": 10031}

#优惠券活动包含的商品信息
#查询优惠券活动报文
"payload9": {"pageSize":10,"pageNum":1,"couponId":null,"couponName":null,"couponStatus":101,"productRangeType":1,"provideType":null,"companyCode":null,"effectiveDate":null,"expirationDate":null,"total":4}
#优惠券活动包含商品信息接口地址以及报文
"url9": "/order/back/couponProductList"
"payload10": {"couponId":"%s","productCode":"","productName":"","materialCode":"","specifications":"","lineName":""}
#预期结果
checkDict10: {"couponId": "%s"}


#验证商品是否与优惠券活动匹配成功
"url10": "/order/public/getDiscountByProductId"
"payload11": {"productId":"%s","companyCode":"%s","productCode":"%s"}


#导入式优惠券用户发放验证
#我的优惠券列表
"url12": "/order/mall/myCoupon?status=101"
#活动客户信息-多采商城
"username5": "BJ0500"
"password5": "Tss12345"
#预期结果
checkDict11: {"couponId": 10033}






