Răsfoiți Sursa

Merge branch 'feature/v1.0.2' of https://jygit.jydev.jianyu360.cn/Test/jianyu_auto_api into feature/v1.0.2

123456 5 luni în urmă
părinte
comite
eeb4bd8631
2 a modificat fișierele cu 26 adăugiri și 0 ștergeri
  1. 18 0
      cases/pc/登录功能/权限管理/deluseperson.py
  2. 8 0
      lib/webapi.py

+ 18 - 0
cases/pc/登录功能/权限管理/deluseperson.py

@@ -0,0 +1,18 @@
+from hytest import *
+from lib.webapi import apimgr
+class c1:
+    #测试用例名称
+    name='删除使用人员'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1,'第一步调用函数')    #会出现在测试报告中
+        res = apimgr.deluseperson()
+        actual = res.json()
+        error_code = actual["error_code"]
+        status = actual["data"]["status"]
+        STEP(stepNo=2, desc='第二步设置检查点')
+        CHECK_POINT(desc='删除使用人员是否正常', condition= error_code == 0 and status == 1 )
+
+
+

+ 8 - 0
lib/webapi.py

@@ -1460,6 +1460,14 @@ class APIMgr():
         header = GSTORE['headers']
         response = self.s.post(f"{cfg.target_host}/jyapi/domain/userAuthInfo",headers=header)
         return response
+    #删除使用人员
+    def deluseperson(self):
+        headers = GSTORE['headers']
+        json = {
+            "entniche_power_id": 35272
+        }
+        response = self.s.post(f"{cfg.target_host}/jyapi/entManageApplication/delUsePerson", headers=headers ,json=json)
+        return response
 
    #pc/微信招标采购搜索-数据导出
     def pc_wx_searchExport(self):