lizhikun 1 سال پیش
والد
کامیت
5f5a4c018a
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 3 1
      cases/企业用户信息获取/get_ent_userinfo.py
  2. 3 1
      cases/企业用户信息获取/whether_buy.py

+ 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()