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

This commit is contained in:
ieemoo
2024-11-27 10:01:54 +08:00
parent af07ceb1e8
commit d8e61f49cb
6 changed files with 180 additions and 23 deletions

View File

@ -6,7 +6,6 @@
import unittest,allure,time,pytest,ddt
from configs.globalParams import DataInit
from YiMao.businessFunc.ClientApiLib import YMClientApi
from YiMao.businessFunc.ServiceApiLib import YMServiceApi
DescName = "Anon001-非会员加购购物袋并试算"
@ddt.ddt
@ -22,16 +21,6 @@ class Test_CAnon001_AddShoppingBagAndSettlePayment(unittest.TestCase):
allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证')
allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n")
ymc = YMClientApi(data["ShoppingCartMac"])
# yms = YMServiceApi()
# CartId = data["CartId"]
# CartMac = data["ShoppingCartMac"]
# NewStoreId = data["MarketAndStoreDetails"]["putStoreId"][0]
# print(f"---切换购物车商超信息为:\n"
# f"CartId: {CartId}\n "
# f"CartMac: {CartMac}\n "
# f"NewStoreId: {NewStoreId}\n")
# yms.update_the_store_to_which_the_shopping_cart_belongs(CartId, CartMac, NewStoreId)
# time.sleep(1)
goodsbag_mid = data["ShoppingBag"]["mid"]
allure.step("步骤1session开始")
@ -56,16 +45,6 @@ class Test_CAnon001_AddShoppingBagAndSettlePayment(unittest.TestCase):
allure.dynamic.story(f'[{data['MarketName']}-场景测试] {DescName}验证')
allure.dynamic.description(f"描述:{data['MarketName']}-{DescName}\n")
ymc = YMClientApi(data["ShoppingCartMac"])
# yms = YMServiceApi()
# CartId = data["CartId"]
# CartMac = data["ShoppingCartMac"]
# NewStoreId = data["MarketAndStoreDetails"]["putStoreId"][0]
# print(f"---切换购物车商超信息为:\n"
# f"CartId: {CartId}\n"
# f"CartMac: {CartMac}\n"
# f"NewStoreId: {NewStoreId}\n")
# yms.update_the_store_to_which_the_shopping_cart_belongs(CartId, CartMac, NewStoreId)
# time.sleep(1)
goodsbag_max = data["ShoppingBag"]["max"]
allure.step("步骤1session开始")