Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓莹莹
backend_auto
Commits
dd3bf15b
Commit
dd3bf15b
authored
Jul 09, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
次卡确认订单页用例完善
parent
aa6c2e58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
test_beauty_card_order_confirm.py
...backend_case/janus_case/test_beauty_card_order_confirm.py
+13
-1
beauty_card_order_confirm.yaml
test_backend_data/janus_data/beauty_card_order_confirm.yaml
+19
-2
No files found.
test_backend_case/janus_case/test_beauty_card_order_confirm.py
View file @
dd3bf15b
...
...
@@ -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"
]
test_backend_data/janus_data/beauty_card_order_confirm.yaml
View file @
dd3bf15b
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment