瀏覽代碼

投标决策分析内容

jialuyao 9 月之前
父節點
當前提交
1b92727ecc
共有 2 個文件被更改,包括 41 次插入0 次删除
  1. 16 0
      cases/pc/登录功能/投标决策分析/bidding_decision_analysis_content.py
  2. 25 0
      lib/webapi.py

+ 16 - 0
cases/pc/登录功能/投标决策分析/bidding_decision_analysis_content.py

@@ -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 )

+ 25 - 0
lib/webapi.py

@@ -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": ["多功能投影仪"],
+                    "matchway": 1
+                }],
+            "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()