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
88b34e17
Commit
88b34e17
authored
Jul 16, 2021
by
edz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'common_dev' into crk_dev
parents
33a4b9bf
ba6c15fa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
4 deletions
+48
-4
web_request.py
all_doctor_api/web_request.py
+7
-2
web_request.yaml
all_doctor_api/web_request.yaml
+10
-2
path_setting.py
path_setting.py
+2
-0
test_cpc_community_click_logs.py
test_doctor_case/web_case/test_cpc_community_click_logs.py
+23
-0
cpc_community_click_logs.yaml
test_doctor_data/web_data/cpc_community_click_logs.yaml
+6
-0
No files found.
all_doctor_api/web_request.py
View file @
88b34e17
...
...
@@ -84,6 +84,10 @@ class web_request(BaseRequest):
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"
])
...
...
@@ -113,4 +117,5 @@ if __name__ == '__main__':
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"
))
\ No newline at end of file
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 @
88b34e17
...
...
@@ -180,4 +180,13 @@ cpc_community_data_info:
end_time
:
${end_time}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
\ No newline at end of file
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 @
88b34e17
...
...
@@ -444,6 +444,8 @@ CPCCOMMUNITYHOMEPAGE=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_d
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"
)
#更美次卡橱窗组件商品
...
...
test_doctor_case/web_case/test_cpc_community_click_logs.py
0 → 100644
View file @
88b34e17
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_data/web_data/cpc_community_click_logs.yaml
0 → 100644
View file @
88b34e17
cpc_community_click_logs
:
#点点通内容-推广明细case
-
case
:
"
点点通内容-推广明细"
page
:
1
assert
:
0
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