Эх сурвалжийг харах

Merge branch 'feature/v1.0.2' of https://jygit.jydev.jianyu360.cn/Test/jianyu_auto_api into feature/v1.0.2

liuyali@topnet.net.cn 5 сар өмнө
parent
commit
1261e01025

+ 13 - 0
cases/pc/登录功能/数据/pc_wx_searchExport.py

@@ -0,0 +1,13 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = "pc/微信招标采购搜索数据导出"
+    def teststeps(self):
+        INFO("测试步骤")
+        STEP(1,"第一步调用函数")
+        res = apimgr.pc_wx_searchExport()
+        r = res.json()
+        actural = r['_id']
+        STEP(2,"第二步设置检查点")
+        CHECK_POINT("检查_id有返回值,不为空",actural != "")

+ 13 - 0
lib/webapi.py

@@ -1469,6 +1469,19 @@ class APIMgr():
         response = self.s.post(f"{cfg.target_host}/jyapi/entManageApplication/delUsePerson", headers=headers ,json=json)
         return response
 
+   #pc/微信招标采购搜索-数据导出
+    def pc_wx_searchExport(self):
+        headers =GSTORE['headers']
+        params = {
+            "searchvalue": "科技",
+            "additionalWords": "软件",
+            "searchGroup": "0",
+            "searchMode": "0",
+            "wordsMode": "0"
+        }
+        response =self.s.post(f"{cfg.target_host}/front/wx_dataExport/searchExport",headers = headers ,params =params)
+        return response
+
 apimgr = APIMgr()