From 5594f47b85acf41f54391f128ffc6aa292c0b4e3 Mon Sep 17 00:00:00 2001 From: Leozhanggg <278869269@qq.com> Date: Thu, 29 Jul 2021 16:46:27 +0800 Subject: [PATCH] Bug fix --- comm/__init__.py | 4 ++-- comm/db/queryHBase.py | 4 ++-- comm/script/writeCaseYml.py | 2 +- comm/unit/checkResult.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/comm/__init__.py b/comm/__init__.py index 6970331..718b747 100644 --- a/comm/__init__.py +++ b/comm/__init__.py @@ -1,2 +1,2 @@ -import phoenixdb -import phoenixdb.cursor \ No newline at end of file +# import phoenixdb +# import phoenixdb.cursor \ No newline at end of file diff --git a/comm/db/queryHBase.py b/comm/db/queryHBase.py index fc4c69e..fcd676f 100644 --- a/comm/db/queryHBase.py +++ b/comm/db/queryHBase.py @@ -3,8 +3,8 @@ # @Author : Leo Zhang # @File : queryHBase.py # ************************** -# import phoenixdb -# import phoenixdb.cursor +import phoenixdb +import phoenixdb.cursor from comm import * import logging diff --git a/comm/script/writeCaseYml.py b/comm/script/writeCaseYml.py index f260d6c..18c5eaf 100644 --- a/comm/script/writeCaseYml.py +++ b/comm/script/writeCaseYml.py @@ -33,7 +33,7 @@ def write_case_yaml(har_path): # 获取接口基本信息 host = har_ct["host"] - port = har_ct["port"] + port = har_ct["actualPort"] method = har_ct["method"] path = har_ct["path"] headers = har_ct["request"]["header"]['headers'] diff --git a/comm/unit/checkResult.py b/comm/unit/checkResult.py index e880542..0c87149 100644 --- a/comm/unit/checkResult.py +++ b/comm/unit/checkResult.py @@ -9,7 +9,6 @@ import operator import logging from decimal import Decimal from comm.unit import readRelevance, replaceRelevance -from comm.unit import queryDatabase as qdb def check_json(src_data, dst_data): @@ -203,6 +202,7 @@ def check_result(case_data, code, data): # 判断是否存在数据库校验标识 if 'check_db' in case_data: + from comm.unit import queryDatabase as qdb check_db = case_data['check_db'] # 获取数据库期望结果:获取期望结果-获取关联值-替换关联值 data['parameter'] = case_data['parameter']