# 多采商城登录信息
"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/activityBasic/listBackActivity"
"payload1": {"activityBasic":{"activityBasicId":"10127","activityName":"特价验证","activityStatus":102,"activityType":1},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}


#测试场景二：获取活动基本信息
"url2": "/order/back/activityBasic/selectOne"
"payload2": {"activityBasicId":"%s"}
#预期结果
checkDict2: {"success":true,"code":"200","message":null}


#测试场景三：获取活动包含的商品信息
"url3": "/order/back/activityProduct/listBackActivityProduct"
"payload3": {"activityProduct":{"activityBasicId":"%d"},"activityType":"%d"}
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK"}


#测试场景四：获取活动对应的黑名单
"url4": "/order/back/activityUserBlacklist/listBackActivityUserBlacklist"
"payload4": {"activityUserBlacklist":{"activityBasicId":"%d"}}
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK"}

#测试场景五：获取活动对应的指定客户差异促销规则
"url5": "/order/back/activityDifferenceUser/listBackActivityDifferenceUser"
"payload5": {"activityDifferenceUser":{"activityBasicId":"%s"},"activityType":"%s"}
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK"}


#测试场景六：获取商品详情
"url6": "/product/mall/queryProductInfoById"
"payload6": {"productId":"%s"}
#预期结果
checkDict6: {"success":true,"code":"200","message":"OK"}


#测试场景七：查询商品对应的促销活动
"url7": "/order/public/getDiscountByProductId"
"payload7": {"productId":"%s","companyCode":"%s","productCode":"%s"}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK"}


#测试场景八：商品未参与活动验证
"payload8": {"productId":"23363","companyCode":"00103","productCode":"10231310"}
#预期结果
checkDict8: {"activity": null}

#测试场景九：商品参与特价活动验证
#预期结果
checkDict9: {"activityBasicId": "%s"}


#测试场景十：购买满足条件特价商品金额验证
"url10": "/order/mall/getShoppingCartActivity"
"payload10": {"companyCode":"%s","orderProductList":[{"agreementPriceId":null,"activityUseSgin":1,"buyerCartId":null,"productId":"%s","productCode":"%s","productPrice":"%s","purchaseQuantity":"%s"}],"couponUseSgin":1}
#预期结果
checkDict10: {"activityAmount":"%s"}


#测试场景十一：购买不满足条件特价商品金额验证
#预期结果
checkDict11: {"activityAmount":0}


#测试场景十二：同一个商品同一个活动规则活动时间不允许存在交叉验证
"url12": "/order/back/activityProduct/importExcel"
"payload12": {"type":1,"companyCode":"00111","activityBasicId":"10132"}
#预期结果
checkDict12: {"success":false,"code":"2001","message":"有时间重叠的商品,请检查后再上传!"}


#折扣活动验证
#进行促销活动列表获取
"payload13": {"activityBasic":{"activityBasicId":"10134","activityName":"","activityStatus":""},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#预期结果
checkDict13: {"activityBasicId": 10134}


#满减活动验证
#进行促销活动列表获取
"payload14": {"activityBasic":{"activityBasicId":"10135","activityName":"","activityStatus":""},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"pageSize":10,"allowanceFlag":null,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#预期结果
checkDict14: {"activityBasicId": 10135}


#买赠活动验证
#进行促销活动列表获取
"payload15": {"activityBasic":{"activityBasicId":"10136","activityName":"","activityStatus":""},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#预期结果
checkDict15: {"productId": 7670}

#获取商品对应的赠品信息
#购买买赠商品时为满足条件，进行赠品的赠送
"url16": "/order/public/getCartPurchaseZero"
"payload16": [{"buyerCartId":0,"purchaseQuantity":9,"productCode":"13018749","companyCode":"00111"}]
#预期结果
checkDict16: {"success":True,"code":"200","message":"OK"}

#购买买赠商品时为满足条件，不进行赠品的赠送
#预期结果
checkDict17: {"purchaseZeroProductList": []}


#促销活动管理列表查询条件验证
"payload_list": {"activityBasic":{"activityBasicId":"%s","activityName":"%s","activityStatus":"%s","activityType":"%s"},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":"%s","cStartTime":"%s","endTime":"%s","cEndTime":"%s","pageNum":1}
#预期结果
checkDict_list: {"activityBasicId":"%s"}


#雅培选赠验证
# 雅培选赠活动用户信息
"username3": "BJ8874"
"password3": "Aa123456"
#后台运营管理系统登录信息(国联公司)
"username4": "Admin00102"
"password4": "Aa123456"
#进行促销活动列表获取
"payload18": {"activityBasic":{"activityBasicId":"10097","activityName":"","activityStatus":"","activityType":5},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#获取雅培选增活动对应的活动客户
"url19": "/order/back/activityDifferenceUser/listBackActivityDifferenceUser"
"payload19": {"activityDifferenceUser":{"activityBasicId":"%s"},"activityType":"%s"}
#getCircleActivity
"url20": "/order/public/getCircleActivity"
"payload20": {"companyCode":"%s","userId":"%s"}
#预期结果
checkDict20: {"activityBasicId": "%s"}

#getIndexGiftCircleAreaLimit
"url21": "/order/public/getIndexGiftCircleAreaLimit"
"payload21": {"companyCode":"%s","productId":"%s","productCode":"%s"}
#预期结果
checkDict21: {"activityBasicId": "%s"}

#商品活动黑名单验证
#获取活动规则
"payload22": {"activityBasic":{"activityBasicId":"10138","activityName":"","activityStatus":"","activityType":1},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#黑名单用户信息
"username5": "BJ0500"
"password5": "Tss12345"
#预期结果
checkDict22: {"activity": null}


#赠品验证
# 国联公司多采商城登录信息
"username7": "GL1000086"
"password7": "Aa123456"

#后台运营管理系统登录信息(国联公司)
"username8": "Admin00102"
"password8": "Aa123456"

#验证赠品（jde0元）活动
#在促销列表中获取指定促销活动
"payload23": {"activityBasic":{"activityBasicId":"10113","activityName":"","activityStatus":""},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"pageSize":10,"allowanceFlag":null,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#预期结果
checkDict23: {"productId":111477}




























