lizhikun hace 4 meses
padre
commit
69b20baeb8

+ 9 - 0
cases/app/登录/商机管理/__st__.py

@@ -0,0 +1,9 @@
+from time import sleep
+
+from hytest import *
+from lib.webapi import apimgr
+def suite_setup():
+    INFO('切换用户身份到商机管理权限的企业下')
+    apimgr.Identity_list(1)
+    apimgr.Identity_switch()
+    sleep(3)

+ 0 - 0
cases/app/登录/订阅/distribution_details.py → cases/app/登录/商机管理/distribution_details.py


+ 1 - 1
cases/fragmentation/登录/情报/information_subscription.py

@@ -2,7 +2,7 @@ from hytest import *
 from lib.wxapi import apimgr
 class c1:
     #测试用例名称
-    name='情报列表/搜索-订阅'
+    name='情报列表/搜索-商机管理'
     #测试步骤
     def teststeps(self):
         INFO('测试步骤')

+ 9 - 0
cases/pc/登录功能/商机管理/__st__.py

@@ -0,0 +1,9 @@
+from time import sleep
+
+from hytest import *
+from lib.webapi import apimgr
+def suite_setup():
+    INFO('切换用户身份到商机管理权限的企业下')
+    apimgr.Identity_list(1)
+    apimgr.Identity_switch()
+    sleep(3)

+ 0 - 0
cases/pc/登录功能/商机管理客户关注/customer_attention.py → cases/pc/登录功能/商机管理/customer_attention.py


+ 0 - 0
cases/pc/登录功能/订阅/distribution_list.py → cases/pc/登录功能/商机管理/distribution_list.py


+ 0 - 0
cases/pc/登录功能/订阅/distribution_update.py → cases/pc/登录功能/商机管理/distribution_update.py


+ 4 - 1
cases/pc/登录功能/机构中心/__st__.py

@@ -1,6 +1,9 @@
+from time import sleep
+
 from hytest import *
 from lib.webapi import apimgr
 def suite_setup():
     INFO('切换用户身份到商机管理权限的企业下')
     apimgr.Identity_list(1)
-    apimgr.Identity_switch()
+    apimgr.Identity_switch()
+    sleep(3)

+ 2 - 2
lib/webapi.py

@@ -155,7 +155,7 @@ class APIMgr():
               "buyerTel": "",
               "winnerTel": ""
             }
-        response = session.post(f"{cfg.target_host}/jyapi/jybx/core/mType/searchList", headers=headers, data=data,timeout=(5,10))
+        response = session.post(f"{cfg.target_host}/jyapi/jybx/core/mType/searchList", headers=headers, json=data,timeout=(5,10))
         return response
 
      # 企业搜索
@@ -905,7 +905,7 @@ class APIMgr():
         headers = GSTORE['headers']
         response = self.s.post(f"{cfg.target_host}/entnicheNew/customer/getLabel", headers=headers, json={})
         return response
-    #商机管理客户关注
+    #商机管理
     def customer_attention(self):
         headers = GSTORE['headers']
         response = self.s.post(f"{cfg.target_host}/publicapply/customer/attention", headers=headers, json={"name":"石嘴山市交通工程建设管理中心","mold":1,"D":True})

+ 1 - 1
lib/wxapi.py

@@ -162,7 +162,7 @@ class APIMgr():
         response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/info/getInfoList", headers=hearders, json=json)
         return response
 
-    """情报列表/搜索-订阅"""
+    """情报列表/搜索-商机管理"""
     def information_subscription(self):
         hearders = GSTORE['headers']
         s = GSTORE['s']