Commit a326ec2a by kinyw

api auto test v3.1

parent 2e25e002
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:02
# Description:
#
# ---------------------------------------------------------------------------
import functools
import logging
import os
import time
"""
每个用户有独立的数据配置层,每个用户有自己的配置文件-config.ini--->这个文件名称不能改变文件名---需要单独读取---ReadUserIni
接口自动化框架有公共的配置文件---config.ini--->这个文件名称不能改变文件名---ReadBasicIni
在用例层-每个用户都有自己独立的测试层--用户的测试层中的__init__.py文件中需要配置用户存放数据的目录名称
"""
"""
pytest:
报告插件:pytest-html ---> pip install pytest-html
输出报告的命令:pytest -vv 用例模块/用例包 --html=报告存放的路径 --self-contained-html
失败重跑插件:pytest-rerunfailures --> pip install pytest-rerunfailures
输出报告的命令:pytest -vv 用例模块/用例包 --html=报告存放的路径 --self-contained-html --reruns 失败重跑的次数 --reruns-delay 失败重跑间隔时间
allure生成报告:
需要下pytest的插件:pip install allure-pytest
1:使用pytest执行用例,生成执行结果的json文件
pytest 用例模块/用例包 --alluredir=存放json文件的目录 --clean-alluredir --reruns 失败重跑的次数 --reruns-delay 失败重跑间隔时间
2: 根据第一步测试结果的json文件生成报告。
i: 本地生成测试报告服务
allure serve 第一步存放测试结果json文件的目录
ii: 生成静态的报告
allure generate 第一步存放测试结果json文件的目录 -o 静态报告存放的目录
打开静态的报告:allure open 静态报告存放的目录
"""
def api_log():
# 创建Logger对象 root
logger = logging.getLogger()
# 设置级别
logger.level = logging.INFO
# 日志文件存放的路径
log_dir_path = os.path.join(os.path.join(os.path.dirname(__file__), "report"), "log")
log_file_name = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + ".log"
log_path = os.path.join(log_dir_path, log_file_name)
# 创建日志文件的Handler对象
handler = logging.FileHandler(filename=log_path, mode="a", encoding="utf-8")
# 设置日志显示的格式
# formatter = logging.Formatter('%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s')
formatter = logging.Formatter('%(asctime)s - %(levelname)s: %(message)s')
# 给Handler设置日志的格式
handler.setFormatter(formatter)
# 给Logger添加Handler对象
logger.addHandler(handler)
return logger
log = api_log()
def logor(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
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:02
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: db.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:22
# Description:
#
# ---------------------------------------------------------------------------
import pymysql
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.common.read_basic_ini import ReadBasicIni
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):
"""执行删除的sql语句"""
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):
"""执行查询的sql语句"""
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()
# 判断查询结果是否为空的元组,如果为空的元组返回None,如果不为空的元组返回查询的第一个结果
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
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: read_ini.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:09
# Description:
#
# ---------------------------------------------------------------------------
import configparser
import os
from APIAutoTest_v3_1 import log
class ReadBasicIni:
def __init__(self):
"""读取ini文件"""
self.data_config = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data_config")
ini_path = os.path.join(self.data_config, "basic_config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path, encoding="utf-8")
def get_host(self, key):
"""根据key获取host节点下被测系统的域名"""
log.info(f"执行get_host方法,功能为:根据key获取host节点下被测系统的域名, 传入的参数为:{key}")
try:
return self.conf.get("host", key)
except Exception as e:
log.info(f"执行get_host方法,功能为:根据key获取host节点下被测系统的域名, 传入的参数为:{key}"
f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
def get_connect_sql_msg(self, key):
"""根据key获取sql节点下数据库的链接信息"""
log.info(f"执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:{key}")
try:
return self.conf.get("sql", key)
except Exception as e:
log.info(f"执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:{key}"
f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
if __name__ == '__main__':
ini = ReadBasicIni()
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: read_excel.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:34
# Description:
#
# ---------------------------------------------------------------------------
import openpyxl
from APIAutoTest_v3_1 import log, logor
from APIAutoTest_v3_1.common.read_basic_ini import ReadBasicIni
from APIAutoTest_v3_1.common.read_user_ini import ReadUserIni
from APIAutoTest_v3_1.common.read_json import read_json
from APIAutoTest_v3_1.data_config.settings import *
class ReadExcel:
@logor
def __init__(self, user):
"""读取所有的json文件,获取excel的工作簿和工作表"""
# 读取指定用户的ini文件
ini = ReadUserIni(user)
# 获取指定用户的存放数据的json文件路径
case_data_path = ini.get_file_path(CASE_NAME)
expect_data_path = ini.get_file_path(EXPECT_NAME)
sql_data_path = ini.get_file_path(SQL_NAME)
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 = ini.get_file_path(EXCEL_NAME)
# 获取指定用户的工作表名称
table_name = ini.get_table_name(TABLE_NAME)
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
@logor
def __get_cell_value(self, column: str, row: int) -> str:
"""获取指定单元格数据"""
# log.info(f"执行的方法为:__get_cell_value,功能描述为:获取指定单元格数据,传入的参数为:{column}列,{row}行")
try:
cell_value = self.ws[column+str(row)].value
except Exception as e:
# log.error(f"执行的方法为:__get_cell_value,功能描述为:获取指定单元格数据,传入的参数为:{column}列,{row}行, 报错,错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
if cell_value is None:
return None
elif cell_value.strip():
return cell_value.strip()
@logor
def module_name(self, row):
"""根据行号,获取模块名称"""
# log.info(f"执行的方法为:module_name,功能描述为:根据行号,获取模块名称,传入的参数为:{row}行")
return self.__get_cell_value(MODULE, row)
@logor
def api_name(self, row):
"""根据行号,获取接口名称"""
# log.info(f"执行的方法为:api_name,功能描述为:根据行号,获取接口名称,传入的参数为:{row}行")
return self.__get_cell_value(API, row)
@logor
def req_method(self, row):
"""根据行号,获取用例的请求方法"""
# log.info(f"执行的方法为:req_method,功能描述为:根据行号,获取用例的请求方法,传入的参数为:{row}行")
return self.__get_cell_value(METHOD, row)
@logor
def req_url(self, row):
"""根据行号,获取用例的请求url"""
# log.info(f"执行的方法为:req_url,功能描述为:根据行号,获取用例的请求url,传入的参数为:{row}行")
path = self.__get_cell_value(PATH, row)
if path:
# 创建ReadBasicIni类对象,调用get_host获取被测系统的域名,在和接口路径拼接完整的url
return ReadBasicIni().get_host(HOST_NAME) + path
@logor
def req_mime(self, row):
"""根据行号,获取用例的请求媒体类型"""
# log.info(f"执行的方法为:req_mime,功能描述为:根据行号,获取用例的请求媒体类型,传入的参数为:{row}行")
mime = self.__get_cell_value(MIME, row)
if mime:
return mime.lower()
@logor
def case_data(self, row):
"""根据行号,获取用例数据"""
# log.info(f"执行的方法为:case_data,功能描述为:根据行号,获取用例数据,传入的参数为:{row}行")
case_data_key = self.__get_cell_value(CASE, row)
module_name = self.module_name(row)
api_name = self.api_name(row)
if case_data_key and module_name and api_name:
return self.case_data_dict[module_name][api_name][case_data_key]
@logor
def expect_data(self, row):
"""根据行号,获取期望数据"""
# log.info(f"执行的方法为:expect_data,功能描述为:根据行号,获取期望数据,传入的参数为:{row}行")
expect_data_key = self.__get_cell_value(EXPECT, row)
module_name = self.module_name(row)
api_name = self.api_name(row)
if expect_data_key and module_name and api_name:
return self.expect_data_dict[module_name][api_name][expect_data_key]
@logor
def sql_type(self, row):
"""根据行号,获取sql语句类型"""
# log.info(f"执行的方法为:sql_type,功能描述为:根据行号,获取sql语句类型,传入的参数为:{row}行")
value = self.__get_cell_value(SQLTYPE, row)
if value:
return value.lower()
@logor
def sql_data(self, row):
"""根据行号,获取sql语句"""
# log.info(f"执行的方法为:sql_data,功能描述为:根据行号,获取sql语句,传入的参数为:{row}行")
sql_data_key = self.__get_cell_value(SQL, row)
module_name = self.module_name(row)
api_name = self.api_name(row)
if sql_data_key and module_name and api_name:
return self.sql_data_dict[module_name][api_name][sql_data_key]
@logor
def update_key(self, row):
"""根据行号,获取用例的更新的key"""
# log.info(f"执行的方法为:update_key,功能描述为:根据行号,获取用例的更新的key,传入的参数为:{row}行")
return self.__get_cell_value(UPDATEKEY, row)
@logor
def case_title(self, row):
"""根据行,获取用例的标题"""
return self.__get_cell_value(TITLE, row)
@logor
def case_level(self, row):
"""根据行获取用例的等级"""
return self.__get_cell_value(LEVEL, row)
@logor
def get_data(self):
"""将测试使用到的数据存放在二维列表中"""
list_data = []
for row in range(2, self.ws.max_row+1):
module = self.module_name(row)
api = self.api_name(row)
title = self.case_title(row)
level = self.case_level(row)
method = self.req_method(row)
url = self.req_url(row)
mime = self.req_mime(row)
case_data = self.case_data(row)
expect_data = self.expect_data(row)
sql_type = self.sql_type(row)
sql_data = self.sql_data(row)
update_key = self.update_key(row)
if method and url and expect_data:
list_data.append([module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key])
else:
return list_data
if __name__ == '__main__':
excel = ReadExcel("zs_data")
print(excel.get_data())
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: read_json.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:17
# Description:
#
# ---------------------------------------------------------------------------
import json
import os
from APIAutoTest_v3_1 import log
def read_json(file_path):
"""读取json文件,将json文件的内容序列化为python对象在返回"""
log.info(f"执行的函数为:read_json,描述为:读取json文件,将json文件的内容序列化为python对象在返回,传入的参数为:{file_path}")
if isinstance(file_path, str) and os.path.isfile(file_path) and file_path.endswith(".json"):
with open(file_path, mode="r", encoding="utf-8") as f:
try:
return json.loads(f.read())
except Exception as e:
log.error(
f"执行的函数为:read_json,描述为:读取json文件,将json文件的内容序列化为python对象在返回,传入的参数为:{file_path}, 文件路径不存在"
f"错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
log.error(f"执行的函数为:read_json,描述为:读取json文件,将json文件的内容序列化为python对象在返回,传入的参数为:{file_path}, 文件路径不存在"
f"错误类型为:FileNotFoundError, 错误的描述为:文件路径错误")
raise FileNotFoundError("文件路径错误")
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: read_ini.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:09
# Description:
#
# ---------------------------------------------------------------------------
import configparser
import os
from APIAutoTest_v3_1 import log, logor
class ReadUserIni:
def __init__(self, user):
"""读取ini文件, 需要指明读取哪个用户的ini配置文件"""
# 获取数据配置层的路径
data_config = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data_config")
# 获取用户存放数据的目录路径
self.user_data_config = os.path.join(data_config, user)
# 获取用户的ini文件路径
ini_path = os.path.join(self.user_data_config, "config.ini")
self.conf = configparser.ConfigParser()
res = self.conf.read(ini_path, encoding="utf-8")
if not res:
log.error(f"读取ini文件失败,请检查用户名是否传入正确,用户名为:{user}, 对应的ini文件路径为:{ini_path}")
raise ValueError("用户名错误")
@logor
def get_file_path(self, key):
"""根据key获取file节点下文件的路径"""
# log.info(f"执行get_file_path方法,功能为:根据key获取file节点下文件的路径, 传入的参数为:{key}")
try:
file_name = self.conf.get("file", key)
except Exception as e:
# log.info(f"执行get_file_path方法,功能为:根据key获取file节点下文件的路径, 传入的参数为:{key}"
# f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
return os.path.join(self.user_data_config, file_name)
@logor
def get_table_name(self, key):
"""根据key获取table节点下工作表的名称"""
try:
return self.conf.get("table", key)
except Exception as e:
raise e
if __name__ == '__main__':
ini = ReadUserIni("zs_data")
print(ini.get_table_name("name"))
# 配置被测系统的域名
[host]
bpm=http://36.139.193.99:8088
# 数据库的链接信息
[sql]
host=36.139.193.99
port=3306
user=root
pwd=Rhrc@2024
database=eip8
\ No newline at end of file
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsError": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE"
},
"LoginErrorPasswordIsLong": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsShort": {
"username": "admin",
"password": "1"
},
"LoginErrorPasswordIsSpecial": {
"username": "admin",
"password": "㊚㊛囍㊒㊖☑✔☐☒✘卍"
},
"LoginErrorPasswordIsNone": {
"username": "admin",
"password": ""
},
"LoginErrorUsernameIsNone": {
"username": "",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsShort": {
"username": "a",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsLong": {
"username": "adminadminadminadminadminadmin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsSpecial": {
"username": "㊚㊛囍㊒㊖☑✔☐☒✘卍",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "testAddDem",
"description": "testAddDem",
"isDefault": 0,
"name": "testAddDem"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "需要更新"},
"DeleteDemErrorIdIsNone": {"ids": ""}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"code": "testAddDem"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "testAddDem",
"description": "测试添加的维度",
"isDefault": 0,
"name": "测试添加的维度"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "testAddOrg",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"删除组织": {
"DelOrgSuccess": "testAddOrg"
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"query": {"orgCode": "testAddOrg"},
"body": [{"alias": "sz", "value": 1}]
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {
"id":"",
"account":"testAddUser",
"address":"",
"email":"",
"fullname":"测试添加的用户",
"mobile":"",
"password":"123456",
"photo":"",
"sex":"",
"status":1
}
}
}
}
# 配置文件的名称
[file]
# 配置用例管理文件名称
excel=apiAutoTest.xlsx
# 配置用例json文件名称
case=case_data.json
# 配置期望数据名称名称
expect=expect_data.json
# 配置sql语句文件的名称
sql=sql_data.json
# 配置excel工作表的名称
[table]
name=BPM接口测试
{
"认证接口":{
"登录系统":{
"LoginSuccess":{"username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true},
"LoginErrorPasswordIsError":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsSpecial":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsSpecial":{"state":false,"message":"账户错误或该租户未启用"}
},
"刷新token": {
"RefreshTokenSuccess": {"loginStatus":true}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"state": true, "message": "添加维度成功!"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"state":true,"message":"删除维度成功!"},
"DeleteDemErrorIdIsNone": {"state":false,"message":"维度id不能为空!"}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"state": true, "message": "设置默认维度成功"}
},
"更新维度": {
"UpdateDemSuccess": {"state": true, "message": "更新维度成功"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"state": true, "message": "添加组织成功"}
},
"删除组织": {
"DelOrgSuccess": {"state":true,"message":"删除组织成功!"}
},
"保存组织参数": {
"SaveOrgParamSuccess": {"state":true,"message":"保存组织参数成功!"}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {"state":true,"message":"用户添加成功!","value":"","code":200}
}
}
}
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"delete": "delete from uc_org where CODE_=\"testAddOrg\";",
"select": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": "delete from uc_user where ACCOUNT_=\"testAddUser\";"
}
}
}
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: settings.py
# Author: lao_zhao
# Datetime: 2024/11/6 11:47
# 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'
# ================================
EXCEL_NAME = "excel"
CASE_NAME = "case"
EXPECT_NAME = "expect"
SQL_NAME = 'sql'
TABLE_NAME = 'name'
HOST_NAME = 'bpm'
\ No newline at end of file
# 配置文件的名称
[file]
# 配置用例管理文件名称
excel=用例excel文件.xlsx
# 配置用例json文件名称
case=用例数据.json
# 配置期望数据名称名称
expect=期望数据.json
# 配置sql语句文件的名称
sql=sql语句.json
# 配置excel工作表的名称
[table]
name=接口测试
{
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"delete": "delete from uc_org where CODE_=\"testAddOrg\";",
"select": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": "delete from uc_user where ACCOUNT_=\"testAddUser\";"
}
}
}
\ No newline at end of file
{
{
"认证接口":{
"登录系统":{
"LoginSuccess":{"username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true},
"LoginErrorPasswordIsError":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsSpecial":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsSpecial":{"state":false,"message":"账户错误或该租户未启用"}
},
"刷新token": {
"RefreshTokenSuccess": {"loginStatus":true}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"state": true, "message": "添加维度成功!"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"state":true,"message":"删除维度成功!"},
"DeleteDemErrorIdIsNone": {"state":false,"message":"维度id不能为空!"}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"state": true, "message": "设置默认维度成功"}
},
"更新维度": {
"UpdateDemSuccess": {"state": true, "message": "更新维度成功"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"state": true, "message": "添加组织成功"}
},
"删除组织": {
"DelOrgSuccess": {"state":true,"message":"删除组织成功!"}
},
"保存组织参数": {
"SaveOrgParamSuccess": {"state":true,"message":"保存组织参数成功!"}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {"state":true,"message":"用户添加成功!","value":"","code":200}
}
}
}
{
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsError": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE"
},
"LoginErrorPasswordIsLong": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsShort": {
"username": "admin",
"password": "1"
},
"LoginErrorPasswordIsSpecial": {
"username": "admin",
"password": "㊚㊛囍㊒㊖☑✔☐☒✘卍"
},
"LoginErrorPasswordIsNone": {
"username": "admin",
"password": ""
},
"LoginErrorUsernameIsNone": {
"username": "",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsShort": {
"username": "a",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsLong": {
"username": "adminadminadminadminadminadmin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsSpecial": {
"username": "㊚㊛囍㊒㊖☑✔☐☒✘卍",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "testAddDem",
"description": "testAddDem",
"isDefault": 0,
"name": "testAddDem"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "需要更新"},
"DeleteDemErrorIdIsNone": {"ids": ""}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"code": "testAddDem"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "testAddDem",
"description": "测试添加的维度",
"isDefault": 0,
"name": "测试添加的维度"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "testAddOrg",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"删除组织": {
"DelOrgSuccess": "testAddOrg"
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"query": {"orgCode": "testAddOrg"},
"body": [{"alias": "sz", "value": 1}]
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {
"id":"",
"account":"testAddUser",
"address":"",
"email":"",
"fullname":"测试添加的用户",
"mobile":"",
"password":"123456",
"photo":"",
"sex":"",
"status":1
}
}
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854067358818738176"}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854067358336393216"}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854067362828492800"}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjU0NzksImlhdCI6MTczMDg3OTA3OX0.C-4URhFTCP1sT5AX7866JabzEpDBzVji4ojaHvvWO_Hqo9WpInatVMMDM0fXZWsv_7e24Xixc1GJgumyvWsNGg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
INFO  root:db.py:36 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:DELETE FROM uc_demension WHERE CODE_="testAddDem";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
INFO  root:db.py:36 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_org where CODE_="testAddOrg";
INFO  root:db.py:51 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'code': 'testAddOrg', 'demId': '1854067361326931968', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功'}, 服务器返回的数据为:{"state":true,"message":"添加组织成功!","value":"","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]},期望数据为:{'state': True, 'message': '保存组织参数成功!'}, 服务器返回的数据为:{"state":false,"message":"保存失败,请将参数填写完整","value":"根据输入的组织编码没有找到对应的组织信息!","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854067360823615488"}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854067358676131840"}
\ No newline at end of file
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:host
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:port
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:user
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:pwd
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:database
INFO  root:read_basic_ini.py:26 执行get_host方法,功能为:根据key获取host节点下被测系统的域名, 传入的参数为:bpm
INFO  root:db.py:36 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:DELETE FROM uc_demension WHERE CODE_="testAddDem";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1854067357606584320"}
\ No newline at end of file
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:host
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:port
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:user
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:pwd
INFO  root:read_basic_ini.py:36 执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:database
INFO  root:read_basic_ini.py:26 执行get_host方法,功能为:根据key获取host节点下被测系统的域名, 传入的参数为:bpm
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjU0NzksImlhdCI6MTczMDg3OTA3OX0.C-4URhFTCP1sT5AX7866JabzEpDBzVji4ojaHvvWO_Hqo9WpInatVMMDM0fXZWsv_7e24Xixc1GJgumyvWsNGg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]},期望数据为:{'state': True, 'message': '保存组织参数成功!'}, 服务器返回的数据为:{"state":false,"message":"保存失败,请将参数填写完整","value":"根据输入的组织编码没有找到对应的组织信息!","code":200}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854067358508359680"}
\ No newline at end of file
INFO  root:db.py:36 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_user where ACCOUNT_="testAddUser";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
INFO  root:db.py:36 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_user where ACCOUNT_="testAddUser";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:testAddOrg,期望数据为:{'state': True, 'message': '删除组织成功!'}, 服务器返回的数据为:{"state":true,"message":"删除组织成功!","value":"","code":200}
\ No newline at end of file
INFO  root:db.py:51 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'ids': '1854067361326931968'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
INFO  root:db.py:36 执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:delete from uc_org where CODE_="testAddOrg";
INFO  root:db.py:51 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'code': 'testAddOrg', 'demId': '1854067359137505280', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功'}, 服务器返回的数据为:{"state":true,"message":"添加组织成功!","value":"","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854067357778550784"}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:None,期望数据为:{'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjU0NzksImlhdCI6MTczMDg3OTA3OX0.C-4URhFTCP1sT5AX7866JabzEpDBzVji4ojaHvvWO_Hqo9WpInatVMMDM0fXZWsv_7e24Xixc1GJgumyvWsNGg","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854067358135066624"}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854067357958905856"}
\ No newline at end of file
INFO  root:db.py:51 执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'ids': '1854067359137505280'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:testAddOrg,期望数据为:{'state': True, 'message': '删除组织成功!'}, 服务器返回的数据为:{"state":true,"message":"删除组织成功!","value":"","code":200}
\ No newline at end of file
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"BPM_DEMO","维度管理","添加维度","0","0","1","0","0"
"BPM_张三","维度管理","更新维度","1","0","0","0","0"
"BPM_DEMO","组织管理","保存组织参数","1","0","0","0","0"
"BPM_张三","组织管理","添加组织","1","0","0","0","0"
"BPM_张三","组织管理","删除组织","0","0","1","0","0"
"BPM_DEMO","认证接口","登录系统","5","0","5","0","0"
"BPM_张三","维度管理","根据维度编码删除维度","1","0","1","0","0"
"BPM_DEMO","维度管理","设置默认维度","1","0","0","0","0"
"BPM_DEMO","维度管理","根据维度编码删除维度","1","0","1","0","0"
"BPM_张三","组织管理","保存组织参数","1","0","0","0","0"
"BPM_DEMO","组织管理","添加组织","1","0","0","0","0"
"BPM_张三","用户管理","添加用户","0","0","1","0","0"
"BPM_DEMO","用户管理","添加用户","0","0","1","0","0"
"BPM_DEMO","组织管理","删除组织","0","0","1","0","0"
"BPM_张三","维度管理","添加维度","0","0","1","0","0"
"BPM_DEMO","认证接口","刷新token","0","0","1","0","0"
"BPM_张三","维度管理","设置默认维度","1","0","0","0","0"
"BPM_DEMO","维度管理","更新维度","1","0","0","0","0"
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Product defects","15","0","0","0","0"
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","43","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","22","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","14","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","49","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","30","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","24","test_case.test_demo","test_bpm","TestBPM","","","反向用例-用户名正确-密码为特殊字符",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","31","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","25","test_case.test_demo","test_bpm","TestBPM","","","反向用例-密码正确-用户名为特殊字符",""
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","30","test_case.test_demo","test_bpm","TestBPM","","","反向用例-密码正确-用户名过短",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","37","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","13","test_case.test_demo","test_bpm","TestBPM","","","反向用例-维度id为空",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","14","test_case.test_zs","test_bpm","TestBPM","","","反向用例-维度id为空",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","16","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:32 CST 2024","109","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","50","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","39","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","26","test_case.test_demo","test_bpm","TestBPM","","","反向用例-用户名正确-密码过短",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","27","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","30","test_case.test_demo","test_bpm","TestBPM","","","反向用例-密码正确-用户名过长",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","38","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","13","test_case.test_demo","test_bpm","TestBPM","","","反向用例-用户名正确-密码过长",""
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","24","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","27","test_case.test_demo","test_bpm","TestBPM","","","正向用例-用户和密码正确",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","25","test_case.test_demo","test_bpm","TestBPM","","","反向用例-用户名正确-密码为空",""
"passed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","29","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:32 CST 2024","Wed Nov 06 15:47:32 CST 2024","27","test_case.test_zs","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","19","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"failed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","30","test_case.test_demo","test_bpm","TestBPM","","","反向用例-用户名正确-密码错误",""
"passed","Wed Nov 06 15:47:31 CST 2024","Wed Nov 06 15:47:31 CST 2024","29","test_case.test_demo","test_bpm","TestBPM","","","反向用例-密码正确-用户名为空",""
{
"uid" : "4ffd5564653ac5dc",
"name" : "正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "26aa9a6e36df06bfb22dc6c1417be0f9",
"time" : {
"start" : 1730879252085,
"stop" : 1730879252112,
"duration" : 27
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "fb0696c24217dace",
"name" : "log",
"source" : "fb0696c24217dace.txt",
"type" : "text/plain",
"size" : 257
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "删除组织"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'删除组织'"
}, {
"name" : "case_data",
"value" : "'testAddOrg'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'x-www-form-urlencoded'"
}, {
"name" : "module",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "4ffd5564653ac5dc.json",
"parameterValues" : [ "'删除组织'", "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'中'", "'post'", "'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" : "509c7668c42ae6cb",
"name" : "正向用例",
"fullName" : "test_case.test_zs.test_bpm.TestBPM#test_bpm",
"historyId" : "f660b3fe0aec9063a46732c1fdf6fe14",
"time" : {
"start" : 1730879252340,
"stop" : 1730879252378,
"duration" : 38
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879252266,
"stop" : 1730879252339,
"duration" : 73
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "715a61e8182f50fa",
"name" : "log",
"source" : "715a61e8182f50fa.txt",
"type" : "text/plain",
"size" : 1530
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM_张三"
}, {
"name" : "parentSuite",
"value" : "test_case.test_zs"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_zs.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'添加维度'"
}, {
"name" : "case_data",
"value" : "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "module",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "509c7668c42ae6cb.json",
"parameterValues" : [ "'添加维度'", "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'高'", "'post'", "'json'", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
"uid" : "5182aa310eb2aea3",
"name" : "反向用例-密码正确-用户名过长",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "db26fe387ddd5882702b687276a18c5a",
"time" : {
"start" : 1730879251708,
"stop" : 1730879251738,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "703e5132b15f9651",
"name" : "log",
"source" : "703e5132b15f9651.txt",
"type" : "text/plain",
"size" : 526
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码正确-用户名过长'"
}, {
"name" : "update_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" : "5182aa310eb2aea3.json",
"parameterValues" : [ "'登录系统'", "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码正确-用户名过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "52db059a1db1b6f9",
"name" : "正向用例-用户和密码正确",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "4b2b892d35c61562f23d9f0e8b52a6c1",
"time" : {
"start" : 1730879251205,
"stop" : 1730879251232,
"duration" : 27
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "774836c7cf301668",
"name" : "log",
"source" : "774836c7cf301668.txt",
"type" : "text/plain",
"size" : 1793
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect_data",
"value" : "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例-用户和密码正确'"
}, {
"name" : "update_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" : "52db059a1db1b6f9.json",
"parameterValues" : [ "'登录系统'", "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'高'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'正向用例-用户和密码正确'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "5507fa48b29e2eb",
"name" : "正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "09776c0cd9b9f2466943d995e06d2f0f",
"time" : {
"start" : 1730879251817,
"stop" : 1730879251860,
"duration" : 43
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "337e0557ea68bab5",
"name" : "log",
"source" : "337e0557ea68bab5.txt",
"type" : "text/plain",
"size" : 515
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'添加维度'"
}, {
"name" : "case_data",
"value" : "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "module",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "5507fa48b29e2eb.json",
"parameterValues" : [ "'添加维度'", "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'高'", "'post'", "'json'", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
"uid" : "6e144927484ff9d8",
"name" : "正向用例",
"fullName" : "test_case.test_zs.test_bpm.TestBPM#test_bpm",
"historyId" : "df7c3686a6998899d45f3b2c84cfcf57",
"time" : {
"start" : 1730879252673,
"stop" : 1730879252704,
"duration" : 31
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879252266,
"stop" : 1730879252339,
"duration" : 73
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "9f28b0390926c157",
"name" : "log",
"source" : "9f28b0390926c157.txt",
"type" : "text/plain",
"size" : 460
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码删除维度"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_张三"
}, {
"name" : "parentSuite",
"value" : "test_case.test_zs"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_zs.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'根据维度编码删除维度'"
}, {
"name" : "case_data",
"value" : "{'ids': '需要更新'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "module",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sql_type",
"value" : "'select'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "6e144927484ff9d8.json",
"parameterValues" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "7e6368410f04c2f1",
"name" : "正向用例",
"fullName" : "test_case.test_zs.test_bpm.TestBPM#test_bpm",
"historyId" : "d3e53d8e3d9746157a6b70ec22de8a33",
"time" : {
"start" : 1730879252605,
"stop" : 1730879252655,
"duration" : 50
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879252266,
"stop" : 1730879252339,
"duration" : 73
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "927eb1f4870e1282",
"name" : "log",
"source" : "927eb1f4870e1282.txt",
"type" : "text/plain",
"size" : 625
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "用户管理"
}, {
"name" : "story",
"value" : "添加用户"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM_张三"
}, {
"name" : "parentSuite",
"value" : "test_case.test_zs"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_zs.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'添加用户'"
}, {
"name" : "case_data",
"value" : "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "module",
"value" : "'用户管理'"
}, {
"name" : "sql_data",
"value" : "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "7e6368410f04c2f1.json",
"parameterValues" : [ "'添加用户'", "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'高'", "'post'", "'json'", "'用户管理'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}
\ No newline at end of file
{
"uid" : "8d57a4cc7394d672",
"name" : "反向用例-密码正确-用户名过短",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "59e1f9d38c43147a4cb3ec24e520c567",
"time" : {
"start" : 1730879251669,
"stop" : 1730879251699,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "91ca465237d03b30",
"name" : "log",
"source" : "91ca465237d03b30.txt",
"type" : "text/plain",
"size" : 497
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码正确-用户名过短'"
}, {
"name" : "update_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" : "8d57a4cc7394d672.json",
"parameterValues" : [ "'登录系统'", "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码正确-用户名过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "9378ac019dcdaf57",
"name" : "反向用例-密码正确-用户名为特殊字符",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "0fb3c21628087294c7751328e7c70d93",
"time" : {
"start" : 1730879251746,
"stop" : 1730879251771,
"duration" : 25
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "148e1b09ee91fdc9",
"name" : "log",
"source" : "148e1b09ee91fdc9.txt",
"type" : "text/plain",
"size" : 529
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码正确-用户名为特殊字符'"
}, {
"name" : "update_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" : "9378ac019dcdaf57.json",
"parameterValues" : [ "'登录系统'", "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码正确-用户名为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "985fad97dc342d5d",
"name" : "反向用例-密码正确-用户名为空",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "a2e023d13f564d1f90b9f117af6c243c",
"time" : {
"start" : 1730879251628,
"stop" : 1730879251657,
"duration" : 29
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "19064263808f91da",
"name" : "log",
"source" : "19064263808f91da.txt",
"type" : "text/plain",
"size" : 496
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'Post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码正确-用户名为空'"
}, {
"name" : "update_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" : "985fad97dc342d5d.json",
"parameterValues" : [ "'登录系统'", "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'中'", "'Post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码正确-用户名为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "9ac002d3d37db7ba",
"name" : "正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "8d63e0b675160131a1b6ba3bbbcd55e7",
"time" : {
"start" : 1730879252154,
"stop" : 1730879252193,
"duration" : 39
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "9226ee55e0f0f684",
"name" : "log",
"source" : "9226ee55e0f0f684.txt",
"type" : "text/plain",
"size" : 625
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "用户管理"
}, {
"name" : "story",
"value" : "添加用户"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'添加用户'"
}, {
"name" : "case_data",
"value" : "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "module",
"value" : "'用户管理'"
}, {
"name" : "sql_data",
"value" : "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "9ac002d3d37db7ba.json",
"parameterValues" : [ "'添加用户'", "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'高'", "'post'", "'json'", "'用户管理'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}
\ No newline at end of file
{
"uid" : "b69796267c12d749",
"name" : "正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "56ffdd4334779f95a7f2b9c2115b90cc",
"time" : {
"start" : 1730879251780,
"stop" : 1730879251804,
"duration" : 24
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "bc96d849b84fafeb",
"name" : "log",
"source" : "bc96d849b84fafeb.txt",
"type" : "text/plain",
"size" : 445
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'刷新token'"
}, {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'loginStatus': True}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/refresh'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "b69796267c12d749.json",
"parameterValues" : [ "'刷新token'", "None", "{'loginStatus': True}", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
}
\ No newline at end of file
{
"uid" : "d0f2f3fab857d7c3",
"name" : "正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "7ac2f3d0901d435e576d8af86e1a2a51",
"time" : {
"start" : 1730879252201,
"stop" : 1730879252230,
"duration" : 29
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879251133,
"stop" : 1730879251203,
"duration" : 70
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "e8afe5cb8b634a35",
"name" : "log",
"source" : "e8afe5cb8b634a35.txt",
"type" : "text/plain",
"size" : 460
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码删除维度"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_DEMO"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'根据维度编码删除维度'"
}, {
"name" : "case_data",
"value" : "{'ids': '需要更新'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "module",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sql_type",
"value" : "'select'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "d0f2f3fab857d7c3.json",
"parameterValues" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "ffac6d8696450299",
"name" : "正向用例",
"fullName" : "test_case.test_zs.test_bpm.TestBPM#test_bpm",
"historyId" : "6709b65952b82eccd1d3eba75d8bbbec",
"time" : {
"start" : 1730879252533,
"stop" : 1730879252563,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730879252266,
"stop" : 1730879252339,
"duration" : 73
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730879251016,
"stop" : 1730879251133,
"duration" : 117
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "94a00445d64ec980",
"name" : "log",
"source" : "94a00445d64ec980.txt",
"type" : "text/plain",
"size" : 257
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"shouldDisplayMessage" : false,
"attachmentsCount" : 1
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730879252739,
"stop" : 1730879252739,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"shouldDisplayMessage" : false,
"attachmentsCount" : 0
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "删除组织"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM_张三"
}, {
"name" : "parentSuite",
"value" : "test_case.test_zs"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-O09782E1"
}, {
"name" : "thread",
"value" : "17520-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_zs.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api",
"value" : "'删除组织'"
}, {
"name" : "case_data",
"value" : "'testAddOrg'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'x-www-form-urlencoded'"
}, {
"name" : "module",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_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" : "ffac6d8696450299.json",
"parameterValues" : [ "'删除组织'", "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'中'", "'post'", "'x-www-form-urlencoded'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}
\ No newline at end of file
launch_status failed=15 1730879265000000000
launch_status broken=0 1730879265000000000
launch_status passed=14 1730879265000000000
launch_status skipped=0 1730879265000000000
launch_status unknown=0 1730879265000000000
launch_time duration=1522 1730879265000000000
launch_time min_duration=13 1730879265000000000
launch_time max_duration=109 1730879265000000000
launch_time sum_duration=890 1730879265000000000
launch_problems product_defects=15 1730879265000000000
launch_retries retries=0 1730879265000000000
launch_retries run=29 1730879265000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 15
launch_status_broken 0
launch_status_passed 14
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 1522
launch_time_min_duration 13
launch_time_max_duration 109
launch_time_sum_duration 890
launch_problems_product_defects 15
launch_retries_retries 0
launch_retries_run 29
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
"data" : {
"Product defects" : 15
}
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 1522
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 15,
"broken" : 0,
"skipped" : 0,
"passed" : 14,
"unknown" : 0,
"total" : 29
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 29,
"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.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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