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
2c32802b
Commit
2c32802b
authored
Jul 16, 2021
by
林颖
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'common_dev' into ly_dev
parents
5bc354ec
f95992be
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
305 additions
and
119 deletions
+305
-119
hybrid_request.py
all_backend_api/hybrid_request.py
+3
-11
hybrid_request.yaml
all_backend_api/hybrid_request.yaml
+0
-10
user_request.yaml
all_backend_api/user_request.yaml
+0
-2
wiki_request.py
all_backend_api/wiki_request.py
+26
-0
wiki_request.yaml
all_backend_api/wiki_request.yaml
+15
-0
web_request.py
all_doctor_api/web_request.py
+20
-1
web_request.yaml
all_doctor_api/web_request.yaml
+28
-0
path_setting.py
path_setting.py
+11
-2
test_detail.py
test_backend_case/hospitals_case/test_detail.py
+6
-6
test_doctor.py
test_backend_case/hospitals_case/test_doctor.py
+1
-1
test_basewiki_item.py
test_backend_case/hybrid_case/test_basewiki_item.py
+0
-20
test_beauty_card_refund_submit.py
...backend_case/janus_case/test_beauty_card_refund_submit.py
+3
-1
__init__.py
test_backend_case/wiki_case/__init__.py
+0
-0
test_wiki_item.py
test_backend_case/wiki_case/test_wiki_item.py
+21
-0
detail.yaml
test_backend_data/hospitals_data/detail.yaml
+54
-54
doctor.yaml
test_backend_data/hospitals_data/doctor.yaml
+7
-6
beauty_card_refund_submit.yaml
test_backend_data/janus_data/beauty_card_refund_submit.yaml
+9
-1
topic_reply_create.yaml
test_backend_data/topic_data/topic_reply_create.yaml
+1
-1
__init__.py
test_backend_data/wiki_data/__init__.py
+0
-0
wiki_item.yaml
test_backend_data/wiki_data/wiki_item.yaml
+7
-3
test_cpc_community_click_logs.py
test_doctor_case/web_case/test_cpc_community_click_logs.py
+23
-0
test_cpc_community_data_info.py
test_doctor_case/web_case/test_cpc_community_data_info.py
+27
-0
test_cpc_community_diaries.py
test_doctor_case/web_case/test_cpc_community_diaries.py
+22
-0
cpc_community_click_logs.yaml
test_doctor_data/web_data/cpc_community_click_logs.yaml
+6
-0
cpc_community_data_info.yaml
test_doctor_data/web_data/cpc_community_data_info.yaml
+8
-0
cpc_community_diaries.yaml
test_doctor_data/web_data/cpc_community_diaries.yaml
+7
-0
No files found.
all_backend_api/hybrid_request.py
View file @
2c32802b
...
...
@@ -7,8 +7,6 @@ class hybrid_request(BaseRequest):
def
__init__
(
self
):
#百科详情页-项目聚合百科
self
.
data
=
self
.
api_load
(
path_setting
.
SUBWIKI_CONFIG
)
#百科详情页-项目百科
self
.
data
=
self
.
api_load
(
path_setting
.
BASEWIKI_ITEM_CONFIG
)
#百科详情页-药品(仪器、材料)百科
self
.
data
=
self
.
api_load
(
path_setting
.
BASEWIKI_PRODUCT_CONFIG
)
#百科详情页-品牌百科
...
...
@@ -23,12 +21,6 @@ class hybrid_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
'sub_wiki'
])
# return self.data
#百科详情页-项目百科
def
basewiki_item
(
self
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'version'
]
=
version
return
self
.
api_send
(
self
.
data
[
'basewiki_item'
])
#百科详情页-药品(仪器、材料)百科
def
basewiki_product
(
self
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'version'
]
=
version
...
...
@@ -67,7 +59,7 @@ class hybrid_request(BaseRequest):
if
__name__
==
'__main__'
:
# print(self.data)
# print(hybrid_request().sub_wiki("744.0", "beijing"))
#
print(type(hybrid_request().sub_wiki("744.0", "beijing")))
print
(
type
(
hybrid_request
()
.
sub_wiki
(
"744.0"
,
"beijing"
)))
soup
=
BeautifulSoup
(
hybrid_request
()
.
sub_wiki
(
"744.0"
,
"beijing"
),
'lxml'
)
# html.parser是解析器,也可是lxml
print
(
soup
.
prettify
(),
'百科详情页-项目聚合百科'
)
#输出soup对象的内容
print
(
soup
.
title
)
\ No newline at end of file
# print(soup.title)
\ No newline at end of file
all_backend_api/hybrid_request.yaml
View file @
2c32802b
...
...
@@ -9,16 +9,6 @@ sub_wiki:
data
:
{}
json
:
{}
#百科详情页-项目百科-水光针
basewiki_item
:
method
:
GET
url
:
/hybrid/base_wiki/item/141
params
:
version
:
${version}
data
:
{}
json
:
{}
#百科详情页-药品(仪器、材料)百科-菲洛嘉
basewiki_product
:
method
:
GET
...
...
all_backend_api/user_request.yaml
View file @
2c32802b
...
...
@@ -38,7 +38,6 @@ canclefavor:
json
:
{}
isLogin
:
1
<<<<<<< HEAD
#直播-关注主播
follow_add
:
method
:
post
...
...
@@ -61,7 +60,6 @@ follow_del:
json
:
{}
isLogin
:
1
=======
# 我的-日记
my_diary_v2
:
method
:
GET
...
...
all_backend_api/wiki_request.py
0 → 100644
View file @
2c32802b
import
path_setting
from
in_common.base_request
import
BaseRequest
from
bs4
import
BeautifulSoup
class
wiki_request
(
BaseRequest
):
def
__init__
(
self
):
#百科详情页-项目百科
self
.
data
=
self
.
api_load
(
path_setting
.
WIKI_ITEM_CONFIG
)
#百科详情页-项目百科
def
wiki_item
(
self
,
tag_ids
,
q
,
start_num
,
version
,
device_id
):
self
.
params
[
'tag_ids'
]
=
tag_ids
self
.
params
[
'q'
]
=
q
self
.
params
[
'start_num'
]
=
start_num
self
.
params
[
'version'
]
=
version
self
.
params
[
'device_id'
]
=
device_id
return
self
.
api_send
(
self
.
data
[
'wiki_item'
])
if
__name__
==
'__main__'
:
print
(
type
(
wiki_request
()
.
wiki_item
(
"2059"
,
"水光针"
,
"0"
,
"7.46.0"
,
"97B6764B-2135-4761-9911-701C38CBC272"
)))
# soup = BeautifulSoup(hybrid_request().sub_wiki("744.0", "beijing"), 'lxml') # html.parser是解析器,也可是lxml
# print(soup.prettify(),'百科详情页-项目聚合百科') #输出soup对象的内容
# print(soup.title)
\ No newline at end of file
all_backend_api/wiki_request.yaml
0 → 100644
View file @
2c32802b
#百科详情页-项目百科-水光针
wiki_item
:
method
:
GET
url
:
/api/wiki/item/141/
params
:
tag_ids
:
${tag_ids}
q
:
${q}
start_num
:
${start_num}
version
:
${version}
device_id
:
${device_id}
data
:
{}
json
:
{}
\ No newline at end of file
all_doctor_api/web_request.py
View file @
2c32802b
...
...
@@ -75,6 +75,22 @@ class web_request(BaseRequest):
def
cpc_community_homepage
(
self
):
"点点通-内容-概览"
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"cpc_community_homepage"
])
def
cpc_community_diaries
(
self
):
"点点通-内容-数据统计-内容"
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"cpc_community_diaries"
])
def
cpc_community_data_info
(
self
,
diary_id
,
start_time
,
end_time
):
"点点通-内容-数据统计"
self
.
params
[
"diary_id"
]
=
diary_id
self
.
params
[
"start_time"
]
=
start_time
self
.
params
[
"end_time"
]
=
end_time
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"cpc_community_data_info"
])
def
cpc_community_click_logs
(
self
,
page
):
"点点通-内容-推广明细"
self
.
params
[
"page"
]
=
page
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"cpc_community_click_logs"
])
...
...
@@ -95,9 +111,11 @@ if __name__ == '__main__':
print
(
web_request
()
.
conversation_user_id
(
0
,
"您好"
,
602329
,
"271caac2ae1687ca0a56ee18115b8183"
,
"NLeTxEx1BOQo1zjv2us9BQ00ViMAHGpJ"
))
print
(
web_request
()
.
cpc_homepage
())
print
(
web_request
()
.
artemis_ad_type_list
())
print
(
"发送"
)
print
(
web_request
()
.
artemis_order_list
(
0
,
1
))
print
(
web_request
()
.
artemis_order_list
(
1
,
1
))
print
(
web_request
()
.
artemis_order_list
(
2
,
1
))
print
(
web_request
()
.
artemis_order_id_detail
())
print
(
web_request
()
.
cpc_community_homepage
())
print
(
web_request
()
.
cpc_community_diaries
())
print
(
web_request
()
.
cpc_community_data_info
(
"15604767"
,
"2021-07-02"
,
"2021-07-12"
))
print
(
web_request
()
.
cpc_community_click_logs
(
1
))
\ No newline at end of file
all_doctor_api/web_request.yaml
View file @
2c32802b
...
...
@@ -162,3 +162,31 @@ cpc_community_homepage:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
cpc_community_diaries
:
method
:
get
url
:
/api/web/cpc_community/diaries
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
cpc_community_data_info
:
method
:
get
url
:
/api/web/cpc_community/data/info
params
:
diary_id
:
${diary_id}
start_time
:
${start_time}
end_time
:
${end_time}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
cpc_community_click_logs
:
method
:
get
url
:
/api/web/cpc_community/click_logs
params
:
page
:
${page}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
path_setting.py
View file @
2c32802b
...
...
@@ -115,6 +115,8 @@ ANSWER_LIST = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hybrid_data
QA_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"qa_request.yaml"
)
# -问题的收藏&取消收藏
QA_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/qa_data"
,
"favor.yaml"
)
# -test的文件,尝试在不动原函数的基础上加参数而不是用默认参数。--没必要
# TEST_QA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/qa_data", "test.yaml")
# 回答评论点赞&取消点赞
...
...
@@ -453,6 +455,13 @@ ADPACKAGEORDERDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_
CPCHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_homepage.yaml"
)
#医生后台-点点通内容-概览
CPCCOMMUNITYHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_community_homepage.yaml"
)
#医生后台-点点通内容-数据统计-内容
CPCCOMMUNITYDIARIES
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_community_diaries.yaml"
)
#医生后台-点点通内容-数据统计
CPCCOMMUNITYDATAINFO
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_community_data_info.yaml"
)
#医生后台-点点通内容-推广明细
CPCCOMMUNITYCLICKLOGS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_community_click_logs.yaml"
)
#更美次卡橱窗组件商品
VISUAL_BEAUTY_CARD_SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"visual_beauty_card.yaml"
)
...
...
@@ -471,8 +480,8 @@ SUBWIKI_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "hybrid_
SUBWIKI
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_data"
,
"sub_wiki.yaml"
)
#百科详情页-项目百科
BASEWIKI_ITEM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid
_request.yaml"
)
BASEWIKI_ITEM
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_data"
,
"base
wiki_item.yaml"
)
WIKI_ITEM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"wiki
_request.yaml"
)
WIKI_ITEM
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/wiki_data"
,
"
wiki_item.yaml"
)
#百科详情页-药品(仪器、材料)百科
BASEWIKI_PRODUCT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_request.yaml"
)
...
...
test_backend_case/hospitals_case/test_detail.py
View file @
2c32802b
...
...
@@ -15,12 +15,12 @@ class TestDetail:
r
=
hospitals_request
()
.
detail
()
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"data"
][
"base_info"
][
"hospital_name"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
"base_info"
][
"good_at"
][
0
]
==
param
[
"assert1"
]
assert
r
[
"data"
][
"base_info"
][
"hospital_type"
]
==
param
[
"assert2"
]
assert
r
[
"data"
][
"buy_related"
][
"gifts"
][
0
][
"gift_id"
]
==
param
[
"assert3"
]
assert
r
[
"data"
][
"tab"
]
==
param
[
"assert4"
]
assert
r
[
"data"
][
"image_header_area"
][
"hospital_images"
][
0
]
==
param
[
"assert5"
]
#
assert r["data"]["base_info"]["hospital_name"] == param["assert"]
#
assert r["data"]["base_info"]["good_at"][0] == param["assert1"]
#
assert r["data"]["base_info"]["hospital_type"] == param["assert2"]
#
assert r["data"]["buy_related"]["gifts"][0]["gift_id"] == param["assert3"]
#
assert r["data"]["tab"] == param["assert4"]
#
assert r["data"]["image_header_area"]["hospital_images"][0] == param["assert5"]
...
...
test_backend_case/hospitals_case/test_doctor.py
View file @
2c32802b
...
...
@@ -18,7 +18,7 @@ class TestDoctor:
assert
r
[
"data"
][
0
][
"id"
]
==
param
[
"assert_id"
]
assert
r
[
"data"
][
0
][
"doctor_name"
]
==
param
[
"assert_name"
]
assert
r
[
"data"
][
0
][
"good_at"
][
0
]
==
param
[
"assert_good_at"
]
assert
r
[
"data"
][
0
][
"cases"
][
0
][
"name"
]
==
param
[
"assert_cases"
]
#
assert r["data"][0]["cases"][0]["name"] == param["assert_cases"]
assert
r
[
"data"
][
0
][
"title"
]
==
param
[
"assert_title"
]
...
...
test_backend_case/hybrid_case/test_basewiki_item.py
deleted
100644 → 0
View file @
5bc354ec
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.hybrid_request
import
hybrid_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-项目百科,水光针
class
TestBaseWikiItem
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BASEWIKI_ITEM
)
basewiki_item_case
,
basewiki_item_data
=
get_ids
(
data
,
"basewiki_item"
)
@pytest.mark.parametrize
(
"param"
,
basewiki_item_data
,
ids
=
basewiki_item_case
)
def
test_basewiki_item
(
self
,
param
):
r
=
hybrid_request
()
.
basewiki_item
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'lxml'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-水光针的百科详情页'
)
\ No newline at end of file
test_backend_case/janus_case/test_beauty_card_refund_submit.py
View file @
2c32802b
...
...
@@ -15,6 +15,8 @@ class TestBeautyCardRefundSubmit:
r
=
janus_request
()
.
beauty_card_refund_submit
(
param
[
"order_id"
],
param
[
"reason_id"
],
param
[
"reason_text"
],
param
[
"reason_type"
])
if
r
[
"error"
]
==
1
:
if
param
[
"reason_id"
]
==
-
1
:
assert
r
[
"message"
]
==
param
[
"assert_message"
]
if
param
[
"reason_id"
]
!=
-
1
:
assert
r
[
"message"
]
==
param
[
"assert_message"
]
test_backend_case/wiki_case/__init__.py
0 → 100644
View file @
2c32802b
test_backend_case/wiki_case/test_wiki_item.py
0 → 100644
View file @
2c32802b
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.wiki_request
import
wiki_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-项目百科,水光针
class
TestWikiItem
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
WIKI_ITEM
)
wiki_item_case
,
wiki_item_data
=
get_ids
(
data
,
"wiki_item"
)
@pytest.mark.parametrize
(
"param"
,
wiki_item_data
,
ids
=
wiki_item_case
)
def
test_wiki_item
(
self
,
param
):
r
=
wiki_request
()
.
wiki_item
(
param
[
"tag_ids"
],
param
[
"q"
],
param
[
"start_num"
],
param
[
"version"
],
param
[
"device_id"
])
# soup = BeautifulSoup(r, 'lxml') # html.parser是解析器,也可是lxml
if
r
[
"data"
]
is
True
:
assert
r
[
"data"
][
"item_id"
]
==
param
[
"assert"
]
print
(
'进入项目百科-水光针的百科详情页'
)
\ No newline at end of file
test_backend_data/hospitals_data/detail.yaml
View file @
2c32802b
...
...
@@ -9,58 +9,58 @@ detail:
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验医院名称case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验明星项目case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验医院类型case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验优惠券返回case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验tab返回case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验医院图片case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
#
-
#
case: "校验医院名称case"
#
assert_error: 0
#
assert: "北京嘉禾医疗美容"
#
assert1: "私密修复"
#
assert2: "民营"
#
assert3: 56895
#
assert4: {index: true, service: true, doctor: true, publish: false, doctor_say: false, diary: true, answer: false}
#
assert5: "https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
#
-
#
case: "校验明星项目case"
#
assert_error: 0
#
assert: "北京嘉禾医疗美容"
#
assert1: "私密修复"
#
assert2: "民营"
#
assert3: 56895
#
assert4: {index: true, service: true, doctor: true, publish: false, doctor_say: false, diary: true, answer: false}
#
assert5: "https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
#
-
#
case: "校验医院类型case"
#
assert_error: 0
#
assert: "北京嘉禾医疗美容"
#
assert1: "私密修复"
#
assert2: "民营"
#
assert3: 56895
#
assert4: {index: true, service: true, doctor: true, publish: false, doctor_say: false, diary: true, answer: false}
#
assert5: "https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
#
-
#
case: "校验优惠券返回case"
#
assert_error: 0
#
assert: "北京嘉禾医疗美容"
#
assert1: "私密修复"
#
assert2: "民营"
#
assert3: 56895
#
assert4: {index: true, service: true, doctor: true, publish: false, doctor_say: false, diary: true, answer: false}
#
assert5: "https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
#
-
#
case: "校验tab返回case"
#
assert_error: 0
#
assert: "北京嘉禾医疗美容"
#
assert1: "私密修复"
#
assert2: "民营"
#
assert3: 56895
#
assert4: {index: true, service: true, doctor: true, publish: false, doctor_say: false, diary: true, answer: false}
#
assert5: "https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
#
-
#
case: "校验医院图片case"
#
assert_error: 0
#
assert: "北京嘉禾医疗美容"
#
assert1: "私密修复"
#
assert2: "民营"
#
assert3: 56895
#
assert4: {index: true, service: true, doctor: true, publish: false, doctor_say: false, diary: true, answer: false}
#
assert5: "https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
test_backend_data/hospitals_data/doctor.yaml
View file @
2c32802b
...
...
@@ -5,7 +5,7 @@ doctor:
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
#
assert_cases: "自体脂肪填充面部 80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生id
case"
...
...
@@ -13,7 +13,7 @@ doctor:
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
#
assert_cases: "自体脂肪填充面部 80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生名称case"
...
...
@@ -21,7 +21,7 @@ doctor:
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
#
assert_cases: "自体脂肪填充面部 80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生明星项目case"
...
...
@@ -29,7 +29,7 @@ doctor:
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
#
assert_cases: "自体脂肪填充面部 80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生案例case"
...
...
@@ -37,7 +37,7 @@ doctor:
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
#
assert_cases: "自体脂肪填充面部 80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生title
case"
...
...
@@ -45,5 +45,5 @@ doctor:
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
#
assert_cases: "自体脂肪填充面部 80例"
assert_title
:
"
副主任"
\ No newline at end of file
test_backend_data/janus_data/beauty_card_refund_submit.yaml
View file @
2c32802b
beauty_card_refund_submit
:
-
case
:
"
次卡-提交退款申请-
接口调用成功
case"
case
:
"
次卡-提交退款申请-
非其他原因
case"
order_id
:
"
102813852173916"
reason_id
:
3
reason_text
:
"
个人身体原因"
reason_type
:
0
assert_message
:
"
订单已经退款"
-
case
:
"
次卡-提交退款申请-其他原因case"
order_id
:
"
102813852173916"
reason_id
:
-1
reason_text
:
"
其他原因不得少于10个字"
reason_type
:
0
assert_message
:
"
订单已经退款"
\ No newline at end of file
test_backend_data/topic_data/topic_reply_create.yaml
View file @
2c32802b
...
...
@@ -3,7 +3,7 @@ reply_create:
beuzhu
:
'
#
备注:
这个文件有冲突的话,那个版本都行不会影响,回退/接受当前版本都行,因为每次运行content都会改变'
case
:
日记贴一级评论创建--正常校验&创建二级评论--正常校验
channel
:
benzhan
content
:
ces测试+2021-07-
09 19:39:05
content
:
ces测试+2021-07-
14 18:15:39
message
:
请勿回复重复内容
message1
:
回复成功
message2
:
你的回复有点频繁,稍后再来
...
...
test_backend_data/wiki_data/__init__.py
0 → 100644
View file @
2c32802b
test_backend_data/
hybrid_data/base
wiki_item.yaml
→
test_backend_data/
wiki_data/
wiki_item.yaml
View file @
2c32802b
base
wiki_item
:
wiki_item
:
-
#百科详情页-项目百科,水光针
case
:
"
百科详情页-项目百科,水光针"
tag_ids
:
"
2059"
q
:
"
水光针"
start_num
:
"
0"
version
:
"
744.0"
assert
:
水光针
\ No newline at end of file
device_id
:
"
97B6764B-2135-4761-9911-701C38CBC272"
assert
:
141
\ No newline at end of file
test_doctor_case/web_case/test_cpc_community_click_logs.py
0 → 100644
View file @
2c32802b
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestCpcCommunityClickLogs
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CPCCOMMUNITYCLICKLOGS
)
cpccommunityclicklogs_case
,
cpccommunityclicklogs_data
=
get_ids
(
data
,
"cpc_community_click_logs"
)
@pytest.mark.parametrize
(
"param"
,
cpccommunityclicklogs_data
,
ids
=
cpccommunityclicklogs_case
)
def
test_cpc_community_click_logs
(
self
,
param
):
'''点点通内容-数据统计'''
r
=
web_request
()
.
cpc_community_click_logs
(
param
[
"page"
])
if
r
[
"error"
]
==
0
:
click_list
=
r
.
get
(
"data"
)
.
get
(
"click_list"
,
[])
assert
len
(
click_list
)
>=
param
[
"assert"
]
test_doctor_case/web_case/test_cpc_community_data_info.py
0 → 100644
View file @
2c32802b
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestCpcCommunityDataInfo
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CPCCOMMUNITYDATAINFO
)
cpccommunitydatainfo_case
,
cpccommunitydatainfo_data
=
get_ids
(
data
,
"cpc_community_data_info"
)
@pytest.mark.parametrize
(
"param"
,
cpccommunitydatainfo_data
,
ids
=
cpccommunitydatainfo_case
)
def
test_cpc_community_data_info
(
self
,
param
):
'''点点通内容-数据统计'''
r
=
web_request
()
.
cpc_community_data_info
(
param
[
"diary_id"
],
param
[
"start_time"
],
param
[
"end_time"
])
if
r
[
"error"
]
==
0
:
click_list
=
r
.
get
(
"data"
)
.
get
(
"click_list"
,
[])
paid_list
=
r
.
get
(
"data"
)
.
get
(
"paid_list"
,
[])
time_list
=
r
.
get
(
"data"
)
.
get
(
"time_list"
,
[])
assert
len
(
click_list
)
<=
param
[
"assert"
]
assert
len
(
paid_list
)
<=
param
[
"assert"
]
assert
len
(
time_list
)
<=
param
[
"assert"
]
test_doctor_case/web_case/test_cpc_community_diaries.py
0 → 100644
View file @
2c32802b
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestCpcCommunityDiaries
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CPCCOMMUNITYDIARIES
)
cpccommunitydiaries_case
,
cpccommunitydiaries_data
=
get_ids
(
data
,
"cpc_community_diaries"
)
@pytest.mark.parametrize
(
"param"
,
cpccommunitydiaries_data
,
ids
=
cpccommunitydiaries_case
)
def
test_cpc_community_diaries
(
self
,
param
):
'''点点通-概览'''
r
=
web_request
()
.
cpc_community_diaries
()
if
r
[
"error"
]
==
0
:
diaries
=
r
.
get
(
"data"
)
.
get
(
"diaries"
,
[])
assert
len
(
diaries
)
>=
param
[
"assert"
]
test_doctor_data/web_data/cpc_community_click_logs.yaml
0 → 100644
View file @
2c32802b
cpc_community_click_logs
:
#点点通内容-推广明细case
-
case
:
"
点点通内容-推广明细"
page
:
1
assert
:
0
test_doctor_data/web_data/cpc_community_data_info.yaml
0 → 100644
View file @
2c32802b
cpc_community_data_info
:
#点点通内容-数据统计case
-
case
:
"
点点通内容-数据统计"
diary_id
:
15604767
start_time
:
"
2021-07-02"
end_time
:
"
2021-07-12"
assert
:
13
test_doctor_data/web_data/cpc_community_diaries.yaml
0 → 100644
View file @
2c32802b
cpc_community_diaries
:
#点点通内容-数据统计-内容case
-
case
:
"
点点通内容-数据统计-内容"
#doctor_user_id: "602329"
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