liumiaomiao 10 月之前
父节点
当前提交
25a95c1501

+ 17 - 0
cases/pc/未登录功能/三级页/nologin_proposed_construction_content.py

@@ -0,0 +1,17 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = '未登录拟在建详情页'
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        # ids=apimgr.nologin_Proposed_construction_search()
+        # lists = ids.json()
+        # id =lists["list"]["proposed_id"]
+        res=apimgr.nologin_proposed_construction_content()
+        r = res.json()
+        actural = r['data']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查数据导出接口是否正常', len(actural) >1)

+ 14 - 0
cases/pc/登录功能/数据/export_list.py

@@ -0,0 +1,14 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = '数据导出筛选条件列表'
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res=apimgr.export_list()
+        r = res.json()
+        actural = r['error_code']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查数据导出接口是否正常', actural == 0)

+ 16 - 0
lib/webapi.py

@@ -435,6 +435,13 @@ class APIMgr():
         response = s.post(f"{cfg.target_host}/front/dataExport/getDontPromptAgain", headers=hearders)
         return response
 
+    """数据导出筛选条件列表"""
+    def export_list(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        response = s.get(f"{cfg.target_host}/subscribepay/dataExportPack/screenList", headers=hearders)
+        return response
+
     """剑鱼文库搜索"""
     def Library_search(self,keyWord='数据'):
         hearders = GSTORE['headers']
@@ -624,6 +631,7 @@ class APIMgr():
         params = {"match":"科技"}
         response =s.post(f"{cfg.target_host}/jyapi/jybx/core/fType/searchList",headers=headers, params=params)
         return response
+
     """未登录拟在建搜索"""
     def nologin_Proposed_construction_search(self ):
         headers = GSTORE['headers']
@@ -632,6 +640,14 @@ class APIMgr():
         response =s.post(f"{cfg.target_host}/front/project/nzj/search",headers=headers, params=params)
         return response
 
+    """未登录拟在建搜索详情页"""
+    def nologin_proposed_construction_content(self):
+        headers = GSTORE['headers']
+        s = GSTORE['s']
+        params = {"pid":"040600055c0f00594f4351560153085d530f4e4200035201"}
+        response =s.post(f"{cfg.target_host}/front/project/nzj/details",headers=headers, params=params)
+        return response
+
     """大会员推送记录列表"""
     def bigmember_push(self):
        headers = GSTORE['headers']