瀏覽代碼

用户订阅相关信息-超级订阅用户

liuyali@topnet.net.cn 1 周之前
父節點
當前提交
6e21b83bcd
共有 2 個文件被更改,包括 33 次插入2 次删除
  1. 26 0
      cases/app/登录/订阅/subscribe_someinfo_vtype.py
  2. 7 2
      lib/webapi.py

+ 26 - 0
cases/app/登录/订阅/subscribe_someinfo_vtype.py

@@ -0,0 +1,26 @@
+from hytest import *
+from lib.webapi import apimgr
+class c1:
+    name = '用户订阅相关信息-超级订阅用户'
+    def setup(self):
+        INFO('切换用户身份到个人身份下')
+        apimgr.Identity_list(8)
+        apimgr.Identity_switch()
+
+    def teardown(self):
+        INFO('将用户切回到闫培珠新版商机管理企业')
+        apimgr.Identity_list(1)
+        apimgr.Identity_switch()
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res = apimgr.subscribe_someinfo_vtype()
+        actual = res.json()
+        #INFO(actual)
+        error_code = actual["error_code"]
+        userId = actual["data"]["userId"]
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查推送数据浏览状态修改-大会员用户接口是否正常',error_code == 0 and userId =="ABCYAEEczIvGSg4EnpeApw%3D")
+
+

+ 7 - 2
lib/webapi.py

@@ -1,8 +1,8 @@
 import json
 import requests
 from hytest.common import *
-from pandas.io.formats.style import properties_args
-from sympy.physics.vector.printing import params
+#from pandas.io.formats.style import properties_args
+#from sympy.physics.vector.printing import params
 
 from cfg import cfg
 from bs4 import BeautifulSoup
@@ -2162,6 +2162,11 @@ class APIMgr():
         }
         response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/mType/setRead", headers=headers, params=params)
         return response
+    #用户订阅相关信息-超级订阅用户(移动端)
+    def subscribe_someinfo_vtype(self):
+        headers = GSTORE['headers']
+        response = self.s.post(f"{cfg.target_host_app}/jyapi/jybx/subscribe/vType/someInfo", headers=headers)
+        return response