@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+ name = '投标决策分析内容'
+ def teststeps(self):
+ INFO('测试步骤')
+ STEP(1, '第一步调用函数')
+ res=apimgr.bidding_decision_analysis_content()
+ r = res.json()
+ INFO(r)
+ actural=r['error_code']
+ # INFO(length)
+ STEP(2, '第二步设置检查点')
+ # 设置检查点
+ CHECK_POINT('检查用户中台接口是否正常', actural == 0 )
@@ -917,6 +917,31 @@ class APIMgr():
}
response = self.s.post(f"{cfg.target_host}/bigmember/analysis/projectName", headers=headers, params=params)
return response
+ #投标决策分析内容
+ def bidding_decision_analysis_content(self):
+ headers = GSTORE['headers']
+ json = {
+ "area": {"北京": []},
+ "buyer": "北京大学",
+ "buyerContent": [
+ {
+ "key": ["设备"],
+ "matchway": 1
+ },
+ "key": ["多功能投影仪"],
+ }],
+ "pname": "",
+ "limitTime": "fiveYear",
+ "searchItem": 1,
+ "searchType": 0,
+ "page": 1,
+ "pageSize": 5
+ }
+ response = self.s.post(f"{cfg.target_host}/bigmember/decision/decInfo", headers=headers, json=json)
+ return response
apimgr = APIMgr()