diff --git a/YiMao/data/YongHui.yaml b/YiMao/data/YongHui.yaml index 16a5946..8a01720 100644 --- a/YiMao/data/YongHui.yaml +++ b/YiMao/data/YongHui.yaml @@ -7,50 +7,50 @@ MarketName: 龙湖天街店 ShoppingCartMac: 70:f7:54:07:a6:c0 # 2-武商会员账号 -VIPPhoneNumber: +VIPPhoneNumber: 15923325552 # 3-商超、门店信息 MarketAndStoreDetails: - putMarketId: - putStoreId: [""] + putMarketId: 10010 + putStoreId: ["9010"] # 4-购物袋 ShoppingBag: - mid: - max: + mid: 6942728402367 + max: 6942728402350 # 5-原件商品 NormalGoods: - goods01: - goods02: - goods03: + goods01: 6954865921564 + goods02: 6907992514628 + goods03: 6928804016017 # 6-优惠商品 VipGoods: - goods01: - goods02: - goods03: + goods01: 2100000845545 + goods02: 6934665092954 + goods03: 6907992300054 # 7-折扣商品 SaleGoods: - goods01: + goods01: 2100001076863 # 8-促销白名单商品 PromotionalWhitelistGoods: - GoodsInputcode: + GoodsInputcode: 6954865921564 GoodsName: # 9-重量放通白名单商品 WeightToWhitelistGoods: - GoodsInputcode: + GoodsInputcode: 230148601000020005 GoodsName: # 10-散称计重商品 MisspellingWeightGoods: - GoodsInputcode: + GoodsInputcode: 2327912000002 GoodsName: # 11-计件商品 PieceRateGoods: - GoodsInputcode: + GoodsInputcode: 231172900650010005 GoodsName: diff --git a/YiMao/scripts/BusiScenarios/test_CVip007_AddWeightToTheProduct.py b/YiMao/scripts/BusiScenarios/test_CVip007_AddWeightToTheProduct.py index fa4a3c3..1b76525 100644 --- a/YiMao/scripts/BusiScenarios/test_CVip007_AddWeightToTheProduct.py +++ b/YiMao/scripts/BusiScenarios/test_CVip007_AddWeightToTheProduct.py @@ -24,10 +24,6 @@ class Test_CVip007(unittest.TestCase): allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") ymc = YMClientApi(data["ShoppingCartMac"]) yms = YMServiceApi() - CartMac = data["ShoppingCartMac"] - NewStoreId = data["MarketAndStoreDetails"]["putStoreId"][0] - yms.update_the_store_to_which_the_shopping_cart_belongs(CartMac, NewStoreId) - time.sleep(1) vip_phone_num = data["VIPPhoneNumber"] weight_to_whitelist_goods = data["WeightToWhitelistGoods"] market_and_store_info = { diff --git a/YiMao/scripts/BusiScenarios/test_CVip008_ReturnShoppingBag.py b/YiMao/scripts/BusiScenarios/test_CVip008_ReturnShoppingBag.py index 27b92bf..ce16abe 100644 --- a/YiMao/scripts/BusiScenarios/test_CVip008_ReturnShoppingBag.py +++ b/YiMao/scripts/BusiScenarios/test_CVip008_ReturnShoppingBag.py @@ -23,11 +23,6 @@ class Test_CVip008(unittest.TestCase): allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证') allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") ymc = YMClientApi(data["ShoppingCartMac"]) - yms = YMServiceApi() - CartMac = data["ShoppingCartMac"] - NewStoreId = data["MarketAndStoreDetails"]["putStoreId"][0] - yms.update_the_store_to_which_the_shopping_cart_belongs(CartMac, NewStoreId) - time.sleep(1) vip_phone_num = data["VIPPhoneNumber"] shoppingbag_mid = data["ShoppingBag"]["mid"] shoppingbag_max = data["ShoppingBag"]["max"] diff --git a/YiMao/scripts/BusiScenarios/test_CVip009_ReturnPurchaseOfOrdinaryGoods.py b/YiMao/scripts/BusiScenarios/test_CVip009_ReturnPurchaseOfOrdinaryGoods.py index 11a0513..2311754 100644 --- a/YiMao/scripts/BusiScenarios/test_CVip009_ReturnPurchaseOfOrdinaryGoods.py +++ b/YiMao/scripts/BusiScenarios/test_CVip009_ReturnPurchaseOfOrdinaryGoods.py @@ -23,11 +23,6 @@ class Test_CVip009(unittest.TestCase): allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证') allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") ymc = YMClientApi(data["ShoppingCartMac"]) - yms = YMServiceApi() - CartMac = data["ShoppingCartMac"] - NewStoreId = data["MarketAndStoreDetails"]["putStoreId"][0] - yms.update_the_store_to_which_the_shopping_cart_belongs(CartMac, NewStoreId) - time.sleep(1) vip_phone_num = data["VIPPhoneNumber"] goods_01 = data["NormalGoods"]['goods01'] goods_02 = data["NormalGoods"]['goods02'] diff --git a/YiMao/scripts/BusiScenarios/test_CVip010_ReturnOfMemberProducts.py b/YiMao/scripts/BusiScenarios/test_CVip010_ReturnOfMemberProducts.py index 8c7c608..4fa2a21 100644 --- a/YiMao/scripts/BusiScenarios/test_CVip010_ReturnOfMemberProducts.py +++ b/YiMao/scripts/BusiScenarios/test_CVip010_ReturnOfMemberProducts.py @@ -23,11 +23,6 @@ class Test_CVip010(unittest.TestCase): allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证') allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") ymc = YMClientApi(data["ShoppingCartMac"]) - yms = YMServiceApi() - CartMac = data["ShoppingCartMac"] - NewStoreId = data["MarketAndStoreDetails"]["putStoreId"][0] - yms.update_the_store_to_which_the_shopping_cart_belongs(CartMac, NewStoreId) - time.sleep(1) vip_phone_num = data["VIPPhoneNumber"] vip_goods_01 = data["VipGoods"]['goods01'] vip_goods_02 = data["VipGoods"]['goods02']