Explorar el Código

监控列表,监控操作,详情页信息

jialuyao hace 7 meses
padre
commit
21003716ce

+ 0 - 0
cases/fragmentation/情报/information_buzzword.py → cases/fragmentation/登录/情报/information_buzzword.py


+ 0 - 0
cases/fragmentation/情报/information_search.py → cases/fragmentation/登录/情报/information_search.py


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


+ 0 - 0
cases/fragmentation/搜索/bidding_project_search.py → cases/fragmentation/登录/搜索/bidding_project_search.py


+ 0 - 0
cases/fragmentation/搜索/purchase_intention_search.py → cases/fragmentation/登录/搜索/purchase_intention_search.py


+ 16 - 0
cases/fragmentation/登录/监控/monitor_list.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.wxapi import apimgr
+class c1:
+    #测试用例名称
+    name='监控列表'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res = apimgr.monitor_list()
+        r = res.json()
+        INFO(r)
+        actural = r['data']['count']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查用户中台接口是否正常', actural >= 0)

+ 16 - 0
cases/fragmentation/登录/监控/monitor_operate.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.wxapi import apimgr
+class c1:
+    #测试用例名称
+    name='监控操作'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res = apimgr.monitor_operate()
+        r = res.json()
+        INFO(r)
+        actural = r['data']['status']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查用户中台接口是否正常', actural >= 0)

+ 0 - 0
cases/fragmentation/订阅/purchase_intention_subscription.py → cases/fragmentation/登录/订阅/purchase_intention_subscription.py


+ 0 - 0
cases/fragmentation/订阅/tender_subscription.py → cases/fragmentation/登录/订阅/tender_subscription.py


+ 16 - 0
cases/fragmentation/登录/详情/detailed_information.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.wxapi import apimgr
+class c1:
+    #测试用例名称
+    name='详情页信息'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res = apimgr.detailed_information()
+        r = res.json()
+        INFO(r)
+        actural = r['data']['ErrorCode']
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查用户中台接口是否正常', actural == 0)

+ 33 - 0
lib/wxapi.py

@@ -174,5 +174,38 @@ class APIMgr():
         response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/info/subscribeList", headers=hearders, json=json)
         return response
 
+    """监控列表"""
+    def monitor_list(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        json={
+            "Size": 1,
+            "Page": 1
+        }
+        response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/monitorList", headers=hearders, json=json)
+        return response
+
+    """监控操作"""
+    def monitor_operate(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        json={
+            "CompanyName":"东莞市中医院",
+            "OperateType":1
+        }
+        response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/monitorOperate", headers=hearders, json=json)
+        return response
+
+    """详情页信息"""
+    def detailed_information(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        json = {
+            "_id": "ABCY1xZcDIvJyssAlV1cHU8CicoEjRjYWR1Pw4jIy4wc3xzfTNUCec%3D"
+        }
+        response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/getBiddingDetail", headers=hearders, json=json)
+        return response
+
+
 
 apimgr = APIMgr()