Commit dd3bf15b authored by 张慧's avatar 张慧

次卡确认订单页用例完善

parent aa6c2e58
......@@ -14,6 +14,18 @@ class TestBeautyCardOrderConfirm:
def test_beauty_card_order_confirm(self, param):
r = janus_request().beauty_card_order_confirm(param["sku_id"], param["number"], param["use_bc_coupon"], param["bc_coupon_id"])
if r["error"] == 0:
if param["number"] == 1: #购买1个sku时
assert r["error"] == param["assert_error"]
assert r["data"]["payment_total_price"] == param["assert_total_price"]
assert r["data"]["payment_total_fee"] == param["assert_total_fee"]
assert r["data"]["user_buy_lower_limit"] == param["assert_user_buy_lower_limit"]
assert r["data"]["user_buy_upper_limit"] == param["assert_user_buy_upper_limit"]
assert r["data"]["is_doctor_see"] == param["assert_is_doctor_see"]
if param["number"] == 2: #购买2个sku时
assert r["error"] == param["assert_error"]
assert r["data"]["payment_total_price"] == param["assert_total_price"]
assert r["data"]["payment_total_fee"] == param["assert_total_fee"]
assert r["data"]["user_buy_lower_limit"] == param["assert_user_buy_lower_limit"]
assert r["data"]["user_buy_upper_limit"] == param["assert_user_buy_upper_limit"]
beauty_card_order_confirm:
-
case: "次卡-确认订单-接口调用成功case"
case: "次卡-确认订单-sku数量为1"
sku_id: "10176"
number: 1
use_bc_coupon: 1
bc_coupon_id: 0
assert_error: 0
assert_error: 0 #校验接口调用成功case
assert_total_price: "2.00" #校验订单总金额case
assert_total_fee: "2.00" #校验实付金额case
assert_user_buy_lower_limit: 1 #校验最少购买数case
assert_user_buy_upper_limit: 3 #校验最多购买数case
assert_is_doctor_see: true #校验是否同意商家电话咨询case
-
case: "次卡-确认订单-sku数量为2"
sku_id: "10176"
number: 2
use_bc_coupon: 1
bc_coupon_id: 0
assert_error: 0 #校验接口调用成功case
assert_total_price: "4.00" #校验订单总金额case
assert_total_fee: "4.00" #校验实付金额case
assert_user_buy_lower_limit: 1 #校验最少购买数case
assert_user_buy_upper_limit: 3 #校验最多购买数case
Markdown is supported
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