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
12e13ef6
Commit
12e13ef6
authored
Jul 26, 2021
by
edz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播-用户进入购物袋/点击美购
parent
dca5c4e8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
101 additions
and
3 deletions
+101
-3
janus_live_request.py
all_backend_api/janus_live_request.py
+15
-2
janus_live_request.yaml
all_backend_api/janus_live_request.yaml
+20
-0
path_setting.py
path_setting.py
+6
-1
test_service_page_live_enter.py
test_backend_case/janus_case/test_service_page_live_enter.py
+15
-0
test_audience_services.py
test_backend_case/janus_live_case/test_audience_services.py
+15
-0
audience_services.yaml
test_backend_data/janus_live_data/audience_services.yaml
+19
-0
service_page_live_enter.yaml
...backend_data/janus_live_data/service_page_live_enter.yaml
+7
-0
topic_reply_create.yaml
test_backend_data/topic_data/topic_reply_create.yaml
+4
-0
No files found.
all_backend_api/janus_live_request.py
View file @
12e13ef6
...
@@ -90,10 +90,23 @@ class live_request(BaseRequest):
...
@@ -90,10 +90,23 @@ class live_request(BaseRequest):
self
.
params
[
"version"
]
=
version
self
.
params
[
"version"
]
=
version
return
self
.
api_send
(
self
.
data
[
"mark_live_service"
])
return
self
.
api_send
(
self
.
data
[
"mark_live_service"
])
#直播-观众打开购物袋
def
audience_services
(
self
,
stream_id
,
channel_id
,
offset
,
size
):
self
.
params
[
"stream_id"
]
=
stream_id
self
.
params
[
"channel_id"
]
=
channel_id
self
.
params
[
"offset"
]
=
offset
self
.
params
[
"size"
]
=
size
return
self
.
api_send
(
self
.
data
[
"audience_services"
])
#观众点击直播内美购跳转详情页
def
service_page_live_enter
(
self
,
service_id
):
self
.
params
[
"service_id"
]
=
service_id
return
self
.
api_send
(
self
.
data
[
"service_page_live_enter"
])
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
# print(live_request().live_services("745", "4177", "0", "10"))
# print(live_request().live_services("745", "4177", "0", "10"))
# print(live_request().search_service("beijing", "745", "", "0", "20", "7.45.0"))
# print(live_request().search_service("beijing", "745", "", "0", "20", "7.45.0"))
# print(live_request().add_live_service("745", "560641", "7.45.0"))
# print(live_request().add_live_service("745", "560641", "7.45.0"))
# print(live_request().delete_live_service("745", "7242", "7.45.0"))
# print(live_request().delete_live_service("745", "7242", "7.45.0"))
#print(live_request().m_get_channel_status("745", "7.46.0"))
#print(live_request().m_get_channel_status("745", "7.46.0"))
print
(
live_request
()
.
mark_live_service
(
"4233"
,
"745"
,
"7269"
,
"1"
,
"746.0"
))
print
(
live_request
()
.
mark_live_service
(
"4233"
,
"745"
,
"7269"
,
"1"
,
"746.0"
))
\ No newline at end of file
print
(
live_request
()
.
audience_services
(
"4179"
,
"739"
,
"0"
,
"20"
))
\ No newline at end of file
all_backend_api/janus_live_request.yaml
View file @
12e13ef6
...
@@ -103,4 +103,23 @@ mark_live_service:
...
@@ -103,4 +103,23 @@ mark_live_service:
json
:
{}
json
:
{}
isLogin
:
1
isLogin
:
1
#直播-观众打开购物袋
audience_services
:
method
:
get
url
:
/api/janus/live/audience_services
params
:
stream_id
:
${stream_id}
channel_id
:
${channel_id}
offset
:
${offset}
size
:
${size}
data
:
{}
json
:
{}
#观众点击直播内美购
service_page_live_enter
:
method
:
get
url
:
/api/janus/live/service_page_live_enter
params
:
service_id
:
${service_id}
data
:
{}
json
:
{}
\ No newline at end of file
path_setting.py
View file @
12e13ef6
...
@@ -625,6 +625,10 @@ FINISH = os.path.join(BASE_DIR, "backend_auto/test_backend_data/live_data", "fin
...
@@ -625,6 +625,10 @@ FINISH = os.path.join(BASE_DIR, "backend_auto/test_backend_data/live_data", "fin
#主播标记讲解商品+取消标记
#主播标记讲解商品+取消标记
MARK_LIVE_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"janus_live_request.yaml"
)
MARK_LIVE_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"janus_live_request.yaml"
)
MARK_LIVE_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_live_data"
,
"mark_live_service.yaml"
)
MARK_LIVE_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_live_data"
,
"mark_live_service.yaml"
)
#直播-观众打开购物袋
AUDIENCE_SERVICES
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_live_data"
,
"audience_services.yaml"
)
#直播-用户点击直播间美购
SERVICE_PAGE_LIVE_ENTER
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_live_data"
,
"service_page_live_enter.yaml"
)
#主播-分享按钮的点击
#主播-分享按钮的点击
GET_LIVE_INFO_AUDIENCE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"live_request.yaml"
)
GET_LIVE_INFO_AUDIENCE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"live_request.yaml"
)
...
@@ -679,4 +683,4 @@ FAVORS_TOPICS = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data
...
@@ -679,4 +683,4 @@ FAVORS_TOPICS = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data
TAG_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"tag_request.yaml"
)
TAG_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"tag_request.yaml"
)
TAG_ADD
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/tag_data"
,
"tag_add.yaml"
)
TAG_ADD
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/tag_data"
,
"tag_add.yaml"
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
"=========="
,
LIVEYAML_CONFIG
)
print
(
"=========="
,
LIVEYAML_CONFIG
)
\ No newline at end of file
test_backend_case/janus_case/test_service_page_live_enter.py
0 → 100644
View file @
12e13ef6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
all_backend_api.janus_live_request
import
live_request
from
in_common.base_request
import
BaseRequest
class
TestServicePageLiveEnter
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_PAGE_LIVE_ENTER
)
service_page_live_enter_case
,
service_page_live_enter_data
=
get_ids
(
data
,
"service_page_live_enter"
)
@pytest.mark.parametrize
(
"param"
,
service_page_live_enter_data
,
ids
=
service_page_live_enter_case
)
def
test_service_page_live_enter
(
self
,
param
):
r
=
live_request
()
.
service_page_live_enter
(
param
[
"service_id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/janus_live_case/test_audience_services.py
0 → 100644
View file @
12e13ef6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.janus_live_request
import
live_request
class
TestAudienceServices
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
AUDIENCE_SERVICES
)
audience_services_case
,
audience_services_data
=
get_ids
(
data
,
"audience_services"
)
@pytest.mark.parametrize
(
"param"
,
audience_services_data
,
ids
=
audience_services_case
)
def
test_audience_services
(
self
,
param
):
r
=
live_request
()
.
audience_services
(
param
[
"stream_id"
],
param
[
"channel_id"
],
param
[
"offset"
],
param
[
"size"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
\ No newline at end of file
test_backend_data/janus_live_data/audience_services.yaml
0 → 100644
View file @
12e13ef6
audience_services
:
-
case
:
"
直播-观众打开购物袋"
url
:
/api/janus/live/audience_services
stream_id
:
4116
channel_id
:
739
offset
:
0
size
:
20
assert
:
0
-
case
:
"
直播-购物袋第二页"
url
:
/api/janus/live/audience_services
stream_id
:
4116
channel_id
:
739
offset
:
20
size
:
20
assert
:
0
\ No newline at end of file
test_backend_data/janus_live_data/service_page_live_enter.yaml
0 → 100644
View file @
12e13ef6
service_page_live_enter
:
-
case
:
"
用户点击直播间商品卡片"
url
:
/api/janus/live/audience_services
service_id
:
"
5885090"
assert
:
0
\ No newline at end of file
test_backend_data/topic_data/topic_reply_create.yaml
View file @
12e13ef6
...
@@ -3,7 +3,11 @@ reply_create:
...
@@ -3,7 +3,11 @@ reply_create:
beuzhu
:
'
#
备注:
这个文件有冲突的话,那个版本都行不会影响,回退/接受当前版本都行,因为每次运行content都会改变'
beuzhu
:
'
#
备注:
这个文件有冲突的话,那个版本都行不会影响,回退/接受当前版本都行,因为每次运行content都会改变'
case
:
日记贴一级评论创建--正常校验&创建二级评论--正常校验
case
:
日记贴一级评论创建--正常校验&创建二级评论--正常校验
channel
:
benzhan
channel
:
benzhan
content
:
ces测试+2021-07-22 18:42:59
content
:
ces测试+2021-07-22 18:42:59
content
:
ces测试+2021-07-14 18:15:39
message
:
请勿回复重复内容
message
:
请勿回复重复内容
message1
:
回复成功
message1
:
回复成功
message2
:
你的回复有点频繁,稍后再来
message2
:
你的回复有点频繁,稍后再来
...
...
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