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

+ 14 - 0
cases/pc/登录功能/数据/export_frame.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_frame()
+        r = res.json()
+        actural = r['isPrompt']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查数据导出接口是否正常', actural == False)

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

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

+ 17 - 0
lib/webapi.py

@@ -418,6 +418,23 @@ class APIMgr():
         response = s.post(f"{cfg.target_host}/subscribepay/dataExportPack/recordList", headers=hearders, params=params)
         return response
 
+    """数据导出-超出2w条,点击不在提示"""
+    def Export_prompt(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        params={
+            "status": 1
+        }
+        response = s.post(f"{cfg.target_host}/front/dataExport/setDontPromptAgain", headers=hearders, params=params)
+        return response
+
+    """数据导出-判断是否展示弹框"""
+    def Export_frame(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        response = s.post(f"{cfg.target_host}/front/dataExport/getDontPromptAgain", headers=hearders)
+        return response
+
     """剑鱼文库搜索"""
     def Library_search(self,keyWord='数据'):
         hearders = GSTORE['headers']