Commit 2711bfce authored by aha's avatar aha

直播-点击【设置封面】

parent 0c09cc33
......@@ -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"))
......@@ -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
......@@ -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)
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"]
page_rules:
-
#直播-点击【设置封面】,成功调接口
case: "直播-点击【设置封面】,成功调接口"
version: "744.2"
current_city_id: "beijing"
page_name: "post_add_pic"
assert:
\ No newline at end of file
......@@ -2,7 +2,7 @@ reply_create:
- assert1: null
case: 日记贴一级评论创建--正常校验&创建二级评论--正常校验
channel: benzhan
content: ces测试+2021-06-18 15:25:19
content: ces测试+2021-06-18 19:05:18
message: 请勿回复重复内容
message1: 回复成功
message2: 你的回复有点频繁,稍后再来
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment