@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+ name = '获取样例报告信息'
+ def teststeps(self):
+ INFO('测试步骤')
+ STEP(1, '第一步调用函数')
+ res=apimgr.sample_report_information()
+ r = res.json()
+ INFO(r)
+ actural=r['error_code']
+ # INFO(length)
+ STEP(2, '第二步设置检查点')
+ # 设置检查点
+ CHECK_POINT('检查用户中台接口是否正常', actural == 0 )
@@ -897,6 +897,12 @@ class APIMgr():
headers = GSTORE['headers']
response = self.s.post(f"{cfg.target_host}/leadGeneration/clickRecord", headers=headers, json={"type":"B"})
return response
+ #获取样例报告信息
+ def sample_report_information(self):
+ headers = GSTORE['headers']
+ response = self.s.post(f"{cfg.target_host}/salesLeads/sampleReport", headers=headers, json={})
+ return response
apimgr = APIMgr()