This commit is contained in:
Leozhanggg 2021-07-29 16:46:27 +08:00
parent 0a292a686a
commit 5594f47b85
4 changed files with 6 additions and 6 deletions

View File

@ -1,2 +1,2 @@
import phoenixdb
import phoenixdb.cursor
# import phoenixdb
# import phoenixdb.cursor

View File

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

View File

@ -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']

View File

@ -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']