Przeglądaj źródła

销售-全部线索-新增线索-公司名称/线索名称

123456 4 miesięcy temu
rodzic
commit
167e8e3202
2 zmienionych plików z 22 dodań i 2 usunięć
  1. 13 0
      cases/pc/登录功能/电销/getCompanyType.py
  2. 9 2
      lib/webapi.py

+ 13 - 0
cases/pc/登录功能/电销/getCompanyType.py

@@ -0,0 +1,13 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = "线索名称"
+    def teststeps(self):
+        INFO("测试步骤")
+        STEP(1,"第一步调用函数")
+        res = apimgr.get_CompanyType()
+        r = res.json()
+        actural = r["error_code"]
+        STEP(2,"第二步设置检查点")
+        CHECK_POINT("检查线索名称(公司名称)接口是否正常",actural == 0)

+ 9 - 2
lib/webapi.py

@@ -1485,8 +1485,7 @@ class APIMgr():
         response =self.s.post(f"{cfg.target_host}/front/wx_dataExport/searchExport",headers = headers ,params =params)
         return response
 
-        # pc/微信招标采购搜索-数据导出
-
+    # app招标采购搜索-数据导出
     def app_searchExport(self):
         headers = GSTORE['headers']
         params = {
@@ -1654,6 +1653,14 @@ class APIMgr():
         response = self.s.post(f"{cfg.target_host_app}/jyapi/jybx/core/mobileHotWord", headers=headers)
         return response
 
+    def get_CompanyType(self):
+        headers = GSTORE['headers']
+        json = {
+            "companyName":"卢雯娜测试企业"
+        }
+        response = self.s.post(f"{cfg.target_host}/jyapi/biService/getCompanyType",headers = headers ,json = json)
+        return response
+
 apimgr = APIMgr()