Commit 254de6ac authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 5b3c2130
...@@ -24,7 +24,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke ...@@ -24,7 +24,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
# 第二步进行促销活动列表获取 # 第二步进行促销活动列表获取
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1")
request_body = commonFuc().get_business_data(module, "payload1") request_body = commonFuc().get_business_data(module, "payload100")
# 发送请求 # 发送请求
result = requests.post(url, json=request_body, headers=headers) result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
...@@ -45,7 +45,7 @@ product_id = result["data"][0]["productId"] ...@@ -45,7 +45,7 @@ product_id = result["data"][0]["productId"]
company_code = result["data"][0]["companyCode"] company_code = result["data"][0]["companyCode"]
product_code = result["data"][0]["productCode"] product_code = result["data"][0]["productCode"]
product_price = result["data"][0]["referencePrice"] product_price = result["data"][0]["referencePrice"]
purchase_quantity = random.randint(1, 5) purchase_quantity = random.randint(1, 4)
# print(purchase_quantity) # print(purchase_quantity)
# 第四步验证减免金额正确性 # 第四步验证减免金额正确性
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url10") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url10")
......
...@@ -24,7 +24,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke ...@@ -24,7 +24,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
# 第二步进行促销活动列表获取 # 第二步进行促销活动列表获取
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1")
request_body = commonFuc().get_business_data(module, "payload1") request_body = commonFuc().get_business_data(module, "payload100")
# 发送请求 # 发送请求
result = requests.post(url, json=request_body, headers=headers) result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
......
...@@ -23,7 +23,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke ...@@ -23,7 +23,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
# 第二步进行促销活动列表获取 # 第二步进行促销活动列表获取
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1")
request_body = commonFuc().get_business_data(module, "payload1") request_body = commonFuc().get_business_data(module, "payload100")
# 发送请求 # 发送请求
result = requests.post(url, json=request_body, headers=headers) result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
......
...@@ -92,7 +92,7 @@ checkDict9: {"activityBasicId": "%s"} ...@@ -92,7 +92,7 @@ checkDict9: {"activityBasicId": "%s"}
"payload10": {"companyCode":"%s","orderProductList":[{"agreementPriceId":null,"activityUseSgin":1,"buyerCartId":null,"productId":"%s","productCode":"%s","productPrice":"%s","purchaseQuantity":"%s"}],"couponUseSgin":1} "payload10": {"companyCode":"%s","orderProductList":[{"agreementPriceId":null,"activityUseSgin":1,"buyerCartId":null,"productId":"%s","productCode":"%s","productPrice":"%s","purchaseQuantity":"%s"}],"couponUseSgin":1}
#预期结果 #预期结果
checkDict10: {"activityAmount":"%s"} checkDict10: {"activityAmount":"%s"}
"payload100": {"activityBasic":{"activityBasicId":"10146","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}
#测试场景十一:购买不满足条件特价商品金额验证 #测试场景十一:购买不满足条件特价商品金额验证
#预期结果 #预期结果
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment