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
2711bfce
Commit
2711bfce
authored
Jun 18, 2021
by
aha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播-点击【设置封面】
parent
0c09cc33
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
92 additions
and
34 deletions
+92
-34
janus_request.py
all_backend_api/janus_request.py
+47
-33
janus_request.yaml
all_backend_api/janus_request.yaml
+13
-0
path_setting.py
path_setting.py
+4
-0
test_page_rules.py
test_backend_case/janus_case/test_page_rules.py
+18
-0
page_rules.yaml
test_backend_data/janus_data/page_rules.yaml
+9
-0
topic_reply_create.yaml
test_backend_data/topic_data/topic_reply_create.yaml
+1
-1
No files found.
all_backend_api/janus_request.py
View file @
2711bfce
...
...
@@ -22,6 +22,9 @@ class janus_request(BaseRequest):
#次卡商详页
self
.
data
=
self
.
api_load
(
path_setting
.
BEAUTY_CARD_DETAIL_CONFIG
)
#直播-点击【设置封面】
self
.
data
=
self
.
api_load
(
path_setting
.
PAGE_RULES_CONFIG
)
#搜索结果页-综合/百科tab
def
content_v7
(
self
,
query
,
device_id
,
current_city_id
,
version
,
is_first
,
tab_type
,
offset
):
#搜索词
...
...
@@ -212,38 +215,46 @@ class janus_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"service_hospital"
])
# 直播-点击【设置封面】
def
page_rules
(
self
,
version
,
current_city_id
,
page_name
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'version'
]
=
version
self
.
params
[
'current_city_id'
]
=
current_city_id
self
.
params
[
'page_name'
]
=
page_name
return
self
.
api_send
(
self
.
data
[
"page_rules"
])
if
__name__
==
'__main__'
:
#打印购物车-猜你喜欢列表接口返回
print
(
janus_request
()
.
mine_guess_you_like
())
#打印商祥页-详情接口返回
print
(
janus_request
()
.
product_detail
(
"5857263"
,
"618788"
,
"7.43.0"
))
#打印商祥页-sku信息接口返回
print
(
janus_request
()
.
sku_info
(
"5857263"
,
"618788"
))
#打印商祥页-美券列表-我的美券点击-744版本及以后-新接口返回
print
(
janus_request
()
.
product_coupon_my_list
(
0
,
0
))
#品类聚合页面商品列表接口返回
print
(
janus_request
()
.
tag_service
())
print
(
"fgx"
)
#品类聚合页面标签和专场
print
(
janus_request
()
.
polymer
())
print
(
"fgx"
)
#打印次卡-确认订单接口返回
print
(
janus_request
()
.
beauty_card_order_confirm
(
"10176"
,
1
,
1
,
0
))
#打印次卡-确认订单页面-修改手机号接口返回
print
(
janus_request
()
.
beauty_card_update_phone
(
"+8612348543876"
,
1
,
"084430"
))
#打印次卡-提交订单接口返回
print
(
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
))
#打印次卡-支付平台接口返回
print
(
janus_request
()
.
beauty_card_payment_method
(
"101670448736595"
))
print
(
janus_request
()
.
product_my_list
(
0
,
0
))
# 次卡商详页-适应机构
print
(
janus_request
()
.
beauty_card_detail
(
"100018"
,
"10046"
,
"100018"
,
"7.44.0"
,
"beijing"
,
"40.001879"
,
"116.487194"
))
# 次卡商详页
print
(
janus_request
()
.
service_hospital
(
"0"
,
"10046"
,
"1"
,
"7.44.0"
,
"beijing"
,
"40.001879"
,
"116.487194"
))
#
#
打印购物车-猜你喜欢列表接口返回
#
print(janus_request().mine_guess_you_like())
#
#
打印商祥页-详情接口返回
#
print(janus_request().product_detail("5857263", "618788", "7.43.0"))
#
#
打印商祥页-sku信息接口返回
#
print(janus_request().sku_info("5857263", "618788"))
#
#
打印商祥页-美券列表-我的美券点击-744版本及以后-新接口返回
#
print(janus_request().product_coupon_my_list(0, 0))
#
#
#
品类聚合页面商品列表接口返回
#
print(janus_request().tag_service())
#
print("fgx")
#
#
#
品类聚合页面标签和专场
#
print(janus_request().polymer())
#
print("fgx")
#
#
#
打印次卡-确认订单接口返回
#
print(janus_request().beauty_card_order_confirm("10176", 1, 1, 0))
#
#
打印次卡-确认订单页面-修改手机号接口返回
#
print(janus_request().beauty_card_update_phone("+8612348543876", 1, "084430"))
#
#
打印次卡-提交订单接口返回
#
print(janus_request().beauty_card_order_submit("12345678912", "10176", 1, 1, 0, 0))
#
#
打印次卡-支付平台接口返回
#
print(janus_request().beauty_card_payment_method("101670448736595"))
#
#
print(janus_request().product_my_list(0, 0))
#
#
次卡商详页-适应机构
#
print(janus_request().beauty_card_detail("100018", "10046", "100018", "7.44.0", "beijing", "40.001879", "116.487194"))
#
#
次卡商详页
#
print(janus_request().service_hospital("0", "10046", "1", "7.44.0", "beijing", "40.001879", "116.487194"))
# #打印购物车-猜你喜欢列表接口返回
# print(janus_request().mine_guess_you_like())
# #打印商祥页-详情接口返回
...
...
@@ -279,8 +290,11 @@ if __name__ == '__main__':
# print(janus_request().beauty_card_payment_delete("101353630959868"))
# #打印次卡-申请退款接口返回
# print(janus_request().beauty_card_refund_info("102217820485006"))
#打印次卡-提交退款申请接口返回
#
#
打印次卡-提交退款申请接口返回
# print(janus_request().beauty_card_refund_submit("102813852173916", 3, "个人身体原因", 0))
print
(
janus_request
()
.
beauty_card_order_detail
(
102247770691611
))
#
print(janus_request().beauty_card_order_detail(102247770691611))
# print(janus_request().product_my_list(0, 0))
#直播-点击【设置封面】
print
(
"直播-点击【设置封面】"
)
print
(
janus_request
()
.
page_rules
(
"744.2"
,
"beijing"
,
"post_add_pic"
))
all_backend_api/janus_request.yaml
View file @
2711bfce
...
...
@@ -283,4 +283,16 @@ beauty_card_order_detail:
order_id
:
${order_id}
data
:
{}
json
:
{}
isLogin
:
1
#直播-点击【设置封面】
page_rules
:
method
:
GET
url
:
/api/janus/sales_lead/page_rules
params
:
version
:
${version}
current_city_id
:
${current_city_id}
page_name
:
${page_name}
data
:
{}
json
:
{}
isLogin
:
1
\ No newline at end of file
path_setting.py
View file @
2711bfce
...
...
@@ -493,5 +493,9 @@ FREE_RECRUIT_BANNER = os.path.join(BASE_DIR, "backend_auto/test_backend_data/fee
FREE_RECRUIT_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"feed_request.yaml"
)
FREE_RECRUIT_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/feed_data"
,
"free_recruit_list.yaml"
)
#直播-点击【设置封面】
PAGE_RULES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"janus_request.yaml"
)
PAGE_RULES
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"page_rules.yaml"
)
if
__name__
==
'__main__'
:
print
(
"=========="
,
LIVEYAML_CONFIG
)
test_backend_case/janus_case/test_page_rules.py
0 → 100644
View file @
2711bfce
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.janus_request
import
janus_request
class
TestPageRules
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAGE_RULES
)
page_rules_case
,
page_rules_data
=
get_ids
(
data
,
"page_rules"
)
@pytest.mark.parametrize
(
"param"
,
page_rules_data
,
ids
=
page_rules_case
)
def
test_page_rules
(
self
,
param
):
r
=
janus_request
()
.
page_rules
(
param
[
"version"
],
param
[
"current_city_id"
],
param
[
"page_name"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error_code"
]
==
param
[
"assert"
]
test_backend_data/janus_data/page_rules.yaml
0 → 100644
View file @
2711bfce
page_rules
:
-
#直播-点击【设置封面】,成功调接口
case
:
"
直播-点击【设置封面】,成功调接口"
version
:
"
744.2"
current_city_id
:
"
beijing"
page_name
:
"
post_add_pic"
assert
:
\ No newline at end of file
test_backend_data/topic_data/topic_reply_create.yaml
View file @
2711bfce
...
...
@@ -2,7 +2,7 @@ reply_create:
-
assert1
:
null
case
:
日记贴一级评论创建--正常校验&创建二级评论--正常校验
channel
:
benzhan
content
:
ces测试+2021-06-18 1
5:25:19
content
:
ces测试+2021-06-18 1
9:05:18
message
:
请勿回复重复内容
message1
:
回复成功
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