Jelajahi Sumber

订阅区域修改,订阅业务类型修改

jialuyao 7 bulan lalu
induk
melakukan
070cbb58d2

+ 16 - 0
cases/fragmentation/登录/订阅/subscription_region_modification.py

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

+ 16 - 0
cases/fragmentation/登录/订阅/subscription_service_type_changes.py

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

+ 17 - 0
lib/wxapi.py

@@ -267,4 +267,21 @@ class APIMgr():
         response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/getDetailEquity", headers=hearders, json=json)
         return response
 
+    """订阅区域修改"""
+    def subscription_region_modification(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        json = {
+            "ModifyType":"全部"
+        }
+        response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/updateArea", headers=hearders, json=json)
+        return response
+
+    """订阅业务类型修改"""
+    def subscription_service_type_changes(self):
+        hearders = GSTORE['headers']
+        s = GSTORE['s']
+        response = s.post(f"{cfg.target_host_wxapi}/debrisproduct/updateIndustry", headers=hearders)
+        return response
+
 apimgr = APIMgr()