@@ -10,4 +10,4 @@ class c1:
r = res.json()
actural = r["error_code"]
STEP(2,"第二步设置检查点")
- CHECK_POINT("检查线索名称(公司名称)接口是否正常",actural == 0)
+ CHECK_POINT("检查个人年终报告-获取信息id接口是否正常",actural == 0)
@@ -0,0 +1,13 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+ name = "我的数据资产"
+ def teststeps(self):
+ INFO("测试步骤")
+ STEP(1,"第一步调用函数")
+ res = apimgr.myDataAsset()
+ r = res.json()
+ actural = r["error_code"]
+ STEP(2,"第二步设置检查点")
+ CHECK_POINT("检查我的数据资产接口是否正常",actural == 0)
@@ -1667,6 +1667,13 @@ class APIMgr():
response = self.s.post(f"{cfg.target_host}/jyapi/biService/getInfoId",headers = headers)
return response
+ def myDataAsset(self):
+ headers = GSTORE['headers']
+ response = self.s.post(f"{cfg.target_host}/jyapi/biService/myDataAsset",headers = headers)
+ return response
apimgr = APIMgr()