Bug fix
This commit is contained in:
parent
0a292a686a
commit
5594f47b85
|
@ -1,2 +1,2 @@
|
||||||
import phoenixdb
|
# import phoenixdb
|
||||||
import phoenixdb.cursor
|
# import phoenixdb.cursor
|
|
@ -3,8 +3,8 @@
|
||||||
# @Author : Leo Zhang
|
# @Author : Leo Zhang
|
||||||
# @File : queryHBase.py
|
# @File : queryHBase.py
|
||||||
# **************************
|
# **************************
|
||||||
# import phoenixdb
|
import phoenixdb
|
||||||
# import phoenixdb.cursor
|
import phoenixdb.cursor
|
||||||
from comm import *
|
from comm import *
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ def write_case_yaml(har_path):
|
||||||
|
|
||||||
# 获取接口基本信息
|
# 获取接口基本信息
|
||||||
host = har_ct["host"]
|
host = har_ct["host"]
|
||||||
port = har_ct["port"]
|
port = har_ct["actualPort"]
|
||||||
method = har_ct["method"]
|
method = har_ct["method"]
|
||||||
path = har_ct["path"]
|
path = har_ct["path"]
|
||||||
headers = har_ct["request"]["header"]['headers']
|
headers = har_ct["request"]["header"]['headers']
|
||||||
|
|
|
@ -9,7 +9,6 @@ import operator
|
||||||
import logging
|
import logging
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from comm.unit import readRelevance, replaceRelevance
|
from comm.unit import readRelevance, replaceRelevance
|
||||||
from comm.unit import queryDatabase as qdb
|
|
||||||
|
|
||||||
|
|
||||||
def check_json(src_data, dst_data):
|
def check_json(src_data, dst_data):
|
||||||
|
@ -203,6 +202,7 @@ def check_result(case_data, code, data):
|
||||||
|
|
||||||
# 判断是否存在数据库校验标识
|
# 判断是否存在数据库校验标识
|
||||||
if 'check_db' in case_data:
|
if 'check_db' in case_data:
|
||||||
|
from comm.unit import queryDatabase as qdb
|
||||||
check_db = case_data['check_db']
|
check_db = case_data['check_db']
|
||||||
# 获取数据库期望结果:获取期望结果-获取关联值-替换关联值
|
# 获取数据库期望结果:获取期望结果-获取关联值-替换关联值
|
||||||
data['parameter'] = case_data['parameter']
|
data['parameter'] = case_data['parameter']
|
||||||
|
|
Loading…
Reference in New Issue