lizhikun 1 éve
szülő
commit
5f5a4c018a

+ 3 - 1
cases/企业用户信息获取/get_ent_userinfo.py

@@ -6,6 +6,7 @@ class c1:
     def teststeps(self):
         INFO('测试步骤')
         STEP(1, '第一步调用函数')
+        apimgr.mgr_login()
         res=apimgr.User_info()
         r = res.json()
         INFO(r)
@@ -13,4 +14,5 @@ class c1:
         actural1=r['error_code']
         STEP(2, '第二步设置检查点')
         # 设置检查点
-        CHECK_POINT('检查用户信息',actural=='18211989987' and  actural1 == 0)
+        CHECK_POINT('检查用户信息',actural=='18211989987' and  actural1 == 0)
+        apimgr.mgr_logout()

+ 3 - 1
cases/企业用户信息获取/whether_buy.py

@@ -6,6 +6,7 @@ class c1:
     def teststeps(self):
         INFO('测试步骤')
         STEP(1, '第一步调用函数')
+        apimgr.mgr_login()
         res=apimgr.Whether_buy()
         r = res.json()
         INFO(r)
@@ -13,4 +14,5 @@ class c1:
         # INFO(length)
         STEP(2, '第二步设置检查点')
         # 设置检查点
-        CHECK_POINT('检查用户中台接口是否正常',  actural == 0)
+        CHECK_POINT('检查用户中台接口是否正常',  actural == 0)
+        apimgr.mgr_logout()