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
4bef8f77
Commit
4bef8f77
authored
Aug 19, 2021
by
张淑琴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取页面类型
parent
64702c5c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
7 deletions
+67
-7
im_request.py
all_backend_api/im_request.py
+7
-7
web3_request.py
all_doctor_api/web3_request.py
+14
-0
web3_request.yaml
all_doctor_api/web3_request.yaml
+9
-0
path_setting.py
path_setting.py
+5
-0
__init__.py
test_doctor_case/web3_case/__init__.py
+0
-0
test_conversation_robot_get_page.py
...doctor_case/web3_case/test_conversation_robot_get_page.py
+22
-0
__init__.py
test_doctor_data/web3_data/__init__.py
+0
-0
conversation_robot_get_page.yaml
test_doctor_data/web3_data/conversation_robot_get_page.yaml
+10
-0
No files found.
all_backend_api/im_request.py
View file @
4bef8f77
...
...
@@ -6,14 +6,14 @@ class im_request(BaseRequest):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
CONVERSATION_DETAIL_CONFIG
)
#
def conversation_detail(self, current_city_id, begin_msg_id, conversation_type, end_msg_id,referrer):
def
conversation_detail
(
self
,
current_city_id
,
begin_msg_id
,
conversation_type
,
end_msg_id
,
referrer
):
#咨询师聊天详情页
#
self.params["current_city_id"] = current_city_id
#
self.params["begin_msg_id"] = begin_msg_id
#
self.params["conversation_type"] = conversation_type
#
self.params["end_msg_id"] = end_msg_id
#
self.params["referrer"] = referrer
#
return self.api_send(self.data["conversation_detail"])
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"begin_msg_id"
]
=
begin_msg_id
self
.
params
[
"conversation_type"
]
=
conversation_type
self
.
params
[
"end_msg_id"
]
=
end_msg_id
self
.
params
[
"referrer"
]
=
referrer
return
self
.
api_send
(
self
.
data
[
"conversation_detail"
])
#该接口已下线
def
auto_msg
(
self
,
trace_id
,
conversation_id
):
...
...
all_doctor_api/web3_request.py
0 → 100644
View file @
4bef8f77
import
path_setting
from
in_common.base_request
import
BaseRequest
class
web3_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
CONVERSATION_ROBOT
=
self
.
api_load
(
path_setting
.
CONVERSATION_ROBOT
)
def
conversation_robot_get_page
(
self
):
return
self
.
api_send
(
self
.
CONVERSATION_ROBOT
[
"conversation_robot_get_page"
])
if
__name__
==
'__main__'
:
print
(
web3_request
()
.
conversation_robot_get_page
())
all_doctor_api/web3_request.yaml
0 → 100644
View file @
4bef8f77
conversation_robot_get_page
:
method
:
get
url
:
/api/web3/conversation/robot/get_page
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
\ No newline at end of file
path_setting.py
View file @
4bef8f77
...
...
@@ -480,6 +480,11 @@ CONVERSATIONCOUPON=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_dat
#医生后台-发送私信
CONVERSATIONUSERID
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"conversation_user_id.yaml"
)
#医生后台-私信机器人
CONVERSATION_ROBOT
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_doctor_api"
,
"web3_request.yaml"
)
ROBOTGETPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web3_data"
,
"conversation_robot_get_page.yaml"
)
#医生后台-服务资源
ADTYPELIST
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"artemis_ad_type_list.yaml"
)
#医生后台-我的购物车
...
...
test_doctor_case/web3_case/__init__.py
0 → 100644
View file @
4bef8f77
test_doctor_case/web3_case/test_conversation_robot_get_page.py
0 → 100644
View file @
4bef8f77
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web3_request
import
web3_request
class
TestConversationRobotGetPage
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ROBOTGETPAGE
)
robot_get_page_case
,
robot_get_page_data
=
get_ids
(
data
,
"conversation_robot_get_page"
)
@pytest.mark.parametrize
(
"param"
,
robot_get_page_data
,
ids
=
robot_get_page_case
)
def
test_conversation_robot_get_page
(
self
,
param
):
'''私信机器人-获取页面类型'''
r
=
web3_request
()
.
conversation_robot_get_page
()
if
r
[
"error"
]
==
0
:
#flows_list = r.get("data").get("flows_list", [])
assert
r
[
"data"
][
"1"
]
==
param
[
"assert1"
]
assert
r
[
"data"
][
"2"
]
==
param
[
"assert2"
]
assert
r
[
"data"
][
"3"
]
==
param
[
"assert3"
]
test_doctor_data/web3_data/__init__.py
0 → 100644
View file @
4bef8f77
test_doctor_data/web3_data/conversation_robot_get_page.yaml
0 → 100644
View file @
4bef8f77
conversation_robot_get_page
:
#私信机器人-获取页面类型
-
case
:
"
私信机器人-获取页面类型"
#month: "2021-7"
assert1
:
"
商品详情页"
assert2
:
"
机构主页"
assert3
:
"
医生主页"
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