Răsfoiți Sursa

采购单位画像可筛选项、超级订阅升级版画像浏览详情

jialuyao 5 luni în urmă
părinte
comite
ef3f6eea5a

+ 16 - 0
cases/pc/登录功能/采购单位画像/filterable_options.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+class c1:
+    #测试用例名称
+    name='采购单位画像可筛选项'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1,'第一步调用函数')    #会出现在测试报告中
+        r = apimgr.filterable_options()
+        res = r.json()
+        actural  = res['error_code']
+        actural1 = res['data']['areaArr'][0]
+        STEP(2,'第二步设置检查点')
+        #设置检查点
+        CHECK_POINT('检查采购单位画像可筛选项接口是否正常',actural ==0 and actural1 =='河南')

+ 16 - 0
cases/pc/登录功能/采购单位画像/subvipPortrait_details.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+class c1:
+    #测试用例名称
+    name='超级订阅升级版画像浏览详情'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1,'第一步调用函数')    #会出现在测试报告中
+        r = apimgr.subvipPortrait_details()
+        res = r.json()
+        actural  = res['error_code']
+        actural1 = res['data']['total']
+        STEP(2,'第二步设置检查点')
+        #设置检查点
+        CHECK_POINT('检查超级订阅升级版画像浏览详情接口是否正常',actural ==0 and actural1 >=800)

+ 18 - 0
lib/webapi.py

@@ -1496,6 +1496,24 @@ class APIMgr():
         response = self.s.post(f"{cfg.target_host}/jyapp/front/dataExport/searchExport", headers=headers, params=params)
         return response
 
+    """采购单位画像可筛选项"""
+    def filterable_options(self):
+        headers =GSTORE['headers']
+        params = {
+            "buyer": "黎明化工研究设计院有限责任公司"
+        }
+        response =self.s.post(f"{cfg.target_host}/entnicheNew/portrait/buyer/selects",headers = headers ,params =params)
+        return response
+
+    """超级订阅升级版画像浏览详情"""
+    def subvipPortrait_details(self):
+        headers =GSTORE['headers']
+        params = {
+            "buyer": "黎明化工研究设计院有限责任公司"
+        }
+        response =self.s.post(f"{cfg.target_host}/entnicheNew/portrait/subVipPortrait/usage",headers = headers ,params =params)
+        return response
+
 apimgr = APIMgr()