Kaynağa Gözat

采购联系人

lizhikun 7 ay önce
ebeveyn
işleme
8c9ddc5df1

+ 16 - 0
cases/pc/登录功能/身份信息获取/buyer_association.py

@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+    name = '采购单位联系'
+    def teststeps(self):
+        INFO('测试步骤')
+        STEP(1, '第一步调用函数')
+        res=apimgr.buyer_contact()
+        r = res.json()
+        INFO(r)
+        actural=r['error_code']
+        # INFO(length)
+        STEP(2, '第二步设置检查点')
+        # 设置检查点
+        CHECK_POINT('检查采购单位联系接口是否正常',  actural == 0 )

+ 6 - 0
lib/webapi.py

@@ -1024,6 +1024,12 @@ class APIMgr():
         headers = GSTORE['headers']
         headers = GSTORE['headers']
         response = self.s.post(f"{cfg.target_host}/publicapply/attachment/supplyInfo?msgId=RV9AWV1F&fileName=%E7%8E%8B%E7%BF%94%E5%90%8D%E7%89%87.png", headers=headers,)
         response = self.s.post(f"{cfg.target_host}/publicapply/attachment/supplyInfo?msgId=RV9AWV1F&fileName=%E7%8E%8B%E7%BF%94%E5%90%8D%E7%89%87.png", headers=headers,)
         return response
         return response
+    #采购联系人
+    def buyer_contact(self):
+        header = GSTORE['headers']
+        response = self.s.post(f"{cfg.target_host}/bigmember/search/buyer/association?name=河南科技大学", headers=header)
+        return response
+
 apimgr = APIMgr()
 apimgr = APIMgr()