diff --git "a/air_case/cmdc_rebate/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_rebate/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.py" index 80be4c1d7d3f09dd733b653a2e49d797d15852bb..042a74955e5364791902411f4b5292fac29d3dab 100644 --- "a/air_case/cmdc_rebate/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_rebate/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\256\242\346\210\267\345\217\221\346\224\276\350\277\224\345\210\251\347\274\226\350\276\221\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -28,7 +28,7 @@ request_body = commonFuc().get_business_data(module, "payload5") # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) - +print(result) # 获取客户发放返利信息 customer_code = result["data"]["list"][0]["customerCode"] rebate_id = result["data"]["list"][0]["rebateId"] @@ -36,7 +36,7 @@ amount = random.randint(1, 10000) # 第三步进行返利编辑 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url30") -request_body = commonFuc().get_business_data(module, "payload6", rebate_id, amount, customer_code) +request_body = commonFuc().get_business_data(module, "payload30", rebate_id, amount, customer_code) """ 场景: 客户发放返利编辑功能验证 diff --git a/data/cmdc_rebate/data b/data/cmdc_rebate/data index 695d44017ea007c238fe94801b25ddf87a1be540..fe6491aa7a67863eb3448b0ae4827e7c0e1d3220 100644 --- a/data/cmdc_rebate/data +++ b/data/cmdc_rebate/data @@ -231,13 +231,13 @@ checkDict29: {"success":true,"code":"200","message":"OK"} #测试场景三十一:客户发放返利新增验证 "url30": "/order/rebateOperaSku/addRebateSku" -"payload30": {"rebateid":"%s","transactiontype":"3","transactionamount":"%s","rebateValidity":null,"rebateStartTime":null,"customercode":"%s","effectivetype":0,"note":"添加返利新增验证"} +"payload30": {"rebateid":"%s","transactiontype":"1","transactionamount":"%s","rebateValidity":"2023-11-29T16:00:00.000Z","rebateStartTime":"2023-11-16T16:00:00.000Z","customercode":"%s","note":"返利编辑验证","effectivetype":null} #预期结果 checkDict30: {"success":true,"code":"200"} #测试场景三十二:客户发放返利编辑功能验证 -同上 +#同上