Jelajahi Sumber

项目信息-获取投标状态信息

123456 4 bulan lalu
induk
melakukan
fbdfec4410
2 mengubah file dengan 24 tambahan dan 0 penghapusan
  1. 16 0
      cases/pc/登录功能/项目关注/participate_content.py
  2. 8 0
      lib/webapi.py

+ 16 - 0
cases/pc/登录功能/项目关注/participate_content.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+class c1:
+    #测试用例名称
+    name='项目信息-获取投标状态信息'
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1,'第一步调用函数')    #会出现在测试报告中
+        r = apimgr.participate_content()
+        res = r.json()
+        INFO(res)
+        actural  = res['error_code']
+        STEP(2,'第二步设置检查点')
+        #设置检查点
+        CHECK_POINT('检查项目信息-获取投标状态信息接口是否正常',actural == 0)

+ 8 - 0
lib/webapi.py

@@ -1702,6 +1702,14 @@ class APIMgr():
         }
         response = self.s.post(f"{cfg.target_host}/jyapi/jybx/core/mType/searchList", headers=headers, json=json)
         return response
+    #项目信息-获取投标状态信息
+    def participate_content(self):
+        headers = GSTORE['headers']
+        json = {
+            "sid": "ABCY2FeYzwOMDk6Enxoc08ODCQ4FRFjYXtkPx4ZJi4eYGpzfAlUCWc%3D"
+        }
+        response = self.s.post(f"{cfg.target_host}/jyapi/jybx/core/participate/content",headers = headers ,json = json)
+        return response