Browse Source

品牌官网-关于剑鱼-公司介绍里的网站收录

yuanyuan 4 months ago
parent
commit
33de4d35e8
2 changed files with 56 additions and 0 deletions
  1. 21 0
      cases/pc/未登录功能/品牌官网/website_include.py
  2. 35 0
      lib/webapi.py

+ 21 - 0
cases/pc/未登录功能/品牌官网/website_include.py

@@ -0,0 +1,21 @@
+
+from hytest import *
+from lib.webapi import apimgr
+
+#品牌官网-关于剑鱼-公司介绍-网站收录
+class c1:
+
+    name='公司介绍里的网站收录'   #测试用例名称
+    #测试步骤
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1,'第一步调用函数')    #会出现在测试报告中
+        res = apimgr.web_include()
+        actual = res.json()
+        error_code = actual["error_code"]
+        STEP(stepNo=2, desc='第二步设置检查点')
+        CHECK_POINT('公司介绍里的网站收录接口是否正常', error_code == 0)
+
+
+
+

+ 35 - 0
lib/webapi.py

@@ -1839,6 +1839,41 @@ class APIMgr():
         response = self.s.post(f"{cfg.target_host}/jyapi/jybx/base/newest",headers = headers ,json = json)
         return response
 
+    #品牌官网-关于剑鱼-公司介绍里的网站收录
+    def web_include(self):
+        headers = GSTORE['headers']
+        json = {
+            "bid": 2.5,
+            "bidDayUpdate": 21,
+            "bidDayUpdateUnit": "万",
+            "bidDayUpdateUnitAppend": "+",
+            "bidField": 80,
+            "bidFieldUnit": "",
+            "bidFieldUnitAppend": "+",
+            "bidUnit": "亿",
+            "bidUnitAppend": "+",
+            "buyer": 315,
+            "buyerUnit": "万",
+            "buyerUnitAppend": "+",
+            "day": 1,
+            "ent": 3.7,
+            "entUnit": "亿",
+            "entUnitAppend": "+",
+            "fieldAccuracy": 99,
+            "fieldAccuracyUnit": "%",
+            "fieldAccuracyUnitAppend": "+",
+            "month": 3,
+            "project": 1.2,
+            "projectUnit": "亿",
+            "projectUnitAppend": "+",
+            "push": 702,
+            "pushUnit": "亿",
+            "pushUnitAppend": "+",
+            "year": 2025
+        }
+        response = self.s.post(f"{cfg.target_host}/jyapi/jybx/base/included",headers = headers ,json = json)
+        return response
+
 
 apimgr = APIMgr()