Arthur-Wu committed this file on 2024-11-27

This commit is contained in:
ieemoo 2024-11-27 11:03:44 +08:00
parent d8e61f49cb
commit 142ecd85f0
5 changed files with 16 additions and 35 deletions

View File

@ -7,50 +7,50 @@ MarketName: 龙湖天街店
ShoppingCartMac: 70:f7:54:07:a6:c0 ShoppingCartMac: 70:f7:54:07:a6:c0
# 2-武商会员账号 # 2-武商会员账号
VIPPhoneNumber: VIPPhoneNumber: 15923325552
# 3-商超、门店信息 # 3-商超、门店信息
MarketAndStoreDetails: MarketAndStoreDetails:
putMarketId: putMarketId: 10010
putStoreId: [""] putStoreId: ["9010"]
# 4-购物袋 # 4-购物袋
ShoppingBag: ShoppingBag:
mid: mid: 6942728402367
max: max: 6942728402350
# 5-原件商品 # 5-原件商品
NormalGoods: NormalGoods:
goods01: goods01: 6954865921564
goods02: goods02: 6907992514628
goods03: goods03: 6928804016017
# 6-优惠商品 # 6-优惠商品
VipGoods: VipGoods:
goods01: goods01: 2100000845545
goods02: goods02: 6934665092954
goods03: goods03: 6907992300054
# 7-折扣商品 # 7-折扣商品
SaleGoods: SaleGoods:
goods01: goods01: 2100001076863
# 8-促销白名单商品 # 8-促销白名单商品
PromotionalWhitelistGoods: PromotionalWhitelistGoods:
GoodsInputcode: GoodsInputcode: 6954865921564
GoodsName: GoodsName:
# 9-重量放通白名单商品 # 9-重量放通白名单商品
WeightToWhitelistGoods: WeightToWhitelistGoods:
GoodsInputcode: GoodsInputcode: 230148601000020005
GoodsName: GoodsName:
# 10-散称计重商品 # 10-散称计重商品
MisspellingWeightGoods: MisspellingWeightGoods:
GoodsInputcode: GoodsInputcode: 2327912000002
GoodsName: GoodsName:
# 11-计件商品 # 11-计件商品
PieceRateGoods: PieceRateGoods:
GoodsInputcode: GoodsInputcode: 231172900650010005
GoodsName: GoodsName:

View File

@ -24,10 +24,6 @@ class Test_CVip007(unittest.TestCase):
allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n")
ymc = YMClientApi(data["ShoppingCartMac"]) ymc = YMClientApi(data["ShoppingCartMac"])
yms = YMServiceApi() 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_phone_num = data["VIPPhoneNumber"]
weight_to_whitelist_goods = data["WeightToWhitelistGoods"] weight_to_whitelist_goods = data["WeightToWhitelistGoods"]
market_and_store_info = { market_and_store_info = {

View File

@ -23,11 +23,6 @@ class Test_CVip008(unittest.TestCase):
allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证') allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证')
allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n")
ymc = YMClientApi(data["ShoppingCartMac"]) 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_phone_num = data["VIPPhoneNumber"]
shoppingbag_mid = data["ShoppingBag"]["mid"] shoppingbag_mid = data["ShoppingBag"]["mid"]
shoppingbag_max = data["ShoppingBag"]["max"] shoppingbag_max = data["ShoppingBag"]["max"]

View File

@ -23,11 +23,6 @@ class Test_CVip009(unittest.TestCase):
allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证') allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证')
allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n")
ymc = YMClientApi(data["ShoppingCartMac"]) 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_phone_num = data["VIPPhoneNumber"]
goods_01 = data["NormalGoods"]['goods01'] goods_01 = data["NormalGoods"]['goods01']
goods_02 = data["NormalGoods"]['goods02'] goods_02 = data["NormalGoods"]['goods02']

View File

@ -23,11 +23,6 @@ class Test_CVip010(unittest.TestCase):
allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证') allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证')
allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n") allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n")
ymc = YMClientApi(data["ShoppingCartMac"]) 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_phone_num = data["VIPPhoneNumber"]
vip_goods_01 = data["VipGoods"]['goods01'] vip_goods_01 = data["VipGoods"]['goods01']
vip_goods_02 = data["VipGoods"]['goods02'] vip_goods_02 = data["VipGoods"]['goods02']