@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+class c1:
+ #测试用例名称
+ name='项目信息-详情页参标信息接口'
+ #测试步骤
+ def teststeps(self):
+ INFO('测试步骤')
+ STEP(1,'第一步调用函数') #会出现在测试报告中
+ r = apimgr.participate_info()
+ res = r.json()
+ INFO(res)
+ actural = res['error_code']
+ STEP(2,'第二步设置检查点')
+ #设置检查点
+ CHECK_POINT('检查项目信息-详情页参标信息接口接口是否正常',actural == 0)
@@ -1710,6 +1710,14 @@ class APIMgr():
}
response = self.s.post(f"{cfg.target_host}/jyapi/jybx/core/participate/content",headers = headers ,json = json)
return response
+ #项目信息-详情页参标信息接口
+ def participate_info(self):
+ headers = GSTORE['headers']
+ json = {
+ "sid": "ABCY2FeYzwOMDk6Enxoc08ODCQ4FRFjYXtkPx4ZJi4eYGpzfAlUCWc%3D"
+ }
+ response = self.s.post(f"{cfg.target_host}/jyapi/jybx/core/participate/info",headers = headers , json = json)
+ return response