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
e65f43cb
Commit
e65f43cb
authored
Aug 30, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商祥页详情接口接口返回数据校验case完善
parent
35858d9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
test_product_detail.py
test_backend_case/janus_case/test_product_detail.py
+19
-0
product_detail.yaml
test_backend_data/janus_data/product_detail.yaml
+8
-1
No files found.
test_backend_case/janus_case/test_product_detail.py
View file @
e65f43cb
...
@@ -17,6 +17,25 @@ class TestProductDetail:
...
@@ -17,6 +17,25 @@ class TestProductDetail:
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"data"
][
"service_hospital"
][
"services"
]
!=
param
[
"assert_service_hospital"
]
assert
r
[
"data"
][
"service_hospital"
][
"services"
]
!=
param
[
"assert_service_hospital"
]
assert
r
[
"data"
][
"doctor_user_id"
]
is
not
None
assert
r
[
"data"
][
"share_data"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"service_name"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"pic"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"doctor_name"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"header_pic"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"project_type_name"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"share_content"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"short_description"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"service_id"
]
is
not
None
assert
r
[
"data"
][
"service"
][
"distance"
]
is
not
None
assert
r
[
"data"
][
"service_case"
]
is
not
None
assert
r
[
"data"
][
"service_features"
]
is
not
None
assert
r
[
"data"
][
"tabs"
]
is
not
None
assert
r
[
"data"
][
"quick_consultation"
]
is
not
None
assert
r
[
"data"
][
"is_online"
]
is
not
None
assert
r
[
"data"
][
"is_multiattribute"
]
is
not
None
assert
r
[
"data"
][
"can_sell"
]
is
not
None
assert
r
[
"data"
][
"big_quick_consultation"
]
is
not
None
if
r
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert_spu_message"
]
assert
r
[
"message"
]
==
param
[
"assert_spu_message"
]
test_backend_data/janus_data/product_detail.yaml
View file @
e65f43cb
...
@@ -14,13 +14,20 @@ product_detail:
...
@@ -14,13 +14,20 @@ product_detail:
assert_error
:
0
assert_error
:
0
assert_service_hospital
:
"
"
assert_service_hospital
:
"
"
assert_spu_message
:
"
美购不存在"
assert_spu_message
:
"
美购不存在"
-
case
:
"
校验接口返回数据正常case"
service_id
:
"
585726"
service_item_id
:
"
618788"
version
:
"
7.43.0"
assert_error
:
0
assert_service_hospital
:
"
"
assert_spu_message
:
"
美购不存在"
-
-
case
:
"
校验spu_id错误case"
case
:
"
校验spu_id错误case"
service_id
:
"
585726"
service_id
:
"
585726"
service_item_id
:
"
618788"
service_item_id
:
"
618788"
version
:
"
7.43.0"
version
:
"
7.43.0"
assert_spu_message
:
"
美购不存在"
assert_spu_message
:
"
美购不存在"
# -
# -
# case: "校验sku_id错误case"
# case: "校验sku_id错误case"
# service_id: "5857263"
# service_id: "5857263"
...
...
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