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

个人年终报告-获取信息id

123456 4 сар өмнө
parent
commit
3239cd05c9

+ 13 - 0
cases/pc/登录功能/年终报告/getInfoId.py

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

+ 8 - 1
lib/webapi.py

@@ -1652,7 +1652,7 @@ class APIMgr():
         headers = GSTORE['headers']
         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 = {
@@ -1661,6 +1661,13 @@ class APIMgr():
         response = self.s.post(f"{cfg.target_host}/jyapi/biService/getCompanyType",headers = headers ,json = json)
         return response
 
+    #个人年终报告-获取信息id
+    def get_InfoId(self):
+        headers = GSTORE['headers']
+        response = self.s.post(f"{cfg.target_host}/jyapi/biService/getInfoId",headers = headers)
+        return response
+
+
 apimgr = APIMgr()