liumiaomiao 5 months ago
parent
commit
bf3f4d3f69

+ 0 - 1
cases/fragmentation/登录/详情/purchasing_analysis.py

@@ -8,7 +8,6 @@ class c1:
         STEP(1, '第一步调用函数')
         res=apimgr.purchasing_analysis()
         r = res.json()
-        INFO(r)
         actural=r['error_code']
         # INFO(length)
         STEP(2, '第二步设置检查点')

+ 4 - 1
cases/pc/登录功能/搜索功能/enterpriseSearch.py

@@ -1,3 +1,5 @@
+from time import sleep
+
 from hytest import *
 from lib.webapi import apimgr
 class c3:
@@ -6,7 +8,8 @@ class c3:
     #测试步骤
     def teststeps(self):
         INFO('测试步骤')
-        STEP(1,'第一步调用函数')    #会出现在测试报告中
+        STEP(1,'第一步调用函数') #会出现在测试报告中
+        sleep(3)
         r = apimgr.enterpriseSearch()
         if r is not None:
             try:

+ 3 - 0
cases/pc/登录功能/数据/send_mailverify.py

@@ -1,3 +1,5 @@
+from time import sleep
+
 from hytest import *
 from lib.webapi import apimgr
 
@@ -6,6 +8,7 @@ class c1:
     def teststeps(self):
         INFO("测试步骤")
         STEP(1, '第一步调用函数')
+        sleep(3)
         res=apimgr.send_mailverify()
         r = res.json()
         actural = r["success"]

+ 2 - 2
cases/pc/登录功能/机构中心/add_personnel.py

@@ -1,13 +1,13 @@
+from time import sleep
 from hytest import *
 from lib.webapi import apimgr
-import json
-
 class c1:
     name = '添加人员'
 
     def teststeps(self):
         INFO('初始化方法')
         STEP(1, '第一步调用函数')
+        sleep(3)
         res = apimgr.add_personnel()
         resp = res.json()
         error_code = resp['error_code']

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

@@ -1,6 +1,6 @@
+from time import sleep
 from hytest import *
 from lib.webapi import apimgr
-import json
 
 class c1:
     name = '企业信息'
@@ -8,6 +8,7 @@ class c1:
     def teststeps(self):
         INFO('初始化方法')
         STEP(1, '第一步调用函数')
+        sleep(3)
         res = apimgr.enterprise_information()
         resp = res.json()
         error_code = resp['error_code']

+ 2 - 2
cases/pc/登录功能/机构中心/subdepartment.py

@@ -1,13 +1,13 @@
+from time import sleep
 from hytest import *
 from lib.webapi import apimgr
-import json
-
 class c1:
     name = '子部门'
 
     def teststeps(self):
         INFO('初始化方法')
         STEP(1, '第一步调用函数')
+        sleep(3)
         res = apimgr.subdepartment()
         resp = res.json()
         error_code = resp['error_code']