Commit 604634f7 by ztw

bendi yuanchen

parent 3f11ac55
# -*-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 静态报告存放的目录
"""
#-----------------------------------------------------------------------------------
"""
每个用户有独立的数据配置层,每个用户有自己的配置文件-config.ini--->这个文件名称不能改变文件名---需要单独读取---ReadUserIni
接口自动化框架有公共的配置文件---config.ini--->这个文件名称不能改变文件名---ReadBasicIni
在用例层-每个用户都有自己独立的测试层--用户的测试层中的__init__.py文件中需要配置用户存放数据的目录名称
"""
""" 报告插件:pytest-html ---> pip install pytest-html
输出报告的命令:pytest -vv 用例模块/用例包 --html=报告存放的路径 --self-contained-html
pytest -vv test_case --html=./report/html/report_1.html --self-contained-html --reruns 5 --reruns-delay 0.5
失败重跑插件: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
eg:pytest test_case --alluredir=./report/json_report --clean-alluredir
2: 根据第一步测试结果的json文件生成报告。
i: 本地生成测试报告服务
allure serve 第一步存放测试结果json文件的目录(ps:./report/json_report)
eg:allure serve ./report/json_report
ii: 生成静态的报告
allure generate 第一步存放测试结果json文件的目录 -o 静态报告存放的目录
eg: allure generate ./report/json_report -o ./report/static_report
"""
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.error(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.error(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.error(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":"解密密码异常,请检查RSA公钥和私钥配置"},
"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":"删除维度失败,维度ids必填"}
},
"设置默认维度": {
"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":"删除维度失败,维度ids必填"}
},
"设置默认维度": {
"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
}
}
}
}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "8434b45b-96af-4076-bff7-c2628c13ce50-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'添加维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "update_key", "value": "None"}], "start": 1730896110520, "stop": 1730896110564, "uuid": "c46b985a-62e7-4b5d-beee-d3bbf8ec5d58", "historyId": "09776c0cd9b9f2466943d995e06d2f0f", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "daaaec65-a667-4d8d-92f3-1db9dd8f0bf4", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "5820921c-166e-45cb-910a-56e2ed3dd8e6", "befores": [{"name": "api", "status": "passed", "start": 1730896110614, "stop": 1730896110614}], "start": 1730896110614, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "7d000b78-4139-4d26-bde3-ade6649a4b68", "befores": [{"name": "method", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "74eae938-51fa-4bae-8d58-1fd3077ad271", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "a2910701-4589-473a-bdb4-661429b2cab0", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110009}
\ No newline at end of file
{"uuid": "6e888fb0-565d-4988-810c-4943a8d45d01", "befores": [{"name": "level", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "e89167d0-ae12-4ba9-8729-34038281b5cb", "befores": [{"name": "url", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
{"uuid": "980208a7-122d-4c6f-aa94-25b078216f32", "befores": [{"name": "update_key", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "44f108b4-7efd-428e-a254-ad81704bee11", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ 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";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddOrg', 'demId': '1854138073836265472', '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
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854138072628305920"}
\ No newline at end of file
{"uuid": "42b836c6-27d8-4f0a-8c45-cda5c630fc06", "befores": [{"name": "url", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "93637e1c-89ee-40a6-b0f2-3f19dfdf992b", "befores": [{"name": "mime", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112480}
\ No newline at end of file
{"uuid": "a9a65904-1120-4115-b876-802d0fde06c4", "befores": [{"name": "title", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "cae3a212-4d46-4253-a83f-b8f969785cc8", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "6a0e4133-6dcf-4349-a265-96cf1eaa3d33", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110615, "stop": 1730896110615}], "start": 1730896110615, "stop": 1730896110629}
\ No newline at end of file
{"uuid": "6a3fd7b3-cace-412b-a5cb-7738e4dfed0e", "befores": [{"name": "api", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110611}
\ No newline at end of file
{"uuid": "4823a807-7d81-4bd3-a517-9a3c2da9ac18", "befores": [{"name": "url", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112489}
\ No newline at end of file
{"uuid": "0a1b409c-0935-4d17-af4a-fe189e192f58", "befores": [{"name": "title", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "76ce3df7-52b4-450e-b587-21d5d7e92abe", "befores": [{"name": "level", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "e8dd18ce-e151-495f-8a0e-a49a34943b66", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "73816399-6321-472a-a6c0-0cb1f63df8ec", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110520, "stop": 1730896110520}], "start": 1730896110520, "stop": 1730896110564}
\ No newline at end of file
{"uuid": "8c64e89a-91b8-4e7e-b825-901ceea5b779", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "9f43943f-cfb8-463f-a0e2-494413f22833", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112529}
\ No newline at end of file
{"uuid": "8b6d0d1b-0476-4fc8-bcb8-44bbc118fcd0", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "04c57346-ff16-4628-aa42-340f85249a69", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "ce17f6c3-5f29-476c-8819-8fe2674f177f", "befores": [{"name": "title", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "93acdbe0-f612-4401-98e8-5f909bd4f1b0", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110049}
\ No newline at end of file
{"uuid": "6e8b0d57-2f5c-45e1-93b0-b68ad3402bae", "befores": [{"name": "title", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "f572f77d-9b75-4a9c-80e5-405f6a563f7a", "befores": [{"name": "api", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "c80c4c9a-8951-4dff-adc9-06a96f408a9e", "befores": [{"name": "url", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "31d57191-a7ba-4a33-ade4-d3e700433e29", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112480}
\ No newline at end of file
{"uuid": "6f65dd20-7dc0-4b30-9939-a853e6de9e72", "befores": [{"name": "url", "status": "passed", "start": 1730896110614, "stop": 1730896110614}], "start": 1730896110614, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "47b45f10-e072-4a0a-be1d-e2fcbcccbcf2", "befores": [{"name": "method", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "435a64e7-e293-4f2b-8022-499b782ab196", "befores": [{"name": "level", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "cbd17a30-8aa6-4fda-ba1c-1fc39dbb12c6", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112769}
\ No newline at end of file
{"uuid": "41c9f60a-e449-4271-be3a-aab00f3f6987", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112409}
\ No newline at end of file
{"uuid": "b77fe2b2-fdef-43c4-b92c-d691039c7237", "befores": [{"name": "title", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "805da945-92e0-4b16-85c8-1a3a227ec9f9", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110760}
\ No newline at end of file
{"uuid": "f6aa559b-8c58-4263-b63c-36774234b4b2", "befores": [{"name": "method", "status": "passed", "start": 1730896110614, "stop": 1730896110614}], "start": 1730896110614, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "3c738bf3-af59-4bcd-82c1-0f92aed91244", "befores": [{"name": "mime", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "741988fd-d9f7-46e0-ab87-55f961cbd5ea", "befores": [{"name": "module", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "a8878f85-2f4e-40cd-8d9e-38855c7a3b06-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'用户管理'"}, {"name": "api", "value": "'添加用户'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/user/v1/user/addUser'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"}, {"name": "expect_data", "value": "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"}, {"name": "update_key", "value": "None"}], "start": 1730896112784, "stop": 1730896112829, "uuid": "d1a79f80-2639-4e11-b305-26b1cae8efe4", "historyId": "d3e53d8e3d9746157a6b70ec22de8a33", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "f37f7b7a-58ef-46a6-854d-77cdee60ee50", "befores": [{"name": "title", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名为空", "status": "passed", "attachments": [{"name": "log", "source": "b076077e-7562-4090-98a9-d4400d594948-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'Post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110109, "stop": 1730896110149, "uuid": "5a6d5a4a-57a5-4d1f-9fd5-ae5719be4ad0", "historyId": "a2e023d13f564d1f90b9f117af6c243c", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "d4e3e964-4f27-4cf3-9ce1-e81a537a88a2", "befores": [{"name": "module", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "699a6b86-15af-41da-a8be-71ce4efff483", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "95c1736c-d5f9-4999-a3f7-a2e5fc4fc294", "befores": [{"name": "api", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "c7372667-af8e-45df-a777-9c18b0a9cd3a", "befores": [{"name": "level", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ No newline at end of file
{"uuid": "9056a828-d633-4f9d-9db6-d77259f5bab1", "befores": [{"name": "title", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110019}
\ No newline at end of file
{"uuid": "8a624ca0-a11c-47a4-b091-c00068ed7495", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112480}
\ No newline at end of file
{"uuid": "4d6decfd-3ffa-43ba-b4a5-3b50a316d57e", "befores": [{"name": "level", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "31ef6b4e-641e-4f6d-b0bb-167bf7b37237", "befores": [{"name": "url", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "30dc7742-7818-4101-8a50-ea5dc261ac87", "befores": [{"name": "method", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "4412408b-ed6e-45b8-939b-1b9351ea1469", "befores": [{"name": "title", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110611}
\ No newline at end of file
{"uuid": "70d8162c-e76d-40f9-963d-bc1c04bd43d3", "befores": [{"name": "url", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "cf4d87ac-6918-4c6a-ac34-36ca4b2048e1", "befores": [{"name": "api", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "1a3f048b-7c14-4a7f-99ac-8581a73f91da", "befores": [{"name": "level", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "95413547-4497-4ba6-8eeb-3b63a377b63a", "befores": [{"name": "method", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "a96e7df1-91ba-4fb1-9465-6778f8393a69", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"name": "反向用例-维度id为空", "status": "passed", "attachments": [{"name": "log", "source": "cbe50285-c858-42dd-85c6-974dfb984f4b-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'反向用例-维度id为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '删除维度失败,维度ids必填'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896112869, "stop": 1730896112890, "uuid": "3349718f-116e-486b-b30c-c0f19befe08e", "historyId": "91a66c5156b92215ff0d25258251d68e", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "6e786306-b9a6-41b8-897c-c4dbe9360679", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112864}
\ No newline at end of file
{"uuid": "1221d443-81a5-4a5d-a357-4d0c46d7e32d", "befores": [{"name": "method", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110269}
\ 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":"1854138072292761600"}
\ No newline at end of file
{"uuid": "f568aab8-ba85-47b7-9691-6902a4b7e98f", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112409}
\ No newline at end of file
{"uuid": "2ed42e34-50b7-4200-a424-997b0c6e26ad", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "df584284-c023-40aa-af9e-48e105835080", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "99d28c3c-8c60-4a6d-a0f0-59eea8349c15", "befores": [{"name": "api", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110019}
\ No newline at end of file
{"uuid": "e1648795-4546-488d-9c0c-5e392d9adf08", "befores": [{"name": "module", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110612}
\ No newline at end of file
{"uuid": "813877a7-075d-41a9-baff-956ba17422e4", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110049}
\ No newline at end of file
{"uuid": "5c532e43-33b2-4196-a419-ea8b5c4d92c1", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "6b44d0f4-0148-4e33-9b07-e178a8e4f763", "befores": [{"name": "api", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112489}
\ No newline at end of file
{"uuid": "b09268c6-7663-4592-937a-2a9fe300ddab", "befores": [{"name": "mime", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "19458483-150b-439c-817e-747883397f52", "befores": [{"name": "title", "status": "passed", "start": 1730896110614, "stop": 1730896110614}], "start": 1730896110614, "stop": 1730896110639}
\ 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
{"uuid": "1edb61c8-605b-445f-b7d2-a949955d0187", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "c9b19a38-d3e1-443a-a42f-dcef2c052f95", "befores": [{"name": "mime", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "d9491edb-0860-4be6-9676-a86c7b178671", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112409}
\ No newline at end of file
{"uuid": "b85c1d38-37aa-4070-9071-a0fbfd3c97d9", "befores": [{"name": "method", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110019}
\ No newline at end of file
{"uuid": "38199043-e5c3-452c-b3b8-9b29bda8294d", "befores": [{"name": "level", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "44c78a19-b72b-4eeb-9dc2-8b1e399670c0", "befores": [{"name": "level", "status": "passed", "start": 1730896110614, "stop": 1730896110614}], "start": 1730896110614, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "e31d049c-c83c-4f01-b5f9-7c843bb86ffc", "befores": [{"name": "level", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110019}
\ No newline at end of file
{"uuid": "72ed4a37-db7b-4786-920f-490b5a6f6b5f", "befores": [{"name": "url", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名过短", "status": "passed", "attachments": [{"name": "log", "source": "2a8bf2de-cbea-45e1-83f1-875514bc5488-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110159, "stop": 1730896110179, "uuid": "ef281c63-1927-4186-9bf5-c98487f29059", "historyId": "59e1f9d38c43147a4cb3ec24e520c567", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "a4297a1f-8974-4fc2-8bef-f8d088309fe3", "befores": [{"name": "module", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111169}
\ No newline at end of file
{"uuid": "ef96a201-1e66-49fd-9dd3-7525efee7ffa", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "151ff572-fa5e-4f98-9e97-9fe2bf09554b", "befores": [{"name": "mime", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "da332095-96c3-49a7-9f66-0208f85ba5dd", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "12f75602-88e7-40be-b34d-f223a81aabb7", "befores": [{"name": "case_data", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "6241d28f-b492-4d86-b73b-9753a8ffc778", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110606}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:None,期望数据为:{'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5ODIzMzksImlhdCI6MTczMDg5NTkzOX0.zDwj0qtbijRMsayLUb7lVjmVjkZnkjqex5qlMTlaRtPFVMhyQ_YTj6NixMNI6lLMW9aWGMe2wl8LMBT2BkQRTQ","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true}
\ No newline at end of file
{"uuid": "127ae032-d517-43d1-9559-bf17b78f6e5c", "befores": [{"name": "api", "status": "passed", "start": 1730896110719, "stop": 1730896110719}], "start": 1730896110719, "stop": 1730896110761}
\ No newline at end of file
{"name": "正向用例", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <APIAutoTest_v3_1.test_case.test_demo.test_bpm.TestBPM object at 0x00000258F44AD9A0>\nreq_fix = <APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x00000258F44AF6B0>, module = '组织管理', api = '保存组织参数'\ntitle = '正向用例', level = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}, expect_data = {'message': '保存组织参数成功!', 'state': True}\nsql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_DEMO\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n # 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象\n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)\n \n # 断言\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x00000258F44F5040>('state')\nE + where <built-in method get of dict object at 0x00000258F44F5040> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\nE + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:37: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <APIAutoTest_v3_1.test_case.test_demo.test_bpm.TestBPM object at 0x00000258F44AD9A0>\nreq_fix = <APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x00000258F44AF6B0>, module = '组织管理', api = '保存组织参数'\ntitle = '正向用例', level = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}, expect_data = {'message': '保存组织参数成功!', 'state': True}\nsql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_DEMO\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n # 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象\n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)\n \n # 断言\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:40: AssertionError"}, "attachments": [{"name": "log", "source": "55daa4c1-3318-4462-9fa5-f672016ad484-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'保存组织参数'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110769, "stop": 1730896110780, "uuid": "b8f5195d-b34c-41a6-b176-944c33f6f749", "historyId": "96ef3dbc5c6001007695eb08a02d5162", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "987236e8-13c6-4698-a84f-63c7ea1105f2", "befores": [{"name": "api", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ 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
{"uuid": "31f6a2db-c3a4-438a-b701-66668b59298c", "befores": [{"name": "mime", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "42f7866d-84dc-479b-8401-5875f1b24d71", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "bf1a4c7e-326b-4787-be14-89d30ec3515c", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112480}
\ No newline at end of file
{"uuid": "83f132ba-72d4-4255-8889-7aa0318e4df9", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "e498b3fc-e02c-4059-a99a-e25d98b50a0f", "befores": [{"name": "mime", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "ee23cf71-a5c3-4100-8c91-e58fcafd646b", "befores": [{"name": "module", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110189}
\ No newline at end of file
{"uuid": "be965805-622e-46e6-8e73-1368b1e124ee", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110259}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "a961ca0d-b27e-466c-8e88-aa9a4cd50ccf-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'更新维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '更新维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896112379, "stop": 1730896112409, "uuid": "6ff151f7-f708-49f7-aa8b-161799297009", "historyId": "cc2219f65075af3190eef32bb8750374", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "13d30357-5479-449f-9afb-763139bf9705", "befores": [{"name": "url", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "ff36acff-aed2-4edf-9cdb-b3fef945a3c7", "befores": [{"name": "module", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110019}
\ No newline at end of file
{"uuid": "d99c2485-dbdb-4211-90f6-120a5a3563b9", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "51e019a5-d9c2-430f-bb0a-3ef5b3c342c5", "befores": [{"name": "method", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "fb3c6800-e475-4ecc-89c9-cdac5bd3dcb0", "befores": [{"name": "module", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "8475a39e-8f9f-4a8c-a0ce-cc438848af9e", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "cce6866d-1ce0-4108-a8ff-af313471f649", "befores": [{"name": "title", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112489}
\ No newline at end of file
{"uuid": "138bf523-88e8-453f-84ed-b9b1b2a9cf0d", "befores": [{"name": "api", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "987d2e95-2774-410b-9eef-f1bf69236b31", "befores": [{"name": "mime", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功!'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "b3851ea9-aad4-45cd-a163-8e1891455cfc", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110224}
\ No newline at end of file
{"uuid": "773174d9-2ce0-4c03-b467-b971f51abd5e", "befores": [{"name": "module", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "74614ff7-ca7c-4bd8-b3ee-552fd886efb8", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110615, "stop": 1730896110615}], "start": 1730896110615, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "d46783b4-1088-4632-828c-83a9134883f6", "befores": [{"name": "title", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ No newline at end of file
{"uuid": "a7a82963-5525-4ea5-952c-9dc1ac653ca2", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110259}
\ No newline at end of file
{"uuid": "457507f6-c406-4823-bd58-2cb4433ba261", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "4aaddd47-abed-4dda-a10f-5f629e4b5d34", "befores": [{"name": "url", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110609}
\ No newline at end of file
{"uuid": "91be7732-0151-4719-89ef-d0c680975fc5", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "19ef8f47-6465-4a77-b29f-4cbbc074af62", "befores": [{"name": "mime", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功!'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "e2f6810a-c8f1-4f84-a1a5-7a52dc3baefd", "befores": [{"name": "level", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "e2d873e2-f1e5-4cb9-9c0f-101cb125f42f", "befores": [{"name": "api", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "09410181-7e22-4313-a11c-75511cea6116", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112409}
\ No newline at end of file
{"uuid": "a84755ab-2c60-443a-9626-0f1f546f657f", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112480}
\ No newline at end of file
{"uuid": "1c9082c2-b41f-48f2-ba3c-2a77fb726260", "befores": [{"name": "url", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "fa69d443-9534-4510-8da6-6e6cf635ad94", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110759}
\ No newline at end of file
{"uuid": "e3e74603-cf04-40a3-a591-05941e4258b9", "befores": [{"name": "case_data", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "70e0a738-3299-45dc-8747-a5c14afb76d0", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110519, "stop": 1730896110519}], "start": 1730896110519, "stop": 1730896110569}
\ 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
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "3c957f74-fd64-4c41-b006-705cad51b2ff-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://36.139.193.99:8088/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'loginStatus': True}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110274, "stop": 1730896110509, "uuid": "c689e79c-fcc0-4298-b435-c4747dde189d", "historyId": "56ffdd4334779f95a7f2b9c2115b90cc", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码过短", "status": "passed", "attachments": [{"name": "log", "source": "64710261-7c2b-4341-a451-10362e69b3c3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '1'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896109969, "stop": 1730896110000, "uuid": "b898761f-012e-4d4e-9d49-004c7d3470b6", "historyId": "1d7320f79019e9fe6051f3b8ba0abf78", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "b8351b56-e9a5-4248-89f4-5927b83af257", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "55458d5d-a7da-4c16-8862-1913a29ad20c", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "d7844cc7-a414-4748-a839-cdfd57621a2b", "befores": [{"name": "method", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "587762d1-0a69-447a-82ef-c5ed44aaeed8", "befores": [{"name": "url", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "e0a04210-6b4c-4416-94fb-a66e187ae512", "befores": [{"name": "method", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "c876dacf-2190-44ef-89dd-6cdb0f1b56e9", "befores": [{"name": "title", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功!'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "f3f7f45c-6a51-4cd2-bcce-bbc3cadb6c97-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'用户管理'"}, {"name": "api", "value": "'添加用户'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/user/v1/user/addUser'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"}, {"name": "expect_data", "value": "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"}, {"name": "update_key", "value": "None"}], "start": 1730896110799, "stop": 1730896111159, "uuid": "6483de21-12a8-4231-820c-e969b65d115f", "historyId": "8d63e0b675160131a1b6ba3bbbcd55e7", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "bbae23d0-09be-4584-b501-e67875996375", "befores": [{"name": "url", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "4c113500-533c-4970-bb95-c14b2979db1a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'设置默认维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'code': 'testAddDem'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '设置默认维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896112349, "stop": 1730896112374, "uuid": "b23259a1-1c76-479c-a842-a44b440ade71", "historyId": "3ac8849da3f232afebac7b1866afedf6", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "d45f458f-f201-4b87-bbcc-ca0afc542cba", "befores": [{"name": "case_data", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "1f78fc16-002f-482e-917c-d881acd8259d", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "df78201a-9f87-4249-9665-1b80322155fe", "befores": [{"name": "method", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "91a1c634-8f5b-4d99-8cf0-f07a2f2c9215-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '需要更新'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_data", "value": "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "update_key", "value": "'ids'"}], "start": 1730896111169, "stop": 1730896111200, "uuid": "ecc98f14-f296-4358-9df2-d8407edd9014", "historyId": "190e012a7c0e6a71af5942722125e09b", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "42d681ac-45d8-48bb-af89-cfd1d8976d03", "befores": [{"name": "title", "status": "passed", "start": 1730896109609, "stop": 1730896109609}], "start": 1730896109609, "stop": 1730896109709}
\ No newline at end of file
{"uuid": "fadd60c4-5f68-4a97-8f06-904c911d6030", "befores": [{"name": "method", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "db4a58b0-1c9f-4139-9aa6-b214463c9d16", "befores": [{"name": "mime", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "d8e81c8e-7add-4a88-be09-e608beadaae6", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "a3c51b2b-e798-4df1-bf29-de0bfe9998aa", "befores": [{"name": "case_data", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110009}
\ No newline at end of file
{"uuid": "bd35b9e1-2296-49bf-bbf4-99921fa2d911", "befores": [{"name": "mime", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "181396a0-75ec-4132-a724-23b4593feda4", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "32c6f9c1-089e-4db7-b5f6-41de37869d62", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "09572c8b-c5c9-43e7-8b8b-a900c0e1ae22", "befores": [{"name": "api", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110189}
\ No newline at end of file
{"uuid": "e44dbc96-00b7-45cc-94a4-bff132b8347c", "befores": [{"name": "level", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账号或密码错误'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854138071546175488"}
\ No newline at end of file
{"uuid": "2d43b2a0-831a-47f5-9e23-5d596357c2bb", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109944}
\ No newline at end of file
{"uuid": "2e652164-18e6-4855-8818-fba5711c90a0", "befores": [{"name": "level", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"uuid": "432a1a9c-dcfb-44de-bd72-703b51fa2067", "befores": [{"name": "mime", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ 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";
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddOrg', 'demId': '1854138081335681024', '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
{"uuid": "da6443fb-ed17-4c07-9333-6eebbc641314", "befores": [{"name": "module", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "e61dacf0-68e2-4b51-9574-c49490838ea7", "befores": [{"name": "api", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "7ec44a1d-91f6-4be9-98f2-6bd759a31ced-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'删除组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'x-www-form-urlencoded'"}, {"name": "case_data", "value": "'testAddOrg'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110729, "stop": 1730896110759, "uuid": "7090f244-eef5-4248-93f5-3c86863a571c", "historyId": "26aa9a6e36df06bfb22dc6c1417be0f9", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "ee682038-90b0-4310-bbe4-4980a372f739", "befores": [{"name": "level", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
{"uuid": "7f5ce6ca-d761-4fd1-8a77-6e371e16b924", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "cb0866bf-fe36-43d9-9dc1-156a74b7137e", "befores": [{"name": "update_key", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109944}
\ No newline at end of file
{"uuid": "9d46b8c1-c0ef-432d-95b2-589973d821e7", "befores": [{"name": "url", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110269}
\ No newline at end of file
{"uuid": "06b329b4-e2cc-4db4-a376-c25f78ff99ca", "befores": [{"name": "module", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "d2983123-2f05-43fa-baff-8d18d5eb89d4", "befores": [{"name": "api", "status": "passed", "start": 1730896109609, "stop": 1730896109609}], "start": 1730896109609, "stop": 1730896109709}
\ No newline at end of file
{"uuid": "bf471387-b1fb-4a7c-a39d-8b5d7a62ebce", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112529}
\ No newline at end of file
{"uuid": "c9481de6-b271-4dca-bcf0-a9db9f75abb1", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110224}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '删除维度失败,维度ids必填'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854138076650643456"}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账号或密码错误'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854138071919468544"}
\ No newline at end of file
{"uuid": "3ff226fa-bf7a-4ae9-a272-bc44ac2beda4", "befores": [{"name": "api", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"uuid": "91c42c10-d18d-437c-b200-9a15847e560a", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "7a6b868d-9334-4cba-8a3e-cdb6ae041d50", "befores": [{"name": "module", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110269}
\ No newline at end of file
{"uuid": "eadbba71-ccc4-4f19-906c-22b0232c85ce", "befores": [{"name": "mime", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "7bba486b-4533-4c52-a8a4-5178369b1401", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "66f807f6-90e9-4fc7-b09c-4e08a9803ed8", "befores": [{"name": "title", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "e6ded1fd-d76c-4dcd-afeb-61c8a6955a1d", "befores": [{"name": "mime", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110608}
\ No newline at end of file
{"uuid": "2fef79d6-efc5-43a9-80bd-7b3e3493ccb0", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ 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":"1854138072468922368"}
\ No newline at end of file
{"uuid": "eeea1a2a-3618-40fa-9830-0e31a91891e7", "befores": [{"name": "method", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
{"uuid": "88474b36-cf44-4a3f-b298-ee033a4b647c", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "381dd510-0253-409d-b6cf-81c34b7e6389", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "6bc5e459-a643-484b-8b8c-c6a927083c57", "befores": [{"name": "level", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110610}
\ No newline at end of file
{"uuid": "e15975e1-6277-4b44-9f3f-b4cf3ba9af0f", "befores": [{"name": "method", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "8d7a48e3-2f36-4aa6-a49f-ddc2637e7c47", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "2879a306-951c-4d75-8bbc-d1330ce08859", "befores": [{"name": "method", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ 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
{"uuid": "c04bf449-e199-4017-8a6f-0566a366b96a", "befores": [{"name": "level", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "2efc9a19-a616-4632-b92a-05288fc9823b", "befores": [{"name": "mime", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110009}
\ No newline at end of file
{"uuid": "3e9964e4-30cd-4285-aa29-6093cd305e29", "befores": [{"name": "mime", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "8de2e17c-06ac-4582-85de-5d327e2c5722", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "56abcf36-8094-47b8-b48c-ec08c573328c", "befores": [{"name": "module", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "e17b0739-8602-40f8-a44c-129dd8db5f39", "befores": [{"name": "level", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "dfd97ee1-145f-48db-9b3e-210be4b9646d", "befores": [{"name": "url", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "bbcabecd-c745-4fef-8f7e-87f4b4e643bc", "befores": [{"name": "mime", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110259}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "302c8abd-9781-4800-98e4-ce996fc1e61a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'添加维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "update_key", "value": "None"}], "start": 1730896112299, "stop": 1730896112339, "uuid": "5169b736-b2d9-4dbf-b0ee-e1242e397a3e", "historyId": "f660b3fe0aec9063a46732c1fdf6fe14", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ 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
{"uuid": "20d24ea9-5abb-40ff-a35a-bfb2fdccdc00", "befores": [{"name": "module", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "92ff9c19-3513-48ba-8267-b195466645c4", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110615, "stop": 1730896110615}], "start": 1730896110615, "stop": 1730896110639}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码过长", "status": "passed", "attachments": [{"name": "log", "source": "ad171587-90d4-4c30-a7ca-ca6106d0cbb8-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896109949, "stop": 1730896109969, "uuid": "8b8b0493-e3f2-4c10-a34b-5068cf34fd04", "historyId": "69fe12939a3ac2bda7f623609b47e84f", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "7972b815-9edb-441e-a7ac-67fc472bb6f5", "befores": [{"name": "method", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112489}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "f63dcc62-cf79-4d22-b3b8-3854eec0c192-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110019, "stop": 1730896110049, "uuid": "8cf75e87-4b88-451c-a85e-77e7e4f31cd5", "historyId": "54380b55ea01142824da838b9e3b5228", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "52087e6a-48c7-49d0-a4c4-f9e0dda68746", "befores": [{"name": "method", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "a32f2eef-03eb-45df-8dfd-8aa9c6be2b7f", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "81ee0764-6da3-4ceb-9abd-5b2d73ccb2f0", "befores": [{"name": "case_data", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "f881d0ff-12a1-4111-8e18-3d31666d7de5", "befores": [{"name": "title", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110269}
\ No newline at end of file
{"uuid": "629ade8b-d6b1-4f9c-b278-2f8fbc3bbbf7", "befores": [{"name": "method", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "c5fd2b4d-2745-4788-9a43-ae45fd22f918", "befores": [{"name": "title", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "bd7cdb3c-b889-4fea-98a0-28c1d9ac1a6c", "befores": [{"name": "url", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "2f4f55f0-77f6-445a-9c37-7276e7c451a4", "befores": [{"name": "method", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "86e39360-8566-4b8f-b1ad-edb423299a77", "befores": [{"name": "level", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110719, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "32e9b49c-2f6c-4238-802c-eadb1752db78", "befores": [{"name": "api", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "734c8d80-a899-4f1e-96c2-e7fdf88e400f", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110259}
\ No newline at end of file
{"uuid": "249ff5bd-f1d3-420e-8c22-3a245d4688c2", "befores": [{"name": "level", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111169}
\ No newline at end of file
{"uuid": "85a2cd46-c41d-454c-8e8a-075533b8df3a", "befores": [{"name": "title", "status": "passed", "start": 1730896110719, "stop": 1730896110719}], "start": 1730896110719, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "1c689800-26c8-42b1-b6fb-bfaee7b2ce1b", "befores": [{"name": "method", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "97e90c86-a1b4-467f-9249-0e0bb02d5e1c", "befores": [{"name": "api", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111169}
\ 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': '1854138073836265472'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "f7fe4c03-9b01-454e-98b1-529848e7d27e", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "2851dcd6-47c1-42ad-9d2c-f7a2756ff496", "befores": [{"name": "module", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "1ee0181e-6b71-4bc4-8d66-fbad74ea9d2d", "befores": [{"name": "level", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110269}
\ No newline at end of file
{"uuid": "a4ae1bff-a151-4166-a412-3678b8055e13", "befores": [{"name": "level", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "6ebb9b2f-08c1-40fc-a99d-b22d8814214f", "befores": [{"name": "url", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "fc3ea199-97ac-4bff-b94e-a84eebc99ec0", "befores": [{"name": "module", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"uuid": "950f57b6-e89c-47cd-8734-63fd09dd99c0", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110259}
\ No newline at end of file
{"uuid": "d5d8936a-be73-46e3-893d-ebe7e01b8246", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110224}
\ No newline at end of file
{"uuid": "2fa1a7ad-9454-4b8e-9713-1fa1ee116411", "befores": [{"name": "module", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "7808e488-4d35-4177-a7c8-30cec076e7e4", "befores": [{"name": "mime", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"uuid": "22a8c7af-3d03-4b74-b2d0-d94be27d1097", "befores": [{"name": "mime", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "c78cf360-1615-44db-bd0e-22eea1d108eb", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112339}
\ No newline at end of file
{"uuid": "cc1050c3-a47f-4868-a862-b4152b10714a", "befores": [{"name": "level", "status": "passed", "start": 1730896109609, "stop": 1730896109619}], "start": 1730896109609, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "3a82aa07-1a73-4a04-8b28-b1a220c30972", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112374}
\ No newline at end of file
{"uuid": "2fa8ab96-6f19-4228-94ee-305a051d5553", "befores": [{"name": "api", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "1b3eedd6-5364-4fd5-be41-fae98b799db1", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110520, "stop": 1730896110520}], "start": 1730896110520, "stop": 1730896110564}
\ No newline at end of file
{"uuid": "92d0e64e-478b-4131-b7ad-250a839f905c", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109944}
\ No newline at end of file
{"uuid": "ab0a8cec-7c40-462f-b61a-c7caa3058760", "befores": [{"name": "method", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "1c4464a7-f2c1-4813-bbf4-765a320fedc0", "befores": [{"name": "mime", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "c5d310d0-6aa6-44a5-aaad-f0ed35f647c2", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896109619, "stop": 1730896109619}], "start": 1730896109619, "stop": 1730896109700}
\ No newline at end of file
{"uuid": "9018a640-5188-4f5a-a44a-11c3549d7c0f", "befores": [{"name": "module", "status": "passed", "start": 1730896110614, "stop": 1730896110614}], "start": 1730896110614, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "b7ec4c2f-2602-4fd0-80b6-066dcdd7daee", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112769}
\ No newline at end of file
{"uuid": "32c59bd5-d8b8-4d7d-89d7-f6ffe2d2fe5f", "befores": [{"name": "method", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "66b81382-2476-498b-8f1c-96c7e2bd8225-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'添加组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'select|delete'"}, {"name": "sql_data", "value": "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1730896112430, "stop": 1730896112480, "uuid": "4c6ee1b5-9ea5-4214-85df-a98f301a805b", "historyId": "c45f481daa74cca9ef494d9015702f11", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "fd33782e-42c8-4d94-a87b-2908400fbba3", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112864}
\ No newline at end of file
{"uuid": "74eec891-2c66-4c0d-b792-8b48ac1b6d42", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110224}
\ 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.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5ODIzMzgsImlhdCI6MTczMDg5NTkzOH0.tVDGu5QlWn3WiSlPCLs31llCy78aV3lCvSe-Ix__YiFnmL-LpgAuyg2W_h50nFsyEVQ_LPmR9ixE2OIUFTjIvg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ 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.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5ODIzMzgsImlhdCI6MTczMDg5NTkzOH0.tVDGu5QlWn3WiSlPCLs31llCy78aV3lCvSe-Ix__YiFnmL-LpgAuyg2W_h50nFsyEVQ_LPmR9ixE2OIUFTjIvg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
{"uuid": "7a168cd3-5eb8-4de6-b663-a92791fa08dc", "befores": [{"name": "level", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "792642d2-f144-4e03-8dd7-f26ec1150294", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "d8cd10dd-4f1c-4b53-903f-c27053f92a92", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "f3d7cf2f-4a24-4e2d-afd0-a3dc1e83b8fb", "befores": [{"name": "api", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "2cd365fe-47c9-4cac-bc36-06241158430e", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "28fbda8e-f57d-46ff-9844-34012ba56d45", "befores": [{"name": "url", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ No newline at end of file
{"uuid": "431559fa-4a1c-40f4-9a0e-e25d08947602", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112339}
\ No newline at end of file
{"uuid": "9c24e80e-15c2-48f7-a47c-ce5b8592d109", "befores": [{"name": "url", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "a82d09f7-8967-471d-9159-6441d9d3708a", "befores": [{"name": "title", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ 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 断言成功,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功!'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "4a53f618-50c0-4e17-924f-f9b01e27b433", "befores": [{"name": "url", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "1605da4b-ec13-4e7a-a9a6-305609edab8e", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112529}
\ No newline at end of file
{"uuid": "a9aea956-99ed-4e31-9b13-0035e5da9fc0", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ 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
{"uuid": "a6893679-730a-4dd3-b179-e32d2f7f7ea4", "befores": [{"name": "title", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "8ef82301-272e-491d-a0b7-640447ac0f02", "befores": [{"name": "title", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111169}
\ No newline at end of file
{"uuid": "6aab89df-a766-4a83-be3a-75de045e246a", "befores": [{"name": "level", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "dabbce91-3df6-492f-8096-e5a2575d95f2", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112529}
\ No newline at end of file
{"uuid": "7b4e945f-0a8e-4789-bbc5-b33f5c628818", "befores": [{"name": "url", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '解密密码异常,请检查RSA公钥和私钥配置'}, 服务器返回的数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1854138071386791936"}
\ No newline at end of file
{"uuid": "b116793a-5b71-418a-9016-04d7d1ef7d1c", "befores": [{"name": "method", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "cce90ac2-4744-48e1-9c87-2b317395a339", "befores": [{"name": "level", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "f1a9a034-7b0b-4882-80b6-2963b53429a0", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110259}
\ No newline at end of file
{"uuid": "53fc9041-0f92-4bcf-8f5b-e9f696019d97", "befores": [{"name": "method", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "9b80e28d-850b-4025-9db6-f5259d6c39a8", "befores": [{"name": "method", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ 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":"1854138072145960960"}
\ No newline at end of file
{"uuid": "66ca7233-75a6-4cce-be43-22d7c70979e9", "befores": [{"name": "url", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "3e8f4c3e-53b7-4b12-af5d-94f4de888982", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110049}
\ No newline at end of file
{"uuid": "db09428c-22d6-4da4-bfcf-3457619d8b83", "befores": [{"name": "module", "status": "passed", "start": 1730896109609, "stop": 1730896109609}], "start": 1730896109609, "stop": 1730896109709}
\ No newline at end of file
{"uuid": "d1adf597-d2e1-48ae-8e89-25e06c282505", "befores": [{"name": "level", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "c45c40ea-c377-4cee-aa90-bb93c9710dc7", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "6004b6cb-495f-4dab-ab18-08bbaed8ce7f", "befores": [{"name": "module", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
{"uuid": "7c9fb8bb-5fd9-4020-ad66-b1a69d1f85c0", "befores": [{"name": "method", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110609}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "58896549-0481-4d23-9995-378e5ae6453e-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'更新维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '更新维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110615, "stop": 1730896110629, "uuid": "a979342f-0b55-4c5b-8c2a-c645f6aced6c", "historyId": "165d1554544252aab9d864f61ff89f99", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"name": "正向用例", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <APIAutoTest_v3_1.test_case.test_zs.test_bpm.TestBPM object at 0x00000258F446EB40>\nreq_fix = <APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x00000258F449FBC0>, module = '组织管理', api = '保存组织参数'\ntitle = '正向用例', level = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}, expect_data = {'message': '保存组织参数成功!', 'state': True}\nsql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象\n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)\n \n # 断言\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x00000258F45B4900>('state')\nE + where <built-in method get of dict object at 0x00000258F45B4900> = {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'}.get\nE + where {'code': 200, 'message': '保存失败,请将参数填写完整', 'state': False, 'value': '根据输入的组织编码没有找到对应的组织信息!'} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_zs\\test_bpm.py:37: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <APIAutoTest_v3_1.test_case.test_zs.test_bpm.TestBPM object at 0x00000258F446EB40>\nreq_fix = <APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x00000258F449FBC0>, module = '组织管理', api = '保存组织参数'\ntitle = '正向用例', level = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}, expect_data = {'message': '保存组织参数成功!', 'state': True}\nsql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象\n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)\n \n # 断言\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_zs\\test_bpm.py:40: AssertionError"}, "attachments": [{"name": "log", "source": "abed6095-8a8a-499e-aaed-44af0e4325cc-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'保存组织参数'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896112539, "stop": 1730896112760, "uuid": "f7dbc136-18a2-4a2d-af62-c874a561e39e", "historyId": "cc7413a92acb27ba9f31300a332c9ca3", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "f8a672e6-fcc6-45a5-b147-1b683806cbbf", "befores": [{"name": "mime", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "51da2ae4-2114-4436-8a19-36f3b0096337", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110608}
\ No newline at end of file
{"name": "正向用例-用户和密码正确", "status": "passed", "attachments": [{"name": "log", "source": "a2a03bfc-347f-4150-b7f6-e27491b90efd-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'正向用例-用户和密码正确'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896109659, "stop": 1730896109700, "uuid": "745d8f6e-4f6e-4657-8bb6-f56bc4472945", "historyId": "4b2b892d35c61562f23d9f0e8b52a6c1", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "d9c513ab-fc91-45d5-b771-825bcb6cb830", "befores": [{"name": "method", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "53976c15-7bca-4ff7-8cdc-86b201e33b9a", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "885727c6-3006-45a6-a409-0dbe682b9238", "befores": [{"name": "mime", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "ebb806df-982b-4356-ab5d-5935c321ca4d", "befores": [{"name": "title", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "b1736a19-06d9-4d98-9592-0f0cbf802017", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "520f6b94-0718-4447-bee1-e8b0fc111690", "befores": [{"name": "module", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名过长", "status": "passed", "attachments": [{"name": "log", "source": "7885171c-fa30-40cf-8a6e-c3561086bca0-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110191, "stop": 1730896110224, "uuid": "8117b1d4-ad08-444a-9f02-4ebbd4ddf4c8", "historyId": "db26fe387ddd5882702b687276a18c5a", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ 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': '1854138081335681024'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "37b5854b-36ed-4b87-8456-086c5b00688e", "befores": [{"name": "module", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ No newline at end of file
{"uuid": "625ba13a-8448-4e93-8b71-1e56355c403c", "befores": [{"name": "title", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "9289d67e-9335-40f4-a068-7decf2887c25", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110520, "stop": 1730896110520}], "start": 1730896110520, "stop": 1730896110564}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "06417b69-6aae-4cc6-b701-6da5f031f493-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'添加组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'select|delete'"}, {"name": "sql_data", "value": "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1730896110639, "stop": 1730896110719, "uuid": "78b2bf57-5eec-47a2-b327-d0654822f37a", "historyId": "7872540e95849d5e81f16be562adaa13", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "4d7030f5-7a28-483f-b8d1-c45f7537f334", "befores": [{"name": "mime", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"name": "反向用例-维度id为空", "status": "passed", "attachments": [{"name": "log", "source": "6f779260-e74d-4e5d-9780-122f83c64e4f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'反向用例-维度id为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '删除维度失败,维度ids必填'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896111209, "stop": 1730896111219, "uuid": "518f6def-e9e9-4045-800d-034bbdc5b53e", "historyId": "007461040164fe8c730b8f404f6b813f", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "841c0368-8020-480d-928d-b4e69a1036c8", "befores": [{"name": "url", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110761}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码错误", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <APIAutoTest_v3_1.test_case.test_demo.test_bpm.TestBPM object at 0x00000258F3A9DCA0>\nreq_fix = <APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x00000258F44AF6B0>, module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码错误', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_DEMO\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n # 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象\n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)\n \n # 断言\n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x00000258F456D800>('state')\nE + where <built-in method get of dict object at 0x00000258F456D800> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...gsImlhdCI6MTczMDg5NTkzOH0.tVDGu5QlWn3WiSlPCLs31llCy78aV3lCvSe-Ix__YiFnmL-LpgAuyg2W_h50nFsyEVQ_LPmR9ixE2OIUFTjIvg', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...gsImlhdCI6MTczMDg5NTkzOH0.tVDGu5QlWn3WiSlPCLs31llCy78aV3lCvSe-Ix__YiFnmL-LpgAuyg2W_h50nFsyEVQ_LPmR9ixE2OIUFTjIvg', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:37: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <APIAutoTest_v3_1.test_case.test_demo.test_bpm.TestBPM object at 0x00000258F3A9DCA0>\nreq_fix = <APIAutoTest_v3_1.requests_method.requests_method.RequestsMethod object at 0x00000258F44AF6B0>, module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码错误', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_DEMO\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n # 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象\n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)\n \n # 断言\n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:40: AssertionError"}, "attachments": [{"name": "log", "source": "a1cd9b19-fd32-47be-80d7-1d0eb50d0060-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码错误'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896109709, "stop": 1730896109739, "uuid": "2a12c39e-e392-4011-92da-606d0800d1f1", "historyId": "d2e66a63fa50235fd29d7a90e1b93c00", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "f9fa9320-aa36-404b-a437-2142a79dd32a", "befores": [{"name": "mime", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "ee7b4fb8-84b2-4521-860a-6a03de8638f8", "befores": [{"name": "title", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "52e3c63c-c712-4b0b-9ec0-4966d2d6e979-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'设置默认维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'code': 'testAddDem'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '设置默认维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110569, "stop": 1730896110606, "uuid": "1d357870-d070-4644-8c61-0750dc854cbd", "historyId": "92da9dd7679d7bf3d356e9b1540e5637", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "249551d4-34d9-4c31-b7aa-e8a5608478f6", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110608}
\ No newline at end of file
{"uuid": "6e9835b3-9abf-4b33-af1a-84076fcf08e5", "befores": [{"name": "module", "status": "passed", "start": 1730896110059, "stop": 1730896110059}], "start": 1730896110059, "stop": 1730896110109}
\ No newline at end of file
{"uuid": "34940247-2a89-4633-bf88-a8f5ec28c1ee", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110049}
\ No newline at end of file
{"uuid": "855cde6f-8e6c-4290-83df-5f6b6c7a9795", "befores": [{"name": "mime", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "7838c7e1-b993-4cc9-bb47-b9d459f843c8", "befores": [{"name": "url", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112419}
\ No newline at end of file
{"uuid": "c5a3142d-8012-49d8-829f-e61bf2f233ad", "befores": [{"name": "module", "status": "passed", "start": 1730896110719, "stop": 1730896110719}], "start": 1730896110719, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "a069fe21-d65c-499e-a2ef-627e2a8e0628", "befores": [{"name": "url", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "8a6400d1-d82b-4e80-be65-8c42cf2c8131", "befores": [{"name": "level", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "afc82c98-c53e-48ab-a1f3-5fcd023154f6", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "c9d09075-07da-449a-a2a5-6b5ab6a3ab1a", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "ac7738dc-a512-4bb3-b408-64b67ef11559", "befores": [{"name": "api", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '删除维度失败,维度ids必填'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854138083638353920"}
\ No newline at end of file
{"uuid": "0e2308bc-229d-4dd8-a7d9-83e45db71f48", "befores": [{"name": "url", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110019}
\ No newline at end of file
{"uuid": "017bd485-1ddd-4bd6-9f37-0ec93e3948d6", "befores": [{"name": "module", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "1819bd52-f785-496f-90f2-8fc508ae6def", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "9f64871a-8586-4461-9ef9-d443f7f8fc30", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110009}
\ No newline at end of file
{"uuid": "9c550498-bd95-4b88-ae97-11263359df46", "children": ["5169b736-b2d9-4dbf-b0ee-e1242e397a3e", "b23259a1-1c76-479c-a842-a44b440ade71", "6ff151f7-f708-49f7-aa8b-161799297009", "4c6ee1b5-9ea5-4214-85df-a98f301a805b", "344d7801-c8c1-4aba-95ea-683c5ff607f6", "f7dbc136-18a2-4a2d-af62-c874a561e39e", "d1a79f80-2639-4e11-b305-26b1cae8efe4", "ef4a6945-b19d-4124-82bb-5633bab381d4", "3349718f-116e-486b-b30c-c0f19befe08e"], "befores": [{"name": "req_fix", "status": "passed", "start": 1730896111229, "stop": 1730896112299}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1730896112890, "stop": 1730896112890}], "start": 1730896111229, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "b0495e46-80c6-42e6-a273-2c367819bfba", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110009}
\ No newline at end of file
{"uuid": "82daf5d0-01c1-4db1-8500-200fc97167a6", "children": ["745d8f6e-4f6e-4657-8bb6-f56bc4472945", "2a12c39e-e392-4011-92da-606d0800d1f1", "8b8b0493-e3f2-4c10-a34b-5068cf34fd04", "b898761f-012e-4d4e-9d49-004c7d3470b6", "8cf75e87-4b88-451c-a85e-77e7e4f31cd5", "760fd963-85db-4e20-83d4-f87288b805f9", "5a6d5a4a-57a5-4d1f-9fd5-ae5719be4ad0", "ef281c63-1927-4186-9bf5-c98487f29059", "8117b1d4-ad08-444a-9f02-4ebbd4ddf4c8", "8b7d7cf8-5fea-4ce9-92ad-64484488f537", "c689e79c-fcc0-4298-b435-c4747dde189d", "c46b985a-62e7-4b5d-beee-d3bbf8ec5d58", "1d357870-d070-4644-8c61-0750dc854cbd", "a979342f-0b55-4c5b-8c2a-c645f6aced6c", "78b2bf57-5eec-47a2-b327-d0654822f37a", "7090f244-eef5-4248-93f5-3c86863a571c", "b8f5195d-b34c-41a6-b176-944c33f6f749", "6483de21-12a8-4231-820c-e969b65d115f", "ecc98f14-f296-4358-9df2-d8407edd9014", "518f6def-e9e9-4045-800d-034bbdc5b53e"], "befores": [{"name": "req_fix", "status": "passed", "start": 1730896109549, "stop": 1730896109609}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1730896112896, "stop": 1730896112896}], "start": 1730896109549, "stop": 1730896112896}
\ No newline at end of file
{"uuid": "b2e1b1bf-f4cd-4052-82c4-9223d2797fb1", "befores": [{"name": "level", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112489}
\ No newline at end of file
{"uuid": "e2a529c1-5e70-40f9-a019-bb5f3ae67d9e", "befores": [{"name": "api", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "a3e15d6c-7981-43b0-b4c0-8a01d809c654", "befores": [{"name": "api", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "ce808680-fd05-4c1d-b38e-128b88ea114a", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112349, "stop": 1730896112349}], "start": 1730896112349, "stop": 1730896112379}
\ No newline at end of file
{"uuid": "0580fb03-ea37-4a30-af55-2ce903af1529", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109944}
\ No newline at end of file
{"uuid": "05aa9a24-829e-412a-80b6-6c0f68bd27b5", "befores": [{"name": "mime", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "727630ef-e3d9-4fa7-a3ed-d641280ca94d", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "14c7ba18-2ec9-4b70-a601-6d5f4af7f74c", "befores": [{"name": "method", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "d6fe72e8-223f-4346-acf8-08ef71153748", "children": ["745d8f6e-4f6e-4657-8bb6-f56bc4472945", "2a12c39e-e392-4011-92da-606d0800d1f1", "8b8b0493-e3f2-4c10-a34b-5068cf34fd04", "b898761f-012e-4d4e-9d49-004c7d3470b6", "8cf75e87-4b88-451c-a85e-77e7e4f31cd5", "760fd963-85db-4e20-83d4-f87288b805f9", "5a6d5a4a-57a5-4d1f-9fd5-ae5719be4ad0", "ef281c63-1927-4186-9bf5-c98487f29059", "8117b1d4-ad08-444a-9f02-4ebbd4ddf4c8", "8b7d7cf8-5fea-4ce9-92ad-64484488f537", "c689e79c-fcc0-4298-b435-c4747dde189d", "c46b985a-62e7-4b5d-beee-d3bbf8ec5d58", "1d357870-d070-4644-8c61-0750dc854cbd", "a979342f-0b55-4c5b-8c2a-c645f6aced6c", "78b2bf57-5eec-47a2-b327-d0654822f37a", "7090f244-eef5-4248-93f5-3c86863a571c", "b8f5195d-b34c-41a6-b176-944c33f6f749", "6483de21-12a8-4231-820c-e969b65d115f", "ecc98f14-f296-4358-9df2-d8407edd9014", "518f6def-e9e9-4045-800d-034bbdc5b53e", "5169b736-b2d9-4dbf-b0ee-e1242e397a3e", "b23259a1-1c76-479c-a842-a44b440ade71", "6ff151f7-f708-49f7-aa8b-161799297009", "4c6ee1b5-9ea5-4214-85df-a98f301a805b", "344d7801-c8c1-4aba-95ea-683c5ff607f6", "f7dbc136-18a2-4a2d-af62-c874a561e39e", "d1a79f80-2639-4e11-b305-26b1cae8efe4", "ef4a6945-b19d-4124-82bb-5633bab381d4", "3349718f-116e-486b-b30c-c0f19befe08e"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1730896109439, "stop": 1730896109549}], "start": 1730896109439, "stop": 1730896112896}
\ No newline at end of file
{"uuid": "da765170-ef5f-4d9f-a2e0-8d8dac5b16c3", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "e6ef236e-5cb3-4dcd-8cfd-8265f6a00d47", "befores": [{"name": "update_key", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "0ba23690-085f-4621-be38-13b277502043", "befores": [{"name": "title", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "6047df3a-4532-4d20-b906-e3baf49ed1c2", "befores": [{"name": "api", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "b9c98130-6f48-446b-a828-2101a16b7146", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "a673d6fc-fd14-4a24-acd7-f639e3b768dc", "befores": [{"name": "level", "status": "passed", "start": 1730896112829, "stop": 1730896112829}], "start": 1730896112829, "stop": 1730896112869}
\ No newline at end of file
{"uuid": "6d5394f0-9dd2-4be2-ae36-33a178f750d4", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "ca90daa9-82f9-427b-9a27-024faaae1398", "befores": [{"name": "api", "status": "passed", "start": 1730896110229, "stop": 1730896110229}], "start": 1730896110229, "stop": 1730896110269}
\ No newline at end of file
{"uuid": "8c98262d-4aa7-462d-80ed-a1682ff8d637", "befores": [{"name": "url", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "1b041ad9-3c06-4cd7-a0f1-d3ea4ae01692", "befores": [{"name": "module", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112489}
\ No newline at end of file
{"uuid": "d9da28d8-106c-43b8-9e42-de6828a2a4a2", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112430, "stop": 1730896112430}], "start": 1730896112430, "stop": 1730896112480}
\ No newline at end of file
{"uuid": "3d0c0e38-bed6-4fbf-9bf4-ef3bce1116d9", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110760}
\ No newline at end of file
{"uuid": "b7767ffc-92da-4d61-a4a9-bdd7564398eb", "befores": [{"name": "level", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "b9c797e7-e87c-4357-959d-04aa00c779d2", "befores": [{"name": "module", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "f4630118-71a2-431b-bc05-018165fbe398", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110191, "stop": 1730896110191}], "start": 1730896110191, "stop": 1730896110229}
\ No newline at end of file
{"uuid": "b3e2164e-d444-4f57-8ccf-1c3ddda814dc", "befores": [{"name": "update_key", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "3bdea761-e124-4c22-9cac-94bea9b06def", "befores": [{"name": "title", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "2fe489e1-c190-49d4-a2a0-fa50002c80c9", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "253d213d-bcdc-49ee-80ab-c5fe72b82ce6", "befores": [{"name": "case_data", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "2cb7df78-350b-41e3-a9d6-198393275d14", "befores": [{"name": "api", "status": "passed", "start": 1730896109709, "stop": 1730896109709}], "start": 1730896109709, "stop": 1730896109949}
\ No newline at end of file
{"uuid": "2c92d69f-7a2d-4590-8d3a-fe5a53fcf322", "befores": [{"name": "method", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "02338642-7972-44d3-8e19-5b5842d4de07", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110729, "stop": 1730896110729}], "start": 1730896110729, "stop": 1730896110761}
\ No newline at end of file
{"uuid": "72ab2bdd-d437-4245-b9c3-64ba302efb14", "befores": [{"name": "title", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "efb8a924-4fe3-4f41-9522-660e35d711c4", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896112379, "stop": 1730896112379}], "start": 1730896112379, "stop": 1730896112409}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "407664c3-9330-440e-9a7f-daebdb9b98a8-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'删除组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'x-www-form-urlencoded'"}, {"name": "case_data", "value": "'testAddOrg'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896112489, "stop": 1730896112529, "uuid": "344d7801-c8c1-4aba-95ea-683c5ff607f6", "historyId": "6709b65952b82eccd1d3eba75d8bbbec", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "1a54f188-3227-4d18-bf63-1bfec6a252ae", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "7dde0f9c-2556-4dc7-84b7-c494359320e6", "befores": [{"name": "update_key", "status": "passed", "start": 1730896109969, "stop": 1730896109969}], "start": 1730896109969, "stop": 1730896110009}
\ No newline at end of file
{"uuid": "34bcb071-8bc9-4b23-b70c-23b022215482", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110607}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "06d44f9b-2503-42be-9f11-da5aab8f6b01-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110229, "stop": 1730896110259, "uuid": "8b7d7cf8-5fea-4ce9-92ad-64484488f537", "historyId": "0fb3c21628087294c7751328e7c70d93", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "a4abcb03-5081-4f94-8653-d5cb409d722b", "befores": [{"name": "mime", "status": "passed", "start": 1730896110615, "stop": 1730896110615}], "start": 1730896110615, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "a6de42ef-4d78-4b2a-9a14-398d04311a0e", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896109949, "stop": 1730896109949}], "start": 1730896109949, "stop": 1730896109969}
\ No newline at end of file
{"uuid": "8edf05fd-300b-465d-964f-2882d70aaf69", "befores": [{"name": "mime", "status": "passed", "start": 1730896112539, "stop": 1730896112539}], "start": 1730896112539, "stop": 1730896112779}
\ No newline at end of file
{"uuid": "c0c3eafe-2317-46ff-8104-5b2ef251e949", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码为空", "status": "passed", "attachments": [{"name": "log", "source": "705c7a57-521e-4d32-b357-d6d8287ca71f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1730896110059, "stop": 1730896110099, "uuid": "760fd963-85db-4e20-83d4-f87288b805f9", "historyId": "755ae2e348c297df0ae2bfd703352d4a", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "49474995-92fd-424e-861d-c35df486dc9f", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "634b1dc6-3ac2-45ad-ab68-78b7ee5fdd8d", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "27ae14e1-362c-4821-9c38-c9ba1bcb5fd3", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110569, "stop": 1730896110569}], "start": 1730896110569, "stop": 1730896110607}
\ No newline at end of file
{"uuid": "f8d70bac-e81c-43a1-b00a-7e9b6bb355ff", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110615, "stop": 1730896110615}], "start": 1730896110615, "stop": 1730896110629}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "bde67d63-7779-44ae-b08c-86903599fafe-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '需要更新'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_data", "value": "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "update_key", "value": "'ids'"}], "start": 1730896112829, "stop": 1730896112864, "uuid": "ef4a6945-b19d-4124-82bb-5633bab381d4", "historyId": "3f3926213be74c9ff1e46f19cbafbaf2", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "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": "DESKTOP-IUVVB9F"}, {"name": "thread", "value": "22328-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "17b03660-688a-49c3-88a9-039cf45ceb7f", "befores": [{"name": "api", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "c32fcc5b-44ca-483b-9919-d2bb89b4d587", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "0b223ca5-7101-4228-8262-e7ad53b13a78", "befores": [{"name": "title", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112539}
\ No newline at end of file
{"uuid": "00636f43-ee2e-4c5f-8a63-e70bdd1e446c", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "edf6834c-ffe4-487a-bf2e-65b3ece9c371", "befores": [{"name": "title", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "9eab625a-6156-4506-a015-f3bc148fbee5", "befores": [{"name": "url", "status": "passed", "start": 1730896110149, "stop": 1730896110149}], "start": 1730896110149, "stop": 1730896110179}
\ No newline at end of file
{"uuid": "bf43189b-2378-492c-9be4-1d1389069943", "befores": [{"name": "sql_type", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "68eaa6b1-716a-4fd3-98b1-c51767a94be5", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110269, "stop": 1730896110269}], "start": 1730896110269, "stop": 1730896110509}
\ No newline at end of file
{"uuid": "542f7205-f0f9-4b59-90c4-f718568755d7", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896110615, "stop": 1730896110615}], "start": 1730896110615, "stop": 1730896110639}
\ No newline at end of file
{"uuid": "f07ca8dc-667c-4dba-8905-e8b12dc83971", "befores": [{"name": "case_data", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "d977b238-2d57-45d8-920a-06997db6a7fc", "befores": [{"name": "api", "status": "passed", "start": 1730896110769, "stop": 1730896110769}], "start": 1730896110769, "stop": 1730896110793}
\ No newline at end of file
{"uuid": "55cafc42-8d01-4165-8481-03663934acbf", "befores": [{"name": "module", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "063d2930-0bef-4032-af1b-da6789c51863", "befores": [{"name": "update_key", "status": "passed", "start": 1730896110520, "stop": 1730896110520}], "start": 1730896110520, "stop": 1730896110564}
\ 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 断言成功,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账号或密码错误'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854138071760084992"}
\ No newline at end of file
{"uuid": "e5a23cb1-b688-4ecf-b182-c4f5c2d511d6", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896110639, "stop": 1730896110639}], "start": 1730896110639, "stop": 1730896110719}
\ No newline at end of file
{"uuid": "cff849f5-cf22-4bca-b2ec-c15fe52a0d0b", "befores": [{"name": "update_key", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "ca8a4683-7e5e-4a36-aa34-7cd1ebbb5532", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112784, "stop": 1730896112784}], "start": 1730896112784, "stop": 1730896112829}
\ No newline at end of file
{"uuid": "0c75d524-8c53-4a18-b341-b0251c01645e", "befores": [{"name": "api", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "76679c08-0976-4b7f-8254-7c53b4b2645b", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896111209, "stop": 1730896111209}], "start": 1730896111209, "stop": 1730896111219}
\ No newline at end of file
{"uuid": "719d94f0-a7e6-4ed3-bc0f-e12c75d42a5e", "befores": [{"name": "module", "status": "passed", "start": 1730896110109, "stop": 1730896110109}], "start": 1730896110109, "stop": 1730896110149}
\ No newline at end of file
{"uuid": "d14dea66-c420-42a6-b877-918345f2c7e2", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112339}
\ No newline at end of file
{"uuid": "cecf6547-9ed8-41f4-addb-aadde5978f4b", "befores": [{"name": "url", "status": "passed", "start": 1730896110019, "stop": 1730896110019}], "start": 1730896110019, "stop": 1730896110059}
\ No newline at end of file
{"uuid": "8b264220-38cf-4c28-b5f0-be11444f49ff", "befores": [{"name": "expect_data", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "0b285ac6-0378-4694-87d4-fb362767a1d7", "befores": [{"name": "api", "status": "passed", "start": 1730896112299, "stop": 1730896112299}], "start": 1730896112299, "stop": 1730896112349}
\ No newline at end of file
{"uuid": "1f097b17-2d62-4ef1-9ae6-671511b2ca5b", "befores": [{"name": "title", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
{"uuid": "00e3bb35-5a49-44f3-8000-5c521d5589cf", "befores": [{"name": "mime", "status": "passed", "start": 1730896110509, "stop": 1730896110509}], "start": 1730896110509, "stop": 1730896110569}
\ No newline at end of file
{"uuid": "f6299143-8958-498b-a33a-4e5724b9c5a0", "befores": [{"name": "case_data", "status": "passed", "start": 1730896110799, "stop": 1730896110799}], "start": 1730896110799, "stop": 1730896111159}
\ No newline at end of file
{"uuid": "31b9588b-2754-4250-9b9b-63b60c03cb77", "befores": [{"name": "update_key", "status": "passed", "start": 1730896111169, "stop": 1730896111169}], "start": 1730896111169, "stop": 1730896111200}
\ No newline at end of file
{"uuid": "14797f3b-00ce-47c3-9e09-4b52a5b59240", "befores": [{"name": "sql_data", "status": "passed", "start": 1730896112489, "stop": 1730896112489}], "start": 1730896112489, "stop": 1730896112529}
\ No newline at end of file
{"uuid": "44e05cc9-7835-44bf-b186-e73c2b8caf58", "befores": [{"name": "module", "status": "passed", "start": 1730896112869, "stop": 1730896112869}], "start": 1730896112869, "stop": 1730896112890}
\ No newline at end of file
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.
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.
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/11/5 14:02
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: requests_method.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:22
# Description:
#
# ---------------------------------------------------------------------------
import requests
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.common.db import DB
from APIAutoTest_v3_1.common.read_basic_ini import ReadBasicIni
class RequestsMethod:
def __init__(self):
"""关联登录的状态"""
self.db = DB()
self.bpm_session = requests.sessions.Session()
login_url = ReadBasicIni().get_host("bpm") + "/auth"
login_data = {"username": "admin", "password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKH"
"T3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6"
"oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuK"
"PGOMPPSLlZWLfvG7yzdc+CyE="}
token = self.bpm_session.post(url=login_url, json=login_data).json().get("token")
self.bpm_session.headers.update({"Authorization": f"Bearer {token}"})
def request_all(self, req_method, req_url, req_mime=None, req_case_data=None, sql_type=None, sql_data=None, update_key=None):
"""
封装公共的请求方法
:param req_method: 请求方法
:param req_url: 请求url
:param req_mime: 请求的媒体类型
:param req_case_data: 请求数据
:param sql_type: sql语句类型
:param sql_data: sql语句
:param update_key: 更新的key
:return: Response type
"""
# 判断sql语句类型是否为delete,如果是,先执行删除的sql语句,执行完之后再发送请求
if sql_type == "delete":
self.db.delete(sql_data)
# 判断sql语句类型是否为select,如果是,先执行查询的sql语句,并获取查询的结果,并将查询结果更新到用例数据中,再发送请求
elif sql_type == "select":
select_result = self.db.select(sql_data)
req_case_data[update_key] = select_result
# 判断sql语句类型是否为:select|delete or delete|select,如果是,同时执行查询和删除
elif sql_type == "select|delete" or sql_type == "delete|select":
# 要执行删除--删除数据库中现有的数据
self.db.delete(sql_data["delete"])
# 查询语句--将查询结果更新到用例数据中
select_result = self.db.select(sql_data["select"])
req_case_data[update_key] = select_result
# 上面的分支执行完之后,该删除的数据已经删除,该更新用例数据的已更新,下面就可以发送请求
# 发送请求时,用例使用使用哪些关键字传参,需要添加判断
# 判断媒体类型的值是否为:application/json 或 json,使用json传参
if req_mime == "json" or req_mime == "application/json":
return self.bpm_session.request(method=req_method, url=req_url, json=req_case_data)
# 判断媒体类型的值是否为:application/x-www-form-urlencoded 、x-www-form-urlencoded 或 form,使用data传参
# 除了上传文件和json类型传参以外的任何方式在请求体中传参,都使用data传参。
elif req_mime == "application/x-www-form-urlencoded" or req_mime == "x-www-form-urlencoded" or req_mime == "form":
return self.bpm_session.request(method=req_method, url=req_url, data=req_case_data)
# 判断媒体类型的值是否为:multipart/form-data 或 form-data,使用files传参
elif req_mime == "multipart/form-data" or req_mime == "form-data":
return self.bpm_session.request(method=req_method, url=req_url, files=req_case_data)
# 判断媒体类型的值是否为:query,使用params传参
elif req_mime == "query":
return self.bpm_session.request(method=req_method, url=req_url, params=req_case_data)
# 判断媒体类型的值是否为:None,表示没有传参
elif req_mime is None:
return self.bpm_session.request(method=req_method, url=req_url)
# 判断请求的媒体类型是否为:query|json 或者 json|query 如果是,表示在地址栏和请求体中同时传参,请求体还是以json类型传参。
elif req_mime == "query|json" or req_mime == "json|query":
# requests可以在地址栏和请求体同时传参,请求体传参根据不同的媒体类型选择不同关键字传参,地址使用params
return self.bpm_session.request(method=req_method, url=req_url, params=req_case_data["query"], json=req_case_data["body"])
else:
log.error(f"方法:request_all,传入的媒体类型为:{req_mime}, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖")
raise ValueError("没有符合的判断分支,可以自行封装,也可以继承之后覆盖")
\ 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: conftest.py
# Author: lao_zhao
# Datetime: 2024/11/6 15:45
# Description:
#
# ---------------------------------------------------------------------------
def pytest_collection_modifyitems(items):
# item表示每个测试用例,解决用例名称中文显示问题
for item in items:
item.name = item.name.encode("utf-8").decode("unicode-escape")
item._nodeid = item._nodeid.encode("utf-8").decode("unicode-escape")
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/11/5 17:35
# Description:
#
# ---------------------------------------------------------------------------
# USERNAME的值一定是用户数据配置层目录的名称
USERNAME = 'demo_data'
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: conftest.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:40
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from APIAutoTest_v3_1.requests_method.requests_method import RequestsMethod
@pytest.fixture(scope="session")
def req_fix():
"""创建RequestsMethod类型对象"""
req = RequestsMethod()
yield req
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: test_bpm.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:39
# Description:
#
# ---------------------------------------------------------------------------
import pytest
import allure
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.common.read_excel import ReadExcel
from APIAutoTest_v3_1.test_case.test_demo import USERNAME
class TestBPM:
@allure.epic("BPM_DEMO")
# @allure.feature("模块名称")
# @allure.story("接口名称")
# @allure.title("用例标题")
# @allure.severity("用例等级")
@pytest.mark.parametrize("module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key", ReadExcel(USERNAME).get_data())
def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):
allure.dynamic.feature(module)
allure.dynamic.story(api)
allure.dynamic.title(title)
allure.dynamic.severity(level)
# 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象
res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)
# 断言
try:
for key in expect_data.keys():
assert res.json().get(key) == expect_data[key]
except AssertionError:
log.error(f"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}")
raise AssertionError("断言失败")
else:
log.info(f"断言成功,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}")
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/11/5 17:35
# Description:
#
# ---------------------------------------------------------------------------
# USERNAME的值一定是用户数据配置层目录的名称
USERNAME = 'zs_data'
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: conftest.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:40
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from APIAutoTest_v3_1.requests_method.requests_method import RequestsMethod
@pytest.fixture(scope="session")
def req_fix():
"""创建RequestsMethod类型对象"""
req = RequestsMethod()
yield req
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: test_bpm.py
# Author: lao_zhao
# Datetime: 2024/11/5 15:39
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
from APIAutoTest_v3_1 import log
from APIAutoTest_v3_1.common.read_excel import ReadExcel
from APIAutoTest_v3_1.test_case.test_zs import USERNAME
class TestBPM:
@allure.epic("BPM_张三")
# @allure.feature("模块名称")
# @allure.story("接口名称")
# @allure.title("用例标题")
# @allure.severity("用例等级")
@pytest.mark.parametrize("module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key", ReadExcel(USERNAME).get_data())
def test_bpm(self, req_fix, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):
allure.dynamic.feature(module)
allure.dynamic.story(api)
allure.dynamic.title(title)
allure.dynamic.severity(level)
# 使用RequestsMethod类对象调用request_all方法发送请求。自定义固件就是RequestsMethod类对象
res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case_data=case_data, sql_type=sql_type, sql_data=sql_data, update_key=update_key)
# 断言
try:
for key in expect_data.keys():
assert res.json().get(key) == expect_data[key]
except AssertionError:
log.error(f"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}")
raise AssertionError("断言失败")
else:
log.info(f"断言成功,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}")
\ No newline at end of file
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