liumiaomiao 10 mēneši atpakaļ
vecāks
revīzija
f573dd2898

+ 14 - 0
cases/pc/登录功能/工作台首页/business_opportunity.py

@@ -0,0 +1,14 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = '工作台首页商机情报详情页'
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res=apimgr.business_opportunity()
+        r = res.json()
+        actural = r['data']['area']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查工作台首页商机情报详情页接口是否正常', actural == '内蒙古')

+ 14 - 0
cases/pc/登录功能/工作台首页/industry_report.py

@@ -0,0 +1,14 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = '工作桌面首页行业报告'
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res=apimgr.industry_report()
+        r = res.json()
+        actural = r['data']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查工作桌面首页行业报告接口是否正常', len(actural) >=1)

+ 15 - 0
lib/webapi.py

@@ -648,6 +648,21 @@ class APIMgr():
         response =s.post(f"{cfg.target_host}/front/project/nzj/details",headers=headers, params=params)
         response =s.post(f"{cfg.target_host}/front/project/nzj/details",headers=headers, params=params)
         return response
         return response
 
 
+    """工作桌面首页行业报告"""
+    def industry_report(self):
+        headers = GSTORE['headers']
+        s = GSTORE['s']
+        response = s.get(f"{cfg.target_host}/front/project/deskAnalysisReport", headers=headers)
+        return response
+
+    """工作桌面首页商机情报详情页"""
+    def business_opportunity(self):
+        headers = GSTORE['headers']
+        s = GSTORE['s']
+        # id='ABCY1xaYD0FJD0sNHN6cAcSMTI4DRZjV3diPB43LyEgfGpzbQFUCV8='
+        response = s.get(f"{cfg.target_host}/bigmember/project/businessDetails?id=ABCY1xaYD0FJD0sNHN6cAcSMTI4DRZjV3diPB43LyEgfGpzbQFUCV8=", headers=headers,data={})
+        return response
+
     """大会员推送记录列表"""
     """大会员推送记录列表"""
     def bigmember_push(self):
     def bigmember_push(self):
        headers = GSTORE['headers']
        headers = GSTORE['headers']