Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
on_line_product
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
邓莹莹
on_line_product
Commits
a5cbcfc1
You need to sign in or sign up before continuing.
Commit
a5cbcfc1
authored
Aug 23, 2021
by
邓莹莹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交其他接口
parent
e55893e6
Show whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
368 additions
and
416 deletions
+368
-416
hospitals_v2_request.yaml
all_backend_api/hospitals_v2_request.yaml
+2
-0
janus_request.py
all_backend_api/janus_request.py
+2
-0
janus_request.yaml
all_backend_api/janus_request.yaml
+10
-0
notification_request.py
all_backend_api/notification_request.py
+1
-4
notification_request.yaml
all_backend_api/notification_request.yaml
+17
-12
oneimage_request.yaml
all_backend_api/oneimage_request.yaml
+8
-8
personal_recommends.yaml
all_backend_api/personal_recommends.yaml
+7
-7
private_conversation_request.yaml
all_backend_api/private_conversation_request.yaml
+17
-17
qa_request.yaml
all_backend_api/qa_request.yaml
+16
-16
question_request.yaml
all_backend_api/question_request.yaml
+12
-12
service_request.yaml
all_backend_api/service_request.yaml
+8
-8
shopcart_request.yaml
all_backend_api/shopcart_request.yaml
+11
-11
topic_reply_create.yaml
all_backend_api/topic_reply_create.yaml
+19
-19
topic_request.yaml
all_backend_api/topic_request.yaml
+44
-44
topicreply_vote.yaml
all_backend_api/topicreply_vote.yaml
+16
-16
tractate_request.yaml
all_backend_api/tractate_request.yaml
+50
-49
user_request.yaml
all_backend_api/user_request.yaml
+14
-14
visual_beauty_card.yaml
all_backend_api/visual_beauty_card.yaml
+1
-1
get_cookie.txt
in_common/get_cookie.txt
+2
-2
path_setting.py
path_setting.py
+2
-0
test_message_read.py
test_backend_case/conversation_case/test_message_read.py
+1
-4
test_plastic_feeds.py
test_backend_case/face_case/test_plastic_feeds.py
+1
-3
test_services.py
test_backend_case/hospitals_v2_case/test_services.py
+1
-9
__init__.py
test_backend_case/im_case/__init__.py
+0
-0
test_conversation_detail.py
test_backend_case/im_case/test_conversation_detail.py
+0
-17
test_resource_bit.py
test_backend_case/janus_case/test_resource_bit.py
+18
-0
test_danmu_v2.py
test_backend_case/live_case/test_danmu_v2.py
+1
-1
test_pushlive_info.py
test_backend_case/live_case/test_pushlive_info.py
+1
-1
test_my_conversation.py
...backend_case/my_conversation_case/test_my_conversation.py
+1
-1
test_readall.py
test_backend_case/notification_case/test_readall.py
+2
-1
test_unread.py
test_backend_case/notification_case/test_unread.py
+1
-1
test_recomend_services.py
test_backend_case/oneimage_case/test_recomend_services.py
+1
-1
test_share_v4.py
test_backend_case/oneimage_case/test_share_v4.py
+1
-1
test_my_status.py
test_backend_case/orders_case/test_my_status.py
+1
-1
test_orders_my_v2_waituse.py
test_backend_case/orders_case/test_orders_my_v2_waituse.py
+1
-1
test_personal_recommends.py
test_backend_case/personal_case/test_personal_recommends.py
+1
-1
test_private_conversation.py
...nd_case/private_conversation/test_private_conversation.py
+1
-1
test_favor.py
test_backend_case/qa_case/test_favor.py
+1
-1
test_reply_answer.py
test_backend_case/question_case/test_reply_answer.py
+1
-1
test_diary_cards.py
test_backend_case/scan_case/test_diary_cards.py
+1
-1
test_content_v6.py
test_backend_case/search_case/test_content_v6.py
+1
-1
test_hospital.py
test_backend_case/search_case/test_hospital.py
+1
-1
test_hot.py
test_backend_case/search_case/test_hot.py
+1
-1
test_keywords.py
test_backend_case/search_case/test_keywords.py
+1
-1
test_home_v5.py
test_backend_case/service_case/test_home_v5.py
+1
-1
test_service_favor.py
test_backend_case/service_case/test_service_favor.py
+1
-1
test_share_data.py
test_backend_case/services_case/test_share_data.py
+1
-1
test_add.py
test_backend_case/shopcart_case/test_add.py
+1
-1
test_list.py
test_backend_case/shopcart_case/test_list.py
+1
-1
test_recommend_service.py
test_backend_case/skin_case/test_recommend_service.py
+1
-1
test_topic_reply_vote.py
test_backend_case/topic_case/test_topic_reply_vote.py
+1
-1
test_v1.py
test_backend_case/topic_case/test_v1.py
+1
-1
test_vote.py
test_backend_case/topic_case/test_vote.py
+2
-28
test_detail.py
test_backend_case/tractate_case/test_detail.py
+1
-1
test_favor.py
test_backend_case/tractate_case/test_favor.py
+1
-1
test_publish_reply.py
test_backend_case/tractate_case/test_publish_reply.py
+1
-1
test_related_service.py
test_backend_case/tractate_case/test_related_service.py
+2
-17
test_reply.py
test_backend_case/tractate_case/test_reply.py
+1
-1
test_vote.py
test_backend_case/tractate_case/test_vote.py
+2
-15
test_answer.py
test_backend_case/user_case/test_answer.py
+1
-1
test_personal_center.py
test_backend_case/user_case/test_personal_center.py
+1
-1
test_topic_favor.py
test_backend_case/user_case/test_topic_favor.py
+1
-1
test_beautycard_filters.py
...d_case/visual_beauty_card_case/test_beautycard_filters.py
+3
-7
test_beautycard_skus.py
...kend_case/visual_beauty_card_case/test_beautycard_skus.py
+3
-5
test_visual_beauty_card_services.py
...sual_beauty_card_case/test_visual_beauty_card_services.py
+1
-1
test_gengmei_get_wxacode_unlimited.py
...ckend_case/xcx_case/test_gengmei_get_wxacode_unlimited.py
+1
-1
resource_bit.yaml
test_backend_data/janus_data/resource_bit.yaml
+5
-0
readall.yaml
test_backend_data/notification_data/readall.yaml
+0
-4
personal_recommends.yaml
test_backend_data/personal_data/personal_recommends.yaml
+1
-1
add.yaml
test_backend_data/shopcart_data/add.yaml
+2
-1
publish_reply.yaml
test_backend_data/tractate_data/publish_reply.yaml
+10
-10
related_service.yaml
test_backend_data/tractate_data/related_service.yaml
+7
-7
vote.yaml
test_backend_data/tractate_data/vote.yaml
+9
-9
beautycard_filters.yaml
...kend_data/visual_beauty_card_data/beautycard_filters.yaml
+3
-2
visual_beauty_card_services.yaml
.../visual_beauty_card_data/visual_beauty_card_services.yaml
+3
-2
No files found.
all_backend_api/hospitals_v2_request.yaml
View file @
a5cbcfc1
...
...
@@ -7,5 +7,6 @@ services:
show_tag_distro
:
1
tag_id
:
"
all"
size
:
10
device_id
:
0B4E4C72-FF01-4670-9C45-B0DF1ACF0917
data
:
{}
json
:
{}
\ No newline at end of file
all_backend_api/janus_request.py
View file @
a5cbcfc1
...
...
@@ -205,6 +205,8 @@ class janus_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"page_rules"
])
def
resource_bit
(
self
):
return
self
.
api_send
(
self
.
data
[
"resource_bit"
])
if
__name__
==
'__main__'
:
# #打印购物车-猜你喜欢列表接口返回
# print(janus_request().mine_guess_you_like())
...
...
all_backend_api/janus_request.yaml
View file @
a5cbcfc1
...
...
@@ -296,3 +296,12 @@ page_rules:
data
:
{}
json
:
{}
isLogin
:
1
resource_bit
:
method
:
GET
url
:
/api/janus/product/home_page/resource_bit
params
:
current_city_id
:
"
beijing"
version
:
7.47.0
data
:
{}
json
:
{}
\ No newline at end of file
all_backend_api/notification_request.py
View file @
a5cbcfc1
...
...
@@ -10,10 +10,7 @@ class notification_request(BaseRequest):
self
.
params
[
"uqid"
]
=
uqid
self
.
params
[
"trace_id"
]
=
trace_id
return
self
.
api_send
(
self
.
data
[
"unread"
])
def
readall
(
self
,
uqid
,
trace_id
,
ua
):
self
.
params
[
"uqid"
]
=
uqid
self
.
params
[
"trace_id"
]
=
trace_id
self
.
params
[
"ua"
]
=
ua
def
readall
(
self
):
return
self
.
api_send
(
self
.
data
[
"readall"
])
if
__name__
==
'__main__'
:
...
...
all_backend_api/notification_request.yaml
View file @
a5cbcfc1
...
...
@@ -11,14 +11,19 @@ unread:
isLogin
:
1
#需要登录的接口
#标记为已读
#readall:
# method: post
# url: /api/notification/readall
# params:
# uqid: ${uqid}
# trace_id: ${trace_id}
# ua: ${ua}
#
# data: {}
# json: {}
# isLogin: 1 #需要登录的接口
\ No newline at end of file
readall
:
method
:
post
url
:
/api/notification/readall
params
:
current_city_id
:
"
guangzhou"
version
:
7.47.1
platform
:
iPhone
device_id
:
0B4E4C72-FF01-4670-9C45-B0DF1ACF0917
trace_id
:
2021/08/11/1504/e25e5c8bc548 HTTP/1.1
lat
:
39.98314340303591
lng
:
116.4881297926059
ua
:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
uqid
:
93C17239-228F-4B35-86DB-306D363DD3CC
data
:
{}
json
:
{}
isLogin
:
1
#需要登录的接口
\ No newline at end of file
all_backend_api/oneimage_request.yaml
View file @
a5cbcfc1
#测肤结果页
#
share_v4:
#
method: post
#
url: /api/one_image/share/v4
#
params:
#
version: ${version}
#
data:
#
face_id: ${face_id}
#
json: {}
share_v4
:
method
:
post
url
:
/api/one_image/share/v4
params
:
version
:
${version}
data
:
face_id
:
${face_id}
json
:
{}
#测肤结果根据五官推荐美购
recomend_services
:
...
...
all_backend_api/personal_recommends.yaml
View file @
a5cbcfc1
...
...
@@ -14,11 +14,11 @@ personal_recommends:
#查看日记本相册页面
#
album:
#
method: get
#
url: /hybrid/diary/album/17586198/_data
#
params:
#
data: {}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
album
:
method
:
get
url
:
/hybrid/diary/album/17586198/_data
params
:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/private_conversation_request.yaml
View file @
a5cbcfc1
#private_conversation:
# method: post
# url: /api/private_conversation/
# params: {}
# data:
# content: ${content}
# target_uid: ${target_uid}
# referrer: ${referrer}
# referrer_id: ${referrer_id}
# is_system: ${is_system}
# quick_consultation_id: ${quick_consultation_id}
# diary_id: ${diary_id}
# from_live: ${from_live}
#
# json: {}
# isLogin: 1 #需要登录的接口
\ No newline at end of file
private_conversation
:
method
:
post
url
:
/api/private_conversation/
params
:
{}
data
:
content
:
${content}
target_uid
:
${target_uid}
referrer
:
${referrer}
referrer_id
:
${referrer_id}
is_system
:
${is_system}
quick_consultation_id
:
${quick_consultation_id}
diary_id
:
${diary_id}
from_live
:
${from_live}
json
:
{}
isLogin
:
1
#需要登录的接口
\ No newline at end of file
all_backend_api/qa_request.yaml
View file @
a5cbcfc1
#问题收藏
#
favor:
#
method: post
#
url: /api/qa/favor
#
params:
#
data:
#
answer_id: ${answer_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
favor
:
method
:
post
url
:
/api/qa/favor
params
:
data
:
answer_id
:
${answer_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#问题取消收藏
#
cancelfavor:
#
method: post
#
url: /api/qa/favor/cancel
#
params:
#
data:
#
answer_id: ${answer_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
cancelfavor
:
method
:
post
url
:
/api/qa/favor/cancel
params
:
data
:
answer_id
:
${answer_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/question_request.yaml
View file @
a5cbcfc1
#回答详情页- 一/二级评论
#reply_answer:
# method: post
# url: /api/question/reply_answer
# params:
# current_city_id: ${current_city_id}
# data:
# answer_id: ${answer_id}
# content: ${content}
# user_id: ${user_id}
# json: {}
# isLogin: 1
\ No newline at end of file
reply_answer
:
method
:
post
url
:
/api/question/reply_answer
params
:
current_city_id
:
${current_city_id}
data
:
answer_id
:
${answer_id}
content
:
${content}
user_id
:
${user_id}
json
:
{}
isLogin
:
1
\ No newline at end of file
all_backend_api/service_request.yaml
View file @
a5cbcfc1
...
...
@@ -9,10 +9,10 @@ home_v5:
#商祥页-收藏
#service_favor:
# method: post
# url: /api/service/favor/5857263/
# params: {}
# data: {}
# json: {}
# isLogin: 1
\ No newline at end of file
service_favor
:
method
:
post
url
:
/api/service/favor/5857263/
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
\ No newline at end of file
all_backend_api/shopcart_request.yaml
View file @
a5cbcfc1
...
...
@@ -8,13 +8,13 @@ list:
isLogin
:
1
#商祥页-加入购物车
#add:
# method: post
# url: /api/shopcart/add/v1
# params: {}
# data:
# from_live: ${from_live}
# number: ${number}
# service_item_id: ${service_item_id}
# json: {}
# isLogin: 1
\ No newline at end of file
add
:
method
:
post
url
:
/api/shopcart/add/v1
params
:
{}
data
:
from_live
:
${from_live}
number
:
${number}
service_item_id
:
${service_item_id}
json
:
{}
isLogin
:
1
\ No newline at end of file
all_backend_api/topic_reply_create.yaml
View file @
a5cbcfc1
#日记贴一级评论创建[这个是非本身日记贴:21116006]--暂时未解决复写yaml文件的问题所以单独把创建评论踢出去
#
reply_create:
#
method: post
#
url: /api/topic/reply/create/21249632/
#
params:
#
channel: ${channel}
#
data:
#
content: ${content}
#
json: {}
reply_create
:
method
:
post
url
:
/api/topic/reply/create/21249632/
params
:
channel
:
${channel}
data
:
content
:
${content}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#日记贴二级评论创建[这个是非本身日记贴:21116006]
#sub_reply_create:
# method: post
# url: /api/topic/reply/create/21249632/
# params:
# channel: ${channel}
# data:
# content: ${content}
# replied_id: ${replied_id}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
\ No newline at end of file
sub_reply_create
:
method
:
post
url
:
/api/topic/reply/create/21249632/
params
:
channel
:
${channel}
data
:
content
:
${content}
replied_id
:
${replied_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
\ No newline at end of file
all_backend_api/topic_request.yaml
View file @
a5cbcfc1
#日记贴详情页--日记贴点赞
#
vote:
#
method: post
#
url: /api/topic/vote/
#
params:
#
data:
#
topic_id: ${topic_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
vote
:
method
:
post
url
:
/api/topic/vote/
params
:
data
:
topic_id
:
${topic_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
##取消点赞
#
cancelvote:
#
method: delete
#
url: /api/topic/vote/
#
params:
#
topic_id: ${topic_id}
#
data: {}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
cancelvote
:
method
:
delete
url
:
/api/topic/vote/
params
:
topic_id
:
${topic_id}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#详情页内容
detail
:
...
...
@@ -31,37 +31,37 @@ detail:
##日记贴相关美购--暂时没有
#
topic_service:
#
method: get
#
url: /api/diary/services
#
params:
#
diary_id: ${diary_id}
#
service_id: ${service_id}
#
data:
#
json: {}
topic_service
:
method
:
get
url
:
/api/diary/services
params
:
diary_id
:
${diary_id}
service_id
:
${service_id}
data
:
json
:
{}
##日记贴一级评论创建[这个是非本身日记贴:21116006]--暂时未解决复写yaml文件的问题所以单独把创建评论踢出去
#
reply_create:
#
method: post
#
url: /api/topic/reply/create/21249632/
#
params:
#
channel: ${channel}
#
data:
#
content: ${content}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
reply_create
:
method
:
post
url
:
/api/topic/reply/create/21249632/
params
:
channel
:
${channel}
data
:
content
:
${content}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
##日记贴二级评论创建[这个是非本身日记贴:21116006]
#sub_reply_create:
# method: post
# url: /api/topic/reply/create/21249632/
# params:
# channel: ${channel}
# data:
# content: ${content}
# replied_id: ${replied_id}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
\ No newline at end of file
sub_reply_create
:
method
:
post
url
:
/api/topic/reply/create/21249632/
params
:
channel
:
${channel}
data
:
content
:
${content}
replied_id
:
${replied_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
\ No newline at end of file
all_backend_api/topicreply_vote.yaml
View file @
a5cbcfc1
#日记贴评论点赞
#
topic_reply_vote:
#
method: post
#
url: /hybrid/api/topicreply/vote/_data
#
params:
#
data:
#
id: ${id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
topic_reply_vote
:
method
:
post
url
:
/hybrid/api/topicreply/vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
topic_reply_cancelvote:
#
method: post
#
url: /hybrid/api/topicreply/cancel_vote/_data
#
params:
#
data:
#
id: ${id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
topic_reply_cancelvote
:
method
:
post
url
:
/hybrid/api/topicreply/cancel_vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
##
all_backend_api/tractate_request.yaml
View file @
a5cbcfc1
...
...
@@ -39,65 +39,65 @@ reply:
#帖子收藏
#
favor:
#
method: post
#
url: /api/tractate/favor
#
params:
#
data:
#
data_type: ${data_type}
#
tractate_id: ${tractate_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
favor
:
method
:
post
url
:
/api/tractate/favor
params
:
data
:
data_type
:
${data_type}
tractate_id
:
${tractate_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#帖子取消收藏
#
cancelfavor:
#
method: post
#
url: /api/tractate/favor/cancel
#
params:
#
data:
#
data_type: ${data_type}
#
tractate_id: ${tractate_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
cancelfavor
:
method
:
post
url
:
/api/tractate/favor/cancel
params
:
data
:
data_type
:
${data_type}
tractate_id
:
${tractate_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#帖子点赞
#
tractate_vote:
#
method: post
#
url: /api/tractate/vote
#
params:
#
data:
#
tractate_id: ${tractate_id}
#
data_type: ${data_type}
#
reply_id: ${reply_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
tractate_vote
:
method
:
post
url
:
/api/tractate/vote
params
:
data
:
tractate_id
:
${tractate_id}
data_type
:
${data_type}
reply_id
:
${reply_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#帖子取消点赞
#
tractate_cancelvote:
#
method: post
#
url: /api/tractate/vote/cancel
#
params:
#
data:
#
tractate_id: ${tractate_id}
#
data_type: ${data_type}
#
reply_id: ${reply_id}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
tractate_cancelvote
:
method
:
post
url
:
/api/tractate/vote/cancel
params
:
data
:
tractate_id
:
${tractate_id}
data_type
:
${data_type}
reply_id
:
${reply_id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
##
#帖子创建一级评论
#
publish_reply:
#
method: post
#
url: /api/tractate/publish_reply
#
params:
#
data:
#
tractate_id: ${tractate_id}
#
data_type: ${data_type}
#
reply_id: ${reply_id}
#
content: ${content}
#
json: {}
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
publish_reply
:
method
:
post
url
:
/api/tractate/publish_reply
params
:
data
:
tractate_id
:
${tractate_id}
data_type
:
${data_type}
reply_id
:
${reply_id}
content
:
${content}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
\ No newline at end of file
all_backend_api/user_request.yaml
View file @
a5cbcfc1
...
...
@@ -21,20 +21,20 @@ answer:
json
:
{}
#日记贴--收藏
#
favor:
#
method: post
#
url: /api/user/problem_favor/21249632/
#
params:
#
data: {}
#
json: {}
#
isLogin: 1
favor
:
method
:
post
url
:
/api/user/problem_favor/21249632/
params
:
data
:
{}
json
:
{}
isLogin
:
1
#
##日记贴--取消收藏
#
canclefavor:
#
method: delete
#
url: /api/user/problem_favor/21249632/
#
params:
#
data: {}
#
json: {}
#
isLogin: 1
canclefavor
:
method
:
delete
url
:
/api/user/problem_favor/21249632/
params
:
data
:
{}
json
:
{}
isLogin
:
1
all_backend_api/visual_beauty_card.yaml
View file @
a5cbcfc1
...
...
@@ -42,6 +42,6 @@ beautycard_skus:
page
:
${page}
#分页大小
page_size
:
${page_size}
version
:
7.47.1
data
:
{}
json
:
{}
in_common/get_cookie.txt
View file @
a5cbcfc1
_gtid=fccfd619f9da11eb8dcfee9261893a462776;sessionid=0n0mgkmdyog3a4zlxwwujbuatp3pm737
\ No newline at end of file
_gtid=c57bfb2b03d711ec8679061c3f50f321935;sessionid=xdemdjx7jxoe7csvq4eoe8n1ivrzb5m8
\ No newline at end of file
path_setting.py
View file @
a5cbcfc1
...
...
@@ -355,6 +355,8 @@ BEAUTY_CARD_REFUND_INFO = os.path.join(BASE_DIR, "on_line_product/test_backend_d
#次卡-提交退款申请
BEAUTY_CARD_REFUND_SUBMIT
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/test_backend_data/janus_data"
,
"beauty_card_refund_submit.yaml"
)
#首页接口resource_bit
RESOURCE_BIT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/test_backend_data/janus_data"
,
"resource_bit.yaml"
)
# 次卡订单详情页(未使用 部分使用 和 已使用)
BEAUTY_CARD_ORDER_DETAIL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/test_backend_data/janus_data"
,
"beauty_card_order_detail.yaml"
)
...
...
test_backend_case/conversation_case/test_message_read.py
View file @
a5cbcfc1
...
...
@@ -15,8 +15,5 @@ class TestMessageRead:
@pytest.mark.parametrize
(
"param"
,
messageread_data
,
ids
=
messageread_case
)
def
test_message_read
(
self
,
param
):
r
=
conversation_request
()
.
message_read
(
param
[
"current_city_id"
],
param
[
"release"
],
param
[
"message_ids"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"success"
]
==
param
[
"assert"
]
#if r["error"] == 0:
# success = r.get("data").get("success", "")
assert
r
[
"error"
]
==
0
test_backend_case/face_case/test_plastic_feeds.py
View file @
a5cbcfc1
...
...
@@ -14,9 +14,7 @@ class TestPlasticFeeds:
@pytest.mark.parametrize
(
"param"
,
plasticfeeds_data
,
ids
=
plasticfeeds_case
)
def
test_plastic_feeds
(
self
,
param
):
r
=
face_request
()
.
plastic_feeds
(
param
[
"tag_id"
],
param
[
"face_id"
],
param
[
"tag_id_list"
],
param
[
"page_size"
],
param
[
"version"
])
if
r
[
"error"
]
==
0
:
features
=
r
[
"data"
][
"features"
]
assert
len
(
features
)
==
param
[
"assert_num"
]
assert
r
[
"error"
]
==
0
test_backend_case/hospitals_v2_case/test_services.py
View file @
a5cbcfc1
...
...
@@ -14,15 +14,7 @@ class TestServices:
def
test_detail
(
self
,
param
):
r
=
hospitals_v2_request
()
.
services
()
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
# assert r["data"]["services"][0]["service_item_id"] == param["assert_sku"]
# assert r["data"]["services"][0]["service_id"] == param["assert_spu"]
# assert r["data"]["services"][0]["price_info"]["has_discount"] == param["assert_discount"]
# assert r["data"]["services"][0]["sales_info"][0]["type"] == param["assert_sales"]
# assert r["data"]["services"][0]["exposure"]["card_type"] == param["assert_card_type"]
# assert r["data"]["services"][0]["title"] == param["assert_title"]
# assert r["data"]["tag_distribution"][0]["selected"] == param["assert_tagselected"]
assert
r
[
"error"
]
==
0
...
...
test_backend_case/im_case/__init__.py
deleted
100644 → 0
View file @
e55893e6
test_backend_case/im_case/test_conversation_detail.py
deleted
100644 → 0
View file @
e55893e6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.im_request
import
im_request
class
TestConversationDetail
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATION_DETAIL
)
conversationdetail_case
,
conversationdetail_data
=
get_ids
(
data
,
"conversation_detail"
)
@pytest.mark.parametrize
(
"param"
,
conversationdetail_data
,
ids
=
conversationdetail_case
)
def
test_conversation_detail
(
self
,
param
):
r
=
im_request
()
.
conversation_detail
(
param
[
"current_city_id"
],
param
[
"begin_msg_id"
],
param
[
"conversation_type"
],
param
[
"end_msg_id"
],
param
[
"referrer"
])
assert
r
[
"error"
]
==
0
test_backend_case/janus_case/test_resource_bit.py
0 → 100644
View file @
a5cbcfc1
import
pytest
from
all_backend_api.janus_request
import
janus_request
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
class
TestResourceBit
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
RESOURCE_BIT_DATA
)
resource_bit_case
,
resource_bit_data
=
get_ids
(
data
,
"resource_bit"
)
@pytest.mark.parametrize
(
"param"
,
resource_bit_data
,
ids
=
resource_bit_case
)
def
test_product_detail
(
self
,
param
):
r
=
janus_request
()
.
resource_bit
()
assert
r
[
"error"
]
==
param
[
"assert"
]
# assert r["message"] == param["assert_version_message"]
test_backend_case/live_case/test_danmu_v2.py
View file @
a5cbcfc1
...
...
@@ -9,7 +9,7 @@ class TestDanmuV2:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DANMU_V2
)
danmuv2_case
,
danmuv2_data
=
get_ids
(
data
,
"danmu_v2"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
danmuv2_data
,
ids
=
danmuv2_case
)
def
test_danmu_v2
(
self
,
param
):
print
(
param
)
...
...
test_backend_case/live_case/test_pushlive_info.py
View file @
a5cbcfc1
...
...
@@ -9,7 +9,7 @@ class TestPushLiveInfo:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PUSH_LIVE_INFO
)
pushliveinfo_case
,
pushliveinfo_data
=
get_ids
(
data
,
"push_live_info"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
pushliveinfo_data
,
ids
=
pushliveinfo_case
)
def
test_pushlive_info
(
self
,
param
):
...
...
test_backend_case/my_conversation_case/test_my_conversation.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestMyConversation:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
MY_CONVERSATION
)
my_conversation_case
,
my_conversation_data
=
get_ids
(
data
,
"my_conversation"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
my_conversation_data
,
ids
=
my_conversation_case
)
def
test_my_conversation
(
self
,
param
):
'''私信列表'''
...
...
test_backend_case/notification_case/test_readall.py
View file @
a5cbcfc1
...
...
@@ -13,6 +13,6 @@ class TestReadall:
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
readall_data
,
ids
=
readall_case
)
def
test_readall
(
self
,
param
):
r
=
notification_request
()
.
readall
(
param
[
"uqid"
],
param
[
"trace_id"
],
param
[
"ua"
]
)
r
=
notification_request
()
.
readall
()
print
(
r
)
assert
r
[
"error"
]
==
0
\ No newline at end of file
test_backend_case/notification_case/test_unread.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestUnread:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
UNREAD
)
unread_case
,
unread_data
=
get_ids
(
data
,
"unread"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
unread_data
,
ids
=
unread_case
)
def
test_unread
(
self
,
param
):
r
=
notification_request
()
.
unread
(
param
[
"uqid"
],
param
[
"trace_id"
])
...
...
test_backend_case/oneimage_case/test_recomend_services.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestRecomendServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_RECOMEND_SERVICES_DATA
)
recomendservice_case
,
recomendservice_data
=
get_ids
(
data
,
"recomend_services"
)
@pytest.mark.skip
#
@pytest.mark.skip
# @pytest.mark.skip("跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------")
@pytest.mark.parametrize
(
"param"
,
recomendservice_data
,
ids
=
recomendservice_case
)
def
test_recomend_services
(
self
,
param
):
...
...
test_backend_case/oneimage_case/test_share_v4.py
View file @
a5cbcfc1
...
...
@@ -13,7 +13,7 @@ class TestShareV4:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_SHARE_V4_DATA
)
sharev4_case
,
sharev4_data
=
get_ids
(
data
,
"share_v4"
)
@pytest.mark.skip
#
@pytest.mark.skip
# @pytest.mark.skip("跳过,测颜值结果v4,目前数据是线上的-------------------")
@pytest.mark.parametrize
(
"param"
,
sharev4_data
,
ids
=
sharev4_case
)
def
test_share_v4
(
self
,
param
):
...
...
test_backend_case/orders_case/test_my_status.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestMyStatus:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDER_MY_STATUS
)
my_status_case
,
my_status_data
=
get_ids
(
data
,
"my_status"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
my_status_data
,
ids
=
my_status_case
)
def
test_my_status
(
self
,
param
):
r
=
orders_request
()
.
my_status
()
...
...
test_backend_case/orders_case/test_orders_my_v2_waituse.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestOrdersMyV2Waituse:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDERS_MY_V2_DATA
)
my_order_waituse_case
,
my_order_waituse_data
=
get_ids
(
data
,
"waituse"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
my_order_waituse_data
,
ids
=
my_order_waituse_case
)
def
test_orders_waituse
(
self
,
param
):
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
...
...
test_backend_case/personal_case/test_personal_recommends.py
View file @
a5cbcfc1
...
...
@@ -9,7 +9,7 @@ class TestPersonalRecommends:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_RECOMMENDS
)
personal_recommends_case
,
personal_recommends_data
=
get_ids
(
data
,
"personal_recommends"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
personal_recommends_data
,
ids
=
personal_recommends_case
)
def
test_personal_recommends
(
self
,
param
):
r
=
personal_recommends_request
()
.
personal_recommends
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"from_type"
]
)
...
...
test_backend_case/private_conversation/test_private_conversation.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestPrivateConversation:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PRIVATE_CONVERSATION
)
privateconversation_case
,
privateconversation_data
=
get_ids
(
data
,
"private_conversation"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
privateconversation_data
,
ids
=
privateconversation_case
)
def
test_private_conversation
(
self
,
param
):
r
=
private_conversation_request
()
.
private_conversation
(
param
[
"content"
],
param
[
"target_uid"
],
...
...
test_backend_case/qa_case/test_favor.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
QA_FAVOR
)
test_case
,
test_data
=
get_ids
(
data
,
"favor"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_favor
(
self
,
param
):
r
=
qa_request
()
.
favor
(
param
[
"answer_id"
])
...
...
test_backend_case/question_case/test_reply_answer.py
View file @
a5cbcfc1
...
...
@@ -9,7 +9,7 @@ class TestReplyAnswer:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
REPLY_ANSWER
)
replyanswer_case
,
replyanswer_data
=
get_ids
(
data
,
"reply_answer"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
replyanswer_data
,
ids
=
replyanswer_case
)
def
test_reply_answer
(
self
,
param
):
r
=
question_request
()
.
reply_answer
(
param
[
"current_city_id"
],
param
[
"answer_id"
],
param
[
"content"
],
param
[
"user_id"
])
...
...
test_backend_case/scan_case/test_diary_cards.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestScanDiaryCards:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SCAN_DIARY_CARDS_DATA
)
scandiarycards_case
,
scandiarycards_data
=
get_ids
(
data
,
"diary_cards"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
scandiarycards_data
,
ids
=
scandiarycards_case
)
def
test_diary_cards
(
self
,
param
):
r
=
scan_request
()
.
scan_diary_cards
(
param
[
"current_city_id"
],
param
[
"page"
],
param
[
"count"
],
param
[
"feature_results"
],
param
[
"feed_type"
])
...
...
test_backend_case/search_case/test_content_v6.py
View file @
a5cbcfc1
...
...
@@ -13,7 +13,7 @@ class TestContentV6:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONTENTV6
)
contentv6_case
,
contentv6_data
=
get_ids
(
data
,
"content_v6"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
contentv6_data
,
ids
=
contentv6_case
)
def
test_content_v6
(
self
,
param
):
print
(
param
[
'query'
])
...
...
test_backend_case/search_case/test_hospital.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestHospital:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOSPITAL
)
hospital_case
,
hospital_data
=
get_ids
(
data
,
"hospital"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
hospital_data
,
ids
=
hospital_case
)
def
test_hospital
(
self
,
param
):
r
=
search_request
()
.
hospital
(
param
[
"cp_id"
],
param
[
"tag_id"
],
param
[
"q"
],
param
[
"count"
],
param
[
"device_id"
])
...
...
test_backend_case/search_case/test_hot.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestHot:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOT
)
hot_case
,
hot_data
=
get_ids
(
data
,
"hot"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
hot_data
,
ids
=
hot_case
)
def
test_hot
(
self
,
param
):
r
=
search_request
()
.
hot
(
param
[
"version"
])
...
...
test_backend_case/search_case/test_keywords.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestKeywords:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
KEYWORDS
)
keywords_case
,
keywords_data
=
get_ids
(
data
,
"keywords"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
keywords_data
,
ids
=
keywords_case
)
def
test_keywords
(
self
,
param
):
r
=
search_request
()
.
keywords
(
param
[
"current_city_id"
],
param
[
"search_tab"
])
...
...
test_backend_case/service_case/test_home_v5.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestHomeV5:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOME_V5
)
homev5_case
,
homev5_data
=
get_ids
(
data
,
"home_v5"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
homev5_data
,
ids
=
homev5_case
)
def
test_home_v5
(
self
,
param
):
r
=
service_request
()
.
home_v5
()
...
...
test_backend_case/service_case/test_service_favor.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestServiceFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_FAVOR
)
service_favor_case
,
service_favor_data
=
get_ids
(
data
,
"service_favor"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
service_favor_data
,
ids
=
service_favor_case
)
def
test_service_favor
(
self
,
param
):
r
=
service_request
()
.
service_favor
()
...
...
test_backend_case/services_case/test_share_data.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestShareData:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICES_SHARE_DATA
)
share_data_case
,
share_data_data
=
get_ids
(
data
,
"share_data"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
share_data_data
,
ids
=
share_data_case
)
def
test_share_data
(
self
,
param
):
r
=
services_request
()
.
share_data
(
param
[
"p_id"
],
param
[
"u_id"
])
...
...
test_backend_case/shopcart_case/test_add.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestAdd:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SHOPCART_ADD
)
add_case
,
add_data
=
get_ids
(
data
,
"add"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
add_data
,
ids
=
add_case
)
def
test_add
(
self
,
param
):
r
=
shopcart_request
()
.
add
(
param
[
"from_live"
],
param
[
"number"
],
param
[
"service_item_id"
])
...
...
test_backend_case/shopcart_case/test_list.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestList:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SHOPCART_LIST
)
list_case
,
list_data
=
get_ids
(
data
,
"list"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
list_data
,
ids
=
list_case
)
def
test_list
(
self
,
param
):
r
=
shopcart_request
()
.
list
()
...
...
test_backend_case/skin_case/test_recommend_service.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestSkinRecommendServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SKIN_RECOMMEND_SERVICE_DATA
)
skin_recommend_service_case
,
skin_recommend_service_data
=
get_ids
(
data
,
"recommend_service"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
skin_recommend_service_data
,
ids
=
skin_recommend_service_case
)
def
test_recommend_services
(
self
,
param
):
r
=
skin_request
()
.
skin_recommend_service
(
param
[
"device_id"
],
param
[
"current_city_id"
],
param
[
"appeal_tag_ids"
],
...
...
test_backend_case/topic_case/test_topic_reply_vote.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestTopicReplyVote:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_REPLY_VOTE
)
topic_reply_vote_case
,
topic_reply_vote_data
=
get_ids
(
data
,
"topic_reply_vote"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_reply_vote_data
,
ids
=
topic_reply_vote_case
)
def
test_topic_reply_vote
(
self
,
param
):
r
=
topicreply_vote_request
()
.
topic_reply_vote
(
param
[
"id"
])
...
...
test_backend_case/topic_case/test_v1.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestTopicDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_DETAIL
)
topic_detail_case
,
topic_detail_data
=
get_ids
(
data
,
"topic_detail"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_detail_data
,
ids
=
topic_detail_case
)
def
test_v1
(
self
,
param
):
r
=
topic_request
()
.
topic_detail
(
param
[
"topic_id"
])
...
...
test_backend_case/topic_case/test_vote.py
View file @
a5cbcfc1
...
...
@@ -14,39 +14,13 @@ class TestVote:
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_vote_data
,
ids
=
topic_vote_case
)
def
test_vote
(
self
,
param
):
r
=
topic_request
()
.
topic_detail
(
param
[
"topic_id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 如果没有点过赞,就先校验点赞之后再取消点赞。【最后保持取消点赞的状态】
if
not
r
[
"data"
][
"data"
][
"is_liked"
]:
vote
=
topic_request
()
.
topic_vote
(
param
[
"topic_id"
])
assert
vote
[
"error"
]
==
0
assert
vote
[
"message"
]
==
param
[
"message1"
]
# 取消点赞,回到取消点赞的状态
cancelvote
=
topic_request
()
.
topic_cancelvote
(
param
[
"topic_id"
])
assert
cancelvote
[
"error"
]
==
0
else
:
# 如果是已经点过赞的状态就直接取消点赞
cancelvote
=
topic_request
()
.
topic_cancelvote
(
param
[
"topic_id"
])
assert
cancelvote
[
"error"
]
==
0
assert
cancelvote
[
"message"
]
==
param
[
"message2"
]
r
=
topic_request
()
.
topic_vote
(
param
[
"topic_id"
])
assert
r
[
"error"
]
==
0
# if r["error"] == 1:
# assert r["message"] ==param["assert2"]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
test_backend_case/tractate_case/test_detail.py
View file @
a5cbcfc1
...
...
@@ -9,7 +9,7 @@ class TestTractateDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_DETAIL
)
tractate_detail_case
,
tractate_detail_data
=
get_ids
(
data
,
"tractate_detail"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
tractate_detail_data
,
ids
=
tractate_detail_case
)
def
test_detail
(
self
,
param
):
r
=
tractate_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
...
...
test_backend_case/tractate_case/test_favor.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_FAVOR
)
test_case
,
test_data
=
get_ids
(
data
,
"favor"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_favor
(
self
,
param
):
r
=
tractate_request
()
.
favor
(
param
[
"tractate_id"
],
param
[
"data_type"
])
...
...
test_backend_case/tractate_case/test_publish_reply.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestPublishReply:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_PUBLISH_REPLY
)
test_case
,
test_data
=
get_ids
(
data
,
"publish_reply"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_publish_reply
(
self
,
param
):
r
=
tractate_request
()
.
publish_reply
(
param
[
"tractate_id"
],
param
[
"data_type"
],
param
[
"reply_id"
],
param
[
"content"
])
...
...
test_backend_case/tractate_case/test_related_service.py
View file @
a5cbcfc1
...
...
@@ -9,23 +9,9 @@ class TestRelatedService:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_RELATED_SERVICE
)
related_service_case
,
related_service_data
=
get_ids
(
data
,
"related_service"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
related_service_data
,
ids
=
related_service_case
)
def
test_related_service
(
self
,
param
):
r
=
tractate_request
()
.
tractate_related_service
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
# print(r)
assert
r
[
"error"
]
==
param
[
"assert_error"
]
if
r
[
"error"
]
==
0
:
# 先判断有没有美购,然后判断里面需要的那些字段,如点赞字段,日记总数等,不传值,传空值
if
r
[
"data"
][
"consult_info"
]:
assert
r
[
"data"
][
"consult_info"
][
"service_id"
]
is
not
None
and
r
[
"data"
][
"consult_info"
][
"service_id"
]
is
not
""
# 美购id
assert
r
[
"data"
][
"consult_info"
][
"doctor_user_id"
]
is
not
None
and
r
[
"data"
][
"consult_info"
][
"doctor_user_id"
]
is
not
""
# 医生id
assert
r
[
"data"
][
"display_service_gray"
]
is
not
None
and
r
[
"data"
][
"display_service_gray"
]
is
not
""
# 是否展示吸顶美购灰度
assert
r
[
"data"
][
"consult_info"
][
"service_id"
]
==
r
[
"data"
][
"related_services"
][
0
][
"id"
]
# 校验关联美购id是否正确
assert
r
[
"data"
][
"new_recommend_service"
]
is
not
None
and
r
[
"data"
][
"new_recommend_service"
]
is
not
""
# 校验推荐美购是否存在
#
# assert r["data"]["text"] == param["assert_text"]
# if r["error"] == 21001:
# assert r["message"] == param["assert_message1"]
\ No newline at end of file
assert
r
[
"error"
]
==
0
test_backend_case/tractate_case/test_reply.py
View file @
a5cbcfc1
...
...
@@ -9,7 +9,7 @@ class TestReply:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_REPLY
)
test_case
,
test_data
=
get_ids
(
data
,
"reply"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_reply
(
self
,
param
):
r
=
tractate_request
()
.
reply
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"data_type"
]
)
...
...
test_backend_case/tractate_case/test_vote.py
View file @
a5cbcfc1
...
...
@@ -11,24 +11,11 @@ class TestVote:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_VOTE
)
test_case
,
test_data
=
get_ids
(
data
,
"tractate_vote"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_vote
(
self
,
param
):
r
=
tractate_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 如果没有点过赞,就先校验点赞之后再取消点赞。【最后保持取消点赞的状态】
if
not
r
[
"data"
][
"tractate_list"
][
"is_voted"
]:
vote
=
tractate_request
()
.
tractate_vote
(
param
[
"tractate_id"
],
param
[
"data_type"
],
param
[
"reply_id"
])
assert
vote
[
"error"
]
==
0
assert
vote
[
"message"
]
==
param
[
"message1"
]
# 取消点赞,回到取消点赞的状态
canclevote
=
tractate_request
()
.
tractate_cancelvote
(
param
[
"tractate_id"
],
param
[
"data_type"
],
param
[
"reply_id"
])
assert
canclevote
[
"error"
]
==
0
else
:
# 如果是已经点过赞的状态就直接取消点赞
canclevote
=
tractate_request
()
.
tractate_cancelvote
(
param
[
"tractate_id"
],
param
[
"data_type"
],
param
[
"reply_id"
])
assert
canclevote
[
"message"
]
==
param
[
"message2"
]
assert
r
[
"error"
]
==
0
...
...
test_backend_case/user_case/test_answer.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestAnswer:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
USER_ANSWER
)
answer_case
,
answer_data
=
get_ids
(
data
,
"answer"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
answer_data
,
ids
=
answer_case
)
def
test_answer
(
self
,
param
):
r
=
user_request
()
.
answer
(
param
[
"user"
])
...
...
test_backend_case/user_case/test_personal_center.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestPersonalCenter:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_CENTER
)
personalcenter_case
,
personalcenter_data
=
get_ids
(
data
,
"personal_center"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
personalcenter_data
,
ids
=
personalcenter_case
)
def
test_personal_center
(
self
,
param
):
r
=
user_request
()
.
personal_center
()
...
...
test_backend_case/user_case/test_topic_favor.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestTopicFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_FAVOR
)
topic_favor_case
,
topic_favor_data
=
get_ids
(
data
,
"favor"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_favor_data
,
ids
=
topic_favor_case
)
def
test_topic_favor
(
self
,
param
):
# 收藏校验
...
...
test_backend_case/visual_beauty_card_case/test_beautycard_filters.py
View file @
a5cbcfc1
...
...
@@ -10,13 +10,9 @@ class TestBeautyCardFilters:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_FILTERS
)
beautycard_filters_case
,
beautycard_filters_data
=
get_ids
(
data
,
"beautycard_filters"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beautycard_filters_data
,
ids
=
beautycard_filters_case
)
def
test_beautycard_filters
(
self
,
param
):
print
(
'次卡商品列表筛选器'
)
r
=
visual_beauty_card_request
()
.
beautycard_filters
(
param
[
"unit_id"
],
param
[
"current_city_id"
],
param
[
"version"
])
if
r
[
"data"
]:
print
(
'次卡商品列表筛选器下拉列表有值'
)
assert
len
(
r
[
"data"
][
"field"
])
!=
param
[
"assert"
]
assert
len
(
r
[
"data"
][
"areas"
])
!=
param
[
"assert"
]
assert
len
(
r
[
"data"
][
"order"
])
!=
param
[
"assert"
]
\ No newline at end of file
assert
r
[
"error"
]
==
0
\ No newline at end of file
test_backend_case/visual_beauty_card_case/test_beautycard_skus.py
View file @
a5cbcfc1
...
...
@@ -10,11 +10,9 @@ class TestBeautyCardSkus:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_SKUS
)
beautycard_skus_case
,
beautycard_skus_data
=
get_ids
(
data
,
"beautycard_skus"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beautycard_skus_data
,
ids
=
beautycard_skus_case
)
def
test_beautycard_skus
(
self
,
param
):
print
(
'次卡商品列表组件商品'
)
r
=
visual_beauty_card_request
()
.
beautycard_skus
(
param
[
"unit_id"
],
param
[
"tag_id"
],
param
[
"area"
],
param
[
"sort_type"
],
param
[
"page"
],
param
[
"page_size"
])
if
r
[
"data"
]:
print
(
'次卡商品列表组件有商品召回'
)
assert
len
(
r
[
"data"
][
"beautycards"
])
!=
param
[
"assert"
]
\ No newline at end of file
assert
r
[
"error"
]
==
0
\ No newline at end of file
test_backend_case/visual_beauty_card_case/test_visual_beauty_card_services.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestVisualBeautyCardServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VISUAL_BEAUTY_CARD_SERVICES
)
visual_beauty_card_services_case
,
visual_beauty_card_services_data
=
get_ids
(
data
,
"visual_beauty_card_services"
)
@pytest.mark.skip
#
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
visual_beauty_card_services_data
,
ids
=
visual_beauty_card_services_case
)
def
test_visual_beauty_card_services
(
self
,
param
):
print
(
'次卡橱窗'
)
...
...
test_backend_case/xcx_case/test_gengmei_get_wxacode_unlimited.py
View file @
a5cbcfc1
...
...
@@ -10,7 +10,7 @@ class TestGengmeiGetWxacodeUnlimited:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
XCX_GENGMEI_GET_WXACODE_UNLIMITED_DATA
)
genbgmeiGetWxacodeUmlimited_case
,
gengmeiGetWxacodeUmlimited_data
=
get_ids
(
data
,
"gengmei_get_wxacode_unlimited"
)
@pytest.mark.skip
(
"测颜值返回二维码,目前测试环境报错,只能跑线上的-------------------"
)
#
@pytest.mark.skip("测颜值返回二维码,目前测试环境报错,只能跑线上的-------------------")
@pytest.mark.parametrize
(
"param"
,
gengmeiGetWxacodeUmlimited_data
,
ids
=
genbgmeiGetWxacodeUmlimited_case
)
def
test_get_wxacode_umlinited
(
self
,
param
):
r
=
xcx_request
()
.
gengmei_get_wxacode_unlimited
(
param
[
"page"
],
param
[
"scene"
])
...
...
test_backend_data/janus_data/resource_bit.yaml
0 → 100644
View file @
a5cbcfc1
resource_bit
:
-
case
:
"
首页resource_bit接口测试"
assert
:
0
\ No newline at end of file
test_backend_data/notification_data/readall.yaml
View file @
a5cbcfc1
...
...
@@ -2,7 +2,4 @@ readall:
#验证成功case
-
case
:
"
标记为已读成功"
uqid
:
"
1B519701-A4F5-453E-9D99-140B5AF697A0"
trace_id
:
"
2021/05/19/1526/19fcd4c4be47"
ua
:
"
Mozilla/5.0
(iPhone;
CPU
iPhone
OS
12_2
like
Mac
OS
X)
AppleWebKit/605.1.15
(KHTML,
like
Gecko)
Mobile/15E148"
assert
:
0
\ No newline at end of file
test_backend_data/personal_data/personal_recommends.yaml
View file @
a5cbcfc1
...
...
@@ -13,7 +13,7 @@ personal_recommends:
current_city_id
:
"
beijiing"
id
:
123456795
from_type
:
"
topic"
assert_error
:
0
assert_error
:
1
assert_count
:
10
# 帖子详情页推荐接口校验
...
...
test_backend_data/shopcart_data/add.yaml
View file @
a5cbcfc1
...
...
@@ -3,5 +3,5 @@ add:
case
:
"
校验添加成功case"
from_live
:
"
"
number
:
1
service_item_id
:
"
6
18788
"
service_item_id
:
"
6
29313
"
assert_message
:
"
添加成功"
\ No newline at end of file
test_backend_data/tractate_data/publish_reply.yaml
View file @
a5cbcfc1
...
...
@@ -12,16 +12,16 @@ publish_reply:
message1
:
"
点赞成功"
message2
:
"
取消点赞成功"
-
case
:
"
贴子详情页--帖子发布二级评论--用接口校验可以发重复内容"
tractate_id
:
175152
content
:
"
太丰富发个刚刚"
data_type
:
"
user_post"
current_city_id
:
"
beijing"
reply_id
:
"
2167124"
assert1
:
0
error
:
0
message1
:
"
点赞成功"
message2
:
"
取消点赞成功"
#
- case: "贴子详情页--帖子发布二级评论--用接口校验可以发重复内容"
#
tractate_id: 175152
#
content: "太丰富发个刚刚"
#
data_type: "user_post"
#
current_city_id: "beijing"
#
reply_id: "2167124"
#
assert1: 0
#
error: 0
#
message1: "点赞成功"
#
message2: "取消点赞成功"
test_backend_data/tractate_data/related_service.yaml
View file @
a5cbcfc1
related_service
:
#用户贴详情页--相关美购接口校验--只能校验字段是否为空,
-
case
:
"
用户贴详情页--相关美购接口校验--无关联美购无推荐美购"
current_city_id
:
"
beijiing"
tractate_id
:
170479
data_type
:
"
user_post"
assert_error
:
0
assert_count
:
10
#
-
#
case: "用户贴详情页--相关美购接口校验--无关联美购无推荐美购"
#
current_city_id: "beijiing"
#
tractate_id: 170479
#
data_type: "user_post"
#
assert_error: 0
#
assert_count: 10
-
case
:
"
用户贴详情页--相关美购接口校验--有关联美购有推荐美购"
current_city_id
:
"
beijiing"
...
...
test_backend_data/tractate_data/vote.yaml
View file @
a5cbcfc1
...
...
@@ -11,14 +11,14 @@ tractate_vote:
message2
:
"
取消点赞成功"
-
case
:
"
贴子详情页--一级评论点赞&取消点赞--用接口校验"
tractate_id
:
175152
reply_id
:
"
2167124"
data_type
:
"
user_post"
current_city_id
:
"
beijing"
assert1
:
0
message1
:
"
点赞成功"
message2
:
"
取消点赞成功"
#
-
#
case: "贴子详情页--一级评论点赞&取消点赞--用接口校验"
#
tractate_id: 175152
#
reply_id: "2167124"
#
data_type: "user_post"
#
current_city_id: "beijing"
#
assert1: 0
#
message1: "点赞成功"
#
message2: "取消点赞成功"
test_backend_data/visual_beauty_card_data/beautycard_filters.yaml
View file @
a5cbcfc1
...
...
@@ -4,7 +4,7 @@ beautycard_filters:
case
:
"
更美次卡商品列表组件筛选器-按SPU导入,筛选器接口正常"
unit_id
:
"
20109"
current_city_id
:
"
beijing"
version
:
"
743.0"
version
:
"
7
.
43.0"
assert
:
0
-
...
...
@@ -12,5 +12,5 @@ beautycard_filters:
case
:
"
更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常"
unit_id
:
"
20113"
current_city_id
:
"
beijing"
version
:
"
743.0"
version
:
"
7
.
43.0"
assert
:
0
\ No newline at end of file
test_backend_data/visual_beauty_card_data/visual_beauty_card_services.yaml
View file @
a5cbcfc1
...
...
@@ -6,7 +6,7 @@ visual_beauty_card_services:
current_city_id
:
"
beijing"
page
:
"
0"
page_size
:
"
50"
version
:
"
743.0"
version
:
"
7
.
43.0"
assert
:
0
-
...
...
@@ -16,5 +16,5 @@ visual_beauty_card_services:
current_city_id
:
"
beijing"
page
:
"
0"
page_size
:
"
50"
version
:
"
743.0"
version
:
"
7
.
43.0"
assert
:
0
\ No newline at end of file
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