Commit 628eb1c1 by zyhmcbbs

version1.0

parent 9b05bd27
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: __init__.py
# Author: zhang
# Datetime: 2024/11/5 下午6:41
# Description:
#
# ---------------------------------------------------------------------------
import functools
import logging
import os
import time
def log():
logger = logging.getLogger()
logger.setLevel(logging.INFO)
report_path = os.path.join(os.path.dirname(__file__), "report")
log_path = os.path.join(report_path, "log")
log_name = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + ".log"
log_file_path = os.path.join(log_path, log_name)
handle = logging.FileHandler(filename=log_file_path, mode="a", encoding="utf-8")
formatter = logging.Formatter(
fmt="'%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s"
)
handle.setFormatter(formatter)
logger.addHandler(handle)
return logger
log = log()
def loger(func_name):
@functools.wraps(func_name) # 装饰器返回内部函数时,沿用被装饰者的名称
def inner(*args, **kwargs):
# __code__: 返回函数或方法的对象,可以获取函数或者方法的属性。
# __code__.co_filename:获取函数或方法所在的py文件
# __code__.co_firstlineno:获取函数或方法所在的py文件开始行号
log.info(
f"执行的功能为:{func_name.__name__}, 功能描述为:{func_name.__doc__}, 所在的py文件为:{func_name.__code__.co_filename}, 所在的行为:{func_name.__code__.co_firstlineno}行,形参的值为:{args}或{kwargs}")
try:
result = func_name(*args, **kwargs)
except Exception as e:
log.error(
f"执行的功能为:{func_name.__name__}, 功能描述为:{func_name.__doc__}, 所在的py文件为:{func_name.__code__.co_filename}, 所在的行为:{func_name.__code__.co_firstlineno}行,形参的值为:{args}或{kwargs}"
f"错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
return result
return inner
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: __init__.py
# Author: zhang
# Datetime: 2024/11/5 下午6:41
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: db.py
# Author: zhang
# Datetime: 2024/11/5 下午7:39
# Description:
#
# ---------------------------------------------------------------------------
import pymysql
from APIAutoTest_v3_1.common.read_basic_ini import ReadBasicIni
from APIAutoTest_v3_1 import log
class DB:
def __init__(self):
"""链接数据库"""
ini = ReadBasicIni()
try:
self.conn = pymysql.connect(
host=ini.get_connect_sql_msg("host"),
port=int(ini.get_connect_sql_msg("port")),
user=ini.get_connect_sql_msg("user"),
password=ini.get_connect_sql_msg("pwd"),
database=ini.get_connect_sql_msg("database"),
charset="utf8"
)
self.cursor = self.conn.cursor()
except Exception as e:
log.error(f"链接数据库时出错,请求检查ini配置文件,发生的错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
def delete(self, sql_sentence):
log.info(f"执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:{sql_sentence}")
if isinstance(sql_sentence, str) and sql_sentence.strip().lower().startswith("delete"):
try:
self.cursor.execute(sql_sentence)
self.conn.commit()
except Exception as e:
log.error(
f"执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:{sql_sentence}, 错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
log.error(f"执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:{sql_sentence}, 错误类型为:ValueError, 错误的描述为:sql语句错误")
raise ValueError("sql语句错误")
def select(self, sql_sentence):
log.info(f"执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:{sql_sentence}")
if isinstance(sql_sentence, str) and sql_sentence.strip().lower().startswith("select"):
try:
self.cursor.execute(sql_sentence)
except Exception as e:
log.error(
f"执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:{sql_sentence}, 错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
select_result = self.cursor.fetchall()
if select_result:
return select_result[0][0]
else:
log.error(f"执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:{sql_sentence}, 错误类型为:ValueError, 错误的描述为:sql语句错误")
raise ValueError("sql语句错误")
\ No newline at end of file
import configparser
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: read_basic_ini.py
# Author: zhang
# Datetime: 2024/11/5 下午6:53
# Description:
#
# ---------------------------------------------------------------------------
import os
from APIAutoTest_v3_1 import loger
import configparser
class ReadBasicIni:
def __init__(self):
"""读取ini文件"""
self.data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data_config')
basic_ini_path = os.path.join(self.data_config_path, 'basic_config.ini')
self.conf = configparser.ConfigParser()
self.conf.read(basic_ini_path, encoding='utf-8')
@loger
def get_host(self, key):
"""根据key获取host节点下被测系统的域名"""
try:
return self.conf.get("host", key)
except Exception as e:
raise e
@loger
def get_connect_sql_msg(self, key):
"""根据key获取sql节点下数据库的链接信息"""
try:
return self.conf.get("mysql", key)
except Exception as e:
raise e
if __name__ == '__main__':
read_basic_ini = ReadBasicIni()
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: read_excel.py
# Author: zhang
# Datetime: 2024/11/5 下午7:33
# Description:
#
# ---------------------------------------------------------------------------
import openpyxl
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.common.read_json import read_json
from APIAutoTest_v3_1.common.read_basic_ini import ReadBasicIni
from APIAutoTest_v3_1.common.read_user_ini import ReadUserIni
class ReadExcel:
def __init__(self, user):
# 读取基础配置文件
self.ini = ReadUserIni(user)
# 读取json文件
case_data_path = self.ini.get_file_path("case")
expect_data_path = self.ini.get_file_path("expect")
sql_data_path = self.ini.get_file_path("sql")
self.case_data_dict = read_json(case_data_path)
self.expect_data_dict = read_json(expect_data_path)
self.sql_data_dict = read_json(sql_data_path)
# 读取excel文件路径和工作表名称
excel_path = self.ini.get_file_path("excel")
table_name = self.ini.get_table_name("name")
# 读取excel文件
try:
wb = openpyxl.load_workbook(excel_path)
self.ws = wb[table_name]
except Exception as e:
log.error(
f"获取excel的工作簿或工作表出错,excel的路径为:{excel_path},工作表名称为:{table_name},错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
def __get_cell_value(self, row, column):
# 获取指定单元格的数据,获取到之后去掉前后空格
log.info(f"开始获取第{row}行,{column}列的数据,使用的方法为__get_cell_value")
try:
cell_value = self.ws[column + str(row)].value
except Exception as e:
log.error(
f"获取单元格数据时错误,请检查excel文件或输入的行列数据,列为{column},行为{row},错误的类型为{type(e)},错误信息为{e}")
raise e
else:
# 判断单元格是否为空,非空为True
if cell_value is None:
return None
elif cell_value.strip():
return cell_value.strip()
def case_module_name(self, row):
# 获取b列模块名称
log.info(f"获取{row}行的模块名称,使用的方法为case_module_name")
return str(self.__get_cell_value(row, "b"))
def case_api_name(self, row):
# 获取c列接口名称
log.info(f"获取{row}行的接口名称,使用的方法为case_api_name")
return str(self.__get_cell_value(row, "c"))
def case_req_method(self, row):
# 获取f列的请求方法
log.info(f"获取{row}行的请求方法,使用的方法为case_req_method")
return self.__get_cell_value(row, "f")
def case_req_url(self, row):
# 获取g列的请求url
# 判断请求的url是否为url,为none返回none,不为none返回拼接的域名
log.info(f"获取{row}行的请求url,使用的方法为case_req_url")
path = self.__get_cell_value(row, "g")
if path:
return ReadBasicIni().get_host("bpm") + path
def case_req_mime(self, row):
# 获取h列的请求的媒体类型并转小写
log.info(f"获取{row}行的请求的媒体类型,使用的方法为case_req_mime")
mime_ = self.__get_cell_value(row, "h")
if mime_:
return mime_.lower()
def case_data_test(self, row):
# 获取i列的请求数据,如果模块名称、接口名称其中一个为none不提取用例数据
# 获取用例的key、模块名称、接口名称
log.info(f"获取{row}的请求数据,使用的方法为case_data_test")
data_key = self.__get_cell_value(row, "i")
module_name = self.case_module_name(row)
api_name = self.case_api_name(row)
if module_name and api_name and data_key:
# 提取用例数据并返回
return self.case_data_dict[module_name][api_name][data_key]
def except_data(self, row):
# 获取j列的期望数据
# 获取用例的key、模块名称、接口名称
log.info(f"获取{row}行的期望数据,使用的方法为except_data")
expect_data_key = self.__get_cell_value(row, "j")
module_name = self.case_module_name(row)
api_name = self.case_api_name(row)
if module_name and api_name and expect_data_key:
# 提取期望数据并返回
return self.expect_data_dict[module_name][api_name][expect_data_key]
def case_sql_data(self, row):
# 获取l列的sql语句
# 获取sql的key、模块名称、接口名称
log.info(f"获取{row}行的sql语句,使用的方法为case_sql_data")
sql_data = self.__get_cell_value(row, "l")
module_name = self.case_module_name(row)
api_name = self.case_api_name(row)
if module_name and api_name and sql_data:
# 提取sql数据并返回
return self.sql_data_dict[module_name][api_name][sql_data]
def case_sql_type(self, row):
# 获取m列的sql类型
log.info(f"获取{row}行的sql类型,使用的方法为case_sql_type")
sql_type = self.__get_cell_value(row, "k")
if sql_type:
return sql_type.lower()
def update_sql_key(self, rowq):
# 获取n列的sql更新key
log.info(f"获取{rowq}行的sql更新key,使用的方法为update_sql_key")
return self.__get_cell_value(rowq, "m")
def get_data(self):
# 获取excel中的所有数据
# 返回一个二维列表,列表中存放每行相关数据
log.info("获取excel中的所有用例数据,使用的方法为get_data")
# 定义一个空列表,存放所有数据
case_data = []
# 循环获取有数据的最大行
for row in range(2, self.ws.max_row + 1):
# 根据行号获取每行的测试数据
get_method = self.case_req_method(row)
get_url = self.case_req_url(row)
get_mime = self.case_req_mime(row)
get_case_data_test = self.case_data_test(row)
get_except_data = self.except_data(row)
get_sql_data = self.case_sql_data(row)
get_sql_type = self.case_sql_type(row)
get_update_sql_key = self.update_sql_key(row)
# 过滤空行,然后将数据插入之前的空列表中
if get_method and get_url and get_except_data:
case_data.append(
[
get_method,
get_url,
get_mime,
get_case_data_test,
get_except_data,
get_sql_data,
get_sql_type,
get_update_sql_key
]
)
else:
return case_data
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: read_json.py
# Author: zhang
# Datetime: 2024/11/5 下午7:20
# Description:
#
# ---------------------------------------------------------------------------
from APIAutoTest_v3_1 import log
import json
import os
def read_json(file_path):
"""读取json文件,将json文件的内容序列化为python对象在返回"""
log.info(f"执行Read_json函数,读取json文件,文件路径为{file_path}")
if isinstance(file_path, str) and os.path.isfile(file_path) and file_path.endswith(".json"):
with open(file_path, "r", encoding="utf-8") as f:
try:
return json.load(f)
except Exception as e:
log.error(f"执行Read_json函数,读取json文件失败,错误类型为{type(e)},错误信息为{e}")
else:
log.error(f"执行Read_json函数,读取json文件失败,文件路径不合法,文件路径为{file_path}")
raise FileNotFoundError(f"文件路径不合法,文件路径为{file_path}")
if __name__ == '__main__':
print(read_json(r"C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\data_config\z1_data\case_data1.json"))
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: read_user_ini.py
# Author: zhang
# Datetime: 2024/11/5 下午7:05
# Description:
#
# ---------------------------------------------------------------------------
import os
from APIAutoTest_v3_1 import loger
import configparser
class ReadUserIni:
def __init__(self, user):
"""读取ini文件, 需要指明读取哪个用户的ini配置文件"""
self.data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data_config')
self.user_path = os.path.join(self.data_config_path, user)
ini_path = os.path.join(self.user_path, "config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path, encoding='utf-8')
@loger
def get_file_path(self, key):
"""根据key获取file节点下文件的路径"""
try:
file_name = self.conf.get('file', key)
except Exception as e:
raise e
else:
return os.path.join(self.user_path, file_name)
@loger
def get_table_name(self, key):
"""根据key获取table节点下工作表的名称"""
try:
return self.conf.get('table', key)
except Exception as e:
raise e
if __name__ == '__main__':
readuserini = ReadUserIni('z1_data')
print(readuserini.get_file_path('case'))
# 配置被测系统的域名
[host]
bpm=http://36.139.193.99:8088
# 数据库的链接信息
[mysql]
host=36.139.193.99
port=3306
user=root
pwd=Rhrc@2024
database=eip8
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: setting.py
# Author: zhang
# Datetime: 2024/11/6 下午3:29
# Description:
#
# ---------------------------------------------------------------------------
NUMBER = 'A'
MODULE = "B"
API = "C"
TITLE = "D"
LEVEL = 'E'
METHOD = "F"
PATH = "G"
MIME = "H"
CASE = "I"
EXPECT = 'J'
SQLTYPE = "K"
SQL = "L"
UPDATEKEY = 'M'
# ===========ini配置文件内的数据================
EXCEL_NAME = "excel"
CASE_NAME = "case"
EXPECT_NAME = "expect"
SQL_NAME = 'sql'
TABLE_NAME = 'name'
HOST_NAME = 'bpm'
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "test_add_dem1",
"description": "testDem",
"isDefault": 0,
"name": "测试添加的维度1"
}
},
"根据维度编码删除维度": {
"DleteDemSuccess": {
"ids": "需要更新"
},
"DeleteDemErrorIdIsNone": {
"ids": ""
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "test_add_org1",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织1",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"删除组织": {
"DleteOrgSuccess": "test_add_org1"
},
"保存组织参数": {
"SaveOrgParamsSuccess": {
"query": {
"orgCode": "test_add_org1"
},
"body": [
{
"alias": "sz",
"value": 2
}
]
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {
"id": "",
"account": "test_add_user1",
"address": "",
"email": "",
"fullname": "测试添加的用户1",
"mobile": "",
"password": "123456",
"photo": "",
"sex": "",
"status": 1
}
}
}
}
\ No newline at end of file
# 配置文件的名称
[file]
# 配置用例文件的路径
excel=APITest1.xlsx
case=case_data1.json
expect=expect_data1.json
# 配置sql语句信息
sql=sql_data1.json
# 配置excel文件工作表名称
[table]
name=维度和组织和用户接口测试
{
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"state": true,
"message": "添加维度成功!"
}
},
"根据维度编码删除维度": {
"DleteDemSuccess": {
"state": true,
"message": "删除维度成功!"
},
"DeleteDemErrorIdIsNone": {
"state": false,
"message": "维度id不能为空!"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"state": true,
"message": "添加组织成功!"
}
},
"删除组织": {
"DleteOrgSuccess": {
"state": true,
"message": "删除组织成功!"
}
},
"保存组织参数": {
"SaveOrgParamsSuccess": {
"state": true,
"message": "保存组织参数成功!"
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {
"state": true,
"message": "用户添加成功!"
}
}
}
}
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "delete from uc_demension where CODE_='test_add_dem1';"
},
"根据维度编码删除维度": {
"DleteDemSuccess": "select ID_ from uc_demension where CODE_='test_add_dem1';"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"delete": "delete from uc_org where CODE_='test_add_org1';",
"select": "select ID_ from uc_demension where CODE_='test_add_dem1';"
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": "delete from uc_user where ACCOUNT_=\"test_add_user1\";"
}
}
}
\ No newline at end of file
{
"认证接口": {
"登录系统": {
"LoginSuccesss": {
"username": "admin",
"password": "TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s="
},
"LoginErrorPasswordIsError": {
"username": "admin",
"password": "VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT"
},
"LoginErrorPasswordIsLong": {
"username": "admin",
"password": "VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg="
},
"LoginErrorPasswordIsShort": {
"username": "admin",
"password": "1"
},
"LoginErrorPasswordIsSpecial": {
"username": "admin",
"password": "✽✾✿❁❃❋❀⚘"
},
"LoginErrorPasswordIsnone": {
"username": "admin",
"password": ""
},
"LoginErrorUsernameIsError": {
"username": "a",
"password": "TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s="
},
"LoginErrorUsernameIsLong": {
"username": "adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin",
"password": "TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s="
},
"LoginErrorUsernameIsShort": {
"username": "ad",
"password": "TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s="
},
"LoginErrorUsernameIsSpecial": {
"username": "❋❀✾✿❁",
"password": "TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s="
},
"LoginErrorUsernameIsnone": {
"username": "",
"password": "TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s="
}
}
}
}
\ No newline at end of file
# 配置文件的名称
[file]
# 配置用例文件的路径
excel=APITest2.xlsx
case=case_data2.json
expect=expect_data2.json
# 配置sql语句信息
sql=sql_data2.json
# 配置excel文件工作表名称
[table]
name=认证接口测试
{
"认证接口": {
"登录系统": {
"LoginSuccesss": {
"username": "超级管理员",
"account": "admin"
},
"LoginErrorPasswordIsError": {
"state": false,
"message": "解密密码异常,请检查RSA公钥和私钥配置"
},
"LoginErrorPasswordIsLong": {
"state": false,
"message": "账号或密码错误"
},
"LoginErrorPasswordIsShort": {
"state": false,
"message": "账号或密码错误"
},
"LoginErrorPasswordIsSpecial": {
"state": false,
"message": "账号或密码错误"
},
"LoginErrorPasswordIsnone": {
"state": false,
"message": "账号或密码错误"
},
"LoginErrorUsernameIsError": {
"state": false,
"message": "账户错误或该租户未启用"
},
"LoginErrorUsernameIsLong": {
"state": false,
"message": "账户错误或该租户未启用"
},
"LoginErrorUsernameIsShort": {
"state": false,
"message": "账户错误或该租户未启用"
},
"LoginErrorUsernameIsSpecial": {
"state": false,
"message": "账户错误或该租户未启用"
},
"LoginErrorUsernameIsnone": {
"state": false,
"message": "账户错误或该租户未启用"
}
}
}
}
\ No newline at end of file
{"uuid": "96d1d715-ebdb-439a-b184-e1f8fd320a57", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547092, "stop": 1730876547092}], "start": 1730876547092, "stop": 1730876547116}
\ No newline at end of file
{"uuid": "f9c671cb-903c-4359-89e2-4757f6794fbd", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547264}
\ No newline at end of file
{"uuid": "759fc03e-f929-4bd3-a923-aed7e5da2060", "befores": [{"name": "mime", "status": "passed", "start": 1730876546580, "stop": 1730876546581}], "start": 1730876546580, "stop": 1730876546630}
\ No newline at end of file
{"uuid": "a1aa67fd-cf48-44f1-bc73-92307e971487", "befores": [{"name": "url", "status": "passed", "start": 1730876547485, "stop": 1730876547485}], "start": 1730876547485, "stop": 1730876547522}
\ No newline at end of file
{"uuid": "d8f650aa-ffcf-4ab3-a964-2cba2655198f", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547579, "stop": 1730876547579}], "start": 1730876547579, "stop": 1730876547610}
\ No newline at end of file
{"uuid": "5b42983d-a70a-4af6-a065-e8a47f399319", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547091, "stop": 1730876547091}], "start": 1730876547091, "stop": 1730876547118}
\ No newline at end of file
{"uuid": "cca6c75c-3f17-4220-bcbf-2fcf6ea0228b", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547475}
\ No newline at end of file
{"uuid": "bb0e0102-3515-454c-b8a1-50a601780850", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547406, "stop": 1730876547406}], "start": 1730876547406, "stop": 1730876547437}
\ No newline at end of file
{"uuid": "50ba6607-c397-4d8c-8e49-d1e6b99344ba", "befores": [{"name": "mime", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547569}
\ No newline at end of file
{"uuid": "a550654a-8905-49a9-8aab-bbf69c5aef11", "befores": [{"name": "method", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546701}
\ No newline at end of file
{"uuid": "1d7d40b5-2c64-4eca-bb2e-b2da6cc559c9", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547579, "stop": 1730876547579}], "start": 1730876547579, "stop": 1730876547609}
\ No newline at end of file
{"uuid": "0b40df5a-7296-45f7-8f53-311aa2382bc0", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547565}
\ No newline at end of file
{"uuid": "abf57a8f-a8ce-4976-981c-c64e19a4a598", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547479}
\ No newline at end of file
{"uuid": "0342ab93-9d39-4a5b-92f5-a5640da1f274", "befores": [{"name": "url", "status": "passed", "start": 1730876547091, "stop": 1730876547091}], "start": 1730876547091, "stop": 1730876547119}
\ No newline at end of file
{"uuid": "3d9ef09c-e1d5-455d-a83f-bfafa3e40857", "befores": [{"name": "method", "status": "passed", "start": 1730876547274, "stop": 1730876547275}], "start": 1730876547274, "stop": 1730876547328}
\ No newline at end of file
{"uuid": "7dacbb49-7ec2-41bf-a373-8a5fd31eebf5", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547356}
\ No newline at end of file
{"uuid": "c0010e24-da2a-43b8-bfa6-c678af6136d3", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547486, "stop": 1730876547486}], "start": 1730876547486, "stop": 1730876547518}
\ No newline at end of file
{"uuid": "c09009f2-7a47-482a-8832-6c3a8eae550b", "befores": [{"name": "mime", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547327}
\ No newline at end of file
{"uuid": "1cb40b6e-11ed-4f74-aced-a58a0e206927", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547559}
\ No newline at end of file
{"uuid": "3a1c245e-e53d-4688-ba5e-1bad2b0bec7a", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546976}
\ No newline at end of file
{"uuid": "37cb9c8c-3fa7-498c-8bc8-574db4a1f95b", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547485, "stop": 1730876547485}], "start": 1730876547485, "stop": 1730876547521}
\ No newline at end of file
{"uuid": "ce4f3587-6af7-476e-b2ad-a85a5f3c0f09", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547092, "stop": 1730876547092}], "start": 1730876547092, "stop": 1730876547114}
\ No newline at end of file
{"uuid": "8845676d-aa4e-45be-bf16-8006eeec8b18", "befores": [{"name": "case_data", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546699}
\ No newline at end of file
{"uuid": "fafdf3de-8df0-46ab-80fa-5feb916b0bf5", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876546581, "stop": 1730876546581}], "start": 1730876546581, "stop": 1730876546628}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]", "status": "passed", "attachments": [{"name": "log", "source": "47593bae-7534-4f0f-a427-5519a9dc8090-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/user/v1/user/addUser'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"}, {"name": "expect_data", "value": "{'state': True, 'message': '用户添加成功!'}"}, {"name": "sql_data", "value": "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'"}, {"name": "sql_type", "value": "'delete'"}, {"name": "updata_key", "value": "None"}], "start": 1730876547035, "stop": 1730876547081, "uuid": "f941da6b-7991-4af1-b2dd-4052fd97ddff", "historyId": "4dfee95d6f1c765e67309c2fac89eab0", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017655603200'}
\ No newline at end of file
{"uuid": "3a81aff9-5eba-42d0-81e8-fc8373750251", "befores": [{"name": "mime", "status": "passed", "start": 1730876547206, "stop": 1730876547206}], "start": 1730876547206, "stop": 1730876547244}
\ No newline at end of file
{"uuid": "dce32f19-8d5f-4ebc-b071-327b42b156bb", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547578, "stop": 1730876547578}], "start": 1730876547578, "stop": 1730876547612}
\ No newline at end of file
{"uuid": "aebc7e25-eeae-41b6-9490-4df4703b02e4", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547082}
\ No newline at end of file
{"uuid": "05c62000-742e-411f-91f6-91c72cb1f582", "befores": [{"name": "url", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546981}
\ No newline at end of file
{"uuid": "1a8e3f80-faf9-4370-a8f4-290833587ee2", "befores": [{"name": "method", "status": "passed", "start": 1730876547405, "stop": 1730876547405}], "start": 1730876547405, "stop": 1730876547441}
\ No newline at end of file
{"uuid": "d3f6e722-bd9f-4ac1-8385-1f7e0f1369f2", "befores": [{"name": "url", "status": "passed", "start": 1730876546580, "stop": 1730876546580}], "start": 1730876546580, "stop": 1730876546631}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "424ed50d-292f-40d0-ab47-7faff42be6ae-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547406, "stop": 1730876547436, "uuid": "fbc88b0d-b811-4838-887d-a3db77b6898b", "historyId": "ca40e9cfcc4754a55826d53d695e1929", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "6e82f579-b287-4654-ac83-c5264b4e356d-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547364, "stop": 1730876547395, "uuid": "93f37b39-a47a-4766-8a52-e8c566c21012", "historyId": "21b9a7673b965041a3472f9d7811013f", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
INFO  root:DB.py:48 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:select ID_ from uc_demension where CODE_='test_add_dem1';
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'ids': '1854056013708763136'},期望数据为{'state': True, 'message': '删除维度成功!'},服务器返回结果为删除维度成功!
\ No newline at end of file
{"uuid": "728d36bc-da19-4f33-aac8-182ff3a65ef4", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547027}
\ No newline at end of file
{"uuid": "4e45bec6-a797-431b-a4cf-2eded78685a5", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547085}
\ No newline at end of file
{"uuid": "74e575f0-93af-49c6-a690-328154731a64", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547397}
\ No newline at end of file
{"uuid": "8e29030f-cd2b-46da-8212-ced5142f1dd8", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547406, "stop": 1730876547406}], "start": 1730876547406, "stop": 1730876547439}
\ No newline at end of file
{"uuid": "da21229c-5139-4abb-9311-506742805622", "befores": [{"name": "method", "status": "passed", "start": 1730876547578, "stop": 1730876547578}], "start": 1730876547578, "stop": 1730876547616}
\ No newline at end of file
{"uuid": "01fed45e-201f-493b-bac2-565af98360fa", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547266}
\ No newline at end of file
{"uuid": "c765a9d6-528c-4147-a7b5-ee08173d693f", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547568}
\ No newline at end of file
{"uuid": "ecf5ff4b-c972-4079-a8cf-7e6e69a423c0", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547742}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置', 'code': 200, 'logId': '1854056016435060736'}
\ No newline at end of file
{"uuid": "d5f428f8-2c36-4f84-bb19-a560c3ce5034", "befores": [{"name": "mime", "status": "passed", "start": 1730876547578, "stop": 1730876547578}], "start": 1730876547578, "stop": 1730876547614}
\ No newline at end of file
{"uuid": "8df04757-9011-4498-b707-84547b3eaea5", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546696}
\ No newline at end of file
{"uuid": "87621478-c900-4b36-8250-d57e93a8b672", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547399}
\ No newline at end of file
{"uuid": "00c3be86-5716-467c-a2f1-bf01c3fc04bb", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876546581, "stop": 1730876546581}], "start": 1730876546581, "stop": 1730876546626}
\ No newline at end of file
{"uuid": "1bf8956d-17ac-417e-a0e4-7bf070111833", "befores": [{"name": "url", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547087}
\ No newline at end of file
{"uuid": "0936b0fa-7082-4019-a3ab-eb22e0b75d82", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547325}
\ No newline at end of file
{"uuid": "c1e66347-4e7d-4299-8874-495256ae9c54", "befores": [{"name": "method", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547271}
\ No newline at end of file
{"uuid": "401915cf-5c67-45ea-93f0-c021938c3084", "befores": [{"name": "mime", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547086}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账号或密码错误', 'code': 200, 'logId': '1854056017152286720'}
\ No newline at end of file
{"uuid": "f098e733-c309-4edc-ba7a-1f4fd10ebd3b", "befores": [{"name": "mime", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547358}
\ No newline at end of file
{"name": "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\n \n - 维度id不能为空!\n + 删除维度失败,维度ids必填", "trace": "self = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78ADF0740>, method = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}\")\n> raise e\n\ntest_case\\test_z1\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78ADF0740>, method = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_case\\test_z1\\test_bpm.py:31: AssertionError"}, "attachments": [{"name": "log", "source": "588fba68-4dcf-429f-a9e6-be39a702269b-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '维度id不能为空!'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547092, "stop": 1730876547106, "uuid": "f930505e-cabe-4a65-9791-44b36d5cb990", "historyId": "8f200ca3b399202a3f0140a1768b3848", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
{"uuid": "e4e8ac7e-53c5-422a-96b5-80efd51e87ae", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547485, "stop": 1730876547485}], "start": 1730876547485, "stop": 1730876547519}
\ No newline at end of file
INFO  root:DB.py:34 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_user where ACCOUNT_="test_add_user1";
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为{'state': True, 'message': '用户添加成功!'},服务器返回结果为用户添加成功!
\ No newline at end of file
{"uuid": "50018b57-79ae-473f-acfb-7c48bc6e60df", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547406, "stop": 1730876547406}], "start": 1730876547406, "stop": 1730876547436}
\ No newline at end of file
{"uuid": "a4a849d6-19d4-4ab7-abc7-778ffd949b4b", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546978}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "364ecc2e-2910-4696-8d28-ffc524e3a996-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547250, "stop": 1730876547263, "uuid": "04954c0c-823f-4a1c-944c-b8e15fc4e0e8", "historyId": "bcdac871da97806e6fa8d8409123a6b4", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "e89b1d70-f6f2-4f69-aeae-b599ca77ab4d", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547473}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: assert None == False\n + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\n + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\n + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\n + where json = <Response [200]>.json", "trace": "self = <APIAutoTest_v3_1.test_case.test_z2.test_bpm.TestBpm object at 0x000001C78B0FBC80>, method = 'post'\nurl = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzw...5wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0EAC90>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,错误信息为{e}\")\n> raise e\n\ntest_case\\test_z2\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z2.test_bpm.TestBpm object at 0x000001C78B0FBC80>, method = 'post'\nurl = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzw...5wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0EAC90>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\nE + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_z2\\test_bpm.py:31: AssertionError"}, "attachments": [{"name": "log", "source": "7e257c4a-0185-46ec-9ad5-0ce266c0e8e5-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547276, "stop": 1730876547315, "uuid": "31e02d0b-b2f1-4166-8e55-c7fba8d5397a", "historyId": "82f85d7dc53a0d8ecc0cff6807a349c9", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "c6d0a4c9-7a20-4931-8153-f6802a6a2466", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876546581, "stop": 1730876546581}], "start": 1730876546581, "stop": 1730876546629}
\ No newline at end of file
{"uuid": "784413d2-e3e4-4a64-b506-0dda5fa0ece6", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547027}
\ No newline at end of file
{"uuid": "69b10c10-adc4-4b13-886a-484ec6fd4faa", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546742}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "e3bace53-5954-4756-8c53-020221612d54-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '1'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547332, "stop": 1730876547353, "uuid": "77348f04-43f5-4b78-ba82-e86527886645", "historyId": "a9a2db5af6a631f249bab114446a589f", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "2dabba46-2cd8-4495-8f20-0ef57632b6e0", "befores": [{"name": "method", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547572}
\ No newline at end of file
{"uuid": "98d28a60-5ab0-4adf-9d2d-66e2d9ded316", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547621, "stop": 1730876547621}], "start": 1730876547620, "stop": 1730876547650}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017311670272'}
\ No newline at end of file
{"uuid": "29177118-c484-48c5-8eb7-0a2493172b46", "befores": [{"name": "mime", "status": "passed", "start": 1730876547405, "stop": 1730876547406}], "start": 1730876547405, "stop": 1730876547440}
\ No newline at end of file
{"uuid": "8f3fd228-def2-44e3-99f7-17472730a533", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547743}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "5432acea-1bf3-4982-9012-1cc14b367bf4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547445, "stop": 1730876547473, "uuid": "07109e65-91b9-4b1f-9596-914b3fb302b4", "historyId": "efef61af5e3190b506eb2f69f48c26da", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "84a4889c-8964-4697-8906-856c2afccaa2", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547476}
\ No newline at end of file
ERROR  root:test_bpm.py:33 用例断言失败,用例数据为{'ids': ''},期望数据为{'state': False, 'message': '维度id不能为空!'},服务器返回结果为删除维度失败,维度ids必填
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "1ce32f29-4f61-4061-8f57-c4c2b5026d50-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547527, "stop": 1730876547557, "uuid": "2ba4903f-be6d-4125-b2f7-e19894fe137d", "historyId": "fdd49eb08dcd6c8b4a7af97c669daff7", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "9ccc7e2a-86cb-42d6-9231-6ec0e889cb06", "befores": [{"name": "url", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547401}
\ No newline at end of file
{"uuid": "95d11daa-de4f-4390-a3d5-0ce973558503", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547744}
\ No newline at end of file
{"uuid": "5cec89b9-cf56-46f0-9230-bddb46389f48", "befores": [{"name": "mime", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547479}
\ No newline at end of file
ERROR  root:test_bpm.py:33 用例断言失败,用例数据为{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]},期望数据为{'state': True, 'message': '保存组织参数成功!'},服务器返回结果为False
\ No newline at end of file
{"uuid": "d2da4b25-db90-4c27-a156-30f83c357e02", "befores": [{"name": "case_data", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547028}
\ No newline at end of file
{"uuid": "4b5c235c-2060-4f4f-8582-4cf8f41826ff", "befores": [{"name": "method", "status": "passed", "start": 1730876547206, "stop": 1730876547206}], "start": 1730876547206, "stop": 1730876547246}
\ No newline at end of file
{"uuid": "54dd65e6-3392-4012-b3dd-f25f62ac8570", "befores": [{"name": "mime", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547400}
\ No newline at end of file
{"uuid": "1bc7678d-09f1-4287-8c48-20f2492e4ff0", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547354}
\ No newline at end of file
{"uuid": "09a6a438-640d-476b-b9f8-0b56dce88835", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547263}
\ No newline at end of file
{"uuid": "35d20894-28d5-45ce-b684-b5af89b33cb5", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547086}
\ No newline at end of file
{"uuid": "6e9b7754-e28a-48b7-a751-3dc50f71a2d7", "befores": [{"name": "url", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547746}
\ No newline at end of file
{"uuid": "57cd6050-08f6-4656-a102-5f8babf46a14", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547206, "stop": 1730876547206}], "start": 1730876547206, "stop": 1730876547242}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账号或密码错误', 'code': 200, 'logId': '1854056016980320256'}
\ No newline at end of file
{"uuid": "aabc8b84-703b-48ce-9928-be78a09602a5", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547326}
\ No newline at end of file
{"uuid": "2183a3f7-dc9e-4a57-a6a7-0c34513632a8", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547485, "stop": 1730876547485}], "start": 1730876547485, "stop": 1730876547520}
\ No newline at end of file
{"uuid": "6a30f0d2-5414-448d-91bf-45aa308bb140", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547478}
\ No newline at end of file
{"uuid": "b57c9d68-bfee-4a99-85df-bc094ec9813a", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547355}
\ No newline at end of file
{"uuid": "b13b1de5-fc83-4c76-bf9e-b4d4322c0c69", "befores": [{"name": "url", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546804}
\ No newline at end of file
{"uuid": "5cbd5e9e-9fd2-43dd-919b-cfd2a651ff0d", "befores": [{"name": "method", "status": "passed", "start": 1730876547091, "stop": 1730876547091}], "start": 1730876547091, "stop": 1730876547120}
\ No newline at end of file
{"uuid": "ee5d8608-d7dc-4d06-87dd-1847f2bbb9a0", "befores": [{"name": "method", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547402}
\ No newline at end of file
{"uuid": "82dbdf5e-600b-4151-9683-52d52b7ff136", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876546581, "stop": 1730876546581}], "start": 1730876546581, "stop": 1730876546627}
\ No newline at end of file
{"uuid": "1cf79874-d842-4d01-a799-61d359403d5f", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546698}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,用例数据为test_add_org1,期望数据为{'state': True, 'message': '删除组织成功!'},服务器返回结果为删除组织成功!
\ No newline at end of file
{"uuid": "04155ef5-aa29-4d60-b5e5-9e4058661ca6", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547326}
\ No newline at end of file
{"uuid": "88ea1cc9-ae17-4b91-917d-de555967eeb0", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547561}
\ No newline at end of file
ERROR  root:test_bpm.py:33 用例断言失败,错误信息为assert None == False
+ where None = <built-in method get of dict object at 0x000001C78B062000>('state')
+ where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get
+ where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()
+ where json = <Response [200]>.json
\ No newline at end of file
{"uuid": "c467996d-8624-4bb6-9c7b-c0c44554aff1", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547083}
\ No newline at end of file
INFO  root:DB.py:34 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_org where CODE_='test_add_org1';
INFO  root:DB.py:48 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:select ID_ from uc_demension where CODE_='test_add_dem1';
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'code': 'test_add_org1', 'demId': '1854056013708763136', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为{'state': True, 'message': '添加组织成功!'},服务器返回结果为添加组织成功!
\ No newline at end of file
{"uuid": "ba6782a4-14f0-468d-9795-3619e5db4a29", "befores": [{"name": "url", "status": "passed", "start": 1730876547405, "stop": 1730876547405}], "start": 1730876547405, "stop": 1730876547440}
\ No newline at end of file
{"uuid": "169c388b-a149-4db5-a791-b3735ed7c849", "befores": [{"name": "url", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547030}
\ No newline at end of file
{"uuid": "73a0cf09-40c4-48a4-89b7-819d08fdca3a", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547207, "stop": 1730876547207}], "start": 1730876547207, "stop": 1730876547241}
\ No newline at end of file
{"uuid": "12b00838-5b17-4029-93e7-4fa32fdaffef", "befores": [{"name": "url", "status": "passed", "start": 1730876547578, "stop": 1730876547578}], "start": 1730876547578, "stop": 1730876547615}
\ No newline at end of file
{"uuid": "b4f4b55b-2dbd-4ccb-8d89-588fefe2e9f0", "befores": [{"name": "url", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547327}
\ No newline at end of file
INFO  root:read_basic_ini.py:24 执行get_host方法,读取配置文件,获取host节点下,根据key获取被测系统的域名,key为bpm
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为host
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为port
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为user
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为pwd
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为database
INFO  root:DB.py:34 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_demension where CODE_='test_add_dem1';
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'},期望数据为{'state': True, 'message': '添加维度成功!'},服务器返回结果为添加维度成功!
\ No newline at end of file
{"uuid": "6bf65d20-9ef6-4998-865b-874261b5bf0f", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547406, "stop": 1730876547406}], "start": 1730876547406, "stop": 1730876547438}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]", "status": "passed", "attachments": [{"name": "log", "source": "82b94c03-dacb-4c35-b9ca-3d26559622be-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_data", "value": "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}"}, {"name": "sql_type", "value": "'select|delete'"}, {"name": "updata_key", "value": "'demId'"}], "start": 1730876546636, "stop": 1730876546695, "uuid": "ce61ced1-1eac-4076-ba8d-a218af87c59b", "historyId": "e037c8e8a5f8ba03c3a80c073b2ed825", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
{"uuid": "5f261e2d-8e56-4526-9f94-cc9a85a39a09", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547323}
\ No newline at end of file
{"uuid": "6036974d-970a-40c5-bdfd-ed9907a04160", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547396}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "7bc92c6c-aa67-4968-a165-5c20756c4477-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'application/x-www-form-urlencoded'"}, {"name": "case_data", "value": "'test_add_org1'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876546706, "stop": 1730876546740, "uuid": "a2840887-e42e-482d-aa04-cf6486e09fa3", "historyId": "aafab6f25a7a1d55e7b26b348bded0f2", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
{"uuid": "a3998e65-2680-43a8-83df-d032ca2e585f", "befores": [{"name": "case_data", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546980}
\ No newline at end of file
{"uuid": "78e02ccc-0f5e-460c-a5b4-e650eaa96af8", "befores": [{"name": "method", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547088}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "d85ccdc9-b295-402d-be86-76e0bde6fb3c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547486, "stop": 1730876547517, "uuid": "38ed55e2-7227-4d56-b267-9d52be374d25", "historyId": "15bda3ea496705b7f66322ac8bc21d5b", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "ea8fbf0c-9f6a-470e-b35b-f99bc8694dfd", "befores": [{"name": "mime", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547745}
\ No newline at end of file
{"uuid": "2ba3560b-8a62-4a02-b3b1-d0d3cf3dac8b", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547275, "stop": 1730876547275}], "start": 1730876547275, "stop": 1730876547324}
\ No newline at end of file
{"uuid": "c5f7b69a-74cb-457e-a316-6fbf65be55f2", "befores": [{"name": "method", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546805}
\ No newline at end of file
{"uuid": "90ffda50-6774-4f20-a1fd-e322a3d8f6ec", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547026}
\ No newline at end of file
{"uuid": "cc5849a6-a237-4de0-98a3-6e64d8452d1d", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546743}
\ No newline at end of file
{"uuid": "d0069ab7-a063-42a7-9bd2-3c0a64b918e4", "befores": [{"name": "method", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547747}
\ No newline at end of file
INFO  root:read_basic_ini.py:24 执行get_host方法,读取配置文件,获取host节点下,根据key获取被测系统的域名,key为bpm
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为host
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为port
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为user
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为pwd
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为database
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjI3NzUsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', 'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True, 'userAttrs': {'tenantId': '-1'}}
\ No newline at end of file
{"uuid": "36879028-030d-4c8d-9263-e41dc1932828", "befores": [{"name": "url", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547480}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017882095616'}
\ No newline at end of file
{"uuid": "9097586b-17bd-4138-b456-29b6e889dbd4", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547558}
\ No newline at end of file
{"uuid": "0b6d0fb0-1c39-4e2d-90d8-5771487a1fde", "befores": [{"name": "method", "status": "passed", "start": 1730876547485, "stop": 1730876547485}], "start": 1730876547485, "stop": 1730876547523}
\ No newline at end of file
{"uuid": "3fe8a516-ab85-4892-85f1-377467f2d59b", "befores": [{"name": "url", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547269}
\ No newline at end of file
{"uuid": "208946f0-170b-4874-99dd-be1813000001", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546977}
\ No newline at end of file
{"uuid": "a2803a9a-4adb-4920-b677-8515094f10d4", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876547620, "stop": 1730876547620}], "start": 1730876547620, "stop": 1730876547742}
\ No newline at end of file
{"uuid": "6493f9e5-e829-4614-850d-555950927c27", "befores": [{"name": "mime", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546803}
\ No newline at end of file
{"uuid": "84771133-64f5-4d3a-9ce1-80071fa439e3", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547092, "stop": 1730876547092}], "start": 1730876547092, "stop": 1730876547113}
\ No newline at end of file
{"uuid": "00095084-c6c9-4e85-b46f-ac2d8882fcfa", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546979}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "cc023d72-3370-4afd-a396-e5f723438a57-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547621, "stop": 1730876547650, "uuid": "95765080-8b98-4f0e-96f4-3c111ef14355", "historyId": "cc20daa444e4788c36894a68e4591ff0", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "b93e36d7-26fc-4fe8-bd78-fe69be90e5e9", "befores": [{"name": "mime", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546700}
\ No newline at end of file
{"uuid": "c8494077-f451-4b4a-95a9-fe286589b006", "children": ["b2fddba6-ea9d-4871-8d16-5756a434c4c1", "04954c0c-823f-4a1c-944c-b8e15fc4e0e8", "31e02d0b-b2f1-4166-8e55-c7fba8d5397a", "77348f04-43f5-4b78-ba82-e86527886645", "93f37b39-a47a-4766-8a52-e8c566c21012", "fbc88b0d-b811-4838-887d-a3db77b6898b", "07109e65-91b9-4b1f-9596-914b3fb302b4", "38ed55e2-7227-4d56-b267-9d52be374d25", "2ba4903f-be6d-4125-b2f7-e19894fe137d", "4843c218-7e53-4e7e-b900-6f9dc04089b0", "95765080-8b98-4f0e-96f4-3c111ef14355"], "befores": [{"name": "req_fix", "status": "passed", "start": 1730876547125, "stop": 1730876547206}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1730876547748, "stop": 1730876547749}], "start": 1730876547125, "stop": 1730876547749}
\ No newline at end of file
{"uuid": "9da0d06a-fbf0-47b5-9dc6-9686174844fb", "befores": [{"name": "mime", "status": "passed", "start": 1730876547091, "stop": 1730876547091}], "start": 1730876547091, "stop": 1730876547119}
\ No newline at end of file
{"uuid": "8f4ca00b-b0d3-47e1-b963-bed459224d6b", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546697}
\ No newline at end of file
{"uuid": "6c243772-8f47-4d5c-9941-0682e5762d48", "befores": [{"name": "case_data", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546802}
\ No newline at end of file
{"uuid": "5b3647a0-b89c-4228-ba7b-6eff8f847af5", "befores": [{"name": "url", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547359}
\ No newline at end of file
{"uuid": "52fccd57-4a7b-44f5-831e-b47cc31732da", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546697}
\ No newline at end of file
{"uuid": "a30e7117-143a-4e4f-993f-4a0f37f7dc37", "befores": [{"name": "method", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546991}
\ No newline at end of file
{"uuid": "5a930a33-8597-4b5b-8ab0-a93db3b0d84c", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547034, "stop": 1730876547034}], "start": 1730876547034, "stop": 1730876547084}
\ No newline at end of file
{"uuid": "af85b21d-a6f6-4533-8eed-20ccffd80252", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547028}
\ No newline at end of file
{"uuid": "7f22445c-6f6a-41ff-abbb-5c175deb24f5", "befores": [{"name": "mime", "status": "passed", "start": 1730876546809, "stop": 1730876546809}], "start": 1730876546809, "stop": 1730876546980}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056018054062080'}
\ No newline at end of file
{"uuid": "d7f300e9-489d-426a-87d9-ea899288f23f", "children": ["deac2b86-caba-4277-a1fc-900ab89ca0ea", "ce61ced1-1eac-4076-ba8d-a218af87c59b", "a2840887-e42e-482d-aa04-cf6486e09fa3", "8daa40ef-194e-4334-9156-9095a0c000e5", "b3b6cec1-35dd-4abf-8425-ca1ad3f156cf", "f941da6b-7991-4af1-b2dd-4052fd97ddff", "f930505e-cabe-4a65-9791-44b36d5cb990"], "befores": [{"name": "req_fix", "status": "passed", "start": 1730876546473, "stop": 1730876546578}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1730876547750, "stop": 1730876547750}], "start": 1730876546473, "stop": 1730876547750}
\ No newline at end of file
{"uuid": "1eded9cd-269e-48a5-b626-d8bf83585022", "befores": [{"name": "mime", "status": "passed", "start": 1730876547485, "stop": 1730876547485}], "start": 1730876547485, "stop": 1730876547522}
\ No newline at end of file
{"uuid": "503e0852-6744-4bfb-a283-0175fb48e6d7", "befores": [{"name": "method", "status": "passed", "start": 1730876547444, "stop": 1730876547444}], "start": 1730876547444, "stop": 1730876547481}
\ No newline at end of file
{"uuid": "359126a0-4fd2-4fcb-8f73-c1d50f227e57", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547578, "stop": 1730876547578}], "start": 1730876547578, "stop": 1730876547613}
\ No newline at end of file
{"uuid": "0d3ea50e-9675-433f-8d01-0a0e1ed4a1a4", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547268}
\ No newline at end of file
{"uuid": "0f406dbb-fa2f-464f-b0d8-2c091ca5911d", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547266}
\ No newline at end of file
{"uuid": "ae8fee66-6276-4b6a-831e-804beab0a2ac", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547357}
\ No newline at end of file
{"uuid": "fb7c6660-7917-4607-a0dd-f922f7ea5621", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547353}
\ No newline at end of file
{"uuid": "fa9e28f2-30ef-4c36-ac04-0e029c121111", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547486, "stop": 1730876547486}], "start": 1730876547486, "stop": 1730876547517}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017492025344'}
\ No newline at end of file
{"uuid": "2e0bac22-2293-4bd9-9528-2d82da75bb4a", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547398}
\ No newline at end of file
{"uuid": "9f3fbce3-79a1-4231-b322-083fff341b69", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876547207, "stop": 1730876547207}], "start": 1730876547207, "stop": 1730876547240}
\ No newline at end of file
{"name": "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]", "status": "passed", "attachments": [{"name": "log", "source": "266ac05c-f092-43bc-bfcb-18e0db5f3429-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'delete'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '需要更新'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_data", "value": "'select ID_ from uc_demension where CODE_='test_add_dem1';'"}, {"name": "sql_type", "value": "'select'"}, {"name": "updata_key", "value": "'ids'"}], "start": 1730876546995, "stop": 1730876547025, "uuid": "b3b6cec1-35dd-4abf-8425-ca1ad3f156cf", "historyId": "81c49a1d0fd143ea54843ad07616e170", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: assert False == True\n + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\n + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\n + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\n + where json = <Response [200]>.json", "trace": "self = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78AD71850>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 2}], 'query': {'orgCode': 'test_add_org1'}}\nexpect_data = {'message': '保存组织参数成功!', 'state': True}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}\")\n> raise e\n\ntest_case\\test_z1\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78AD71850>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 2}], 'query': {'orgCode': 'test_add_org1'}}\nexpect_data = {'message': '保存组织参数成功!', 'state': True}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\nE + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\nE + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_z1\\test_bpm.py:31: AssertionError"}, "attachments": [{"name": "log", "source": "63400aa8-2f20-4cfa-98d6-11c8da00bf6b-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876546810, "stop": 1730876546825, "uuid": "8daa40ef-194e-4334-9156-9095a0c000e5", "historyId": "f84ad7e16efd7f41a6e1f6b51fd7957d", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账号或密码错误', 'code': 200, 'logId': '1854056016812548096'}
\ No newline at end of file
{"uuid": "8886af33-2d53-4a44-9611-fda2f3bed705", "befores": [{"name": "updata_key", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546740}
\ No newline at end of file
{"uuid": "74768c53-78f1-4eda-8611-31004691c71c", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547406, "stop": 1730876547406}], "start": 1730876547406, "stop": 1730876547440}
\ No newline at end of file
{"uuid": "d9eb85f5-9df8-4438-98f4-50d7f9f90bb4", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547578, "stop": 1730876547578}], "start": 1730876547578, "stop": 1730876547611}
\ No newline at end of file
{"uuid": "70097c7f-8104-4c4e-8a38-af26525db3c6", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547092, "stop": 1730876547092}], "start": 1730876547091, "stop": 1730876547117}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "ac5e55b9-c004-4c77-873d-4dd80f781906-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547580, "stop": 1730876547608, "uuid": "4843c218-7e53-4e7e-b900-6f9dc04089b0", "historyId": "6a6936a8b1638f057d6aba7dd10f70ca", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "328d0dd2-1f56-40ad-8f63-7bed42d6f347", "befores": [{"name": "case_data", "status": "passed", "start": 1730876547206, "stop": 1730876547206}], "start": 1730876547206, "stop": 1730876547243}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]", "status": "passed", "attachments": [{"name": "log", "source": "90c0c2b7-8c7a-4ade-a4a5-3de3fb76e748-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_data", "value": "'delete from uc_demension where CODE_='test_add_dem1';'"}, {"name": "sql_type", "value": "'delete'"}, {"name": "updata_key", "value": "None"}], "start": 1730876546583, "stop": 1730876546625, "uuid": "deac2b86-caba-4277-a1fc-900ab89ca0ea", "historyId": "7ca1568e3ff7dfe3ee5b1c273de7ddb8", "testCaseId": "529c0aa78eaae214767e6feb4e97ba1f", "fullName": "test_case.test_z1.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z1"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z1.test_bpm"}]}
\ No newline at end of file
{"uuid": "890cb239-4c57-4c48-a9f3-992a3461e1fa", "befores": [{"name": "sql_type", "status": "passed", "start": 1730876546705, "stop": 1730876546705}], "start": 1730876546705, "stop": 1730876546741}
\ No newline at end of file
{"uuid": "7c2c3558-e62d-4eb3-aed7-70163dcbcd55", "befores": [{"name": "mime", "status": "passed", "start": 1730876546995, "stop": 1730876546995}], "start": 1730876546995, "stop": 1730876547029}
\ No newline at end of file
{"uuid": "54961344-6685-4db5-b03e-e2c27d5363fc", "befores": [{"name": "sql_data", "status": "passed", "start": 1730876547206, "stop": 1730876547207}], "start": 1730876547206, "stop": 1730876547242}
\ No newline at end of file
{"uuid": "840a560d-9bb8-4993-b8ff-3c84fc01a47a", "befores": [{"name": "method", "status": "passed", "start": 1730876546994, "stop": 1730876546995}], "start": 1730876546994, "stop": 1730876547031}
\ No newline at end of file
{"uuid": "50c14a69-3402-41ff-981d-ce40dbdf9aca", "befores": [{"name": "expect_data", "status": "passed", "start": 1730876547363, "stop": 1730876547363}], "start": 1730876547363, "stop": 1730876547399}
\ No newline at end of file
{"uuid": "ba5a2785-4c96-444a-b2cd-94ec7870e790", "befores": [{"name": "method", "status": "passed", "start": 1730876546579, "stop": 1730876546580}], "start": 1730876546579, "stop": 1730876546632}
\ No newline at end of file
{"uuid": "f5b2c007-4f15-44a4-ae2b-3f0465ff15fc", "befores": [{"name": "mime", "status": "passed", "start": 1730876547249, "stop": 1730876547249}], "start": 1730876547249, "stop": 1730876547268}
\ No newline at end of file
{"uuid": "3874ff5f-bb91-47a4-a487-14bd69d3ddb9", "befores": [{"name": "url", "status": "passed", "start": 1730876547526, "stop": 1730876547526}], "start": 1730876547526, "stop": 1730876547570}
\ No newline at end of file
{"uuid": "ab4385b0-2546-4bba-babe-ac8c736fce2a", "befores": [{"name": "url", "status": "passed", "start": 1730876547206, "stop": 1730876547206}], "start": 1730876547206, "stop": 1730876547245}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "a8e407d5-0210-426f-9092-8ffb7bd1ae6c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin'}"}, {"name": "sql_data", "value": "None"}, {"name": "sql_type", "value": "None"}, {"name": "updata_key", "value": "None"}], "start": 1730876547207, "stop": 1730876547239, "uuid": "b2fddba6-ea9d-4871-8d16-5756a434c4c1", "historyId": "f1308385481eb5a7536512e6898de046", "testCaseId": "e7b6679a40124586762ee51d79eb00c4", "fullName": "test_case.test_z2.test_bpm.TestBpm#test_bpm", "labels": [{"name": "parentSuite", "value": "test_case.test_z2"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-2NSIU9K"}, {"name": "thread", "value": "13552-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_z2.test_bpm"}]}
\ No newline at end of file
{"uuid": "0c5af046-4371-4420-9a70-b5ee5b38e7d7", "befores": [{"name": "case_data", "status": "passed", "start": 1730876546581, "stop": 1730876546581}], "start": 1730876546581, "stop": 1730876546630}
\ No newline at end of file
{"uuid": "7f0a357d-3d81-4716-bc87-8b9c8889465c", "befores": [{"name": "url", "status": "passed", "start": 1730876546635, "stop": 1730876546635}], "start": 1730876546635, "stop": 1730876546700}
\ No newline at end of file
{"uuid": "e29485e3-2365-4ed3-88d3-b377fd341fe2", "befores": [{"name": "method", "status": "passed", "start": 1730876547331, "stop": 1730876547331}], "start": 1730876547331, "stop": 1730876547360}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
INFO  root:DB.py:48 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:select ID_ from uc_demension where CODE_='test_add_dem1';
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'ids': '1854056013708763136'},期望数据为{'state': True, 'message': '删除维度成功!'},服务器返回结果为删除维度成功!
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账号或密码错误', 'code': 200, 'logId': '1854056016980320256'}
\ No newline at end of file
INFO  root:read_basic_ini.py:24 执行get_host方法,读取配置文件,获取host节点下,根据key获取被测系统的域名,key为bpm
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为host
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为port
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为user
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为pwd
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为database
INFO  root:DB.py:34 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_demension where CODE_='test_add_dem1';
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'},期望数据为{'state': True, 'message': '添加维度成功!'},服务器返回结果为添加维度成功!
\ No newline at end of file
INFO  root:DB.py:34 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_org where CODE_='test_add_org1';
INFO  root:DB.py:48 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:select ID_ from uc_demension where CODE_='test_add_dem1';
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'code': 'test_add_org1', 'demId': '1854056013708763136', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为{'state': True, 'message': '添加组织成功!'},服务器返回结果为添加组织成功!
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账号或密码错误', 'code': 200, 'logId': '1854056016812548096'}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017492025344'}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017655603200'}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账号或密码错误', 'code': 200, 'logId': '1854056017152286720'}
\ No newline at end of file
INFO  root:DB.py:34 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_user where ACCOUNT_="test_add_user1";
INFO  root:test_bpm.py:36 用例断言成功,用例数据为{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为{'state': True, 'message': '用户添加成功!'},服务器返回结果为用户添加成功!
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017882095616'}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置', 'code': 200, 'logId': '1854056016435060736'}
\ No newline at end of file
INFO  root:read_basic_ini.py:24 执行get_host方法,读取配置文件,获取host节点下,根据key获取被测系统的域名,key为bpm
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为host
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为port
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为user
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为pwd
INFO  root:read_basic_ini.py:32 执行get_connect_sql_msg方法,读取配置文件,获取mysql节点下,根据key获取数据库连接信息,key为database
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjI3NzUsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', 'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True, 'userAttrs': {'tenantId': '-1'}}
\ No newline at end of file
ERROR  root:test_bpm.py:33 用例断言失败,用例数据为{'ids': ''},期望数据为{'state': False, 'message': '维度id不能为空!'},服务器返回结果为删除维度失败,维度ids必填
\ No newline at end of file
ERROR  root:test_bpm.py:33 用例断言失败,错误信息为assert None == False
+ where None = <built-in method get of dict object at 0x000001C78B062000>('state')
+ where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get
+ where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()
+ where json = <Response [200]>.json
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,用例数据为test_add_org1,期望数据为{'state': True, 'message': '删除组织成功!'},服务器返回结果为删除组织成功!
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056017311670272'}
\ No newline at end of file
INFO  root:test_bpm.py:36 用例断言成功,返回结果为{'state': False, 'message': '账户错误或该租户未启用', 'code': 200, 'logId': '1854056018054062080'}
\ No newline at end of file
ERROR  root:test_bpm.py:33 用例断言失败,用例数据为{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]},期望数据为{'state': True, 'message': '保存组织参数成功!'},服务器返回结果为False
\ No newline at end of file
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","","","3","0","15","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"uid" : "516f17dc64dfc0a3",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'application/json'", "'delete from uc_demension where CODE_='test_add_dem1';'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"uid" : "5fd354c847e91eb3",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "'post'", "'application/json'", "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"uid" : "2babcf1418e6c4e6",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'test_add_org1'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'application/x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"uid" : "ecbea85a274cf9cc",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"uid" : "8a45e3398429d720",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'delete'", "'query'", "'select ID_ from uc_demension where CODE_='test_add_dem1';'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"uid" : "a26a357a06a0b0e0",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!'}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"uid" : "3633b365421b4114",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"uid" : "dec54dc8f1155fdb",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'username': '超级管理员', 'account': 'admin'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"uid" : "1867e1f3daf1dac2",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}", "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"uid" : "a7749857ac930605",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"uid" : "76b99343be9512a4",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"uid" : "d65d735440113103",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"uid" : "349bda78f2abf7b6",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"uid" : "ad479c267471d0e",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"uid" : "53123510899d0ee",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"uid" : "95d03a7b6beae098",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"uid" : "b4f464ec94eb25ac",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"uid" : "e7cf7f04418c9156",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
} ]
}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Product defects","3","0","0","0","0"
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ {
"name" : "Product defects",
"children" : [ {
"name" : "AssertionError: assert False == True\n + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\n + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\n + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\n + where json = <Response [200]>.json",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"uid" : "ecbea85a274cf9cc",
"parentUid" : "e9c291bcd27d556c05405e9c905a83ab",
"status" : "failed",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
} ],
"uid" : "e9c291bcd27d556c05405e9c905a83ab"
}, {
"name" : "AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\n \n - 维度id不能为空!\n + 删除维度失败,维度ids必填",
"children" : [ {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"uid" : "3633b365421b4114",
"parentUid" : "3741a94d25d83dec0138c0167d8b10fa",
"status" : "failed",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "3741a94d25d83dec0138c0167d8b10fa"
}, {
"name" : "AssertionError: assert None == False\n + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\n + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\n + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\n + where json = <Response [200]>.json",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"uid" : "a7749857ac930605",
"parentUid" : "9e9e4bbd0fc2c7dd9cda219df91f6640",
"status" : "failed",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
} ],
"uid" : "9e9e4bbd0fc2c7dd9cda219df91f6640"
} ],
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d"
} ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "test_case",
"children" : [ {
"name" : "test_z1.test_bpm",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"uid" : "516f17dc64dfc0a3",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "passed",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'application/json'", "'delete from uc_demension where CODE_='test_add_dem1';'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"uid" : "5fd354c847e91eb3",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "passed",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "'post'", "'application/json'", "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"uid" : "2babcf1418e6c4e6",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "passed",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'test_add_org1'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'application/x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"uid" : "ecbea85a274cf9cc",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "failed",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"uid" : "8a45e3398429d720",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "passed",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'delete'", "'query'", "'select ID_ from uc_demension where CODE_='test_add_dem1';'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"uid" : "a26a357a06a0b0e0",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "passed",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!'}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"uid" : "3633b365421b4114",
"parentUid" : "ffda8418b34cc7402f3956e6ca5bb141",
"status" : "failed",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "test_z1.test_bpm"
}, {
"name" : "test_z2.test_bpm",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"uid" : "dec54dc8f1155fdb",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'username': '超级管理员', 'account': 'admin'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"uid" : "1867e1f3daf1dac2",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}", "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"uid" : "a7749857ac930605",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "failed",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"uid" : "76b99343be9512a4",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"uid" : "d65d735440113103",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"uid" : "349bda78f2abf7b6",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"uid" : "ad479c267471d0e",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"uid" : "53123510899d0ee",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"uid" : "95d03a7b6beae098",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"uid" : "b4f464ec94eb25ac",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"uid" : "e7cf7f04418c9156",
"parentUid" : "40baac4b541409500c32d11245e83722",
"status" : "passed",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
} ],
"uid" : "test_z2.test_bpm"
} ],
"uid" : "3b2e467b921b0ea8d4803b9c79d92d0c"
} ]
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","32","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",""
"passed","Wed Nov 06 15:02:26 CST 2024","Wed Nov 06 15:02:26 CST 2024","34","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","21","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",""
"failed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","14","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","13","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","46","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=""test_add_user1"";-delete-None]",""
"passed","Wed Nov 06 15:02:26 CST 2024","Wed Nov 06 15:02:27 CST 2024","30","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","30","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","31","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","31","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",""
"passed","Wed Nov 06 15:02:26 CST 2024","Wed Nov 06 15:02:26 CST 2024","59","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",""
"failed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","39","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",""
"failed","Wed Nov 06 15:02:26 CST 2024","Wed Nov 06 15:02:26 CST 2024","15","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","30","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",""
"passed","Wed Nov 06 15:02:26 CST 2024","Wed Nov 06 15:02:26 CST 2024","42","test_case.test_z1","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","28","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","29","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",""
"passed","Wed Nov 06 15:02:27 CST 2024","Wed Nov 06 15:02:27 CST 2024","28","test_case.test_z2","test_bpm","TestBpm","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "test_case.test_z1",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBpm",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"uid" : "516f17dc64dfc0a3",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "passed",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'application/json'", "'delete from uc_demension where CODE_='test_add_dem1';'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"uid" : "5fd354c847e91eb3",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "passed",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "'post'", "'application/json'", "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"uid" : "2babcf1418e6c4e6",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "passed",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'test_add_org1'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'application/x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"uid" : "ecbea85a274cf9cc",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "failed",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"uid" : "8a45e3398429d720",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "passed",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'delete'", "'query'", "'select ID_ from uc_demension where CODE_='test_add_dem1';'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"uid" : "a26a357a06a0b0e0",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "passed",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!'}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"uid" : "3633b365421b4114",
"parentUid" : "4142af0be4be53a6300608598fe82e6d",
"status" : "failed",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "4142af0be4be53a6300608598fe82e6d"
} ],
"uid" : "0150013d69b48abe5661a3ae24c34736"
} ],
"uid" : "95162f0ff485bb7164300be185229e49"
}, {
"name" : "test_case.test_z2",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBpm",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"uid" : "dec54dc8f1155fdb",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'username': '超级管理员', 'account': 'admin'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"uid" : "1867e1f3daf1dac2",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}", "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"uid" : "a7749857ac930605",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "failed",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"uid" : "76b99343be9512a4",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"uid" : "d65d735440113103",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"uid" : "349bda78f2abf7b6",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"uid" : "ad479c267471d0e",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"uid" : "53123510899d0ee",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"uid" : "95d03a7b6beae098",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"uid" : "b4f464ec94eb25ac",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"uid" : "e7cf7f04418c9156",
"parentUid" : "74badbdf9da452499dc82ec670d35980",
"status" : "passed",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
} ],
"uid" : "74badbdf9da452499dc82ec670d35980"
} ],
"uid" : "84891476ba7695794906daf23dc8a096"
} ],
"uid" : "2218aa99cc7284d7dc77d3461eaddcf8"
} ]
}
\ No newline at end of file
{
"uid" : "1867e1f3daf1dac2",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "bcdac871da97806e6fa8d8409123a6b4",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "9974558583d872fb",
"name" : "log",
"source" : "9974558583d872fb.txt",
"type" : "text/plain",
"size" : 204
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "1867e1f3daf1dac2.json",
"parameterValues" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}", "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "2babcf1418e6c4e6",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "aafab6f25a7a1d55e7b26b348bded0f2",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "d0047b2a14d05cd7",
"name" : "log",
"source" : "d0047b2a14d05cd7.txt",
"type" : "text/plain",
"size" : 204
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "'test_add_org1'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/x-www-form-urlencoded'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "2babcf1418e6c4e6.json",
"parameterValues" : [ "'test_add_org1'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'application/x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}
\ No newline at end of file
{
"uid" : "349bda78f2abf7b6",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "ca40e9cfcc4754a55826d53d695e1929",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "7d0e97e108f270f9",
"name" : "log",
"source" : "7d0e97e108f270f9.txt",
"type" : "text/plain",
"size" : 171
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': ''}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "349bda78f2abf7b6.json",
"parameterValues" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "3633b365421b4114",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "8f200ca3b399202a3f0140a1768b3848",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"status" : "failed",
"statusMessage" : "AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\n \n - 维度id不能为空!\n + 删除维度失败,维度ids必填",
"statusTrace" : "self = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78ADF0740>, method = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}\")\n> raise e\n\ntest_case\\test_z1\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78ADF0740>, method = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_case\\test_z1\\test_bpm.py:31: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\n \n - 维度id不能为空!\n + 删除维度失败,维度ids必填",
"statusTrace" : "self = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78ADF0740>, method = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}\")\n> raise e\n\ntest_case\\test_z1\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78ADF0740>, method = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_case\\test_z1\\test_bpm.py:31: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "c63ffa2735f3a7f1",
"name" : "log",
"source" : "c63ffa2735f3a7f1.txt",
"type" : "text/plain",
"size" : 224
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : true,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'ids': ''}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '维度id不能为空!'}"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "3633b365421b4114.json",
"parameterValues" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "516f17dc64dfc0a3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "7ca1568e3ff7dfe3ee5b1c273de7ddb8",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "30e660e6886cec38",
"name" : "log",
"source" : "30e660e6886cec38.txt",
"type" : "text/plain",
"size" : 1496
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "'delete from uc_demension where CODE_='test_add_dem1';'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "516f17dc64dfc0a3.json",
"parameterValues" : [ "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'application/json'", "'delete from uc_demension where CODE_='test_add_dem1';'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
"uid" : "53123510899d0ee",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "15bda3ea496705b7f66322ac8bc21d5b",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "72fa401a594392d5",
"name" : "log",
"source" : "72fa401a594392d5.txt",
"type" : "text/plain",
"size" : 183
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "53123510899d0ee.json",
"parameterValues" : [ "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "5fd354c847e91eb3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "e037c8e8a5f8ba03c3a80c073b2ed825",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "3ced7c69425174fa",
"name" : "log",
"source" : "3ced7c69425174fa.txt",
"type" : "text/plain",
"size" : 737
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加组织成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}"
}, {
"name" : "sql_type",
"value" : "'select|delete'"
}, {
"name" : "updata_key",
"value" : "'demId'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5fd354c847e91eb3.json",
"parameterValues" : [ "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "'post'", "'application/json'", "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}
\ No newline at end of file
{
"uid" : "76b99343be9512a4",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "a9a2db5af6a631f249bab114446a589f",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "6be6bd1996f43d1c",
"name" : "log",
"source" : "6be6bd1996f43d1c.txt",
"type" : "text/plain",
"size" : 171
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': '1'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "76b99343be9512a4.json",
"parameterValues" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "8a45e3398429d720",
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "81c49a1d0fd143ea54843ad07616e170",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "11f9d236b673758d",
"name" : "log",
"source" : "11f9d236b673758d.txt",
"type" : "text/plain",
"size" : 407
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'ids': '需要更新'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "method",
"value" : "'delete'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql_data",
"value" : "'select ID_ from uc_demension where CODE_='test_add_dem1';'"
}, {
"name" : "sql_type",
"value" : "'select'"
}, {
"name" : "updata_key",
"value" : "'ids'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "8a45e3398429d720.json",
"parameterValues" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'delete'", "'query'", "'select ID_ from uc_demension where CODE_='test_add_dem1';'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "95d03a7b6beae098",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "fdd49eb08dcd6c8b4a7af97c669daff7",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "7b88da152bc26e9a",
"name" : "log",
"source" : "7b88da152bc26e9a.txt",
"type" : "text/plain",
"size" : 183
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "95d03a7b6beae098.json",
"parameterValues" : [ "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "a26a357a06a0b0e0",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "4dfee95d6f1c765e67309c2fac89eab0",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "7ec432df9b13f381",
"name" : "log",
"source" : "7ec432df9b13f381.txt",
"type" : "text/plain",
"size" : 550
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '用户添加成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql_data",
"value" : "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/user/v1/user/addUser'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a26a357a06a0b0e0.json",
"parameterValues" : [ "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!'}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}
\ No newline at end of file
{
"uid" : "a7749857ac930605",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "82f85d7dc53a0d8ecc0cff6807a349c9",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"status" : "failed",
"statusMessage" : "AssertionError: assert None == False\n + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\n + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\n + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\n + where json = <Response [200]>.json",
"statusTrace" : "self = <APIAutoTest_v3_1.test_case.test_z2.test_bpm.TestBpm object at 0x000001C78B0FBC80>, method = 'post'\nurl = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzw...5wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0EAC90>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,错误信息为{e}\")\n> raise e\n\ntest_case\\test_z2\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z2.test_bpm.TestBpm object at 0x000001C78B0FBC80>, method = 'post'\nurl = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzw...5wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0EAC90>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\nE + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_z2\\test_bpm.py:31: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: assert None == False\n + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\n + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\n + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\n + where json = <Response [200]>.json",
"statusTrace" : "self = <APIAutoTest_v3_1.test_case.test_z2.test_bpm.TestBpm object at 0x000001C78B0FBC80>, method = 'post'\nurl = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzw...5wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0EAC90>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,错误信息为{e}\")\n> raise e\n\ntest_case\\test_z2\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z2.test_bpm.TestBpm object at 0x000001C78B0FBC80>, method = 'post'\nurl = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzw...5wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误', 'state': False}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0EAC90>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\nE + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_z2\\test_bpm.py:31: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "ca08e48483a8f0ee",
"name" : "log",
"source" : "ca08e48483a8f0ee.txt",
"type" : "text/plain",
"size" : 810
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : true,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "a7749857ac930605.json",
"parameterValues" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "ad479c267471d0e",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "efef61af5e3190b506eb2f69f48c26da",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "d4cea3d780fa6b77",
"name" : "log",
"source" : "d4cea3d780fa6b77.txt",
"type" : "text/plain",
"size" : 183
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "ad479c267471d0e.json",
"parameterValues" : [ "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "b4f464ec94eb25ac",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "6a6936a8b1638f057d6aba7dd10f70ca",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "972ff9891ea638ca",
"name" : "log",
"source" : "972ff9891ea638ca.txt",
"type" : "text/plain",
"size" : 183
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "b4f464ec94eb25ac.json",
"parameterValues" : [ "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "d65d735440113103",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "21b9a7673b965041a3472f9d7811013f",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "27a5f09e49b88f04",
"name" : "log",
"source" : "27a5f09e49b88f04.txt",
"type" : "text/plain",
"size" : 171
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "d65d735440113103.json",
"parameterValues" : [ "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "dec54dc8f1155fdb",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "f1308385481eb5a7536512e6898de046",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "b1685d89303b0f87",
"name" : "log",
"source" : "b1685d89303b0f87.txt",
"type" : "text/plain",
"size" : 1445
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"
}, {
"name" : "expect_data",
"value" : "{'username': '超级管理员', 'account': 'admin'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "dec54dc8f1155fdb.json",
"parameterValues" : [ "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'username': '超级管理员', 'account': 'admin'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "e7cf7f04418c9156",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"fullName" : "test_case.test_z2.test_bpm.TestBpm#test_bpm",
"historyId" : "cc20daa444e4788c36894a68e4591ff0",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876547125,
"stop" : 1730876547206,
"duration" : 81
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "ea7482035a33e1e7",
"name" : "log",
"source" : "ea7482035a33e1e7.txt",
"type" : "text/plain",
"size" : 183
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547748,
"stop" : 1730876547749,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z2"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z2.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "e7cf7f04418c9156.json",
"parameterValues" : [ "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "ecbea85a274cf9cc",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"fullName" : "test_case.test_z1.test_bpm.TestBpm#test_bpm",
"historyId" : "f84ad7e16efd7f41a6e1f6b51fd7957d",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"status" : "failed",
"statusMessage" : "AssertionError: assert False == True\n + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\n + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\n + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\n + where json = <Response [200]>.json",
"statusTrace" : "self = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78AD71850>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 2}], 'query': {'orgCode': 'test_add_org1'}}\nexpect_data = {'message': '保存组织参数成功!', 'state': True}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}\")\n> raise e\n\ntest_case\\test_z1\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78AD71850>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 2}], 'query': {'orgCode': 'test_add_org1'}}\nexpect_data = {'message': '保存组织参数成功!', 'state': True}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\nE + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\nE + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_z1\\test_bpm.py:31: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730876546473,
"stop" : 1730876546578,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: assert False == True\n + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\n + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\n + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\n + where json = <Response [200]>.json",
"statusTrace" : "self = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78AD71850>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 2}], 'query': {'orgCode': 'test_add_org1'}}\nexpect_data = {'message': '保存组织参数成功!', 'state': True}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except Exception as e:\n log.error(f\"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}\")\n> raise e\n\ntest_case\\test_z1\\test_bpm.py:34: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <APIAutoTest_v3_1.test_case.test_z1.test_bpm.TestBpm object at 0x000001C78AD71850>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 2}], 'query': {'orgCode': 'test_add_org1'}}\nexpect_data = {'message': '保存组织参数成功!', 'state': True}, sql_data = None, sql_type = None, updata_key = None\nreq_fix = <requests_study.homework.APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x000001C78B0F9970>\n\n @pytest.mark.parametrize(\"method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key\",\n ReadExcel(USERNAME).get_data())\n def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):\n res = req_fix.request_all(\n method=method,\n url=url,\n mime=mime,\n case_data=case_data,\n sql_data=sql_data,\n sql_type=sql_type,\n updata_key=updata_key\n )\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\nE + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\nE + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_z1\\test_bpm.py:31: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "f36b1585169067c2",
"name" : "log",
"source" : "f36b1585169067c2.txt",
"type" : "text/plain",
"size" : 263
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : true,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730876547750,
"stop" : 1730876547750,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_z1"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-2NSIU9K"
}, {
"name" : "thread",
"value" : "13552-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_z1.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '保存组织参数成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'query|json'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "updata_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "ecbea85a274cf9cc.json",
"parameterValues" : [ "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "DESKTOP-2NSIU9K",
"children" : [ {
"name" : "13552-MainThread",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"uid" : "e7cf7f04418c9156",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"uid" : "ad479c267471d0e",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"uid" : "a26a357a06a0b0e0",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'test_add_user1', 'address': '', 'email': '', 'fullname': '测试添加的用户1', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!'}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"test_add_user1\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"uid" : "76b99343be9512a4",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"uid" : "ecbea85a274cf9cc",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "failed",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'test_add_org1'}, 'body': [{'alias': 'sz', 'value': 2}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"uid" : "95d03a7b6beae098",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'ad', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"uid" : "2babcf1418e6c4e6",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'test_add_org1'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'application/x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"uid" : "516f17dc64dfc0a3",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_dem1', 'description': 'testDem', 'isDefault': 0, 'name': '测试添加的维度1'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'application/json'", "'delete from uc_demension where CODE_='test_add_dem1';'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"uid" : "a7749857ac930605",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "failed",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg=VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg='}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"uid" : "3633b365421b4114",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "failed",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"uid" : "1867e1f3daf1dac2",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3AmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDT'}", "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"uid" : "b4f464ec94eb25ac",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '❋❀✾✿❁', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"uid" : "5fd354c847e91eb3",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'test_add_org1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "'post'", "'application/json'", "{'delete': \"delete from uc_org where CODE_='test_add_org1';\", 'select': \"select ID_ from uc_demension where CODE_='test_add_dem1';\"}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"uid" : "d65d735440113103",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '✽✾✿❁❃❋❀⚘'}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"uid" : "349bda78f2abf7b6",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账号或密码错误'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"uid" : "dec54dc8f1155fdb",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'username': '超级管理员', 'account': 'admin'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"uid" : "8a45e3398429d720",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'delete'", "'query'", "'select ID_ from uc_demension where CODE_='test_add_dem1';'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"uid" : "53123510899d0ee",
"parentUid" : "55fce9d4abcff51647effc34cd28c7ed",
"status" : "passed",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadminadminadminadminadminadminadminadminadminadminadmin', 'password': 'TVxOIhZuEEK7mYDtN4hvwrl7gm/AzvX416cuwQ8iDKhgJ+6znIbvpuL+NvwOS8QnjANFFHCHMT3rNuToyde2Ftw0XUiNbcdCf88Wm61ppsvnTgaBAtwrPZsJ4cCjuBQZzEqHbh7/ylFUCYL5oVdgG445Ao1XRbX95gTgOykun3s='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
} ],
"uid" : "55fce9d4abcff51647effc34cd28c7ed"
} ],
"uid" : "3fa621d96ee52e25786221057ab9e260"
} ]
}
\ No newline at end of file
launch_status failed=3 1730878517000000000
launch_status broken=0 1730878517000000000
launch_status passed=15 1730878517000000000
launch_status skipped=0 1730878517000000000
launch_status unknown=0 1730878517000000000
launch_time duration=1067 1730878517000000000
launch_time min_duration=13 1730878517000000000
launch_time max_duration=59 1730878517000000000
launch_time sum_duration=552 1730878517000000000
launch_problems product_defects=3 1730878517000000000
launch_retries retries=0 1730878517000000000
launch_retries run=18 1730878517000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 3
launch_status_broken 0
launch_status_passed 15
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 1067
launch_time_min_duration 13
launch_time_max_duration 59
launch_time_sum_duration 552
launch_problems_product_defects 3
launch_retries_retries 0
launch_retries_run 18
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
"data" : {
"Product defects" : 3
}
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 1067
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 3,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 18
}
} ]
\ No newline at end of file
{
"ca40e9cfcc4754a55826d53d695e1929" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "349bda78f2abf7b6",
"status" : "passed",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
}
} ]
},
"8f200ca3b399202a3f0140a1768b3848" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "3633b365421b4114",
"status" : "failed",
"statusDetails" : "AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\n \n - 维度id不能为空!\n + 删除维度失败,维度ids必填",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
}
} ]
},
"21b9a7673b965041a3472f9d7811013f" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "d65d735440113103",
"status" : "passed",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
}
} ]
},
"efef61af5e3190b506eb2f69f48c26da" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "ad479c267471d0e",
"status" : "passed",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
}
} ]
},
"fdd49eb08dcd6c8b4a7af97c669daff7" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "95d03a7b6beae098",
"status" : "passed",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
}
} ]
},
"cc20daa444e4788c36894a68e4591ff0" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "e7cf7f04418c9156",
"status" : "passed",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
}
} ]
},
"82f85d7dc53a0d8ecc0cff6807a349c9" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a7749857ac930605",
"status" : "failed",
"statusDetails" : "AssertionError: assert None == False\n + where None = <built-in method get of dict object at 0x000001C78B062000>('state')\n + where <built-in method get of dict object at 0x000001C78B062000> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...}.get\n + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...UsImlhdCI6MTczMDg3NjM3NX0.jGt7YJA4Iq1ce58boV3uz1El1fv5CIAM6-MI_7rhr__TqlLCoJEO6I9Ls6VQKpLRv-HSWFNyhY0bgbRrkbyDHQ', ...} = json()\n + where json = <Response [200]>.json",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
}
} ]
},
"7ca1568e3ff7dfe3ee5b1c273de7ddb8" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "516f17dc64dfc0a3",
"status" : "passed",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
}
} ]
},
"bcdac871da97806e6fa8d8409123a6b4" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "1867e1f3daf1dac2",
"status" : "passed",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
}
} ]
},
"81c49a1d0fd143ea54843ad07616e170" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "8a45e3398429d720",
"status" : "passed",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
}
} ]
},
"f1308385481eb5a7536512e6898de046" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "dec54dc8f1155fdb",
"status" : "passed",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
}
} ]
},
"a9a2db5af6a631f249bab114446a589f" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "76b99343be9512a4",
"status" : "passed",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
}
} ]
},
"6a6936a8b1638f057d6aba7dd10f70ca" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "b4f464ec94eb25ac",
"status" : "passed",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
}
} ]
},
"aafab6f25a7a1d55e7b26b348bded0f2" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "2babcf1418e6c4e6",
"status" : "passed",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
}
} ]
},
"e037c8e8a5f8ba03c3a80c073b2ed825" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5fd354c847e91eb3",
"status" : "passed",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
}
} ]
},
"f84ad7e16efd7f41a6e1f6b51fd7957d" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "ecbea85a274cf9cc",
"status" : "failed",
"statusDetails" : "AssertionError: assert False == True\n + where False = <built-in method get of dict object at 0x000001C78B0CBD80>('state')\n + where <built-in method get of dict object at 0x000001C78B0CBD80> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\n + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\n + where json = <Response [200]>.json",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
}
} ]
},
"15bda3ea496705b7f66322ac8bc21d5b" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "53123510899d0ee",
"status" : "passed",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
}
} ]
},
"4dfee95d6f1c765e67309c2fac89eab0" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a26a357a06a0b0e0",
"status" : "passed",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 18,
"retry" : 0
}
} ]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"total" : 18,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : {
"Product defects" : 3
}
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d",
"name" : "Product defects",
"statistic" : {
"failed" : 3,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 1067
}
} ]
\ No newline at end of file
[ {
"uid" : "dec54dc8f1155fdb",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2babcf1418e6c4e6",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "76b99343be9512a4",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3633b365421b4114",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "1867e1f3daf1dac2",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a26a357a06a0b0e0",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8a45e3398429d720",
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "349bda78f2abf7b6",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d65d735440113103",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "53123510899d0ee",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5fd354c847e91eb3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a7749857ac930605",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "ecbea85a274cf9cc",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "95d03a7b6beae098",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "516f17dc64dfc0a3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b4f464ec94eb25ac",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e7cf7f04418c9156",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ad479c267471d0e",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 3,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 18
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 18,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "a7749857ac930605",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "2babcf1418e6c4e6",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d65d735440113103",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "76b99343be9512a4",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8a45e3398429d720",
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "95d03a7b6beae098",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "349bda78f2abf7b6",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1867e1f3daf1dac2",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a26a357a06a0b0e0",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ad479c267471d0e",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "53123510899d0ee",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ecbea85a274cf9cc",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "516f17dc64dfc0a3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3633b365421b4114",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "dec54dc8f1155fdb",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e7cf7f04418c9156",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b4f464ec94eb25ac",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5fd354c847e91eb3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "dec54dc8f1155fdb",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data0-expect_data0-None-None-None]",
"time" : {
"start" : 1730876547207,
"stop" : 1730876547239,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2babcf1418e6c4e6",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-application/x-www-form-urlencoded-test_add_org1-expect_data2-None-None-None]",
"time" : {
"start" : 1730876546706,
"stop" : 1730876546740,
"duration" : 34
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "76b99343be9512a4",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data3-expect_data3-None-None-None]",
"time" : {
"start" : 1730876547332,
"stop" : 1730876547353,
"duration" : 21
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3633b365421b4114",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case_data6-expect_data6-None-None-None]",
"time" : {
"start" : 1730876547092,
"stop" : 1730876547106,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "1867e1f3daf1dac2",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data1-expect_data1-None-None-None]",
"time" : {
"start" : 1730876547250,
"stop" : 1730876547263,
"duration" : 13
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a26a357a06a0b0e0",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case_data5-expect_data5-delete from uc_user where ACCOUNT_=\"test_add_user1\";-delete-None]",
"time" : {
"start" : 1730876547035,
"stop" : 1730876547081,
"duration" : 46
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8a45e3398429d720",
"name" : "test_bpm[delete-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case_data4-expect_data4-select ID_ from uc_demension where CODE_='test_add_dem1';-select-ids]",
"time" : {
"start" : 1730876546995,
"stop" : 1730876547025,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "349bda78f2abf7b6",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data5-expect_data5-None-None-None]",
"time" : {
"start" : 1730876547406,
"stop" : 1730876547436,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d65d735440113103",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data4-expect_data4-None-None-None]",
"time" : {
"start" : 1730876547364,
"stop" : 1730876547395,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "53123510899d0ee",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data7-expect_data7-None-None-None]",
"time" : {
"start" : 1730876547486,
"stop" : 1730876547517,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5fd354c847e91eb3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-application/json-case_data1-expect_data1-sql_data1-select|delete-demId]",
"time" : {
"start" : 1730876546636,
"stop" : 1730876546695,
"duration" : 59
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a7749857ac930605",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data2-expect_data2-None-None-None]",
"time" : {
"start" : 1730876547276,
"stop" : 1730876547315,
"duration" : 39
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "ecbea85a274cf9cc",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case_data3-expect_data3-None-None-None]",
"time" : {
"start" : 1730876546810,
"stop" : 1730876546825,
"duration" : 15
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "95d03a7b6beae098",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data8-expect_data8-None-None-None]",
"time" : {
"start" : 1730876547527,
"stop" : 1730876547557,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "516f17dc64dfc0a3",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-application/json-case_data0-expect_data0-delete from uc_demension where CODE_='test_add_dem1';-delete-None]",
"time" : {
"start" : 1730876546583,
"stop" : 1730876546625,
"duration" : 42
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b4f464ec94eb25ac",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data9-expect_data9-None-None-None]",
"time" : {
"start" : 1730876547580,
"stop" : 1730876547608,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e7cf7f04418c9156",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data10-expect_data10-None-None-None]",
"time" : {
"start" : 1730876547621,
"stop" : 1730876547650,
"duration" : 29
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ad479c267471d0e",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case_data6-expect_data6-None-None-None]",
"time" : {
"start" : 1730876547445,
"stop" : 1730876547473,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 2,
"items" : [ {
"uid" : "95162f0ff485bb7164300be185229e49",
"name" : "test_case.test_z1",
"statistic" : {
"failed" : 2,
"broken" : 0,
"skipped" : 0,
"passed" : 5,
"unknown" : 0,
"total" : 7
}
}, {
"uid" : "2218aa99cc7284d7dc77d3461eaddcf8",
"name" : "test_case.test_z2",
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 10,
"unknown" : 0,
"total" : 11
}
} ]
}
\ No newline at end of file
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 3,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 18
},
"time" : {
"start" : 1730876546583,
"stop" : 1730876547650,
"duration" : 1067,
"minDuration" : 13,
"maxDuration" : 59,
"sumDuration" : 552
}
}
\ No newline at end of file
'2024-11-06 16:51:58,450 - __init__.py[line:41] - INFO: 执行的功能为:read_json, 功能描述为:读取json文件,将json文件的内容序列化为python对象在返回, 所在的py文件为:C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\common\read_json.py, 所在的行为:15行,形参的值为:('case_data1.json',)或{}
'2024-11-06 16:51:58,450 - __init__.py[line:46] - ERROR: 执行的功能为:read_json, 功能描述为:读取json文件,将json文件的内容序列化为python对象在返回, 所在的py文件为:C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\common\read_json.py, 所在的行为:15行,形参的值为:('case_data1.json',)或{}错误的类型为:<class 'FileNotFoundError'>, 错误的描述为:文件路径错误
'2024-11-06 16:52:23,488 - __init__.py[line:41] - INFO: 执行的功能为:read_json, 功能描述为:读取json文件,将json文件的内容序列化为python对象在返回, 所在的py文件为:C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\common\read_json.py, 所在的行为:15行,形参的值为:('case',)或{}
'2024-11-06 16:52:23,488 - __init__.py[line:46] - ERROR: 执行的功能为:read_json, 功能描述为:读取json文件,将json文件的内容序列化为python对象在返回, 所在的py文件为:C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\common\read_json.py, 所在的行为:15行,形参的值为:('case',)或{}错误的类型为:<class 'FileNotFoundError'>, 错误的描述为:文件路径错误
'2024-11-06 16:53:20,560 - read_json.py[line:17] - INFO: 执行Read_json函数,读取json文件,文件路径为case
'2024-11-06 16:53:20,561 - read_json.py[line:26] - ERROR: 执行Read_json函数,读取json文件失败,文件路径不合法,文件路径为case
'2024-11-06 16:53:32,990 - read_json.py[line:17] - INFO: 执行Read_json函数,读取json文件,文件路径为case_data1.json
'2024-11-06 16:53:32,990 - read_json.py[line:26] - ERROR: 执行Read_json函数,读取json文件失败,文件路径不合法,文件路径为case_data1.json
'2024-11-06 16:53:58,944 - __init__.py[line:41] - INFO: 执行的功能为:get_file_path, 功能描述为:根据key获取file节点下文件的路径, 所在的py文件为:C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\common\read_user_ini.py, 所在的行为:24行,形参的值为:(<__main__.ReadUserIni object at 0x00000206B570BBC0>, 'case')或{}
'2024-11-06 16:54:08,389 - read_json.py[line:17] - INFO: 执行Read_json函数,读取json文件,文件路径为C:\Users\zyh\Desktop\test_case\APIAutoTest_v3_1\data_config\z1_data\case_data1.json
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: __init__.py
# Author: zhang
# Datetime: 2024/11/5 下午6:41
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: requests_method.py
# Author: zhang
# Datetime: 2024/11/5 下午7:40
# Description:
#
# ---------------------------------------------------------------------------
import requests
from APIAutoTest_v3_1.common.db import DB
from APIAutoTest_v3_1.common.read_basic_ini import ReadBasicIni
from APIAutoTest_v3_1 import log
class RequestsMethod:
def __init__(self):
# 创建session对象和配置登录的token
self.session = requests.sessions.Session()
login_data = {
"username": "admin",
"password": "VsQ2gtK1fYOiCv1QU5qfMAKFlVXz7UBerKlrtStkhxo3W"
"/T6NQCAmgklcIGUiwzcWi9gCRauKUn65wWlR7GZ39OXIuZ7uepazQ3MCTzwShuesIgM2ull8n9kMBYtiiio2"
"/WCpXfjDJfcl2r9L/z8TH35AFZGf1D/lgC5PWPnDTg="
}
login_url = ReadBasicIni().get_host("bpm") + "/auth"
token = self.session.post(url=login_url, json=login_data).json()["token"]
self.session.headers.update({"Authorization": f"Bearer {token}"})
# 创建数据库对象
self.db = DB()
def request_all(self, method, url, mime=None, case_data=None, sql_type=None,sql_data=None,updata_key=None):
# 先判断sql的类型,执行对应sql语句之后再发送请求
if sql_type == "delete":
self.db.delete(sql_data)
elif sql_type == "select":
select_res = self.db.select(sql_data)
case_data[updata_key] = select_res
# 如果为"select|delete"或者"delete|select"则需要同时查询或删除
elif sql_type == "select|delete" or sql_type == "delete|select":
self.db.delete(sql_data["delete"])
select_res = self.db.select(sql_data["select"])
case_data[updata_key] = select_res
# 根据传入的媒体类型,发送请求
# 除了json或上传文件或地址栏传参以外的任何方式传参全部使用data传参
# request可以同时在地址栏和请求体传参,同时使用params,data/json传参即可
if mime == "application/x-www-form-urlencoded" or mime == "x-www-form-urlencoded" or mime == "form":
return self.session.request(method=method, url=url, data=case_data)
elif mime == "application/json" or mime == "json":
return self.session.request(method=method, url=url, json=case_data)
elif mime == "multipart/form-data" or mime == "form-data":
return self.session.request(method=method, url=url, files=case_data)
elif mime == "query":
return self.session.request(method=method, url=url, params=case_data)
elif mime == "query|json" or mime == "json|query":
return self.session.request(method=method, url=url, params=case_data["query"], json=case_data["body"])
elif mime is None:
return self.session.request(method=method, url=url)
else:
log().error(
f"方法:request_all,传入的媒体类型为:{mime}, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖")
raise ValueError("传入的媒体类型的值错误,类中有表单、json、上传文件、query、None媒体类型,如需要可以复写该类")
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: __init__.py
# Author: zhang
# Datetime: 2024/11/5 下午6:41
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: __init__.py
# Author: zhang
# Datetime: 2024/11/5 下午7:44
# Description:
#
# ---------------------------------------------------------------------------
# USERNAME的值一定是用户数据配置层目录的名称
USERNAME = "z1_data"
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: conftest.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:40
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from APIAutoTest_v3_1.requests_method.requests_method import RequestsMethod
@pytest.fixture(scope="session")
def req_fix():
req = RequestsMethod()
yield req
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: test_bpm.py
# Author: zhang
# Datetime: 2024/11/4 上午11:22
# Description:
#
# ---------------------------------------------------------------------------
from APIAutoTest_v3_1.common.read_excel import ReadExcel
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.test_case.test_z1 import USERNAME
import pytest
class TestBpm:
@pytest.mark.parametrize("method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key",
ReadExcel(USERNAME).get_data())
def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):
res = req_fix.request_all(
method=method,
url=url,
mime=mime,
case_data=case_data,
sql_data=sql_data,
sql_type=sql_type,
updata_key=updata_key
)
try:
for key in expect_data.keys():
assert res.json().get(key) == expect_data[key]
except Exception as e:
log.error(f"用例断言失败,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}")
raise e
else:
log.info(f"用例断言成功,用例数据为{case_data},期望数据为{expect_data},服务器返回结果为{res.json().get(key)}")
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: __init__.py
# Author: zhang
# Datetime: 2024/11/5 下午7:45
# Description:
#
# ---------------------------------------------------------------------------
# USERNAME的值一定是用户数据配置层目录的名称
USERNAME = "z2_data"
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: conftest.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:40
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from APIAutoTest_v3_1.requests_method.requests_method import RequestsMethod
@pytest.fixture(scope="session")
def req_fix():
req = RequestsMethod()
yield req
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test
# FileName: test_bpm.py
# Author: zhang
# Datetime: 2024/11/4 上午11:22
# Description:
#
# ---------------------------------------------------------------------------
from APIAutoTest_v3_1.common.read_excel import ReadExcel
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.test_case.test_z2 import USERNAME
import pytest
class TestBpm:
@pytest.mark.parametrize("method,url,mime,case_data,expect_data,sql_data,sql_type,updata_key",
ReadExcel(USERNAME).get_data())
def test_bpm(self, method, url, mime, case_data, expect_data, sql_data, sql_type, updata_key, req_fix):
res = req_fix.request_all(
method=method,
url=url,
mime=mime,
case_data=case_data,
sql_data=sql_data,
sql_type=sql_type,
updata_key=updata_key
)
try:
for key in expect_data.keys():
assert res.json().get(key) == expect_data[key]
except Exception as e:
log.error(f"用例断言失败,错误信息为{e}")
raise e
else:
log.info(f"用例断言成功,返回结果为{res.json()}")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment