Zz 7 tháng trước cách đây
mục cha
commit
bff018923b
2 tập tin đã thay đổi với 24 bổ sung0 xóa
  1. 16 0
      cases/pc/登录功能/消息中心/msgopenlog.py
  2. 8 0
      lib/webapi.py

+ 16 - 0
cases/pc/登录功能/消息中心/msgopenlog.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+import json
+
+class c1:
+    name = '消息查看记录'
+
+    def teststeps(self):
+        INFO('初始化方法')
+        STEP(1, '第一步调用函数')
+        res = apimgr.msgopenlog()
+        resp = res.json()
+        error_code = resp['code']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查推送记录接口是否正常', error_code==0)

+ 8 - 0
lib/webapi.py

@@ -1029,6 +1029,14 @@ class APIMgr():
         header = GSTORE['headers']
         response = self.s.post(f"{cfg.target_host}/bigmember/search/buyer/association?name=河南科技大学", headers=header)
         return response
+    #消息查看记录
+    def msgopenlog(self):
+        header = GSTORE['headers']
+        data={
+    "msgLogId":287204,
+    "platform":1}
+        response = self.s.post(f"{cfg.target_host}/jyapi/messageCenter/msgOpenLog",headers=header,json=data)
+        return response
 
     # 工作桌面商机情报列表
     def workdesk_intelligence(self):