Commit 0bb23dcf by wenjing

测试——03

parent 94b82df3
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: wen
# Datetime: 2024/9/4 下午6:53
# Description:
#
# ---------------------------------------------------------------------------
import logging
import os
import time
def log(name="ceshi"):
# 创建Logger对象
logger = logging.getLogger(name)
# 设置日志级别
logger.level = logging.INFO
# 设置日志文件名称,获取文件目录
log_name = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + ".log"
log_dir = os.path.join(os.path.join(os.path.dirname(__file__), "report"), "log")
log_path = os.path.join(log_dir, log_name)
# 设置写入日志的文件
handle = logging.FileHandler(log_path, mode="a", encoding="utf_8")
# 设置日志的显示格式
formatter = logging.Formatter('%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s -- %(name)s')
# 设置文件中的日志格式
handle.setFormatter(formatter)
# 给Logger对象添加文件
logger.addHandler(handle)
# 返回Logger对象
return logger
# 先执行函数,获取函数的返回值,再使用函数的返回值写入文件
log = log()
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: wen
# Datetime: 2024/9/4 下午6:54
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: user_read_ini.py
# Author: wen
# Datetime: 2024/8/31 上午10:07
# Description:
#
# ---------------------------------------------------------------------------
""""""
import configparser
import os.path
from Test_3 import log
class ReadIni:
def __init__(self):
# 获取数据配置目录的路径
self.data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data_config")
# 获取ini文件的路径
ini_path = os.path.join(self.data_config_path, "basic_config.ini")
# 创建Configparser对象
self.conf = configparser.ConfigParser()
# Configparser对象调用read方法读取ini文件
self.conf.read(ini_path, encoding="utf-8")
def get_host(self, key):
try:
# Configparser对象调用get方法获取key对应的值并返回被测系统的域名
return self.conf.get("host", key)
except Exception as e:
# critical--致命错误
log.error(f"方法get_host,获取被测系统的域名产生错误,传入的key为{key},错误为:{e}")
raise e
def get_sql(self, key):
"""根据key获取sql节点下数据库的链接信息"""
try:
# 调用get方法获取key对应的值获取数据库的链接信息
return self.conf.get("sql", key)
except Exception as e:
# critical--致命错误
log.error(f"方法get_sql,获取数据库链接信息产生错误,传入的key为{key},错误为:{e}")
raise e
if __name__ == '__main__':
ini = ReadIni()
ini.get_file_path(1111)
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: db.py
# Author: wen
# Datetime: 2024/9/3 下午7:01
# Description:
#
# ---------------------------------------------------------------------------
import pymysql
from Test_3 import log
from Test_3.common.basic_read_ini import ReadIni
class DB:
def __init__(self):
# 创建ReadIni对象
ini = ReadIni()
# 链接数据库
self.conn = pymysql.connect(
host=ini.get_sql("host"),
port=int(ini.get_sql("port")),
user=ini.get_sql("user"),
password=ini.get_sql("password"),
database=ini.get_sql("database"),
charset="utf8"
)
# 获取游标对象
self.cursor = self.conn.cursor()
def close(self):
# 关闭游标对象,关闭数据库
self.cursor.close()
self.conn.close()
def delete(self, sql_sentence):
# 判断删除sql语句为字符串
if isinstance(sql_sentence, str):
# 判断是否为delete开始
if sql_sentence.strip().lower().startswith("delete"):
try:
# 执行sql语句并提交
self.cursor.execute(sql_sentence)
self.conn.commit()
except Exception as e:
log.error(f"方法delete,执行删除的sql语句{sql_sentence}产生错误,错误为:{e}")
raise e
else:
log.error(f"执行delete方法时,sql语句错误,sql语句为:{sql_sentence}")
raise ValueError(f"删除sql语句错误")
else:
log.error(f"执行delete方法时,sql语句错误,sql语句为:{sql_sentence}")
raise ValueError(f"删除sql语句错误")
def select(self, sql_sentence, n=0):
# 判断查询sql语句为字符串
if isinstance(sql_sentence, str):
# 判断是否为select开始
if sql_sentence.strip().lower().startswith("select"):
try:
# 执行sql语句并提交
self.cursor.execute(sql_sentence)
self.conn.commit()
except Exception as e:
log.error(f"执行查询的sql语句{sql_sentence}产生错误,错误为:{e}")
raise e
else:
# 接受查询结果
select_result = self.cursor.fetchall()
try:
# 有查询结果返回查询结果,没有,返回None
if select_result:
return select_result[n][0]
except Exception as e:
log.error(f"获取查询结果产生错误错误可能是n产生的,n为{n},错误为:{e}")
raise e
else:
log.error(f"执行select方法时,sql语句不是查询的sql语句,sql语句为:{sql_sentence}")
raise ValueError(f"sql语句错误")
else:
log.error(f"执行select方法时,sql语句错误,sql语句为:{sql_sentence}")
raise ValueError(f"sql语句错误")
if __name__ == '__main__':
sql = "select ID_ FROM uc_demension LIMIT 2"
db = DB()
print(db.select(sql, n=100))
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: read_excel.py
# Author: wen
# Datetime: 2024/8/31 上午11:24
# Description:
#
# ---------------------------------------------------------------------------
import openpyxl
from Test_3 import log
from Test_3.common.user_read_ini import ReadIni
from Test_3.common.basic_read_ini import ReadIni as BasicIni
from Test_3.common.read_json import read_json
from Test_3.data_config.settings import *
class ReadExcel:
def __init__(self, username):
# 创建ReadIni对象
self.ini = ReadIni(username)
# 获取excel的路径
excel_path = self.ini.get_file_path(FILE_EXCEL)
# 获取工作表名称
table_name = self.ini.get_table(TABLE_KEY)
# 获取json文件路径
case_data_path = self.ini.get_file_path(FILE_CASE)
expect_data_path = self.ini.get_file_path(FILE_EXPECT)
sql_data_path = self.ini.get_file_path(FILE_SQL)
# 读取json文件
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)
try:
# 加载工作簿
wb = openpyxl.load_workbook(excel_path)
self.ws = wb[table_name]
except Exception as e:
log.error(f"ini配置文件中的配置项填写错误,可能excel的文件名称{excel_path}错误,也可能工作表名称{table_name}错误,错误为:{e}")
raise e
def __get_cell_value(self, column, row):
try:
# 获取列表中的列行值(F1..)
cell_value = self.ws[column + str(row)].value
except Exception as e:
log.error(f"获取{column}列的第{row}行的数据,产生错误,错误为:{e}")
raise e
else:
# 判断单元格数据是否为None,如果为none,返回None
if cell_value is None:
return None
# 判断单元格数据去掉前后空白字符后是否为空,如果为空,返回None,不为空,去掉前后空格后返回
elif cell_value.strip():
return cell_value.strip()
def get_case_url(self, row):
# 获取excel里的用例路径
path = self.__get_cell_value(URL, row)
# 判断用例路径是否为空,不为空,进行拼接,为空,返回None
if path:
# ReadIni对象调用get_host获取域名
# 返回拼接路径
return BasicIni().get_host(HOST_KEY) + path
def get_request_method(self, row):
# 获取用例中的请求方法
return self.__get_cell_value(REQ_METHOD, row)
def get_request_mime(self, row):
# 获取用例的请求的媒体类型
mime = self.__get_cell_value(MIME, row)
# 判断是否为空,不为空,转小写返回,为空,返回None
# 结果1 if bool表达式 else 结果2
# return mime.lower() if mime else None
if mime:
return mime.lower()
def get_module_name(self, row):
# 根据行号,获取模块名称
return self.__get_cell_value(MODULE, row)
def get_api_name(self, row):
# 根据行号,获取接口名称
return self.__get_cell_value(API, row)
def get_case_data(self, row):
# 获取用例数据的key
case_data_key = self.__get_cell_value(CASE_DATA, row)
# 判断是否为None,如果为空,返回None,不为空,获取key
if case_data_key:
# 获取用例的模块名称,接口名称
module_name = self.get_module_name(row)
api_name = self.get_api_name(row)
# 根据模块名称,接口名称,用例数据的key获取用例数据
return self.case_data_dict[module_name][api_name][case_data_key]
def get_expect_data(self, row):
# 获取excel里期望数据的key
expect_data_key = self.__get_cell_value(EXPECT_DATA, row)
if expect_data_key:
# 获取期望数据的模块名称,接口名称
module_name = self.get_module_name(row)
api_name = self.get_api_name(row)
# 根据模块名称,接口名称,期望的key获取期望数据
return self.expect_data_dict[module_name][api_name][expect_data_key]
def get_sql_data(self, row):
# 获取excel里期望数据的key
sql_data_key = self.__get_cell_value(SQL_DATA, row)
if sql_data_key:
# 获取期望数据的模块名称,接口名称
module_name = self.get_module_name(row)
api_name = self.get_api_name(row)
# 根据模块名称,接口名称,期望的key获取期望数据
return self.sql_data_dict[module_name][api_name][sql_data_key]
def get_sql_type(self, row):
# 获取sql语句类型的值
sql = self.__get_cell_value(SQL_TYPE, row)
# 判断是否为空,不为空,转小写返回,为空,返回None
if sql:
return sql.lower()
def get_update_key(self, row):
# 获取更新的key
return self.__get_cell_value(UPDATE_KEY, row)
def get_case_title(self, row):
# 获取用例标题
return self.__get_cell_value(TITLE, row)
def get_case_level(self, row):
# 获取用例等级
return self.__get_cell_value(LEVEL, row)
def get_data(self):
# 创建一个空列表存放工作表中的数据
list_data = []
# 循环工作表中的数据行
for row in range(2, self.ws.max_row+1):
# 根据行号,获取每行的测试数据
module_name = self.get_module_name(row)
api_name = self.get_api_name(row)
title = self.get_case_title(row)
level = self.get_case_level(row)
# 请求路径
url = self.get_case_url(row)
# 请求方法
method = self.get_request_method(row)
# 请求媒体类型
mime = self.get_request_mime(row)
# 用例数据
case_data = self.get_case_data(row)
# 期望数据,做断言
expect_data = self.get_expect_data(row)
# sql语句类型
sql_type = self.get_sql_type(row)
# sql语句数据
sql_data = self.get_sql_data(row)
# 更新的key
update_key = self.get_update_key(row)
# 过滤空行,请求路径,方法,媒体类型都不为空,表示不是空行
if url is not None and method is not None and expect_data is not None:
# 将获取的数据放在一个空列表中,再将列表追加到前面的空列表中
list_data.append(
[module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key])
else:
return list_data
if __name__ == '__main__':
excel = ReadExcel("demo")
# print(excel.get_case_data(12))
# print(excel.get_expect_data(12))
# print(excel.get_sql_data(12))
print(excel.get_data())
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: read_json.py
# Author: wen
# Datetime: 2024/8/31 上午10:52
# Description:
#
# ---------------------------------------------------------------------------
import json
import os
from Test_3 import log
from Test_3.common.user_read_ini import ReadIni
def read_json(file_path):
# 判断传入的路径是否为字符串
if isinstance(file_path, str):
# 判断传入的路径是一个文件并以,json结尾
if os.path.isfile(file_path) and file_path.endswith(".json"):
try:
# 读取json文件
with open(file_path, mode="r", encoding="utf-8") as f:
# 将json文件的数据序列化python对象
return json.loads(f.read())
# return json.load(f)
except Exception as e:
log.error(f"读取json文件的数据存在问题,json文件路径为:{file_path},错误为:{e}")
raise e
else:
# 如果路径不存在或不是以.json结尾的,抛出FileNotFoundError的错误
raise FileNotFoundError("传入的路径找不到")
else:
# 如果路径不是字符串,抛出TypeError错误
log.error(f"方法read_json执行失败,传入的文件路径为:{file_path},不为字符串")
raise ValueError("传入的文件路径必须为字符串")
if __name__ == '__main__':
ini = ReadIni()
print(read_json(ini.get_file_path("case")))
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: user_read_ini.py
# Author: wen
# Datetime: 2024/8/31 上午10:07
# Description:
#
# ---------------------------------------------------------------------------
""""""
import configparser
import os.path
from Test_3 import log
class ReadIni:
def __init__(self, username):
# 获取数据配置目录的路径
data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data_config")
self.user_dir = os.path.join(data_config_path, username)
# 获取ini文件的路径
ini_path = os.path.join(self.user_dir, "config.ini")
# 创建Configparser对象
self.conf = configparser.ConfigParser()
# Configparser对象调用read方法读取ini文件
self.conf.read(ini_path, encoding="utf-8")
def get_file_path(self, key):
try:
log.info(f"执行方法为get_file_path,获取file节点下的key对应的值,传入的key为{key}")
# Configparser对象调用get方法获取key对应的值
file_name = self.conf.get("file", key)
except Exception as e:
# critical--致命错误
log.error(f"方法get_file_path执行失败,传入的key为{key},错误为:{e}")
raise e
else:
# 返回拼接文件的路径
return os.path.join(self.user_dir, file_name)
def get_table(self, key):
try:
# 调用get方法获取key对应的值返回工作表的名称
return self.conf.get("table", key)
except Exception as e:
# critical--致命错误
log.error(f"方法get_table,获取工作表名称产生错误,传入的key为{key},错误为:{e}")
raise e
if __name__ == '__main__':
ini = ReadIni()
ini.get_file_path(1111)
[host]
# 配置被测系统的域名
bpm_host=http://36.139.193.99:8088
[sql]
# 配置数据库数据
host=36.139.193.99
port=3306
user=root
password=Rhrc@2024
database=eip8
[report]
# 日志
log=log
\ No newline at end of file
{
"认证接口": {
"登陆系统": {
"LoginSuccess": {"username": "admin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsNone": {"username": "", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsSpecialChar": {"username": "◦☼♠♣▣▤", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsLong": {"username": "adminadminadminadminadminadminadminadminadminadminadmin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsShort": {"username": "a", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsError": {"username": "admin1", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorPasswordIsNone": {"username": "admin", "password": ""},
"LoginErrorPasswordIsSpecialChar": {"username": "admin", "password": "◦☼♠♣▣▤"},
"LoginErrorPasswordIsLong": {"username": "admin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorPasswordIsShort": {"username": "admin", "password": "123456"},
"LoginErrorPasswordIsError": {"username": "admin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"code": "request_add_dem_w1", "description": "add_dem_w1", "isDefault": 1, "name": "request添加的维度w1"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"code": "request_add_dem_w1"}
},
"根据维度编码删除维度": {
"DeleteDemMessageSuccess": {"ids": "需要更新"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "request_add_dem_w1",
"description": "更新",
"isDefault": 0,
"name": "request_add_dem_w1"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "test_org_w1",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织w1",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"用户加入组织": {
"OrgAddUserSuccess": {"orgCode": "test_org_w1", "accounts": "admin,guest"}
},
"保存组织参数": {
"SaveOrgParamsSuccess": {
"query": {"orgCode": "test_org_w1"},
"body": [{"alias": "hxxmts", "value": "项目中没有关系户"}]
}
},
"删除组织": {
"DeleteOrgSuccess": "test_org_w1"
}
}
}
\ No newline at end of file
[file]
# 配置数据层的文件名称
excel=apiAutoTest.xlsx
case=case_data.json
expect=expect_data.json
sql=sql_data.json
[table]
# 配置excel的工作表名称
table_name=bpm
\ No newline at end of file
{
"认证接口": {
"登陆系统": {
"LoginSuccess": {"username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true},
"LoginErrorUsernameIsNone": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsSpecialChar": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsLong": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsShort": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsError": {"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsNone": {"message":"账号或密码错误"},
"LoginErrorPasswordIsSpecialChar": {"message":"账号或密码错误"},
"LoginErrorPasswordIsLong": {"message":"账号或密码错误"},
"LoginErrorPasswordIsShort": {"message":"账号或密码错误"},
"LoginErrorPasswordIsError": {"message":"账号或密码错误"}
},
"刷新token": {
"RefreshSuccess": {"message":"刷新token成功"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"message":"添加维度成功!"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"isDelete": "0"}
},
"根据维度编码删除维度": {
"DeleteDemMessageSuccess": {"message":"删除维度成功!"}
},
"更新维度": {
"UpdateDemSuccess": {"message":"更新维度成功!"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"message":"添加组织成功!"}
},
"用户加入组织": {
"OrgAddUserSuccess": {"message":"加入成功"}
},
"保存组织参数": {
"SaveOrgParamsSuccess": {"message":"保存组织参数成功!"}
},
"删除组织": {
"DeleteOrgSuccess": {"message":"删除组织成功!"}
}
}
}
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": {"delete": "DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";"}
},
"根据维度编码删除维度": {
"DeleteDemMessageSuccess": {"select": "select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"select": "select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";",
"delete": "delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";"
}
}
}
}
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: settings.py
# Author: wen
# Datetime: 2024/9/7 上午9:32
# Description:
#
# ---------------------------------------------------------------------------
# excel的列号
NUMBER = "A"
MODULE = "B"
API = "C"
TITLE = "D"
LEVEL = "E"
URL = "F"
REQ_METHOD = "G"
MIME = "H"
CASE_DATA = "I"
EXPECT_DATA = "J"
SQL_TYPE = "K"
SQL_DATA = "L"
UPDATE_KEY = "M"
# ini文件中file节点的key
FILE_EXCEL = "excel"
FILE_CASE = "case"
FILE_EXPECT = "expect"
FILE_SQL = "sql"
# ini文件中table的key
TABLE_KEY = "table_name"
# ini文件中host的key
HOST_KEY = "bpm_host"
{
"认证接口": {
"登陆系统": {
"LoginSuccess": {"username": "admin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsNone": {"username": "", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsSpecialChar": {"username": "◦☼♠♣▣▤", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsLong": {"username": "adminadminadminadminadminadminadminadminadminadminadmin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsShort": {"username": "a", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorUsernameIsError": {"username": "admin1", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorPasswordIsNone": {"username": "admin", "password": ""},
"LoginErrorPasswordIsSpecialChar": {"username": "admin", "password": "◦☼♠♣▣▤"},
"LoginErrorPasswordIsLong": {"username": "admin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="},
"LoginErrorPasswordIsShort": {"username": "admin", "password": "123456"},
"LoginErrorPasswordIsError": {"username": "admin", "password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"code": "request_add_dem_w1", "description": "add_dem_w1", "isDefault": 1, "name": "request添加的维度w1"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"code": "request_add_dem_w1"}
},
"根据维度编码删除维度": {
"DeleteDemMessageSuccess": {"ids": "需要更新"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "request_add_dem_w1",
"description": "更新",
"isDefault": 0,
"name": "request_add_dem_w1"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "test_org_w1",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织w1",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"用户加入组织": {
"OrgAddUserSuccess": {"orgCode": "test_org_w1", "accounts": "admin,guest"}
},
"保存组织参数": {
"SaveOrgParamsSuccess": {
"query": {"orgCode": "test_org_w1"},
"body": [{"alias": "hxxmts", "value": "项目中没有关系户"}]
}
},
"删除组织": {
"DeleteOrgSuccess": "test_org_w1"
}
}
}
\ No newline at end of file
[file]
# 配置数据层的文件名称
excel=wj.xlsx
case=case_data.json
expect=expect_data.json
sql=sql_data.json
[table]
# 配置excel的工作表名称
table_name=bpm
\ No newline at end of file
{
"认证接口": {
"登陆系统": {
"LoginSuccess": {"username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true},
"LoginErrorUsernameIsNone": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsSpecialChar": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsLong": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsShort": {"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsError": {"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsNone": {"message":"账号或密码错误"},
"LoginErrorPasswordIsSpecialChar": {"message":"账号或密码错误"},
"LoginErrorPasswordIsLong": {"message":"账号或密码错误"},
"LoginErrorPasswordIsShort": {"message":"账号或密码错误"},
"LoginErrorPasswordIsError": {"message":"账号或密码错误"}
},
"刷新token": {
"RefreshSuccess": {"message":"刷新token成功"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"message":"添加维度成功!"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"isDelete": "0"}
},
"根据维度编码删除维度": {
"DeleteDemMessageSuccess": {"message":"删除维度成功!"}
},
"更新维度": {
"UpdateDemSuccess": {"message":"更新维度成功!"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"message":"添加组织成功!"}
},
"用户加入组织": {
"OrgAddUserSuccess": {"message":"加入成功"}
},
"保存组织参数": {
"SaveOrgParamsSuccess": {"message":"保存组织参数成功!"}
},
"删除组织": {
"DeleteOrgSuccess": {"message":"删除组织成功!"}
}
}
}
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": {"delete": "DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";"}
},
"根据维度编码删除维度": {
"DeleteDemMessageSuccess": {"select": "select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"select": "select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";",
"delete": "delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";"
}
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 17:10:20","isDelete":"0","id":"1832345644397338624","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832345644397338624"},期望数据为:{'isDelete': '0'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641276776448"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832345641582960640"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345640970592256"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832345641742344192"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832345642627342336"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'ids': '1832345644397338624'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832345644397338624', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641419382784"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641109004288"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345640823791616"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832345642795114496"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTgsImlhdCI6MTcyNTcwMDIxOH0.Ec3-LFJt6Yf6gydzTndHpTL2fRECdK-M0VTUlh8xbVru1aITQ2jfHS7TuCVBpSBH-ZX-ktCgZiG8mE6Z-NnL4w","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}
\ No newline at end of file
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"项目名称","认证接口","刷新token","1","0","0","0","0"
"","","","0","0","3","0","0"
"项目名称","组织管理","保存组织参数","0","0","1","0","0"
"项目名称","维度管理","更新维度","0","0","1","0","0"
"项目名称","认证接口","登陆系统","3","0","8","0","0"
"项目名称","组织管理","删除组织","0","0","1","0","0"
"项目名称","组织管理","添加组织","0","0","1","0","0"
"项目名称","维度管理","根据维度编码删除维度","0","0","1","0","0"
"项目名称","维度管理","根据维度编码获取维度信息","0","0","1","0","0"
"项目名称","维度管理","添加维度","0","0","1","0","0"
"项目名称","组织管理","用户加入组织","0","0","1","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "项目名称",
"children" : [ {
"name" : "认证接口",
"children" : [ {
"name" : "登陆系统",
"children" : [ {
"name" : "登录的正向用例",
"uid" : "ed3549cca2ac3539",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'高'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'登录的正向用例'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为空",
"uid" : "2822a15095c25425",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为特殊字符",
"uid" : "5bbc76995361039c",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username过长",
"uid" : "a9f87a49a93a8c0d",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username过短",
"uid" : "6a84f8f3204ece8f",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username错误",
"uid" : "b4d307afe7384e4",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为空",
"uid" : "8244565a79fd5d6",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': ''}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为特殊字符",
"uid" : "c833d907176ddb47",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "passed",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '◦☼♠♣▣▤'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'json'", "'认证接口'", "None", "None", "'反向用例-password为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过长",
"uid" : "118fe3c796fb78c7",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "failed",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过短",
"uid" : "195a42b739a6736f",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "failed",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '123456'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password错误",
"uid" : "8a0ab987fa1296fd",
"parentUid" : "a2cfc3259916bef5d25b7ad820422049",
"status" : "failed",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password错误'", "None", "'http://36.139.193.99:8088/auth'" ]
} ],
"uid" : "a2cfc3259916bef5d25b7ad820422049"
}, {
"name" : "刷新token",
"children" : [ {
"name" : "正向用例",
"uid" : "3c9bdc94d0926fe0",
"parentUid" : "225208143dfad8b22f70e2cdb8877306",
"status" : "failed",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'刷新token'", "None", "{'message': '刷新token成功'}", "'高'", "'GET'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
} ],
"uid" : "225208143dfad8b22f70e2cdb8877306"
} ],
"uid" : "b7b8aa8430e067c4e29d42532aa4d1e4"
}, {
"name" : "维度管理",
"children" : [ {
"name" : "添加维度",
"children" : [ {
"name" : "正向用例",
"uid" : "837095b0adfd2c39",
"parentUid" : "f57dc01b75f5375393d8241204092ee3",
"status" : "passed",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}", "{'message': '添加维度成功!'}", "'高'", "'POST'", "'application/json'", "'维度管理'", "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
} ],
"uid" : "f57dc01b75f5375393d8241204092ee3"
}, {
"name" : "根据维度编码获取维度信息",
"children" : [ {
"name" : "正向用例",
"uid" : "5ea06d200ead4ea3",
"parentUid" : "6b05e7e717d5a2b48ea8636ef636dd21",
"status" : "passed",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'request_add_dem_w1'}", "{'isDelete': '0'}", "'高'", "'GET'", "'query'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'" ]
} ],
"uid" : "6b05e7e717d5a2b48ea8636ef636dd21"
}, {
"name" : "更新维度",
"children" : [ {
"name" : "正向用例",
"uid" : "3b162d3e558e809f",
"parentUid" : "d11a32640da4c13d67566ac6ada9221a",
"status" : "passed",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'更新维度'", "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}", "{'message': '更新维度成功!'}", "'中'", "'put'", "'json'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
} ],
"uid" : "d11a32640da4c13d67566ac6ada9221a"
}, {
"name" : "根据维度编码删除维度",
"children" : [ {
"name" : "正向用例",
"uid" : "46db0a2ffdb8103d",
"parentUid" : "af05df2eac05f2237a6cdf345f639961",
"status" : "passed",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
} ],
"uid" : "af05df2eac05f2237a6cdf345f639961"
} ],
"uid" : "530cd95de0c9c96b563d24397be22a7c"
}, {
"name" : "组织管理",
"children" : [ {
"name" : "添加组织",
"children" : [ {
"name" : "正向用例",
"uid" : "5e4751ea3cd535ea",
"parentUid" : "9e3d7659565c61a99f91e205826bcb51",
"status" : "passed",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'message': '添加组织成功!'}", "'高'", "'POST'", "'application/json'", "'组织管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
} ],
"uid" : "9e3d7659565c61a99f91e205826bcb51"
}, {
"name" : "用户加入组织",
"children" : [ {
"name" : "正向用例",
"uid" : "98aedf97177cb29",
"parentUid" : "7a914db29d3491c0a8e0d127a10d1445",
"status" : "passed",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'用户加入组织'", "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}", "{'message': '加入成功'}", "'高'", "'POST'", "'query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'" ]
} ],
"uid" : "7a914db29d3491c0a8e0d127a10d1445"
}, {
"name" : "保存组织参数",
"children" : [ {
"name" : "正向用例",
"uid" : "e7cba59bc4a8563a",
"parentUid" : "5bc4e084cc2e4cf0c559eea6603bba1c",
"status" : "passed",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'保存组织参数'", "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}", "{'message': '保存组织参数成功!'}", "'中'", "'POST'", "'query|json'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
} ],
"uid" : "5bc4e084cc2e4cf0c559eea6603bba1c"
}, {
"name" : "删除组织",
"children" : [ {
"name" : "正向用例",
"uid" : "961f0b4ba31482ea",
"parentUid" : "62221546ad5bbbfedfeab2b0a035e0d4",
"status" : "passed",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'删除组织'", "'test_org_w1'", "{'message': '删除组织成功!'}", "'中'", "'POST'", "'form'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
} ],
"uid" : "62221546ad5bbbfedfeab2b0a035e0d4"
} ],
"uid" : "1b25f8399a77a9de2142bac98392c1f7"
} ],
"uid" : "ace04434a691856ffdc330ff2b2d026b"
}, {
"name" : "test_login",
"uid" : "7e64410e92e4c030",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_add_dem",
"uid" : "2e58d09c57f907e3",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_add_org",
"uid" : "b64ada8936aae46d",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ]
}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Product defects","4","0","0","0","0"
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ {
"name" : "Product defects",
"children" : [ {
"name" : "AssertionError: 断言失败",
"children" : [ {
"name" : "反向用例-password过长",
"uid" : "118fe3c796fb78c7",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过短",
"uid" : "195a42b739a6736f",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '123456'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password错误",
"uid" : "8a0ab987fa1296fd",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "正向用例",
"uid" : "3c9bdc94d0926fe0",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'刷新token'", "None", "{'message': '刷新token成功'}", "'高'", "'GET'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
} ],
"uid" : "19135fd4a1c65086de1dc2a02ed9d4e0"
} ],
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d"
} ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "test_case",
"children" : [ {
"name" : "test_demo.test_bpm",
"children" : [ {
"name" : "登录的正向用例",
"uid" : "ed3549cca2ac3539",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'高'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'登录的正向用例'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为空",
"uid" : "2822a15095c25425",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为特殊字符",
"uid" : "5bbc76995361039c",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username过长",
"uid" : "a9f87a49a93a8c0d",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username过短",
"uid" : "6a84f8f3204ece8f",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username错误",
"uid" : "b4d307afe7384e4",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为空",
"uid" : "8244565a79fd5d6",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': ''}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为特殊字符",
"uid" : "c833d907176ddb47",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "passed",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '◦☼♠♣▣▤'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'json'", "'认证接口'", "None", "None", "'反向用例-password为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过长",
"uid" : "118fe3c796fb78c7",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "failed",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过短",
"uid" : "195a42b739a6736f",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "failed",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '123456'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password错误",
"uid" : "8a0ab987fa1296fd",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "failed",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "正向用例",
"uid" : "3c9bdc94d0926fe0",
"parentUid" : "408359e4381982766f71d289f282adbb",
"status" : "failed",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'刷新token'", "None", "{'message': '刷新token成功'}", "'高'", "'GET'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
} ],
"uid" : "test_demo.test_bpm"
}, {
"name" : "test_dependency",
"children" : [ {
"name" : "test_bpm_1_login",
"children" : [ {
"name" : "test_login",
"uid" : "7e64410e92e4c030",
"parentUid" : "d430febc8afde3ef84dec6ecd96d6681",
"status" : "passed",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "d430febc8afde3ef84dec6ecd96d6681"
}, {
"name" : "test_bpm_2_dem_org",
"children" : [ {
"name" : "test_add_dem",
"uid" : "2e58d09c57f907e3",
"parentUid" : "f5f53354c7f413e8c672159e9d106f4d",
"status" : "passed",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "f5f53354c7f413e8c672159e9d106f4d"
}, {
"name" : "test_bpm_3_org",
"children" : [ {
"name" : "test_add_org",
"uid" : "b64ada8936aae46d",
"parentUid" : "98adfe9562099e8a7f56a3bd477b7b8b",
"status" : "passed",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "98adfe9562099e8a7f56a3bd477b7b8b"
} ],
"uid" : "97be175ed7d1662c5c884b12163fb172"
}, {
"name" : "test_wj.test_bpm",
"children" : [ {
"name" : "正向用例",
"uid" : "837095b0adfd2c39",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}", "{'message': '添加维度成功!'}", "'高'", "'POST'", "'application/json'", "'维度管理'", "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "正向用例",
"uid" : "5ea06d200ead4ea3",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'request_add_dem_w1'}", "{'isDelete': '0'}", "'高'", "'GET'", "'query'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'" ]
}, {
"name" : "正向用例",
"uid" : "3b162d3e558e809f",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'更新维度'", "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}", "{'message': '更新维度成功!'}", "'中'", "'put'", "'json'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "正向用例",
"uid" : "5e4751ea3cd535ea",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'message': '添加组织成功!'}", "'高'", "'POST'", "'application/json'", "'组织管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "正向用例",
"uid" : "98aedf97177cb29",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'用户加入组织'", "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}", "{'message': '加入成功'}", "'高'", "'POST'", "'query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'" ]
}, {
"name" : "正向用例",
"uid" : "e7cba59bc4a8563a",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'保存组织参数'", "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}", "{'message': '保存组织参数成功!'}", "'中'", "'POST'", "'query|json'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "正向用例",
"uid" : "961f0b4ba31482ea",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'删除组织'", "'test_org_w1'", "{'message': '删除组织成功!'}", "'中'", "'POST'", "'form'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "正向用例",
"uid" : "46db0a2ffdb8103d",
"parentUid" : "e99a5db733c1ed90d9f354fdd3e74bd8",
"status" : "passed",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
} ],
"uid" : "test_wj.test_bpm"
} ],
"uid" : "3b2e467b921b0ea8d4803b9c79d92d0c"
} ]
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"failed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","40","test_case.test_demo","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","31","test_case.test_dependency","test_bpm_3_org","TestBPMOrg","","","test_add_org",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","22","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","19","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","28","test_case.test_demo","test_bpm","TestBPM","","","反向用例-username为特殊字符",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","26","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","50","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","32","test_case.test_demo","test_bpm","TestBPM","","","反向用例-username过短",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","61","test_case.test_dependency","test_bpm_2_dem_org","TestBPMDem","","","test_add_dem",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","40","test_case.test_dependency","test_bpm_1_login","TestBPMLogin","","","test_login",""
"failed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","16","test_case.test_demo","test_bpm","TestBPM","","","反向用例-password错误",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","32","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","26","test_case.test_demo","test_bpm","TestBPM","","","反向用例-password为特殊字符",""
"failed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","39","test_case.test_demo","test_bpm","TestBPM","","","反向用例-password过长",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","22","test_case.test_demo","test_bpm","TestBPM","","","反向用例-username为空",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","21","test_case.test_demo","test_bpm","TestBPM","","","反向用例-username错误",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","22","test_case.test_demo","test_bpm","TestBPM","","","反向用例-username过长",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","10","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","32","test_case.test_demo","test_bpm","TestBPM","","","反向用例-password为空",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","50","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"passed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","40","test_case.test_wj","test_bpm","TestBPM","","","正向用例",""
"failed","Sat Sep 07 17:12:11 CST 2024","Sat Sep 07 17:12:11 CST 2024","10","test_case.test_demo","test_bpm","TestBPM","","","反向用例-password过短",""
"passed","Sat Sep 07 17:12:10 CST 2024","Sat Sep 07 17:12:10 CST 2024","33","test_case.test_demo","test_bpm","TestBPM","","","登录的正向用例",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "test_case.test_demo",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBPM",
"children" : [ {
"name" : "登录的正向用例",
"uid" : "ed3549cca2ac3539",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'高'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'登录的正向用例'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为空",
"uid" : "2822a15095c25425",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为特殊字符",
"uid" : "5bbc76995361039c",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username过长",
"uid" : "a9f87a49a93a8c0d",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username过短",
"uid" : "6a84f8f3204ece8f",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username错误",
"uid" : "b4d307afe7384e4",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为空",
"uid" : "8244565a79fd5d6",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': ''}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为特殊字符",
"uid" : "c833d907176ddb47",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "passed",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '◦☼♠♣▣▤'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'json'", "'认证接口'", "None", "None", "'反向用例-password为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过长",
"uid" : "118fe3c796fb78c7",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "failed",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过短",
"uid" : "195a42b739a6736f",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "failed",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '123456'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password错误",
"uid" : "8a0ab987fa1296fd",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "failed",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "正向用例",
"uid" : "3c9bdc94d0926fe0",
"parentUid" : "ef69bf2bb1b41f3ca3f11617396f6a81",
"status" : "failed",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'刷新token'", "None", "{'message': '刷新token成功'}", "'高'", "'GET'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
} ],
"uid" : "ef69bf2bb1b41f3ca3f11617396f6a81"
} ],
"uid" : "5f023a47dd31329b45d44784c00131e4"
} ],
"uid" : "7a8b7e46177bbd4d1efa8551fea4a38d"
}, {
"name" : "test_case.test_dependency",
"children" : [ {
"name" : "test_bpm_1_login",
"children" : [ {
"name" : "TestBPMLogin",
"children" : [ {
"name" : "test_login",
"uid" : "7e64410e92e4c030",
"parentUid" : "4abfff69cc48ef628d7db266b3908f41",
"status" : "passed",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "4abfff69cc48ef628d7db266b3908f41"
} ],
"uid" : "d097dc8c62393215bbeff54929d53c97"
}, {
"name" : "test_bpm_2_dem_org",
"children" : [ {
"name" : "TestBPMDem",
"children" : [ {
"name" : "test_add_dem",
"uid" : "2e58d09c57f907e3",
"parentUid" : "d8e98902eaae12dd1f29fd9946be72ea",
"status" : "passed",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "d8e98902eaae12dd1f29fd9946be72ea"
} ],
"uid" : "9ab51945b79b43a326dee132cefe1870"
}, {
"name" : "test_bpm_3_org",
"children" : [ {
"name" : "TestBPMOrg",
"children" : [ {
"name" : "test_add_org",
"uid" : "b64ada8936aae46d",
"parentUid" : "ddf59c7486f12c03c3535de10e2bb779",
"status" : "passed",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
} ],
"uid" : "ddf59c7486f12c03c3535de10e2bb779"
} ],
"uid" : "6c0ed307770d2d21ba6d1be58da9320d"
} ],
"uid" : "5fa37ee52138cac4807b87b482b5d721"
}, {
"name" : "test_case.test_wj",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBPM",
"children" : [ {
"name" : "正向用例",
"uid" : "837095b0adfd2c39",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}", "{'message': '添加维度成功!'}", "'高'", "'POST'", "'application/json'", "'维度管理'", "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "正向用例",
"uid" : "5ea06d200ead4ea3",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'request_add_dem_w1'}", "{'isDelete': '0'}", "'高'", "'GET'", "'query'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'" ]
}, {
"name" : "正向用例",
"uid" : "3b162d3e558e809f",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'更新维度'", "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}", "{'message': '更新维度成功!'}", "'中'", "'put'", "'json'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "正向用例",
"uid" : "5e4751ea3cd535ea",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'message': '添加组织成功!'}", "'高'", "'POST'", "'application/json'", "'组织管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "正向用例",
"uid" : "98aedf97177cb29",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'用户加入组织'", "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}", "{'message': '加入成功'}", "'高'", "'POST'", "'query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'" ]
}, {
"name" : "正向用例",
"uid" : "e7cba59bc4a8563a",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'保存组织参数'", "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}", "{'message': '保存组织参数成功!'}", "'中'", "'POST'", "'query|json'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "正向用例",
"uid" : "961f0b4ba31482ea",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'删除组织'", "'test_org_w1'", "{'message': '删除组织成功!'}", "'中'", "'POST'", "'form'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "正向用例",
"uid" : "46db0a2ffdb8103d",
"parentUid" : "66b7da20ebc5580b36995a2ec52ca4e2",
"status" : "passed",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
} ],
"uid" : "66b7da20ebc5580b36995a2ec52ca4e2"
} ],
"uid" : "28193b67cefc45e8afbff6ca814de73f"
} ],
"uid" : "779ab47062aa4a63c111355e3da3e0b5"
} ]
}
\ No newline at end of file
{
"uid" : "118fe3c796fb78c7",
"name" : "反向用例-password过长",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "5919268c322d945c7bbd2cadf40894e2",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7354F0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过长'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY...Dn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == None\nE + where None = <built-in method get of dict object at 0x00000249EA88A2C0>('message')\nE + where <built-in method get of dict object at 0x00000249EA88A2C0> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7354F0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过长'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY...Dn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7354F0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过长'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY...Dn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == None\nE + where None = <built-in method get of dict object at 0x00000249EA88A2C0>('message')\nE + where <built-in method get of dict object at 0x00000249EA88A2C0> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7354F0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过长'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY...Dn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "3e6481eec762ff81",
"name" : "log",
"source" : "3e6481eec762ff81.txt",
"type" : "text/plain",
"size" : 1051
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : true
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'message': '账号或密码错误'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-password过长'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "118fe3c796fb78c7.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "195a42b739a6736f",
"name" : "反向用例-password过短",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "7a20a48bec2a40b09526c5f6b70a6337",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75B170>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过短'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': '123456', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == '解密密码异常,请检查RSA公钥和私钥配置'\nE \nE - 解密密码异常,请检查RSA公钥和私钥配置\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75B170>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过短'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': '123456', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75B170>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过短'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': '123456', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == '解密密码异常,请检查RSA公钥和私钥配置'\nE \nE - 解密密码异常,请检查RSA公钥和私钥配置\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75B170>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过短'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': '123456', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "82874bdd2e0bc08d",
"name" : "log",
"source" : "82874bdd2e0bc08d.txt",
"type" : "text/plain",
"size" : 329
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : true
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': '123456'}"
}, {
"name" : "expect_data",
"value" : "{'message': '账号或密码错误'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-password过短'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "195a42b739a6736f.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin', 'password': '123456'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "2822a15095c25425",
"name" : "反向用例-username为空",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "524a478f317ab2e4a59dec7ae28013fe",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "ab99cd9740269b68",
"name" : "log",
"source" : "ab99cd9740269b68.txt",
"type" : "text/plain",
"size" : 481
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-username为空'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "2822a15095c25425.json",
"parameterValues" : [ "'登陆系统'", "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "2e58d09c57f907e3",
"name" : "test_add_dem",
"fullName" : "test_case.test_dependency.test_bpm_2_dem_org.TestBPMDem#test_add_dem",
"historyId" : "32ab51b187bedec60154b48e8b192bfa",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700331374,
"stop" : 1725700331408,
"duration" : 34
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331325,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_dependency",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331410,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_dependency::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_dependency"
}, {
"name" : "suite",
"value" : "test_bpm_2_dem_org"
}, {
"name" : "subSuite",
"value" : "TestBPMDem"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_dependency.test_bpm_2_dem_org"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "2e58d09c57f907e3.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "3b162d3e558e809f",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "f282d078e8b537f62c619cb1055d560f",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "c120157c7be91d3c",
"name" : "log",
"source" : "c120157c7be91d3c.txt",
"type" : "text/plain",
"size" : 334
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "更新维度"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'更新维度'"
}, {
"name" : "case_data",
"value" : "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}"
}, {
"name" : "expect_data",
"value" : "{'message': '更新维度成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'put'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "3b162d3e558e809f.json",
"parameterValues" : [ "'更新维度'", "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}", "{'message': '更新维度成功!'}", "'中'", "'put'", "'json'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}
\ No newline at end of file
{
"uid" : "3c9bdc94d0926fe0",
"name" : "正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "842633ec67e1af2b2c2b4190ba4e9cd6",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7583E0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '刷新token', title = '正向用例'\nlevel = '高', url = 'http://36.139.193.99:8088/refresh'\nmethod = 'GET', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '刷新token成功' == None\nE + where None = <built-in method get of dict object at 0x00000249EA8EA600>('message')\nE + where <built-in method get of dict object at 0x00000249EA8EA600> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7583E0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '刷新token', title = '正向用例'\nlevel = '高', url = 'http://36.139.193.99:8088/refresh'\nmethod = 'GET', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7583E0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '刷新token', title = '正向用例'\nlevel = '高', url = 'http://36.139.193.99:8088/refresh'\nmethod = 'GET', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '刷新token成功' == None\nE + where None = <built-in method get of dict object at 0x00000249EA8EA600>('message')\nE + where <built-in method get of dict object at 0x00000249EA8EA600> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7583E0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '刷新token', title = '正向用例'\nlevel = '高', url = 'http://36.139.193.99:8088/refresh'\nmethod = 'GET', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "e18850c4fd2ac2a4",
"name" : "log",
"source" : "e18850c4fd2ac2a4.txt",
"type" : "text/plain",
"size" : 457
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : true
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'刷新token'"
}, {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'GET'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/refresh'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "3c9bdc94d0926fe0.json",
"parameterValues" : [ "'刷新token'", "None", "{'message': '刷新token成功'}", "'高'", "'GET'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
}
\ No newline at end of file
{
"uid" : "46db0a2ffdb8103d",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "1c7aaad50e3e620c1378274f88bf1cc3",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "851125801691be5",
"name" : "log",
"source" : "851125801691be5.txt",
"type" : "text/plain",
"size" : 263
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码删除维度"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'根据维度编码删除维度'"
}, {
"name" : "case_data",
"value" : "{'ids': '需要更新'}"
}, {
"name" : "expect_data",
"value" : "{'message': '删除维度成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}"
}, {
"name" : "sql_type",
"value" : "'select'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "'ids'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "46db0a2ffdb8103d.json",
"parameterValues" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "5bbc76995361039c",
"name" : "反向用例-username为特殊字符",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "0fcefb845440c573d470494fc08a716e",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "5fd8af403f439a5d",
"name" : "log",
"source" : "5fd8af403f439a5d.txt",
"type" : "text/plain",
"size" : 499
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-username为特殊字符'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5bbc76995361039c.json",
"parameterValues" : [ "'登陆系统'", "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "5e4751ea3cd535ea",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "0ee376b906e9872302a2a7563f8c7e3a",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "8a19865065b1af87",
"name" : "log",
"source" : "8a19865065b1af87.txt",
"type" : "text/plain",
"size" : 416
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "添加组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'添加组织'"
}, {
"name" : "case_data",
"value" : "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"
}, {
"name" : "expect_data",
"value" : "{'message': '添加组织成功!'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}"
}, {
"name" : "sql_type",
"value" : "'delete|select'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "'demId'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5e4751ea3cd535ea.json",
"parameterValues" : [ "'添加组织'", "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'message': '添加组织成功!'}", "'高'", "'POST'", "'application/json'", "'组织管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}
\ No newline at end of file
{
"uid" : "5ea06d200ead4ea3",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "cc932ca2fb4409dde020176fbed5825e",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "345c980402a00a1b",
"name" : "log",
"source" : "345c980402a00a1b.txt",
"type" : "text/plain",
"size" : 461
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码获取维度信息"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'根据维度编码获取维度信息'"
}, {
"name" : "case_data",
"value" : "{'code': 'request_add_dem_w1'}"
}, {
"name" : "expect_data",
"value" : "{'isDelete': '0'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'GET'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5ea06d200ead4ea3.json",
"parameterValues" : [ "'根据维度编码获取维度信息'", "{'code': 'request_add_dem_w1'}", "{'isDelete': '0'}", "'高'", "'GET'", "'query'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'" ]
}
\ No newline at end of file
{
"uid" : "6a84f8f3204ece8f",
"name" : "反向用例-username过短",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "7ef2780ed8dee6b3445097b72939d760",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "3a1ea027b72757d1",
"name" : "log",
"source" : "3a1ea027b72757d1.txt",
"type" : "text/plain",
"size" : 482
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-username过短'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "6a84f8f3204ece8f.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "7e64410e92e4c030",
"name" : "test_login",
"fullName" : "test_case.test_dependency.test_bpm_1_login.TestBPMLogin#test_login",
"historyId" : "1ccccd7fd278cd020934ac861270a4d5",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331325,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_case.test_dependency"
}, {
"name" : "suite",
"value" : "test_bpm_1_login"
}, {
"name" : "subSuite",
"value" : "TestBPMLogin"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_dependency.test_bpm_1_login"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "7e64410e92e4c030.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "8244565a79fd5d6",
"name" : "反向用例-password为空",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "faa0d89633196d498f51828690fe9793",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "420fdad01c478fe1",
"name" : "log",
"source" : "420fdad01c478fe1.txt",
"type" : "text/plain",
"size" : 290
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': ''}"
}, {
"name" : "expect_data",
"value" : "{'message': '账号或密码错误'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-password为空'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "8244565a79fd5d6.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin', 'password': ''}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "837095b0adfd2c39",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "12e822928b3f5db5c130443ca43b7870",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "8d5746d4bbfa5da7",
"name" : "log",
"source" : "8d5746d4bbfa5da7.txt",
"type" : "text/plain",
"size" : 344
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'添加维度'"
}, {
"name" : "case_data",
"value" : "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}"
}, {
"name" : "expect_data",
"value" : "{'message': '添加维度成功!'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "837095b0adfd2c39.json",
"parameterValues" : [ "'添加维度'", "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}", "{'message': '添加维度成功!'}", "'高'", "'POST'", "'application/json'", "'维度管理'", "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
"uid" : "8a0ab987fa1296fd",
"name" : "反向用例-password错误",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "dca5bf933e1dda58043c372b9595e3f4",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75AA80>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password错误'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == '解密密码异常,请检查RSA公钥和私钥配置'\nE \nE - 解密密码异常,请检查RSA公钥和私钥配置\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75AA80>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password错误'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75AA80>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password错误'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == '解密密码异常,请检查RSA公钥和私钥配置'\nE \nE - 解密密码异常,请检查RSA公钥和私钥配置\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75AA80>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password错误'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "db40fbe2881df1f3",
"name" : "log",
"source" : "db40fbe2881df1f3.txt",
"type" : "text/plain",
"size" : 493
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : true
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}"
}, {
"name" : "expect_data",
"value" : "{'message': '账号或密码错误'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-password错误'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "8a0ab987fa1296fd.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "961f0b4ba31482ea",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "45ecd97fdd28bf19e9e262efcd530171",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "d538de086c0c3db8",
"name" : "log",
"source" : "d538de086c0c3db8.txt",
"type" : "text/plain",
"size" : 244
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "删除组织"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'删除组织'"
}, {
"name" : "case_data",
"value" : "'test_org_w1'"
}, {
"name" : "expect_data",
"value" : "{'message': '删除组织成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'form'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "961f0b4ba31482ea.json",
"parameterValues" : [ "'删除组织'", "'test_org_w1'", "{'message': '删除组织成功!'}", "'中'", "'POST'", "'form'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}
\ No newline at end of file
{
"uid" : "98aedf97177cb29",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "03262c715a98503ac5d45d25fedf87ee",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "ebd117a04cf07ea1",
"name" : "log",
"source" : "ebd117a04cf07ea1.txt",
"type" : "text/plain",
"size" : 268
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "用户加入组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'用户加入组织'"
}, {
"name" : "case_data",
"value" : "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}"
}, {
"name" : "expect_data",
"value" : "{'message': '加入成功'}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "98aedf97177cb29.json",
"parameterValues" : [ "'用户加入组织'", "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}", "{'message': '加入成功'}", "'高'", "'POST'", "'query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'" ]
}
\ No newline at end of file
{
"uid" : "a9f87a49a93a8c0d",
"name" : "反向用例-username过长",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "90126bf745c40d9aab74473cebff4173",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "9d0320dd6099f974",
"name" : "log",
"source" : "9d0320dd6099f974.txt",
"type" : "text/plain",
"size" : 536
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-username过长'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a9f87a49a93a8c0d.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "b4d307afe7384e4",
"name" : "反向用例-username错误",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "e4d3f077cf44e8ddaafaaa7e8f2c11d0",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "97f53400f215fe07",
"name" : "log",
"source" : "97f53400f215fe07.txt",
"type" : "text/plain",
"size" : 487
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'message': '账户错误或该租户未启用'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-username错误'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "b4d307afe7384e4.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "b64ada8936aae46d",
"name" : "test_add_org",
"fullName" : "test_case.test_dependency.test_bpm_3_org.TestBPMOrg#test_add_org",
"historyId" : "8080b72a44c1dfb0997f6d9af411ce27",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700331374,
"stop" : 1725700331408,
"duration" : 34
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331325,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_dependency",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331410,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_dependency::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "tag",
"value" : "dependency(depends=['test_case/test_dependency/test_bpm_1_login.py::TestBPMLogin::test_login', 'test_case/test_dependency/test_bpm_2_dem.py::TestBPMDem::test_add_dem'], scope='package')"
}, {
"name" : "parentSuite",
"value" : "test_case.test_dependency"
}, {
"name" : "suite",
"value" : "test_bpm_3_org"
}, {
"name" : "subSuite",
"value" : "TestBPMOrg"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_dependency.test_bpm_3_org"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ "dependency(depends=['test_case/test_dependency/test_bpm_1_login.py::TestBPMLogin::test_login', 'test_case/test_dependency/test_bpm_2_dem.py::TestBPMDem::test_add_dem'], scope='package')" ]
},
"source" : "b64ada8936aae46d.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "c833d907176ddb47",
"name" : "反向用例-password为特殊字符",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "f6418c7f0a1bf3b84fdf672a51ad4d1c",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "818084bfd37ad1d7",
"name" : "log",
"source" : "818084bfd37ad1d7.txt",
"type" : "text/plain",
"size" : 308
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': '◦☼♠♣▣▤'}"
}, {
"name" : "expect_data",
"value" : "{'message': '账号或密码错误'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-password为特殊字符'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "c833d907176ddb47.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin', 'password': '◦☼♠♣▣▤'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'json'", "'认证接口'", "None", "None", "'反向用例-password为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "e7cba59bc4a8563a",
"name" : "正向用例",
"fullName" : "test_case.test_wj.test_bpm.TestBPM#test_bpm",
"historyId" : "6258b02831f492f0d1189af8d05fd7c9",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "fix_db",
"time" : {
"start" : 1725700331557,
"stop" : 1725700331594,
"duration" : 37
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700331517,
"stop" : 1725700331557,
"duration" : 40
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "69e67b1ed3dbf002",
"name" : "log",
"source" : "69e67b1ed3dbf002.txt",
"type" : "text/plain",
"size" : 350
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331936,
"stop" : 1725700331936,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "保存组织参数"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_wj"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_wj.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'保存组织参数'"
}, {
"name" : "case_data",
"value" : "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}"
}, {
"name" : "expect_data",
"value" : "{'message': '保存组织参数成功!'}"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'query|json'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "e7cba59bc4a8563a.json",
"parameterValues" : [ "'保存组织参数'", "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}", "{'message': '保存组织参数成功!'}", "'中'", "'POST'", "'query|json'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}
\ No newline at end of file
{
"uid" : "ed3549cca2ac3539",
"name" : "登录的正向用例",
"fullName" : "test_case.test_demo.test_bpm.TestBPM#test_bpm",
"historyId" : "0aeace9ba0981b6a3c42d54e56ad4c26",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "_session_faker",
"time" : {
"start" : 1725700330546,
"stop" : 1725700330625,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_req",
"time" : {
"start" : 1725700330625,
"stop" : 1725700330669,
"duration" : 44
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db",
"time" : {
"start" : 1725700330669,
"stop" : 1725700330716,
"duration" : 47
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "fbc2098f640e617a",
"name" : "log",
"source" : "fbc2098f640e617a.txt",
"type" : "text/plain",
"size" : 779
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "fix_req::0",
"time" : {
"start" : 1725700331945,
"stop" : 1725700331945,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "fix_db::0",
"time" : {
"start" : 1725700331944,
"stop" : 1725700331944,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登陆系统"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "项目名称"
}, {
"name" : "parentSuite",
"value" : "test_case.test_demo"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "LAPTOP-H5VLFKIL"
}, {
"name" : "thread",
"value" : "12816-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_case.test_demo.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登陆系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"
}, {
"name" : "expect_data",
"value" : "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'POST'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'登录的正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "ed3549cca2ac3539.json",
"parameterValues" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'高'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'登录的正向用例'", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "LAPTOP-H5VLFKIL",
"children" : [ {
"name" : "12816-MainThread",
"children" : [ {
"name" : "正向用例",
"uid" : "3b162d3e558e809f",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'更新维度'", "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}", "{'message': '更新维度成功!'}", "'中'", "'put'", "'json'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "正向用例",
"uid" : "3c9bdc94d0926fe0",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "failed",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'刷新token'", "None", "{'message': '刷新token成功'}", "'高'", "'GET'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/refresh'" ]
}, {
"name" : "正向用例",
"uid" : "961f0b4ba31482ea",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'删除组织'", "'test_org_w1'", "{'message': '删除组织成功!'}", "'中'", "'POST'", "'form'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "正向用例",
"uid" : "98aedf97177cb29",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'用户加入组织'", "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}", "{'message': '加入成功'}", "'高'", "'POST'", "'query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'" ]
}, {
"name" : "test_add_org",
"uid" : "b64ada8936aae46d",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "test_login",
"uid" : "7e64410e92e4c030",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "正向用例",
"uid" : "837095b0adfd2c39",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}", "{'message': '添加维度成功!'}", "'高'", "'POST'", "'application/json'", "'维度管理'", "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'delete'", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "正向用例",
"uid" : "e7cba59bc4a8563a",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'保存组织参数'", "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}", "{'message': '保存组织参数成功!'}", "'中'", "'POST'", "'query|json'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "反向用例-username过短",
"uid" : "6a84f8f3204ece8f",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username为特殊字符",
"uid" : "5bbc76995361039c",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password错误",
"uid" : "8a0ab987fa1296fd",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "failed",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password错误'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过长",
"uid" : "118fe3c796fb78c7",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "failed",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "正向用例",
"uid" : "5ea06d200ead4ea3",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'request_add_dem_w1'}", "{'isDelete': '0'}", "'高'", "'GET'", "'query'", "'维度管理'", "None", "None", "'正向用例'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'" ]
}, {
"name" : "正向用例",
"uid" : "46db0a2ffdb8103d",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码删除维度'", "{'ids': '需要更新'}", "{'message': '删除维度成功!'}", "'中'", "'DELETE'", "'query'", "'维度管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}", "'select'", "'正向用例'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "反向用例-password为空",
"uid" : "8244565a79fd5d6",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': ''}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password过短",
"uid" : "195a42b739a6736f",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "failed",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '123456'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-password过短'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "登录的正向用例",
"uid" : "ed3549cca2ac3539",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'高'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'登录的正向用例'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-password为特殊字符",
"uid" : "c833d907176ddb47",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin', 'password': '◦☼♠♣▣▤'}", "{'message': '账号或密码错误'}", "'中'", "'POST'", "'json'", "'认证接口'", "None", "None", "'反向用例-password为特殊字符'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "正向用例",
"uid" : "5e4751ea3cd535ea",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'message': '添加组织成功!'}", "'高'", "'POST'", "'application/json'", "'组织管理'", "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "反向用例-username过长",
"uid" : "a9f87a49a93a8c0d",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username过长'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_add_dem",
"uid" : "2e58d09c57f907e3",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ ]
}, {
"name" : "反向用例-username为空",
"uid" : "2822a15095c25425",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username为空'", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "反向用例-username错误",
"uid" : "b4d307afe7384e4",
"parentUid" : "026fca21eabb4db77c6dafc97e40993f",
"status" : "passed",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登陆系统'", "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}", "{'message': '账户错误或该租户未启用'}", "'中'", "'POST'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-username错误'", "None", "'http://36.139.193.99:8088/auth'" ]
} ],
"uid" : "026fca21eabb4db77c6dafc97e40993f"
} ],
"uid" : "101bdf64bca214c9ef8e8cf5e54f39a7"
} ]
}
\ No newline at end of file
launch_status failed=4 1725700338000000000
launch_status broken=0 1725700338000000000
launch_status passed=19 1725700338000000000
launch_status skipped=0 1725700338000000000
launch_status unknown=0 1725700338000000000
launch_time duration=1216 1725700338000000000
launch_time min_duration=10 1725700338000000000
launch_time max_duration=61 1725700338000000000
launch_time sum_duration=702 1725700338000000000
launch_problems product_defects=4 1725700338000000000
launch_retries retries=0 1725700338000000000
launch_retries run=23 1725700338000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 4
launch_status_broken 0
launch_status_passed 19
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 1216
launch_time_min_duration 10
launch_time_max_duration 61
launch_time_sum_duration 702
launch_problems_product_defects 4
launch_retries_retries 0
launch_retries_run 23
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
"data" : {
"Product defects" : 4
}
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 1216
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 4,
"broken" : 0,
"skipped" : 0,
"passed" : 19,
"unknown" : 0,
"total" : 23
}
} ]
\ No newline at end of file
{
"1c7aaad50e3e620c1378274f88bf1cc3" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "46db0a2ffdb8103d",
"status" : "passed",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
}
} ]
},
"e4d3f077cf44e8ddaafaaa7e8f2c11d0" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "b4d307afe7384e4",
"status" : "passed",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
}
} ]
},
"f6418c7f0a1bf3b84fdf672a51ad4d1c" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "c833d907176ddb47",
"status" : "passed",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
}
} ]
},
"0fcefb845440c573d470494fc08a716e" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5bbc76995361039c",
"status" : "passed",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
}
} ]
},
"45ecd97fdd28bf19e9e262efcd530171" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "961f0b4ba31482ea",
"status" : "passed",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
}
} ]
},
"03262c715a98503ac5d45d25fedf87ee" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "98aedf97177cb29",
"status" : "passed",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
}
} ]
},
"faa0d89633196d498f51828690fe9793" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "8244565a79fd5d6",
"status" : "passed",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
}
} ]
},
"12e822928b3f5db5c130443ca43b7870" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "837095b0adfd2c39",
"status" : "passed",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
}
} ]
},
"5919268c322d945c7bbd2cadf40894e2" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "118fe3c796fb78c7",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
}
} ]
},
"842633ec67e1af2b2c2b4190ba4e9cd6" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "3c9bdc94d0926fe0",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
}
} ]
},
"32ab51b187bedec60154b48e8b192bfa" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "2e58d09c57f907e3",
"status" : "passed",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
}
} ]
},
"7ef2780ed8dee6b3445097b72939d760" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "6a84f8f3204ece8f",
"status" : "passed",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
}
} ]
},
"1ccccd7fd278cd020934ac861270a4d5" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "7e64410e92e4c030",
"status" : "passed",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
}
} ]
},
"6258b02831f492f0d1189af8d05fd7c9" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "e7cba59bc4a8563a",
"status" : "passed",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
}
} ]
},
"f282d078e8b537f62c619cb1055d560f" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "3b162d3e558e809f",
"status" : "passed",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
}
} ]
},
"524a478f317ab2e4a59dec7ae28013fe" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "2822a15095c25425",
"status" : "passed",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
}
} ]
},
"dca5bf933e1dda58043c372b9595e3f4" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "8a0ab987fa1296fd",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
}
} ]
},
"0aeace9ba0981b6a3c42d54e56ad4c26" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "ed3549cca2ac3539",
"status" : "passed",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
}
} ]
},
"7a20a48bec2a40b09526c5f6b70a6337" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "195a42b739a6736f",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
}
} ]
},
"0ee376b906e9872302a2a7563f8c7e3a" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5e4751ea3cd535ea",
"status" : "passed",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
}
} ]
},
"cc932ca2fb4409dde020176fbed5825e" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5ea06d200ead4ea3",
"status" : "passed",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
}
} ]
},
"90126bf745c40d9aab74473cebff4173" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a9f87a49a93a8c0d",
"status" : "passed",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
}
} ]
},
"8080b72a44c1dfb0997f6d9af411ce27" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "b64ada8936aae46d",
"status" : "passed",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 23,
"retry" : 0
}
} ]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"total" : 4,
"items" : [ {
"uid" : "ace04434a691856ffdc330ff2b2d026b",
"name" : "项目名称",
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"Product defects" : 4
}
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d",
"name" : "Product defects",
"statistic" : {
"failed" : 4,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 4
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 1216
}
} ]
\ No newline at end of file
[ {
"uid" : "3c9bdc94d0926fe0",
"name" : "正向用例",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "b64ada8936aae46d",
"name" : "test_add_org",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e7cba59bc4a8563a",
"name" : "正向用例",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3b162d3e558e809f",
"name" : "正向用例",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5bbc76995361039c",
"name" : "反向用例-username为特殊字符",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "961f0b4ba31482ea",
"name" : "正向用例",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5e4751ea3cd535ea",
"name" : "正向用例",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "6a84f8f3204ece8f",
"name" : "反向用例-username过短",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2e58d09c57f907e3",
"name" : "test_add_dem",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7e64410e92e4c030",
"name" : "test_login",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8a0ab987fa1296fd",
"name" : "反向用例-password错误",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "46db0a2ffdb8103d",
"name" : "正向用例",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "c833d907176ddb47",
"name" : "反向用例-password为特殊字符",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "118fe3c796fb78c7",
"name" : "反向用例-password过长",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "2822a15095c25425",
"name" : "反向用例-username为空",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b4d307afe7384e4",
"name" : "反向用例-username错误",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a9f87a49a93a8c0d",
"name" : "反向用例-username过长",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5ea06d200ead4ea3",
"name" : "正向用例",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8244565a79fd5d6",
"name" : "反向用例-password为空",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "837095b0adfd2c39",
"name" : "正向用例",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "98aedf97177cb29",
"name" : "正向用例",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "195a42b739a6736f",
"name" : "反向用例-password过短",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "ed3549cca2ac3539",
"name" : "登录的正向用例",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 4,
"broken" : 0,
"skipped" : 0,
"passed" : 19,
"unknown" : 0,
"total" : 23
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 23,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "ed3549cca2ac3539",
"name" : "登录的正向用例",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5ea06d200ead4ea3",
"name" : "正向用例",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "6a84f8f3204ece8f",
"name" : "反向用例-username过短",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2822a15095c25425",
"name" : "反向用例-username为空",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b4d307afe7384e4",
"name" : "反向用例-username错误",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b64ada8936aae46d",
"name" : "test_add_org",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "46db0a2ffdb8103d",
"name" : "正向用例",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7e64410e92e4c030",
"name" : "test_login",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8244565a79fd5d6",
"name" : "反向用例-password为空",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3b162d3e558e809f",
"name" : "正向用例",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5e4751ea3cd535ea",
"name" : "正向用例",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2e58d09c57f907e3",
"name" : "test_add_dem",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "195a42b739a6736f",
"name" : "反向用例-password过短",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "a9f87a49a93a8c0d",
"name" : "反向用例-username过长",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "98aedf97177cb29",
"name" : "正向用例",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "837095b0adfd2c39",
"name" : "正向用例",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e7cba59bc4a8563a",
"name" : "正向用例",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5bbc76995361039c",
"name" : "反向用例-username为特殊字符",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3c9bdc94d0926fe0",
"name" : "正向用例",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "961f0b4ba31482ea",
"name" : "正向用例",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8a0ab987fa1296fd",
"name" : "反向用例-password错误",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "118fe3c796fb78c7",
"name" : "反向用例-password过长",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "c833d907176ddb47",
"name" : "反向用例-password为特殊字符",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "3c9bdc94d0926fe0",
"name" : "正向用例",
"time" : {
"start" : 1725700331264,
"stop" : 1725700331304,
"duration" : 40
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "b64ada8936aae46d",
"name" : "test_add_org",
"time" : {
"start" : 1725700331475,
"stop" : 1725700331506,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e7cba59bc4a8563a",
"name" : "正向用例",
"time" : {
"start" : 1725700331824,
"stop" : 1725700331846,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3b162d3e558e809f",
"name" : "正向用例",
"time" : {
"start" : 1725700331676,
"stop" : 1725700331695,
"duration" : 19
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5bbc76995361039c",
"name" : "反向用例-username为特殊字符",
"time" : {
"start" : 1725700330785,
"stop" : 1725700330813,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "961f0b4ba31482ea",
"name" : "正向用例",
"time" : {
"start" : 1725700331859,
"stop" : 1725700331885,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5e4751ea3cd535ea",
"name" : "正向用例",
"time" : {
"start" : 1725700331704,
"stop" : 1725700331754,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "6a84f8f3204ece8f",
"name" : "反向用例-username过短",
"time" : {
"start" : 1725700330854,
"stop" : 1725700330886,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2e58d09c57f907e3",
"name" : "test_add_dem",
"time" : {
"start" : 1725700331410,
"stop" : 1725700331471,
"duration" : 61
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7e64410e92e4c030",
"name" : "test_login",
"time" : {
"start" : 1725700331325,
"stop" : 1725700331365,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8a0ab987fa1296fd",
"name" : "反向用例-password错误",
"time" : {
"start" : 1725700331228,
"stop" : 1725700331244,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "46db0a2ffdb8103d",
"name" : "正向用例",
"time" : {
"start" : 1725700331900,
"stop" : 1725700331932,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "c833d907176ddb47",
"name" : "反向用例-password为特殊字符",
"time" : {
"start" : 1725700330970,
"stop" : 1725700330996,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "118fe3c796fb78c7",
"name" : "反向用例-password过长",
"time" : {
"start" : 1725700331005,
"stop" : 1725700331044,
"duration" : 39
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "2822a15095c25425",
"name" : "反向用例-username为空",
"time" : {
"start" : 1725700330759,
"stop" : 1725700330781,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b4d307afe7384e4",
"name" : "反向用例-username错误",
"time" : {
"start" : 1725700330895,
"stop" : 1725700330916,
"duration" : 21
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a9f87a49a93a8c0d",
"name" : "反向用例-username过长",
"time" : {
"start" : 1725700330824,
"stop" : 1725700330846,
"duration" : 22
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5ea06d200ead4ea3",
"name" : "正向用例",
"time" : {
"start" : 1725700331655,
"stop" : 1725700331665,
"duration" : 10
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8244565a79fd5d6",
"name" : "反向用例-password为空",
"time" : {
"start" : 1725700330926,
"stop" : 1725700330958,
"duration" : 32
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "837095b0adfd2c39",
"name" : "正向用例",
"time" : {
"start" : 1725700331594,
"stop" : 1725700331644,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "98aedf97177cb29",
"name" : "正向用例",
"time" : {
"start" : 1725700331766,
"stop" : 1725700331806,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "195a42b739a6736f",
"name" : "反向用例-password过短",
"time" : {
"start" : 1725700331196,
"stop" : 1725700331206,
"duration" : 10
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "ed3549cca2ac3539",
"name" : "登录的正向用例",
"time" : {
"start" : 1725700330716,
"stop" : 1725700330749,
"duration" : 33
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 3,
"items" : [ {
"uid" : "7a8b7e46177bbd4d1efa8551fea4a38d",
"name" : "test_case.test_demo",
"statistic" : {
"failed" : 4,
"broken" : 0,
"skipped" : 0,
"passed" : 8,
"unknown" : 0,
"total" : 12
}
}, {
"uid" : "779ab47062aa4a63c111355e3da3e0b5",
"name" : "test_case.test_wj",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 8,
"unknown" : 0,
"total" : 8
}
}, {
"uid" : "5fa37ee52138cac4807b87b482b5d721",
"name" : "test_case.test_dependency",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 4,
"broken" : 0,
"skipped" : 0,
"passed" : 19,
"unknown" : 0,
"total" : 23
},
"time" : {
"start" : 1725700330716,
"stop" : 1725700331932,
"duration" : 1216,
"minDuration" : 10,
"maxDuration" : 61,
"sumDuration" : 702
}
}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "e9ee36cb-4dd4-450f-8093-f88bf607718c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "method", "value": "'DELETE'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '需要更新'}"}, {"name": "expect_data", "value": "{'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_data", "value": "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}"}, {"name": "update_key", "value": "'ids'"}], "start": 1725700331900, "stop": 1725700331932, "uuid": "a53b5195-287a-4437-8212-976914c4b158", "historyId": "1c7aaad50e3e620c1378274f88bf1cc3", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码删除维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"uuid": "7859d08d-6ae3-4e7a-b796-29fa5e10375f", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331934}
\ No newline at end of file
{"uuid": "b10f68fd-db19-4252-9a2e-367815956882", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"uuid": "513b76d0-9343-4b36-89e5-a1fbe1ecaf10", "befores": [{"name": "method", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "c30417b2-bece-4778-86d9-52415a8d6241", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "30f85f7f-0547-4692-b0f3-0b12141cd206", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331218}
\ No newline at end of file
{"uuid": "22a5deb4-02db-419c-9414-52c9bbf3d834", "befores": [{"name": "method", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"uuid": "6c026682-02cc-467b-b2ad-2c7c6017056e", "befores": [{"name": "mime", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "c891eb7c-4648-427d-ba11-2c9c57e577dc", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331806}
\ No newline at end of file
{"uuid": "023b0ba6-5794-433e-9931-6d58cfec0f36", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331650}
\ No newline at end of file
{"uuid": "332874d3-9c64-4dd3-b7ac-758952ac2e49", "befores": [{"name": "mime", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "770bcc60-684e-4705-90db-388a8ee6dc64", "befores": [{"name": "mime", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331648}
\ No newline at end of file
{"uuid": "de7dc47f-59ed-455a-9f2c-533eb38fb9d2", "befores": [{"name": "mime", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "4c8723b6-bb4a-448b-942c-fcae3de57da6", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330924}
\ No newline at end of file
{"uuid": "13f494a6-f43d-4b23-a8c9-3a07a4dd6113", "children": ["141bd48e-4396-40ad-8880-b1261ab9814c", "e97f2b4e-d165-45a9-901e-94533291b620", "a1bb0de2-7923-477e-92e5-698a617a8d8f", "8c745634-3bb9-4b64-8c93-82b7ffe040ed", "e466de85-c9e3-48f7-abd0-8ad6ec3edce3", "a316e2d7-3b3b-43c5-bff6-0bf55895d56e", "689bc6a2-9c65-4e21-b2db-81ff332b55ad", "a53b5195-287a-4437-8212-976914c4b158"], "befores": [{"name": "fix_db", "status": "passed", "start": 1725700331557, "stop": 1725700331594}], "afters": [{"name": "fix_db::0", "status": "passed", "start": 1725700331936, "stop": 1725700331936}], "start": 1725700331557, "stop": 1725700331936}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "dd86e1ff-33d7-483a-9763-7afce021c61e-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "api_name", "value": "'删除组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'form'"}, {"name": "case_data", "value": "'test_org_w1'"}, {"name": "expect_data", "value": "{'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331859, "stop": 1725700331885, "uuid": "689bc6a2-9c65-4e21-b2db-81ff332b55ad", "historyId": "45ecd97fdd28bf19e9e262efcd530171", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "删除组织"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"name": "正向用例", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7583E0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '刷新token', title = '正向用例'\nlevel = '高', url = 'http://36.139.193.99:8088/refresh'\nmethod = 'GET', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '刷新token成功' == None\nE + where None = <built-in method get of dict object at 0x00000249EA8EA600>('message')\nE + where <built-in method get of dict object at 0x00000249EA8EA600> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7583E0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '刷新token', title = '正向用例'\nlevel = '高', url = 'http://36.139.193.99:8088/refresh'\nmethod = 'GET', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError"}, "attachments": [{"name": "log", "source": "7bd38781-2d2c-412c-a788-08cb4a367d31-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "url", "value": "'http://36.139.193.99:8088/refresh'"}, {"name": "method", "value": "'GET'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331264, "stop": 1725700331304, "uuid": "ea38ee1f-4940-4c81-a64a-4f2a22c80013", "historyId": "842633ec67e1af2b2c2b4190ba4e9cd6", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "136cb040-7140-4463-8a62-f8536996c50e", "befores": [{"name": "mime", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641109004288"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
{"uuid": "f30e121c-8b69-4670-9c6a-0d2be27673d8", "befores": [{"name": "url", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330784}
\ No newline at end of file
{"uuid": "0923b124-a43c-433f-ac68-7d14463a8d17", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "20d10c0a-fa5d-4315-87f5-0775e2de3295-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "api_name", "value": "'保存组织参数'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]}"}, {"name": "expect_data", "value": "{'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331824, "stop": 1725700331846, "uuid": "a316e2d7-3b3b-43c5-bff6-0bf55895d56e", "historyId": "6258b02831f492f0d1189af8d05fd7c9", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "保存组织参数"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"uuid": "7a957102-3ade-414a-81a4-231ec1717814", "befores": [{"name": "url", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "9618c694-12fe-4cb3-ad0b-b3060e4010cd", "befores": [{"name": "title", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "5acb22b6-f17b-4de9-add5-b8d84596a78c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'更新维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"}, {"name": "method", "value": "'put'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'}"}, {"name": "expect_data", "value": "{'message': '更新维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331676, "stop": 1725700331695, "uuid": "a1bb0de2-7923-477e-92e5-698a617a8d8f", "historyId": "f282d078e8b537f62c619cb1055d560f", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "更新维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"uuid": "8094b57a-4771-40d8-bd69-8be2092ed298", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "259b8db9-0c10-4ebe-b881-76ccc726f40c", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "27b75e04-3c12-4356-9af5-a2baff7bc75f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "api_name", "value": "'添加组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'test_org_w1', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'delete|select'"}, {"name": "sql_data", "value": "{'select': 'select ID_ FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";', 'delete': 'delete FROM uc_org WHERE `CODE_`=\"test_org_w1\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1725700331704, "stop": 1725700331754, "uuid": "8c745634-3bb9-4b64-8c93-82b7ffe040ed", "historyId": "0ee376b906e9872302a2a7563f8c7e3a", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"uuid": "5866dcce-b574-4880-93b4-7cb1e8a49d15", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331314}
\ No newline at end of file
{"uuid": "49482d40-9619-4024-8d32-fbb01ecf4311", "befores": [{"name": "method", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331894}
\ No newline at end of file
{"uuid": "90bde580-59ce-4055-a03c-369e45c95714", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "6ee995cf-d1c2-48d8-9786-012c5a9e9804", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"uuid": "327082e7-3c4f-412f-93ca-6a75aabf325d", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "962bc9a3-3234-40f9-abc5-f31e77b5a3c3", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "a7ae8486-4e95-4732-8ab6-92c12221d55b", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "fa46c160-f7cb-4e88-b3e6-30b580df5353", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "0d904ee5-1741-4d28-ab28-9bfd00a961e0", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330916}
\ No newline at end of file
{"uuid": "aa2948eb-e7c1-4735-9cec-cc5572b5f4a0", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330781}
\ No newline at end of file
{"name": "反向用例-username错误", "status": "passed", "attachments": [{"name": "log", "source": "ab0e9304-65d1-465a-a783-16b0462e78c9-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-username错误'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"name": "expect_data", "value": "{'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330895, "stop": 1725700330916, "uuid": "5b8f91cb-42a0-416e-957e-4611d67ec69b", "historyId": "e4d3f077cf44e8ddaafaaa7e8f2c11d0", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "02163863-88f4-4f53-a95c-fd69ca5c5d28", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331824, "stop": 1725700331824}], "start": 1725700331824, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "bdb4b50f-3f17-49cb-84a3-1fde92e24ab0", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "dc7730ce-46ec-4683-ac35-0038ead499ba", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331821, "stop": 1725700331821}], "start": 1725700331821, "stop": 1725700331854}
\ No newline at end of file
{"uuid": "bfb86714-f155-4412-a9fb-7980e8f9b77d", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "f32fb6fe-e583-43c2-b468-0c7d602cfcae", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330964}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'}
\ No newline at end of file
{"uuid": "1921e194-4846-41c1-b0ce-be852152f29a", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "e2afae01-3db5-4a90-bb92-9214b31ca5ac", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331644}
\ No newline at end of file
{"uuid": "c07ffa59-abd5-4a8d-b36a-c253f2f6b321", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"uuid": "267f574c-cea4-42ce-8a51-68c34480a831", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330924}
\ No newline at end of file
{"name": "test_add_org", "status": "passed", "start": 1725700331475, "stop": 1725700331506, "uuid": "4ad58ab3-e420-49e3-8d5a-0df0cdab0d3c", "historyId": "8080b72a44c1dfb0997f6d9af411ce27", "testCaseId": "8080b72a44c1dfb0997f6d9af411ce27", "fullName": "test_case.test_dependency.test_bpm_3_org.TestBPMOrg#test_add_org", "labels": [{"name": "tag", "value": "dependency(depends=['test_case/test_dependency/test_bpm_1_login.py::TestBPMLogin::test_login', 'test_case/test_dependency/test_bpm_2_dem.py::TestBPMDem::test_add_dem'], scope='package')"}, {"name": "parentSuite", "value": "test_case.test_dependency"}, {"name": "suite", "value": "test_bpm_3_org"}, {"name": "subSuite", "value": "TestBPMOrg"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_dependency.test_bpm_3_org"}]}
\ No newline at end of file
{"uuid": "dad073d5-daaa-4d1d-bb51-2534fbb1ac63", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330781}
\ No newline at end of file
{"uuid": "c8157b4e-1268-4f16-b037-a7ec68a5e5aa", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331218}
\ No newline at end of file
{"uuid": "9cb47e2f-bc29-471e-accb-26423ae67014", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "3a2159d7-bff4-4041-a5a2-51f2029f2d71", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "b985feae-e3c6-4d65-a004-2657bcd61716", "befores": [{"name": "level", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331896}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832345644397338624', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345640970592256"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
{"uuid": "ad03ae35-60b8-4e41-9b9f-56fa98b142ea", "children": ["141bd48e-4396-40ad-8880-b1261ab9814c", "e97f2b4e-d165-45a9-901e-94533291b620", "a1bb0de2-7923-477e-92e5-698a617a8d8f", "8c745634-3bb9-4b64-8c93-82b7ffe040ed", "e466de85-c9e3-48f7-abd0-8ad6ec3edce3", "a316e2d7-3b3b-43c5-bff6-0bf55895d56e", "689bc6a2-9c65-4e21-b2db-81ff332b55ad", "a53b5195-287a-4437-8212-976914c4b158"], "befores": [{"name": "fix_req", "status": "passed", "start": 1725700331517, "stop": 1725700331557}], "afters": [{"name": "fix_req::0", "status": "passed", "start": 1725700331936, "stop": 1725700331936}], "start": 1725700331517, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "cf1f9185-d45e-42f0-bcd0-75e0429555ac", "befores": [{"name": "mime", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"uuid": "6f050988-cdfa-4ce2-a84b-581ad7225df0", "befores": [{"name": "method", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "4246ff88-217d-464a-8b39-65d39e1a22cc", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331264}
\ No newline at end of file
{"uuid": "28de1b4c-3c3b-4c21-9531-6990a5f7c795", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331824, "stop": 1725700331824}], "start": 1725700331824, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "d96700f5-4966-414c-b020-a7e8d633b221", "befores": [{"name": "level", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331671}
\ No newline at end of file
{"uuid": "fab9efad-352f-4844-96d2-07ffe7ffd983", "befores": [{"name": "title", "status": "passed", "start": 1725700330815, "stop": 1725700330815}], "start": 1725700330815, "stop": 1725700330848}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTgsImlhdCI6MTcyNTcwMDIxOH0.Ec3-LFJt6Yf6gydzTndHpTL2fRECdK-M0VTUlh8xbVru1aITQ2jfHS7TuCVBpSBH-ZX-ktCgZiG8mE6Z-NnL4w","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}
\ No newline at end of file
{"uuid": "43d54443-8137-4f26-ab03-4712e217f7bd", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "8ca357fe-8baa-47d9-b880-dbf09e766163", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "0fa5aa2a-5cb5-4135-a5d6-64447f91effc", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331885}
\ No newline at end of file
{"uuid": "d10ef484-cb40-4714-b77b-1c8f9a1a2e1f", "befores": [{"name": "title", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330926}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
{"uuid": "faf48ba3-5059-4f71-9eae-982ebb764a25", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"name": "反向用例-password错误", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75AA80>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password错误'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == '解密密码异常,请检查RSA公钥和私钥配置'\nE \nE - 解密密码异常,请检查RSA公钥和私钥配置\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75AA80>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password错误'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError"}, "attachments": [{"name": "log", "source": "6591c674-50aa-452b-a60e-64fa29d091ac-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-password错误'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'}"}, {"name": "expect_data", "value": "{'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331228, "stop": 1725700331244, "uuid": "db06faf2-67ab-4473-a36f-198c863ab7e3", "historyId": "dca5bf933e1dda58043c372b9595e3f4", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "c4a13f8e-b4bf-49b7-988a-5913e4ce9624", "befores": [{"name": "method", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331224}
\ No newline at end of file
{"uuid": "3972f2f2-8841-46c5-8f4f-c071a6114706", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "57644229-bcb7-4894-bdb3-9a6517063c88", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"name": "反向用例-username过短", "status": "passed", "attachments": [{"name": "log", "source": "a3d54d86-97a3-49b6-9eb3-9543d0810dca-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-username过短'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"name": "expect_data", "value": "{'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330854, "stop": 1725700330886, "uuid": "da639c7a-7b03-45a2-a086-f57c59199b49", "historyId": "7ef2780ed8dee6b3445097b72939d760", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "eb8bc15b-a29a-43a7-8363-a930d723a4b3", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "00cc0b96-bf59-41f6-a985-ad91ae69a925", "befores": [{"name": "level", "status": "passed", "start": 1725700331821, "stop": 1725700331821}], "start": 1725700331821, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "99f093bf-9d28-4fd2-8124-d05bef680b1a", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330815, "stop": 1725700330815}], "start": 1725700330815, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "2cc02573-4315-4521-a758-d750fdcb2180", "befores": [{"name": "title", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "4359971e-0cb4-4375-a449-7042476f6258", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331695}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832345641742344192"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
{"uuid": "af03d47d-7899-4e17-8d45-ce3cf5765aec", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "1dc7c806-ff2f-4328-918b-ee1860fce124", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331885}
\ No newline at end of file
{"uuid": "b14b3d8c-598c-4ab2-bfce-1e71cf5a4b00", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "6b232c89-c727-48c6-a4ad-9980a36ca121", "befores": [{"name": "level", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "dbfccccd-b64c-4336-aa06-1c0590e80742", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330961}
\ No newline at end of file
{"uuid": "a0e815aa-f444-49f3-840d-7e582bd22646", "befores": [{"name": "title", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "b00cf100-3154-48a3-bd96-347b35f0a2cb", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "b4505dd7-0bfb-4499-a690-b87c6e314e8c", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331256}
\ No newline at end of file
{"uuid": "8965eb5a-bb3e-4572-a71b-3ff74f05349b", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330785}
\ No newline at end of file
{"uuid": "fc4aba3c-0dda-4835-a713-076edb1de92f", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "3fba6f44-0b19-45c4-94c0-06cc7c34c588", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330784}
\ No newline at end of file
{"uuid": "c26f242a-c972-40a2-94ca-9d665544fcdf", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330815, "stop": 1725700330815}], "start": 1725700330815, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "476f07c2-9554-4648-a7e3-5b258b0d5829", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331256}
\ No newline at end of file
{"uuid": "3763c4d9-6aa0-4c3c-9308-b08857e91dfa", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"name": "登录的正向用例", "status": "passed", "attachments": [{"name": "log", "source": "30c917ce-5a28-4a2b-9701-9097927decf3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'登录的正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"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": 1725700330716, "stop": 1725700330749, "uuid": "6c3eb8fd-e9fc-45d9-934a-f9f294fb8950", "historyId": "0aeace9ba0981b6a3c42d54e56ad4c26", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "52a0180a-504d-46b9-a913-90bf5baa47ca", "befores": [{"name": "title", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "0b6572f0-606d-4b2e-b482-6dad4e91a6dc", "befores": [{"name": "level", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331650}
\ No newline at end of file
{"uuid": "8e44fe38-14e1-4a5c-b861-7bd42d4be72b", "befores": [{"name": "mime", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331894}
\ No newline at end of file
{"uuid": "f2dad6b0-1272-4c5b-b789-b79863365045", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "aa88b8ec-167d-4e14-a6a9-be8083752242", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331824, "stop": 1725700331824}], "start": 1725700331824, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "cd83eccf-555c-4f3d-b875-ef4f9baa2b02", "befores": [{"name": "url", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "d98ebc18-f82d-4c2c-8299-6df11f5a61e7", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331821, "stop": 1725700331821}], "start": 1725700331821, "stop": 1725700331852}
\ No newline at end of file
{"uuid": "749d06e1-2d5e-4f2b-be99-0e757e0312fe", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331824, "stop": 1725700331824}], "start": 1725700331824, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "43b8c33c-4a0d-416b-bbed-05fe2bfda93d", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331885}
\ No newline at end of file
{"uuid": "5def9c7c-a52a-4582-8989-0816169f3965", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331184}
\ No newline at end of file
{"uuid": "25b44e10-f01d-41c7-bc20-020b26a633ff", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "ac76ebe7-cb50-4825-bbed-2a43bd95287a", "befores": [{"name": "level", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "99b103b3-7d18-4c7b-872b-b14e03db6374", "befores": [{"name": "level", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "714c0185-b42c-420a-b89b-0492f6f7199b", "befores": [{"name": "title", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'}
\ No newline at end of file
{"uuid": "8a8c8a51-da17-49fa-a37b-75322e26a398", "befores": [{"name": "method", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "d57587fc-11bb-4323-aa71-b49064283027", "befores": [{"name": "url", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331894}
\ No newline at end of file
{"uuid": "e4884eed-d6c1-4e0e-98cb-72a10abbb4de", "befores": [{"name": "mime", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345640823791616"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'}
\ No newline at end of file
{"uuid": "b9ee85e4-1fc8-4e0f-9441-7489cb9071d1", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331885}
\ No newline at end of file
{"uuid": "792e21ec-bec2-4d6f-9e52-3ca71bca21ff", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "8a727cb1-935e-472e-8da6-e96ed974afed", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330916}
\ No newline at end of file
{"uuid": "679cd1ff-ba8c-4bb7-8e04-f8a07ac2641b", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700331004}
\ No newline at end of file
{"uuid": "5e1f6582-27c9-49fe-a957-c8c623576b05", "befores": [{"name": "level", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330785}
\ No newline at end of file
{"uuid": "2793f503-6232-4dfb-a97e-d7bb3beb9a8a", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331264}
\ No newline at end of file
{"uuid": "97020190-73df-4a58-bf9c-8ce4f057c619", "befores": [{"name": "title", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700331004}
\ No newline at end of file
{"uuid": "ec28e658-fc81-47fe-83ab-e52f8d5fad94", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331654, "stop": 1725700331654}], "start": 1725700331654, "stop": 1725700331671}
\ No newline at end of file
{"uuid": "869b38f8-a80a-4a88-a730-a72380382c1f", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "9d6ab5e7-fb09-4a87-a0bd-15cfd37e7096", "befores": [{"name": "title", "status": "passed", "start": 1725700331654, "stop": 1725700331654}], "start": 1725700331654, "stop": 1725700331671}
\ No newline at end of file
{"uuid": "3d56c0ef-1fdc-4ec1-b49e-25281ea66d0e", "befores": [{"name": "level", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832345642795114496"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
{"uuid": "6a6f594a-0372-4899-9ff5-e1387addf4f1", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "9038a613-d099-4c50-8da5-f98f826fc587", "befores": [{"name": "url", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"uuid": "efb3f2d1-5256-40d3-8530-636e6e19b468", "befores": [{"name": "url", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "10afd580-a89d-407a-8f94-a98702d7620e", "befores": [{"name": "level", "status": "passed", "start": 1725700330815, "stop": 1725700330815}], "start": 1725700330815, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "efe92108-9d41-4199-a2b3-95740154bc5d", "befores": [{"name": "mime", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"uuid": "0dc2ef03-ae7a-43bd-8619-6963c5af410f", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330961}
\ No newline at end of file
{"uuid": "4bb6cfa6-15ec-4d8c-8d8e-817267b27feb", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "39fb5e38-7d0c-4355-9716-e71b34633747", "befores": [{"name": "title", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330785}
\ No newline at end of file
{"uuid": "f8c48437-8182-4aa6-a0e2-1958201eaebe", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "5f5f8696-991b-4ba4-8cf0-bd7e18ea9c60", "children": ["6c3eb8fd-e9fc-45d9-934a-f9f294fb8950", "aafaca3f-3d80-4148-8a46-5c73df4b82da", "fd92bcf5-3cff-4d58-af98-ab309e2da3ad", "2959b13e-bafe-4403-90e5-1ded5f4a6b52", "da639c7a-7b03-45a2-a086-f57c59199b49", "5b8f91cb-42a0-416e-957e-4611d67ec69b", "5b45cfad-0f60-4b44-b1f7-c99f3dcbaa9f", "fdc4e358-3583-4ef0-86bc-0808821a5df9", "1fdd47e3-6a95-4c01-815e-501b22fd2772", "4e37237e-4c22-404e-b480-edc4c0f9d9ed", "db06faf2-67ab-4473-a36f-198c863ab7e3", "ea38ee1f-4940-4c81-a64a-4f2a22c80013", "44082174-4e00-416e-a8f6-bb80966fa9c9", "2214d51e-9c8a-4334-9bea-47aaaca22cce", "4ad58ab3-e420-49e3-8d5a-0df0cdab0d3c", "141bd48e-4396-40ad-8880-b1261ab9814c", "e97f2b4e-d165-45a9-901e-94533291b620", "a1bb0de2-7923-477e-92e5-698a617a8d8f", "8c745634-3bb9-4b64-8c93-82b7ffe040ed", "e466de85-c9e3-48f7-abd0-8ad6ec3edce3", "a316e2d7-3b3b-43c5-bff6-0bf55895d56e", "689bc6a2-9c65-4e21-b2db-81ff332b55ad", "a53b5195-287a-4437-8212-976914c4b158"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1725700330546, "stop": 1725700330625}], "start": 1725700330546, "stop": 1725700331945}
\ No newline at end of file
{"uuid": "153fcb7c-474b-4b26-b8fd-90b854430326", "befores": [{"name": "url", "status": "passed", "start": 1725700330815, "stop": 1725700330815}], "start": 1725700330815, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "16759c25-1a87-449a-b9cf-29ea2d960fa6", "befores": [{"name": "url", "status": "passed", "start": 1725700331821, "stop": 1725700331821}], "start": 1725700331821, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "c4c85076-dcf5-47cc-85d1-60810e03427b", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330749}
\ No newline at end of file
{"uuid": "c8eb078e-fb83-43c5-a7c0-5e2f0355784c", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "dcad5976-b8f6-4d0c-a5c7-526a80252630", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "7886d4b0-1cbf-448e-b6fe-8602f93d25e4", "befores": [{"name": "mime", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330961}
\ No newline at end of file
{"uuid": "1d10d9e7-f5b6-457b-8a02-198d6623e473", "befores": [{"name": "method", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330784}
\ No newline at end of file
{"uuid": "593c68c7-2d9b-4127-be56-221eba25f193", "befores": [{"name": "url", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "2c745160-ff3b-42f8-bc93-33cca2c8c84e", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331645}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'}
\ No newline at end of file
{"uuid": "6b271a90-9a44-41f0-a786-a029f6c73bab", "befores": [{"name": "method", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331648}
\ No newline at end of file
{"uuid": "0662ec53-9f7f-476c-a04f-05cb037e134e", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "1ba1fd9f-1c22-499a-ab23-13a8707229e5", "befores": [{"name": "method", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "acca4808-675f-4bfc-a4a2-382c450e5066", "befores": [{"name": "url", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330926}
\ No newline at end of file
{"uuid": "a7ea9e68-3104-4a11-8af2-f82148366bc7", "befores": [{"name": "title", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "0c0e8ad6-5052-4f3e-9946-ae604a997308", "befores": [{"name": "url", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331224}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 17:10:20","isDelete":"0","id":"1832345644397338624","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832345644397338624"},期望数据为:{'isDelete': '0'}
\ No newline at end of file
{"uuid": "5b4875d1-855f-4b73-ba75-455655872bf1", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "f3e85fde-a740-4faa-a75b-1ab56b20e4cd", "befores": [{"name": "url", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "a6aed04b-20e7-4571-a08c-f7f21e93433b", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"uuid": "3ab0139e-8d30-4e09-9a15-252fc7865f45", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330749}
\ No newline at end of file
{"uuid": "07ba22f2-49ff-4809-a76c-a4b9152ba28e", "children": ["6c3eb8fd-e9fc-45d9-934a-f9f294fb8950", "aafaca3f-3d80-4148-8a46-5c73df4b82da", "fd92bcf5-3cff-4d58-af98-ab309e2da3ad", "2959b13e-bafe-4403-90e5-1ded5f4a6b52", "da639c7a-7b03-45a2-a086-f57c59199b49", "5b8f91cb-42a0-416e-957e-4611d67ec69b", "5b45cfad-0f60-4b44-b1f7-c99f3dcbaa9f", "fdc4e358-3583-4ef0-86bc-0808821a5df9", "1fdd47e3-6a95-4c01-815e-501b22fd2772", "4e37237e-4c22-404e-b480-edc4c0f9d9ed", "db06faf2-67ab-4473-a36f-198c863ab7e3", "ea38ee1f-4940-4c81-a64a-4f2a22c80013"], "befores": [{"name": "fix_req", "status": "passed", "start": 1725700330625, "stop": 1725700330669}], "afters": [{"name": "fix_req::0", "status": "passed", "start": 1725700331945, "stop": 1725700331945}], "start": 1725700330625, "stop": 1725700331945}
\ No newline at end of file
{"uuid": "2e62d038-5f83-4b1d-a328-44bdec18b9b8", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330785}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'}
\ No newline at end of file
{"uuid": "97ecd2d9-3496-49a2-8f11-00a661df25c4", "befores": [{"name": "method", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "01654f9d-b941-412f-ac84-1dad8bdb2b39", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832345641582960640"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
{"uuid": "552f6089-2f3d-4fb7-b271-c36f99b03fd4", "children": ["2214d51e-9c8a-4334-9bea-47aaaca22cce", "4ad58ab3-e420-49e3-8d5a-0df0cdab0d3c"], "befores": [{"name": "fix_db", "status": "passed", "start": 1725700331374, "stop": 1725700331408}], "afters": [{"name": "fix_db::0", "status": "passed", "start": 1725700331936, "stop": 1725700331936}], "start": 1725700331374, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "6a4543cc-c8a2-4904-bb6a-0943f5ce847a", "befores": [{"name": "mime", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"name": "反向用例-password过长", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7354F0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过长'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY...Dn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == None\nE + where None = <built-in method get of dict object at 0x00000249EA88A2C0>('message')\nE + where <built-in method get of dict object at 0x00000249EA88A2C0> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...ksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA7354F0>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过长'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY...Dn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError"}, "attachments": [{"name": "log", "source": "38b51e70-38e4-48fc-9e50-3c02e26df63d-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-password过长'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"name": "expect_data", "value": "{'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331005, "stop": 1725700331044, "uuid": "1fdd47e3-6a95-4c01-815e-501b22fd2772", "historyId": "5919268c322d945c7bbd2cadf40894e2", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "a051a7a7-7f10-4e55-8ee3-b0280f3e693b", "befores": [{"name": "url", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330963}
\ No newline at end of file
{"uuid": "ad317b77-54a3-47c3-8438-be9fabe65bf9", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "3b181613-14b6-4fdb-bb3c-647269417dfe", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330958}
\ No newline at end of file
{"uuid": "03a0c332-df14-45b1-850e-6b6ee76e1cba", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330924}
\ No newline at end of file
{"uuid": "bdc8a9c0-2bc5-41b5-a820-f4f2450e22dd", "children": ["44082174-4e00-416e-a8f6-bb80966fa9c9", "2214d51e-9c8a-4334-9bea-47aaaca22cce", "4ad58ab3-e420-49e3-8d5a-0df0cdab0d3c"], "befores": [{"name": "fix_req", "status": "passed", "start": 1725700331325, "stop": 1725700331325}], "afters": [{"name": "fix_req::0", "status": "passed", "start": 1725700331936, "stop": 1725700331936}], "start": 1725700331325, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "9f61968a-87b4-4a8e-9afb-8b36443d0f37", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"uuid": "98558a0e-c169-446d-b72e-a3b33f1e7384", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "b7a48095-52d5-4b1d-8af7-fb278dad02a0", "befores": [{"name": "title", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"name": "反向用例-username过长", "status": "passed", "attachments": [{"name": "log", "source": "0da56b7e-624c-42b0-b09c-7e821c88ac75-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-username过长'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"name": "expect_data", "value": "{'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330824, "stop": 1725700330846, "uuid": "2959b13e-bafe-4403-90e5-1ded5f4a6b52", "historyId": "90126bf745c40d9aab74473cebff4173", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "0936305d-8e3d-412c-8a27-5cc7d39d3b21", "befores": [{"name": "mime", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330784}
\ No newline at end of file
{"uuid": "09b87120-8420-4b47-8706-02a9dac70032", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331314}
\ No newline at end of file
{"uuid": "d422f36c-4f0e-471f-bc52-50c3e088a381", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331896}
\ No newline at end of file
{"uuid": "efcad516-4754-4c37-b4b8-076829406555", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331225}
\ No newline at end of file
{"uuid": "dce9910b-a17b-47a6-9c0b-39a0f0c1d9a8", "befores": [{"name": "title", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "640cdaa1-b88f-48ff-8018-d54b77dc0ba3", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "b4ee85fa-7f0e-42dd-8bf3-44d8585c843b", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330781}
\ No newline at end of file
{"uuid": "9c25f938-a4cc-4878-b700-4392b254e06c", "befores": [{"name": "mime", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"uuid": "1add70a3-1270-4780-a64d-db9740ebd0f1", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330926}
\ No newline at end of file
{"uuid": "661f3be6-b05f-4c70-b8a7-a1f103bc9f20", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700331005}
\ No newline at end of file
{"uuid": "4e750fe6-92ab-465e-99e7-fc7484e9d749", "befores": [{"name": "url", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331671}
\ No newline at end of file
{"uuid": "7bbf35e6-a9af-4eb8-94dc-b8a15ca72b6f", "befores": [{"name": "method", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "8fb27586-e9a4-4336-a7ec-38f8e743fd8d", "befores": [{"name": "method", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "a7615d37-c3e0-406f-89cb-448cb3cec255", "befores": [{"name": "mime", "status": "passed", "start": 1725700331824, "stop": 1725700331824}], "start": 1725700331824, "stop": 1725700331846}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641276776448"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
{"uuid": "dbf16ff1-8b1f-4b9b-b352-e86f47d22662", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:63 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641419382784"},期望数据为:{'message': '账户错误或该租户未启用'}
\ No newline at end of file
{"uuid": "a877d27f-0013-4c49-a1d3-f6b11d502a9e", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"name": "反向用例-password为空", "status": "passed", "attachments": [{"name": "log", "source": "8f48f810-d263-404b-ab58-f21021b109f4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-password为空'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': ''}"}, {"name": "expect_data", "value": "{'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330926, "stop": 1725700330958, "uuid": "5b45cfad-0f60-4b44-b1f7-c99f3dcbaa9f", "historyId": "faa0d89633196d498f51828690fe9793", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "8bca266d-8886-4e23-899c-238fe6db516b", "befores": [{"name": "method", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330925}
\ No newline at end of file
{"uuid": "ace8a01c-5760-4701-9154-8f9038cf2680", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331645}
\ No newline at end of file
{"uuid": "97eab0d8-651f-4daf-88a2-918c39e465a5", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "e7b26687-0435-4481-a51e-40465c1ee20b", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331225}
\ No newline at end of file
{"name": "test_add_dem", "status": "passed", "start": 1725700331410, "stop": 1725700331471, "uuid": "2214d51e-9c8a-4334-9bea-47aaaca22cce", "historyId": "32ab51b187bedec60154b48e8b192bfa", "testCaseId": "32ab51b187bedec60154b48e8b192bfa", "fullName": "test_case.test_dependency.test_bpm_2_dem_org.TestBPMDem#test_add_dem", "labels": [{"name": "parentSuite", "value": "test_case.test_dependency"}, {"name": "suite", "value": "test_bpm_2_dem_org"}, {"name": "subSuite", "value": "TestBPMDem"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_dependency.test_bpm_2_dem_org"}]}
\ No newline at end of file
{"uuid": "1cff3447-e5c9-43e9-aed1-7872d290e262", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "7d251bb7-ad67-4a08-9cd6-3d1c5538938f", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330926}
\ No newline at end of file
{"uuid": "f370b738-c14e-4a24-8e50-4943f4cb1db1", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "e59463bf-b0de-4243-9283-1215a362b935", "befores": [{"name": "title", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330964}
\ No newline at end of file
{"uuid": "db855ec7-b163-4243-89b8-bff79cbf1e2a", "befores": [{"name": "level", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "ed0dd050-7c17-4440-bb08-38d208c72dba", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "4d574120-f537-4509-b639-30f488325ce6", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330961}
\ No newline at end of file
{"uuid": "c37b7e29-c534-4b16-8a84-54d0fd5c87c6", "children": ["2214d51e-9c8a-4334-9bea-47aaaca22cce", "4ad58ab3-e420-49e3-8d5a-0df0cdab0d3c"], "befores": [{"name": "fix_dependency", "status": "passed", "start": 1725700331410, "stop": 1725700331410}], "afters": [{"name": "fix_dependency::0", "status": "passed", "start": 1725700331936, "stop": 1725700331936}], "start": 1725700331410, "stop": 1725700331936}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "5e08973c-56b0-49c9-9707-c715230793ef-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "api_name", "value": "'用户加入组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'}"}, {"name": "expect_data", "value": "{'message': '加入成功'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331766, "stop": 1725700331806, "uuid": "e466de85-c9e3-48f7-abd0-8ad6ec3edce3", "historyId": "03262c715a98503ac5d45d25fedf87ee", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "用户加入组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"uuid": "1ed4b9a3-aceb-4bdf-813d-1061a060ee5b", "befores": [{"name": "mime", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "9ec3f53d-b266-46ae-a810-6da5a7775df1", "befores": [{"name": "mime", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "386ed593-d1d8-4bd8-a5d7-bea2c6854311", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331650}
\ No newline at end of file
{"uuid": "1a6932d3-7b31-4db6-9e40-b8e02cbad86d", "befores": [{"name": "level", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"uuid": "3b111815-886a-451c-8295-d84601d6a97c", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"name": "反向用例-username为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "27d1d1ce-b23d-4a84-8e80-157a880ed057-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-username为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"name": "expect_data", "value": "{'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330785, "stop": 1725700330813, "uuid": "fd92bcf5-3cff-4d58-af98-ab309e2da3ad", "historyId": "0fcefb845440c573d470494fc08a716e", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "反向用例-password为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "4072882c-dfd5-472b-b26f-08728b76b40f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-password为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '◦☼♠♣▣▤'}"}, {"name": "expect_data", "value": "{'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330970, "stop": 1725700330996, "uuid": "fdc4e358-3583-4ef0-86bc-0808821a5df9", "historyId": "f6418c7f0a1bf3b84fdf672a51ad4d1c", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "f2a57969-6d1f-4e71-b2fa-6acaced33fa0", "befores": [{"name": "mime", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330925}
\ No newline at end of file
{"uuid": "779b710b-33fc-41d0-a7a6-2b6ae891fd04", "befores": [{"name": "method", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330754}
\ No newline at end of file
{"uuid": "7de2bceb-fb70-415b-aca4-99fd22fce757", "befores": [{"name": "title", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "bdf27c58-d997-4bec-ac1f-8f355579cd22", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331900, "stop": 1725700331900}], "start": 1725700331900, "stop": 1725700331934}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "895bccc4-5a5f-4185-8974-10fc4b280028-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'添加维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'}"}, {"name": "expect_data", "value": "{'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "{'delete': 'DELETE FROM uc_demension WHERE `CODE_`=\"request_add_dem_w1\";'}"}, {"name": "update_key", "value": "None"}], "start": 1725700331594, "stop": 1725700331644, "uuid": "141bd48e-4396-40ad-8880-b1261ab9814c", "historyId": "12e822928b3f5db5c130443ca43b7870", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
{"uuid": "ba36452e-3c76-4f17-af3c-f512a5cdd045", "befores": [{"name": "url", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"uuid": "e87de2f4-6bd0-422a-8356-c44b7a30d03d", "befores": [{"name": "level", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "ba214633-f7d4-4ad4-bff6-1ac3cdd7afb8", "befores": [{"name": "url", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "b31f5f33-bb33-4303-a83d-6941d5910e46", "befores": [{"name": "url", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "0c030f2c-1635-45c5-8925-3f3b36f60ee1", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331645}
\ No newline at end of file
{"uuid": "faee8f1a-f21d-41d8-8796-db06d666c464", "befores": [{"name": "url", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"name": "反向用例-password过短", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75B170>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过短'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': '123456', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n> assert expect_data[key] == res.json().get(key)\nE AssertionError: assert '账号或密码错误' == '解密密码异常,请检查RSA公钥和私钥配置'\nE \nE - 解密密码异常,请检查RSA公钥和私钥配置\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:56: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Test_3.test_case.test_demo.test_bpm.TestBPM object at 0x00000249EA75B170>\nfix_req = <Test_3.request_method.request_method.RequestMethod object at 0x00000249EA7C7AD0>\nfix_db = <Test_3.common.db.DB object at 0x00000249EA038800>\nmodule_name = '认证接口', api_name = '登陆系统', title = '反向用例-password过短'\nlevel = '中', url = 'http://36.139.193.99:8088/auth'\nmethod = 'POST', mime = 'application/json'\ncase_data = {'password': '123456', 'username': 'admin'}\nexpect_data = {'message': '账号或密码错误'}, sql_type = None\nsql_data = None, update_key = None\n\n @allure.epic(\"项目名称\")\n # 设置用例的参数化\n @pytest.mark.parametrize(\"module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key\", excel.get_data())\n def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):\n # print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)\n allure.dynamic.feature(module_name)\n allure.dynamic.story(api_name)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n # 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求\n if sql_type == \"delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求\n elif sql_type == \"select\":\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 判断sql语句的类型是否为delete|select,或者select|delete\n elif sql_type == \"delete|select\" or sql_type == \"select|delete\":\n # 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象\n fix_db.delete(sql_data[\"delete\"])\n # 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象\n select_result = fix_db.select(sql_data[\"select\"])\n # 更新用例数据中的key\n case_data[update_key] = select_result\n # 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象\n res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)\n \n try:\n # 断言\n for key in expect_data.keys():\n # 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n # 断言失败后\n log.error(f\"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_case\\test_demo\\test_bpm.py:60: AssertionError"}, "attachments": [{"name": "log", "source": "f82b2c32-3c14-4d14-a52e-0e4f52c74ebb-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-password过短'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '123456'}"}, {"name": "expect_data", "value": "{'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331196, "stop": 1725700331206, "uuid": "4e37237e-4c22-404e-b480-edc4c0f9d9ed", "historyId": "7a20a48bec2a40b09526c5f6b70a6337", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "4c323d7f-879c-4b00-bc89-ced96ba29e7c", "befores": [{"name": "method", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "93a19807-a03b-40df-af20-6ad154296679", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"uuid": "1c008aa2-164f-4627-8079-ff5634e40b4b", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "6ee04554-eeff-45eb-af37-44c4f4bea835", "befores": [{"name": "api_name", "status": "passed", "start": 1725700331654, "stop": 1725700331654}], "start": 1725700331654, "stop": 1725700331671}
\ No newline at end of file
{"uuid": "edb28051-bdda-4144-abc1-fc59cd1dfb00", "befores": [{"name": "mime", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "ec9bc478-846a-4825-91bc-aca70d93d1ce", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331218}
\ No newline at end of file
{"uuid": "474fedbe-dec2-4585-a339-e5104a199e90", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "8d57dabb-91bf-4a9f-b26e-89f437a6a3ea", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331196, "stop": 1725700331196}], "start": 1725700331196, "stop": 1725700331218}
\ No newline at end of file
{"uuid": "1ce71b24-c023-4ba8-8ef1-2b50ce53f265", "befores": [{"name": "level", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "5042bdd9-9b35-45d3-ae2f-cd12733ab57d", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"name": "test_login", "status": "passed", "start": 1725700331325, "stop": 1725700331365, "uuid": "44082174-4e00-416e-a8f6-bb80966fa9c9", "historyId": "1ccccd7fd278cd020934ac861270a4d5", "testCaseId": "1ccccd7fd278cd020934ac861270a4d5", "fullName": "test_case.test_dependency.test_bpm_1_login.TestBPMLogin#test_login", "labels": [{"name": "parentSuite", "value": "test_case.test_dependency"}, {"name": "suite", "value": "test_bpm_1_login"}, {"name": "subSuite", "value": "TestBPMLogin"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_dependency.test_bpm_1_login"}]}
\ No newline at end of file
{"uuid": "ac35e0ab-a391-42cd-abab-d4976275e264", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331824, "stop": 1725700331824}], "start": 1725700331824, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "138586e3-1deb-4120-9394-941540681a93", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "4d64ba3e-40fc-4df5-bfb8-b28fd9d4ce20", "befores": [{"name": "method", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330963}
\ No newline at end of file
{"uuid": "f101ce66-87e2-4ea4-9dc2-1fff7aaa1e99", "befores": [{"name": "level", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "81f7fff7-bde6-4250-9bd8-d6ca4adff2f2", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'}
\ No newline at end of file
{"uuid": "19d02bd9-8e41-4832-afc3-785c535c34c6", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331313}
\ No newline at end of file
{"uuid": "96430f69-6554-4df6-8e71-484fc7be6423", "befores": [{"name": "update_key", "status": "passed", "start": 1725700331900, "stop": 1725700331900}], "start": 1725700331900, "stop": 1725700331934}
\ No newline at end of file
{"uuid": "dbcb876c-8a51-42ae-9e78-4f29bd21616f", "befores": [{"name": "title", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331650}
\ No newline at end of file
{"uuid": "bc16831e-8d7d-42c8-8bdc-9fd6ef8ca085", "children": ["6c3eb8fd-e9fc-45d9-934a-f9f294fb8950", "aafaca3f-3d80-4148-8a46-5c73df4b82da", "fd92bcf5-3cff-4d58-af98-ab309e2da3ad", "2959b13e-bafe-4403-90e5-1ded5f4a6b52", "da639c7a-7b03-45a2-a086-f57c59199b49", "5b8f91cb-42a0-416e-957e-4611d67ec69b", "5b45cfad-0f60-4b44-b1f7-c99f3dcbaa9f", "fdc4e358-3583-4ef0-86bc-0808821a5df9", "1fdd47e3-6a95-4c01-815e-501b22fd2772", "4e37237e-4c22-404e-b480-edc4c0f9d9ed", "db06faf2-67ab-4473-a36f-198c863ab7e3", "ea38ee1f-4940-4c81-a64a-4f2a22c80013"], "befores": [{"name": "fix_db", "status": "passed", "start": 1725700330669, "stop": 1725700330716}], "afters": [{"name": "fix_db::0", "status": "passed", "start": 1725700331944, "stop": 1725700331944}], "start": 1725700330669, "stop": 1725700331944}
\ No newline at end of file
{"uuid": "8318bed6-013e-43f4-8a87-223dc74a23e4", "befores": [{"name": "title", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "e33efa1a-a0f2-4461-9cdd-f97a705816ac", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331644}
\ No newline at end of file
{"uuid": "b6552e41-691b-4222-be16-80d3c8564bf1", "befores": [{"name": "level", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331225}
\ No newline at end of file
{"uuid": "5eb2c5dc-122d-411b-b73a-3cbc6a5e0ea4", "befores": [{"name": "method", "status": "passed", "start": 1725700330964, "stop": 1725700330964}], "start": 1725700330964, "stop": 1725700330996}
\ No newline at end of file
{"uuid": "a909a9a8-a7ae-4b92-b85b-e83774108cc4", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "86353c0b-9cb9-4fca-aabb-34dd2b1cf20f", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331885}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:64 断言成功,用例数据为:{'ids': '1832345644397338624'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'}
\ No newline at end of file
{"uuid": "1466c6f4-6d70-4957-83e2-c5b167bb794c", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330759, "stop": 1725700330759}], "start": 1725700330759, "stop": 1725700330781}
\ No newline at end of file
{"uuid": "41b25364-0b9b-4c43-8614-8659ee27956c", "befores": [{"name": "title", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331896}
\ No newline at end of file
{"uuid": "da822195-c34e-4ae5-9f19-cb58aa6b6ae6", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330958}
\ No newline at end of file
{"uuid": "4616fef4-7e7f-4f5a-ac2a-0273cf575288", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331859, "stop": 1725700331859}], "start": 1725700331859, "stop": 1725700331896}
\ No newline at end of file
{"uuid": "8a00093e-d967-4598-8f84-5bac4c192d0b", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331704, "stop": 1725700331704}], "start": 1725700331704, "stop": 1725700331757}
\ No newline at end of file
{"uuid": "3ebe08a4-c416-4196-817e-c90d282eae90", "befores": [{"name": "level", "status": "passed", "start": 1725700331228, "stop": 1725700331228}], "start": 1725700331228, "stop": 1725700331260}
\ No newline at end of file
{"uuid": "8e0193c4-14a6-4f8d-b2b3-95cce29686be", "befores": [{"name": "url", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"name": "反向用例-username为空", "status": "passed", "attachments": [{"name": "log", "source": "5dd9ea25-488a-425a-bdc9-6ec0ee597ca3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登陆系统'"}, {"name": "title", "value": "'反向用例-username为空'"}, {"name": "level", "value": "'中'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "method", "value": "'POST'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='}"}, {"name": "expect_data", "value": "{'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700330759, "stop": 1725700330781, "uuid": "aafaca3f-3d80-4148-8a46-5c73df4b82da", "historyId": "524a478f317ab2e4a59dec7ae28013fe", "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": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-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": "f95c8ea8-d097-456c-b034-6493c103abef", "befores": [{"name": "update_key", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "487b3f86-e76d-4925-9a91-1dd4c8f6ffd1", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330749}
\ No newline at end of file
{"uuid": "244c5add-47f8-4691-a368-fda753445fcc", "befores": [{"name": "title", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331225}
\ No newline at end of file
{"uuid": "f468538b-5579-4a01-9354-6778ba5a1204", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331264, "stop": 1725700331264}], "start": 1725700331264, "stop": 1725700331316}
\ No newline at end of file
{"uuid": "6cd55278-894e-4230-8149-321fdaed11dc", "befores": [{"name": "case_data", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331218}
\ No newline at end of file
{"uuid": "f06f24b4-d3d4-49fd-a7e9-1682f66f8824", "befores": [{"name": "module_name", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330964}
\ No newline at end of file
{"uuid": "518b045e-4291-4634-bb31-72b3f4fe1cd7", "befores": [{"name": "mime", "status": "passed", "start": 1725700330785, "stop": 1725700330785}], "start": 1725700330785, "stop": 1725700330815}
\ No newline at end of file
{"uuid": "8aea04cd-5c6c-43f3-9cc8-262ba527e4a6", "befores": [{"name": "mime", "status": "passed", "start": 1725700331195, "stop": 1725700331195}], "start": 1725700331195, "stop": 1725700331218}
\ No newline at end of file
{"uuid": "d8b4a7b2-ee78-42e4-96a5-48b4624d6183", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700330824, "stop": 1725700330824}], "start": 1725700330824, "stop": 1725700330848}
\ No newline at end of file
{"uuid": "b7bc60a4-2ed7-4f48-867a-15214a831208", "befores": [{"name": "method", "status": "passed", "start": 1725700331821, "stop": 1725700331821}], "start": 1725700331821, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "a11237ae-1711-46b0-a290-1c2f59a35314", "befores": [{"name": "title", "status": "passed", "start": 1725700331821, "stop": 1725700331821}], "start": 1725700331821, "stop": 1725700331846}
\ No newline at end of file
{"uuid": "b1ca7488-3bc9-4340-94ea-7f7483cd72e1", "befores": [{"name": "expect_data", "status": "passed", "start": 1725700331896, "stop": 1725700331896}], "start": 1725700331896, "stop": 1725700331936}
\ No newline at end of file
{"uuid": "cdbf2765-2a10-4c07-9ff9-5fd4b4ba2b11", "befores": [{"name": "api_name", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
{"uuid": "38853b4d-529e-4e45-bf0e-f81afcab4046", "befores": [{"name": "level", "status": "passed", "start": 1725700330895, "stop": 1725700330895}], "start": 1725700330895, "stop": 1725700330926}
\ No newline at end of file
{"uuid": "49cbf49d-7d5c-4256-834f-347cec4a4b68", "befores": [{"name": "url", "status": "passed", "start": 1725700331594, "stop": 1725700331594}], "start": 1725700331594, "stop": 1725700331648}
\ No newline at end of file
{"uuid": "94c7778c-807c-4b95-9212-b4aaebab261e", "befores": [{"name": "module_name", "status": "passed", "start": 1725700331676, "stop": 1725700331676}], "start": 1725700331676, "stop": 1725700331696}
\ No newline at end of file
{"uuid": "edd6d5a0-cf97-40cf-a6a5-7656c76d8261", "befores": [{"name": "case_data", "status": "passed", "start": 1725700330854, "stop": 1725700330854}], "start": 1725700330854, "stop": 1725700330886}
\ No newline at end of file
ERROR  ceshi:test_bpm.py:59 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832345642627342336"},期望数据为:{'message': '账号或密码错误'}
\ No newline at end of file
{"uuid": "f55c7dbd-642a-4165-a262-22f0860aa0f6", "befores": [{"name": "method", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"uuid": "4d0df911-3c77-4288-b8b1-183b807001a9", "befores": [{"name": "level", "status": "passed", "start": 1725700330926, "stop": 1725700330926}], "start": 1725700330926, "stop": 1725700330964}
\ No newline at end of file
{"uuid": "6abde158-0430-41c3-b068-07e858580c7f", "befores": [{"name": "level", "status": "passed", "start": 1725700331764, "stop": 1725700331764}], "start": 1725700331764, "stop": 1725700331814}
\ No newline at end of file
{"uuid": "be0bb90b-2475-4dc5-b340-a838201b1ac7", "befores": [{"name": "method", "status": "passed", "start": 1725700331655, "stop": 1725700331655}], "start": 1725700331655, "stop": 1725700331665}
\ No newline at end of file
{"uuid": "cbad3de5-54a2-4ca5-91fa-00849d73f7e0", "befores": [{"name": "sql_type", "status": "passed", "start": 1725700330716, "stop": 1725700330716}], "start": 1725700330716, "stop": 1725700330749}
\ No newline at end of file
{"uuid": "809a9bad-ac0e-4a91-b2d0-e8e2841a839a", "befores": [{"name": "sql_data", "status": "passed", "start": 1725700331005, "stop": 1725700331005}], "start": 1725700331005, "stop": 1725700331185}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "83ce7b1f-e06a-4514-b519-253d04d12e19-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'根据维度编码获取维度信息'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/getDem'"}, {"name": "method", "value": "'GET'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'code': 'request_add_dem_w1'}"}, {"name": "expect_data", "value": "{'isDelete': '0'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1725700331655, "stop": 1725700331665, "uuid": "e97f2b4e-d165-45a9-901e-94533291b620", "historyId": "cc932ca2fb4409dde020176fbed5825e", "testCaseId": "a07370ea4d1202908ded653edb93341b", "fullName": "test_case.test_wj.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码获取维度信息"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "项目名称"}, {"name": "parentSuite", "value": "test_case.test_wj"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "LAPTOP-H5VLFKIL"}, {"name": "thread", "value": "12816-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_wj.test_bpm"}]}
\ No newline at end of file
2024-09-07 11:27:32,546 - read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 11:27:32,546 - read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 11:27:32,546 - read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 11:27:32,547 - read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 11:27:32,838 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3NjU5NDEsImlhdCI6MTcyNTY3OTU0MX0.hkPEOQlowca7IG90TchPrfBlq4av6CHTo6pnl_e0H4ag3h1UUrOvc-wTbPPCT5Ydt4wRAQF_75pooofH3TlvvA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 11:27:32,866 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832258912796647424"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 11:27:32,901 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832258912935059456"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 11:27:32,935 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832258913081860096"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 11:27:32,971 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832258913237049344"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 11:27:33,004 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832258913371267072"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 11:27:33,039 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832258913522262016"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 11:27:33,073 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832258913669062656"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 11:27:33,115 - test_bpm.py[line:56] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3NjU5NDEsImlhdCI6MTcyNTY3OTU0MX0.hkPEOQlowca7IG90TchPrfBlq4av6CHTo6pnl_e0H4ag3h1UUrOvc-wTbPPCT5Ydt4wRAQF_75pooofH3TlvvA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 11:27:33,459 - test_bpm.py[line:56] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832258915275481088"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 11:27:33,506 - test_bpm.py[line:56] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832258915472613376"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 11:27:33,578 - test_bpm.py[line:56] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3NjU5NDEsImlhdCI6MTcyNTY3OTU0MX0.hkPEOQlowca7IG90TchPrfBlq4av6CHTo6pnl_e0H4ag3h1UUrOvc-wTbPPCT5Ydt4wRAQF_75pooofH3TlvvA","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 11:27:33,644 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 11:27:33,661 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 11:25:42","isDelete":"0","id":"1832258916022067200","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832258916022067200"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 11:27:33,687 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 11:27:33,747 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832258916022067200', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 11:27:33,788 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 11:27:33,816 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 11:27:33,853 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 11:27:33,894 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832258916022067200'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 14:34:30,471 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:35:12,439 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:37:35,534 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:40:54,897 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:40:54,897 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:40:54,897 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:40:54,897 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:41:20,980 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:41:20,980 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:41:20,981 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:41:20,981 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:41:53,685 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:41:53,685 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:41:53,685 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:41:53,685 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:43:31,480 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:43:31,481 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:43:31,481 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:43:31,481 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:43:50,559 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:43:50,559 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:43:50,559 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:43:50,559 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:48:31,620 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:48:31,620 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:48:31,620 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:48:31,620 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:48:31,724 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 14:48:31,725 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 14:48:31,725 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 14:48:31,725 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 14:48:31,992 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3NzgwMDAsImlhdCI6MTcyNTY5MTYwMH0.zyZoEeFtlk2pCx4Xbn1Z9iejxgFtOQ7nAr9B8mzeM043PXUr0V5Mme50Y_8YmZMA11kOK3BAyJgi03tpq6cpIA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 14:48:32,018 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832309491703062528"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 14:48:32,049 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832309491828891648"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 14:48:32,078 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832309491950526464"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 14:48:32,107 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832309492072161280"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 14:48:32,136 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832309492185407488"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 14:48:32,166 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832309492319625216"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 14:48:32,196 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832309492445454336"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 14:48:32,230 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3NzgwMDAsImlhdCI6MTcyNTY5MTYwMH0.zyZoEeFtlk2pCx4Xbn1Z9iejxgFtOQ7nAr9B8mzeM043PXUr0V5Mme50Y_8YmZMA11kOK3BAyJgi03tpq6cpIA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 14:48:32,512 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832309493464670208"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 14:48:32,546 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832309493913460736"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 14:48:32,591 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3NzgwMDAsImlhdCI6MTcyNTY5MTYwMH0.zyZoEeFtlk2pCx4Xbn1Z9iejxgFtOQ7nAr9B8mzeM043PXUr0V5Mme50Y_8YmZMA11kOK3BAyJgi03tpq6cpIA","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 14:48:32,726 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 14:48:32,740 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 14:46:41","isDelete":"0","id":"1832309494634881024","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832309494634881024"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 14:48:32,759 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 14:48:32,813 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832309494634881024', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 14:48:32,858 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 14:48:32,886 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 14:48:32,917 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 14:48:32,954 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832309494634881024'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 15:56:21,654 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 15:56:21,655 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 15:56:21,655 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 15:56:21,655 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 15:56:21,789 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 15:56:21,789 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 15:56:21,789 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 15:56:21,789 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 15:56:22,004 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODIwNzAsImlhdCI6MTcyNTY5NTY3MH0.F5hDP5jAVkQXC8fh7t0iI6hDW3Bx6gFDOFJFk6whCTleM8lKGGb-1LnykbwA67crIxNlp22Yp6vTQhmJP_NRbA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 15:56:22,025 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832326562272878592"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 15:56:22,055 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832326562390319104"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 15:56:22,079 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832326562516148224"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 15:56:22,108 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832326562633588736"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 15:56:22,140 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832326562763612160"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 15:56:22,171 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832326562893635584"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 15:56:22,196 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832326563011076096"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 15:56:22,236 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODIwNzAsImlhdCI6MTcyNTY5NTY3MH0.F5hDP5jAVkQXC8fh7t0iI6hDW3Bx6gFDOFJFk6whCTleM8lKGGb-1LnykbwA67crIxNlp22Yp6vTQhmJP_NRbA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 15:56:22,404 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832326563862519808"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 15:56:22,435 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832326564000931840"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 15:56:22,490 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODIwNzAsImlhdCI6MTcyNTY5NTY3MH0.F5hDP5jAVkQXC8fh7t0iI6hDW3Bx6gFDOFJFk6whCTleM8lKGGb-1LnykbwA67crIxNlp22Yp6vTQhmJP_NRbA","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 15:56:22,795 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 15:56:22,817 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 15:54:31","isDelete":"0","id":"1832326565489909760","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832326565489909760"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 15:56:22,836 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 15:56:22,885 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832326565489909760', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 15:56:22,922 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 15:56:22,949 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 15:56:22,975 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 15:56:23,025 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832326565489909760'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:01:54,870 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:01:54,870 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:01:54,870 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:01:54,870 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:01:54,906 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:01:54,906 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:01:54,906 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:01:54,906 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:01:55,116 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI0MDMsImlhdCI6MTcyNTY5NjAwM30.uQzMGC6oCxjdtTeVQxe8C4Q1Rtf7emCJNbsXlQsEsekS8-XO9GY4eDnPqiGFEoFUu0WFNmJMk3-5FSnGFeXQug","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:01:55,141 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832327959437484032"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:01:55,174 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832327959559118848"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:01:55,203 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832327959697530880"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:01:55,225 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832327959819165696"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:01:55,254 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832327959928217600"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:01:55,284 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832327960045658112"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:01:55,315 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832327960167292928"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:01:55,356 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI0MDMsImlhdCI6MTcyNTY5NjAwM30.uQzMGC6oCxjdtTeVQxe8C4Q1Rtf7emCJNbsXlQsEsekS8-XO9GY4eDnPqiGFEoFUu0WFNmJMk3-5FSnGFeXQug","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:01:55,514 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832327961014542336"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:01:55,545 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832327961157148672"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:01:55,594 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI0MDMsImlhdCI6MTcyNTY5NjAwM30.uQzMGC6oCxjdtTeVQxe8C4Q1Rtf7emCJNbsXlQsEsekS8-XO9GY4eDnPqiGFEoFUu0WFNmJMk3-5FSnGFeXQug","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:01:55,883 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:01:55,894 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:00:04","isDelete":"0","id":"1832327962511908864","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832327962511908864"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:01:55,914 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:01:55,964 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832327962511908864', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:01:55,995 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:01:56,024 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:01:56,056 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:01:56,095 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832327962511908864'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:04:37,171 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:04:37,171 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:04:37,171 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:04:37,171 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:04:37,212 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:04:37,212 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:04:37,212 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:04:37,212 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:04:37,575 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1NjUsImlhdCI6MTcyNTY5NjE2NX0.BqsvRSZjjgCnDsyrOyr1_qC5XraY1uQ8xbiOwjvkEZXcOK8mDFRkxPFdK1fGWNgUa3-4_cRaT1Y4-IG1e0W7-g","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:04:37,599 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832328640827334656"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:04:37,630 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832328640965746688"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:04:37,662 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832328641087381504"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:04:37,690 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832328641209016320"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:04:37,715 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832328641322262528"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:04:37,742 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832328641452285952"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:37,783 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832328641599086592"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:37,824 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1NjUsImlhdCI6MTcyNTY5NjE2NX0.BqsvRSZjjgCnDsyrOyr1_qC5XraY1uQ8xbiOwjvkEZXcOK8mDFRkxPFdK1fGWNgUa3-4_cRaT1Y4-IG1e0W7-g","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:40,992 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1NjksImlhdCI6MTcyNTY5NjE2OX0.X1KK8hweVDfNZCieg34DEbh4T8iRxsRptGwHaYOJc_Yr7eoC9A4itN7pOtfinC1Tkwve17NESBXlD1nWNKRr9A","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:44,035 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1NzIsImlhdCI6MTcyNTY5NjE3Mn0.ZtJA6JSq6mVrrDR81MF4pw-PtdbVo61LVKXAddLtpjhmFwWQm2GKQ3wJX_k91CdtdLcX81Q8Uey1hNim5oTlIg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:47,072 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1NzUsImlhdCI6MTcyNTY5NjE3NX0.l_krQ9lr_tSE5qYmmQKRFM8foj8li4h7AaFj20NW16QhCeBXQVxZJYMzfB58EnzJBUV_gAqf332jaRnjEJPSvw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:50,110 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1NzgsImlhdCI6MTcyNTY5NjE3OH0.NTSbcpQ6fac7l0CxKrdypkTmCfmktbY6H8hRVjvEudVKRFN78a1VdMol4SLr3MxngPqoalR6_2jDxnzC5iWpfg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:53,152 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI1ODEsImlhdCI6MTcyNTY5NjE4MX0.RIdl-7SI64vXBBL7-u0PBpqXOd8fCRv2mohZGOG6W3X9honFry9yUicIIRvfzxPKRm7NJURLVFIpyaelR58niw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:53,192 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328706237505536"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:56,222 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328718954635264"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:04:59,258 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328731667570688"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:02,290 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328744388894720"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:05,320 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328757114413056"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:08,353 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328769818959872"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:08,402 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328770037063680"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:11,435 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328782762582016"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:14,470 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328795471323136"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:17,503 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328808201035776"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:20,537 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328820913971200"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:23,561 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832328833626906624"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:05:23,631 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI2MTEsImlhdCI6MTcyNTY5NjIxMX0.LnG2RxxpRu3zg628dktXOHxwmBQ0PjgQao_CdE28gRbi-Nb39zrQ3Rr3pYDMsH6zdvc0Dn5WtHzbYo6vP0RMpQ","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:05:26,730 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI2MTQsImlhdCI6MTcyNTY5NjIxNH0.kiW96B4Ehu7vV_gbG-O4jb8GzrFUFVZC0M6bj8IaPg_vZoK-IK63KAWZBNhsdXWFwTQg8fA6rnw18Bz3UqLV5w","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:05:29,760 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI2MTcsImlhdCI6MTcyNTY5NjIxN30.2e44Ulh7njwl57GAuIzUvWhYpEdree5L5RexS7a8qt_Z-EGKQEHsBG4kslGVz0sizmgBnp1KM2z1X7mZEJgS_Q","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:05:32,791 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI2MjAsImlhdCI6MTcyNTY5NjIyMH0.BAQ-6ggNNJhNPBIw3lEuyBrPLM2gM2zs0Vfk91x_WKVJLe0H0ng3CRjTqlrXtfEeAlbBDS506661NQWVml0DZQ","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:05:35,820 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI2MjMsImlhdCI6MTcyNTY5NjIyM30.WI0a-Ce985S9rH1E91lOjjv_6aG3Db9H-rm_Q_DS-IzBdjPPuVdyUUGFeuhraCs6hzGn7X0Z5abLcdrVRqygxw","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:05:38,875 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI2MjYsImlhdCI6MTcyNTY5NjIyNn0.yoce6RIHj8WCoR2zT9rbCwATNY4NPSQ8ClyNbzx0Og1X4sPtp2P031Lw9Vhp1M672BF0SybOwKF7DdlAOe6R7g","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:05:39,213 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:05:39,230 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:03:47","isDelete":"0","id":"1832328899200655360","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832328899200655360"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:05:39,252 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:05:39,310 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832328899200655360', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:05:39,352 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:05:39,382 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:05:39,411 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:05:39,450 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832328899200655360'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:07:19,276 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:07:19,276 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:07:19,276 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:07:19,276 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:07:19,324 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:07:19,326 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:07:19,326 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:07:19,326 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:07:19,555 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI3MjcsImlhdCI6MTcyNTY5NjMyN30.HHFrY_BoqtXe0pMpJJGuRizxzzaFVTBB7MSck4AK1nJVP_0A-sN3VRXa60yYj8E-bo7Lw9Py4zg-sbRstLS8jA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:07:19,577 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832329320195530752"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:07:19,605 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832329320317165568"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:07:19,634 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832329320438800384"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:07:19,661 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832329320552046592"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:07:19,689 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832329320669487104"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:07:19,719 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832329320799510528"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:07:19,747 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832329320916951040"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:07:19,834 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI3MjcsImlhdCI6MTcyNTY5NjMyN30.HHFrY_BoqtXe0pMpJJGuRizxzzaFVTBB7MSck4AK1nJVP_0A-sN3VRXa60yYj8E-bo7Lw9Py4zg-sbRstLS8jA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:07:19,989 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832329321923584000"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:07:20,020 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832329322066190336"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:07:20,067 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODI3MjgsImlhdCI6MTcyNTY5NjMyOH0.7rVlDU5b8aKB3pB6qdieQgYug1QzmqnAK_wZR62n9UUp5YNwIx-TkflDi_AHCe4UnKPa3SnZPCyQv0FC86r-yw","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:07:20,382 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:07:20,396 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:05:28","isDelete":"0","id":"1832329323542585344","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832329323542585344"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:07:20,421 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:07:20,470 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832329323542585344', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:07:20,513 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:07:20,538 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:07:20,568 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:07:20,602 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832329323542585344'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:17:59,411 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:17:59,411 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:17:59,411 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:17:59,411 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:17:59,627 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:17:59,627 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:17:59,627 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:17:59,627 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:17:59,976 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODMzNjgsImlhdCI6MTcyNTY5Njk2OH0.8yNXEkUw4bFHCXLrl1Bid2pStw-EhJ9WtkOhXqMakLlX2MnPkEPmSF_8FXoLoJv4eOprUhfi6eN09T8IOwMkug","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:18:00,007 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832332006315892736"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:18:00,039 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832332006471081984"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:18:00,077 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832332006617882624"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:18:00,115 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832332006768877568"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:18:00,149 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832332006928261120"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:18:00,187 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832332007083450368"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:18:00,227 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832332007238639616"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:18:00,307 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODMzNjgsImlhdCI6MTcyNTY5Njk2OH0.8yNXEkUw4bFHCXLrl1Bid2pStw-EhJ9WtkOhXqMakLlX2MnPkEPmSF_8FXoLoJv4eOprUhfi6eN09T8IOwMkug","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:18:00,533 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832332008421433344"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:18:00,567 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832332008698257408"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:18:00,627 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODMzNjgsImlhdCI6MTcyNTY5Njk2OH0.8yNXEkUw4bFHCXLrl1Bid2pStw-EhJ9WtkOhXqMakLlX2MnPkEPmSF_8FXoLoJv4eOprUhfi6eN09T8IOwMkug","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:18:00,928 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:18:00,950 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:16:09","isDelete":"0","id":"1832332010162069504","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832332010162069504"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:18:00,977 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:18:01,037 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832332010162069504', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:18:01,079 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:18:01,111 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:18:01,147 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:18:01,191 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832332010162069504'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:35:18,995 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:35:18,997 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:35:18,997 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:35:18,997 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:35:19,194 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:35:19,195 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:35:19,195 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:35:19,195 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:35:19,554 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODQ0MDcsImlhdCI6MTcyNTY5ODAwN30.DjbHPeDqJi0CNVHjZbY2exXbXP-RD65VxCLI0ZDunuo6LspmfbWmAV4v3nYZwWZ9souxao2MPhteHQ3-cFp7Kw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:35:19,592 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336366571724800"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:35:19,626 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336366726914048"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:35:19,658 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336366861131776"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:35:19,698 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336367028903936"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:35:19,732 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336367171510272"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:35:19,768 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832336367322505216"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:35:19,807 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832336367477694464"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:35:19,847 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODQ0MDcsImlhdCI6MTcyNTY5ODAwN30.DjbHPeDqJi0CNVHjZbY2exXbXP-RD65VxCLI0ZDunuo6LspmfbWmAV4v3nYZwWZ9souxao2MPhteHQ3-cFp7Kw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:35:20,206 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832336369159610368"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:35:20,250 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832336369344159744"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:35:20,305 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODQ0MDgsImlhdCI6MTcyNTY5ODAwOH0.ZOcYe4EJIERh1jGLPsgwCU5TS_XgCZ8L4qRCxNAeOM_qSYuKdva8VWSPoPpjWEquWo0djmaRGCqko6vjIlHt7w","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:35:20,653 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:35:20,680 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:33:29","isDelete":"0","id":"1832336370984132608","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832336370984132608"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:35:20,708 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:35:20,774 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832336370984132608', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:35:20,820 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:35:20,852 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:35:20,891 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:35:20,932 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832336370984132608'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:36:17,415 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:36:17,415 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:36:17,415 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:36:17,415 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:36:17,462 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:36:17,462 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:36:17,462 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:36:17,462 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:36:17,747 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODQ0NjUsImlhdCI6MTcyNTY5ODA2NX0.lnkYNBACpe4YxTgjxaC9gXo5mLGiSlqTLFT9OOEWv1KzF1zqup70fmuZiukuVIxqc_VSq51Al2E0vB8CBM-Y5Q","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:36:17,784 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336610676023296"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:36:17,826 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336610827018240"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:36:17,858 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336610982207488"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:36:17,891 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336611112230912"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:36:17,922 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832336611242254336"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:36:17,954 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832336611397443584"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:36:17,985 - test_bpm.py[line:61] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832336611540049920"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:36:18,033 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODQ0NjYsImlhdCI6MTcyNTY5ODA2Nn0.iIPtsiM-d64Vei3FG0PM-fNrDuNhhy_d0QNmeif40S0e7zhZHwnqOi0RD5dDm_SqHFaPscCsX1RGGEiMroQUDA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:36:18,190 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832336612387299328"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:36:18,238 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832336612559265792"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:36:18,286 - test_bpm.py[line:57] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODQ0NjYsImlhdCI6MTcyNTY5ODA2Nn0.iIPtsiM-d64Vei3FG0PM-fNrDuNhhy_d0QNmeif40S0e7zhZHwnqOi0RD5dDm_SqHFaPscCsX1RGGEiMroQUDA","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:36:18,603 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:36:18,619 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:34:27","isDelete":"0","id":"1832336614044049408","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832336614044049408"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:36:18,650 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:36:18,715 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832336614044049408', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:36:18,763 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:36:18,794 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:36:18,826 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:36:18,873 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832336614044049408'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 16:57:09,342 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:57:09,342 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:57:09,342 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:57:09,342 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:57:09,389 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 16:57:09,389 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 16:57:09,389 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 16:57:09,389 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 16:57:09,610 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODU3MTcsImlhdCI6MTcyNTY5OTMxN30.L3Gf7ypmU-qkbjvrbG_VAgWn50wM_Bl8EbZ89_vi5ELKQPksQN6rfpoITYFe7FuH4WVsV3WNCv_7G07ZZpcghA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 16:57:09,626 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832341861227405312"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:57:09,673 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832341861399371776"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:57:09,706 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832341861546172416"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:57:09,738 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832341861688778752"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:57:09,770 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832341861831385088"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 16:57:09,818 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832341861994962944"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:57:09,849 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832341862162735104"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:57:09,897 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODU3MTcsImlhdCI6MTcyNTY5OTMxN30.L3Gf7ypmU-qkbjvrbG_VAgWn50wM_Bl8EbZ89_vi5ELKQPksQN6rfpoITYFe7FuH4WVsV3WNCv_7G07ZZpcghA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:57:10,054 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832341863009984512"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:57:10,097 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832341863156785152"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 16:57:10,148 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODU3MTgsImlhdCI6MTcyNTY5OTMxOH0.pL5kTuVDF0hGIpucAQ6r7w7e7-DFKfmkUYZ4hU1u-yeWU_e056YJl9ZRf8nsvk8-tLOxZZxmV9gFg4PcGzJYYQ","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 16:57:10,462 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 16:57:10,478 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 16:55:18","isDelete":"0","id":"1832341864654151680","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832341864654151680"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 16:57:10,498 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 16:57:10,557 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832341864654151680', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 16:57:10,620 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 16:57:10,651 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 16:57:10,699 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 16:57:10,729 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832341864654151680'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 17:08:11,029 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 17:08:11,029 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 17:08:11,030 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 17:08:11,030 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 17:08:11,133 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 17:08:11,134 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 17:08:11,135 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 17:08:11,135 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 17:08:11,497 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzNzksImlhdCI6MTcyNTY5OTk3OX0.tiTnfEKUAYLBhrEtscJTh_PT5fIITgGZA19JJ9Qldq9oTGCFs855DxtLLoq3l9nxWeNwgEbdiqQ7mQx6UnDvxQ","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 17:08:11,523 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344637328171008"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:08:11,557 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344637470777344"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:08:11,585 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344637588217856"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:08:11,618 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344637722435584"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:08:11,650 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344637865041920"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:08:11,685 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832344638003453952"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:08:11,720 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832344638154448896"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:08:11,760 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzNzksImlhdCI6MTcyNTY5OTk3OX0.tiTnfEKUAYLBhrEtscJTh_PT5fIITgGZA19JJ9Qldq9oTGCFs855DxtLLoq3l9nxWeNwgEbdiqQ7mQx6UnDvxQ","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:08:12,137 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832344639899279360"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:08:12,192 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832344640134160384"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:08:12,253 - test_bpm.py[line:60] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzODAsImlhdCI6MTcyNTY5OTk4MH0.i2Sus6ne1Pg7Hy4dWTQOXroBb7W-wP-f3dH4t5n5FMYaVO_Lm847frl1M6JmCMMS_-t7SPtxIl9sC7M24cLahw","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 17:08:12,589 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 17:08:12,607 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 17:06:21","isDelete":"0","id":"1832344641769938944","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832344641769938944"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 17:08:12,632 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 17:08:12,688 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832344641769938944', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 17:08:12,737 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 17:08:12,768 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 17:08:12,803 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 17:08:12,844 - test_bpm.py[line:60] - ERROR: 断言成功,用例数据为:{'ids': '1832344641769938944'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
2024-09-07 17:12:10,478 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 17:12:10,478 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 17:12:10,478 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 17:12:10,478 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 17:12:10,524 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为excel -- ceshi
2024-09-07 17:12:10,526 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为case -- ceshi
2024-09-07 17:12:10,526 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为expect -- ceshi
2024-09-07 17:12:10,526 - user_read_ini.py[line:31] - INFO: 执行方法为get_file_path,获取file节点下的key对应的值,传入的key为sql -- ceshi
2024-09-07 17:12:10,749 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTgsImlhdCI6MTcyNTcwMDIxOH0.Ec3-LFJt6Yf6gydzTndHpTL2fRECdK-M0VTUlh8xbVru1aITQ2jfHS7TuCVBpSBH-ZX-ktCgZiG8mE6Z-NnL4w","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} -- ceshi
2024-09-07 17:12:10,774 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': '', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345640823791616"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:12:10,813 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': '◦☼♠♣▣▤', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345640970592256"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:12:10,845 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': 'adminadminadminadminadminadminadminadminadminadminadmin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641109004288"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:12:10,886 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': 'a', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641276776448"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:12:10,916 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': 'admin1', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832345641419382784"},期望数据为:{'message': '账户错误或该租户未启用'} -- ceshi
2024-09-07 17:12:10,958 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': ''},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832345641582960640"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:12:10,995 - test_bpm.py[line:63] - ERROR: 断言成功,用例数据为:{'username': 'admin', 'password': '◦☼♠♣▣▤'},服务器返回数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832345641742344192"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:12:11,044 - test_bpm.py[line:59] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8=EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8='},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:12:11,206 - test_bpm.py[line:59] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': '123456'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832345642627342336"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:12:11,244 - test_bpm.py[line:59] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvRg28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv'},服务器返回数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832345642795114496"},期望数据为:{'message': '账号或密码错误'} -- ceshi
2024-09-07 17:12:11,303 - test_bpm.py[line:59] - ERROR: 断言失败,用例数据为:None,服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODY2MTksImlhdCI6MTcyNTcwMDIxOX0.GAQwuIS-uS7HzVXzV9w4i6wSBpBVwd7O59hZt9rKyibXM819wat3Cqxv4Z0To5U-nuS4rnwoJdT77XwygPv_9Q","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true},期望数据为:{'message': '刷新token成功'} -- ceshi
2024-09-07 17:12:11,635 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': 'add_dem_w1', 'isDefault': 1, 'name': 'request添加的维度w1'},服务器返回数据为:{"state":true,"message":"添加维度成功!","value":"","code":200},期望数据为:{'message': '添加维度成功!'} -- ceshi
2024-09-07 17:12:11,664 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1'},服务器返回数据为:{"createTime":"2024-09-07 17:10:20","isDelete":"0","id":"1832345644397338624","demCode":"request_add_dem_w1","demName":"request添加的维度w1","demDesc":"add_dem_w1","isDefault":1,"organId":0,"code":"request_add_dem_w1","name":"request添加的维度w1","pkVal":"1832345644397338624"},期望数据为:{'isDelete': '0'} -- ceshi
2024-09-07 17:12:11,693 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'code': 'request_add_dem_w1', 'description': '更新', 'isDefault': 0, 'name': 'request_add_dem_w1'},服务器返回数据为:{"state":true,"message":"更新维度成功!","value":"","code":200},期望数据为:{'message': '更新维度成功!'} -- ceshi
2024-09-07 17:12:11,754 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'code': 'test_org_w1', 'demId': '1832345644397338624', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织w1', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},服务器返回数据为:{"state":true,"message":"添加组织成功!","value":"","code":200},期望数据为:{'message': '添加组织成功!'} -- ceshi
2024-09-07 17:12:11,806 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'orgCode': 'test_org_w1', 'accounts': 'admin,guest'},服务器返回数据为:{"state":true,"message":"加入成功","value":"","code":200},期望数据为:{'message': '加入成功'} -- ceshi
2024-09-07 17:12:11,846 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'query': {'orgCode': 'test_org_w1'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},服务器返回数据为:{"state":true,"message":"保存组织参数成功!","value":"","code":200},期望数据为:{'message': '保存组织参数成功!'} -- ceshi
2024-09-07 17:12:11,884 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:test_org_w1,服务器返回数据为:{"state":true,"message":"删除组织成功!","value":"","code":200},期望数据为:{'message': '删除组织成功!'} -- ceshi
2024-09-07 17:12:11,932 - test_bpm.py[line:64] - ERROR: 断言成功,用例数据为:{'ids': '1832345644397338624'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":"","code":200},期望数据为:{'message': '删除维度成功!'} -- ceshi
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: wen
# Datetime: 2024/9/4 下午6:54
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: request_method.py
# Author: wen
# Datetime: 2024/8/31 下午3:54
# Description:
#
# ---------------------------------------------------------------------------
import requests
from Test_3.common.basic_read_ini import ReadIni
class RequestMethod:
def __init__(self):
# 配置登录数据
login_data = {
"username": "admin",
"password": "EuaozNT/aGWiIjWYfJUjoGeLD/vQR5o4hTaHkaSPnfpmIkdQ6O83HZt+uCsiY02ssw09/ZRYFVVLDn6nzkTvR"
"g28EsWAqZGOGqiMTSSY/MADPHKRxP+8Lc6CTPKRwkpLKgDeVUYAhqT7s2K4WO0W2Vv2nGRyEHdy+v7UyPe2bv8="}
# 获取域名
login_url = ReadIni().get_host("bpm_host") + "/auth"
# 创建Session对象
self.bpm_session = requests.sessions.Session()
# 更新token
self.bpm_session.headers["Authorization"] = f'Bearer {
self.bpm_session.request(method="post", url=login_url, json=login_data).json().get("token")}'
def request_all(self, case_url, case_method, case_mime, case_data):
# 封装公共的请求方法,根据不同的用例媒体类型使用不同的关键字传参
# 判断用例的媒体类型为application/json或者json
if case_mime == 'application/json' or case_mime == 'json':
return self.bpm_session.request(method=case_method, url=case_url, json=case_data)
# 判断用例的媒体类型为application/x-www-form-urlencoded或者为form
elif case_mime == 'application/x-www-form-urlencoded' or case_mime == 'form':
# 除了上传文件和json类型在请求体中传参,其他类型都使用data关键字传参
return self.bpm_session.request(method=case_method, url=case_url, data=case_data)
# 判断用例的媒体类型为multipart/form-data或者为form-data
elif case_mime == 'multipart/form-data' or case_mime == 'form-data':
return self.bpm_session.request(method=case_method, url=case_url, files=case_data)
# 判断用例的媒体类型为query或者为params、地址栏
elif case_mime == 'query' or case_mime == 'params':
return self.bpm_session.request(method=case_method, url=case_url, params=case_data)
# 判断用例的媒体类型为None,表示没有传参
elif case_mime is None:
return self.bpm_session.request(method=case_method, url=case_url)
# 判断用例的媒体类型为query|json,或者json|query,表示地址栏和请求体同时传参
elif case_mime == "query|json" or case_mime == "json|query":
return self.bpm_session.request(method=case_method, url=case_url, params=case_data["query"], json=case_data["body"])
else:
raise ValueError("用例媒体类型错误,请自行封装请求方法")
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: wen
# Datetime: 2024/9/4 下午6:55
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: wen
# Datetime: 2024/9/7 上午11:43
# Description:
#
# ---------------------------------------------------------------------------
namespace = "demo"
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: conftest.py
# Author: wen
# Datetime: 2024/8/31 下午4:32
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from Test_3.common.db import DB
from Test_3.request_method.request_method import RequestMethod
# 创建DB类对象的自定义固件
@pytest.fixture(scope="session")
def fix_db():
db = DB()
yield db
db.close()
# 创建RequestMethod类对象的自定义固件
@pytest.fixture(scope="session")
def fix_req():
req = RequestMethod()
yield req
[pytest]
; ;开启日志
; log_cli=true
; ;设置日志的级别,如果不设置级别的话,可以设置为NOTSET,如果要设置级别,级别可以有debug,info,warning,error,致命
; log_level=NOTSET
; ;设置日志显示的信息格式
; log_format=%(levelname)s--%(asctime)s--%(message)s
; ;设置日志中时间显示的格式
; log_date_format=%Y-%m-%d %H:%M:%S
; ;每个py文件运行的时候追加的命令
; ;addopts=-vs
; ;设置日志保存的文件
; log_file=../report/log/bpm_test.log
;设置日志保存在文件中的级别
log_file_level=error
;设置日志在文件中的信息格式
log_file_format=%(levelname)s--%(asctime)s--%(message)s
;设置文件日志中时间显示的格式
log_file_date_format=%Y-%m-%d %H:%M:%S
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: conftest.py
# Author: wen
# Datetime: 2024/8/31 下午4:32
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
from Test_3 import log
from Test_3.common.read_excel import ReadExcel
from Test_3.test_case.test_demo import namespace
# 创建ReadExcel对象
excel = ReadExcel(namespace)
class TestBPM:
@allure.epic("BPM系统——demo")
# 设置用例的参数化
@pytest.mark.parametrize("module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key", excel.get_data())
def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):
# print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)
allure.dynamic.feature(module_name)
allure.dynamic.story(api_name)
allure.dynamic.title(title)
allure.dynamic.severity(level)
# 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求
if sql_type == "delete":
# 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象
fix_db.delete(sql_data["delete"])
# 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求
elif sql_type == "select":
# 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象
select_result = fix_db.select(sql_data["select"])
# 更新用例数据中的key
case_data[update_key] = select_result
# 判断sql语句的类型是否为delete|select,或者select|delete
elif sql_type == "delete|select" or sql_type == "select|delete":
# 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象
fix_db.delete(sql_data["delete"])
# 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象
select_result = fix_db.select(sql_data["select"])
# 更新用例数据中的key
case_data[update_key] = select_result
# 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象
res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)
try:
# 断言
for key in expect_data.keys():
# 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败
assert expect_data[key] == res.json().get(key)
except AssertionError:
# 断言失败后
log.error(f"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}")
raise AssertionError("断言失败")
else:
# 断言成功后
log.error(f"断言成功,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}")
if __name__ == '__main__':
bpm = TestBPM()
# bpm.bpm_demo()
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/9/2 17:33
# Description:
#
# ---------------------------------------------------------------------------
host = 'http://36.139.193.99:8088'
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: conftest.py
# Author: lao_zhao
# Datetime: 2024/9/2 16:54
# Description:
#
# ---------------------------------------------------------------------------
import pytest
import requests
from Test_3.common.db import DB
@pytest.fixture(scope="session")
def fix_req():
# 创建Session对象
sess = requests.sessions.Session()
yield sess
@pytest.fixture(scope="session")
def fix_db():
db = DB()
yield db
db.close()
@pytest.fixture(scope="session")
def fix_dependency():
dependency_dict = {}
yield dependency_dict
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: test_bpm_login.py
# Author: lao_zhao
# Datetime: 2024/9/2 17:31
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
class TestBPMLogin:
host = 'http://36.139.193.99:8088'
@allure.epic("BPM系统-场景测试")
@allure.feature("认证接口")
@allure.story("登录系统")
@allure.title("登录系统-正向用例")
@allure.severity("高")
@pytest.mark.dependency(scope="session")
def test_login(self, fix_req):
# 构造登录数据
login_url = self.host + '/auth'
login_data = {
"username": "admin", "password": "e6sFAeI1rLdzBgm3WzD/294rAtu9uI+0JSwNEexkatU+Pdzx8Y0qxGQyYy4"
"xTtGos4fDe2WSUtDkO2v8ri1u66TFGr2+EuUGdo1hKadDbbmroUjeZk07s"
"d4qhbuV740TLTdL7uHpg7Fod4MWDwSsMmg/EaFFahjKRCjNGPsV5Rw="}
# 使用Session对象发送请求,Session对象就是fix_req自定义固件
res = fix_req.request(method="post", url=login_url, json=login_data)
try:
assert "超级管理" in res.text
except AssertionError:
print("登录接口有bug")
raise AssertionError("断言失败")
else:
# 更新token到Session对象的headers中
fix_req.headers["Authorization"] = f"Bearer {res.json().get('token')}"
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: test_bpm.py
# Author: lao_zhao
# Datetime: 2024/9/2 16:55
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
class TestBPMDem:
host = 'http://36.139.193.99:8088'
@allure.epic("BPM系统-场景测试")
@allure.feature("维度管理")
@allure.story("添加维度")
@allure.title("添加维度-正向用例")
@allure.severity("高")
@pytest.mark.dependency(depends=['test_case/test_dependency/test_bpm_1_login.py::TestBPMLogin::test_login'],scope="session")
def test_add_dem(self, fix_req, fix_db, fix_dependency):
# 判断Session对象中是否有token,如果有再添加维度,如果没有之间报错
if "Authorization" in list(fix_req.headers.keys()):
# 配置添加维度的数据
add_dem_url = self.host + "/api/demension/v1/dem/addDem"
add_dem_data = {
"code": "testAddDem",
"description": "testAddDem",
"isDefault": 0,
"name": "测试添加的维度"
}
# 添加维度之前需要删除数据库中已存在的维度
fix_db.delete("""delete from uc_demension where CODE_="testAddDem";""")
# 发送请求
res = fix_req.request(method="post", url=add_dem_url, json=add_dem_data)
# 断言
try:
assert "添加维度成功" in res.text
except AssertionError:
raise AttributeError("断言失败")
else:
dem_id = fix_db.select("""select ID_ from uc_demension where CODE_="testAddDem";""")
fix_dependency["demId"] = dem_id
else:
raise ValueError("Session对象中没有token")
if __name__ == '__main__':
pytest.main()
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: test_bpm_3_org.py
# Author: lao_zhao
# Datetime: 2024/9/3 9:45
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
from study_requests.day_05 import test_example
class TestBPMOrg:
@allure.epic("BPM系统-场景测试")
@allure.feature("组织管理")
@allure.story("添加组织")
@allure.title("添加组织-正向用例")
@allure.severity("高")
@pytest.mark.dependency(depends=["test_case/test_dependency/test_bpm_1_login.py::TestBPMLogin::test_login", "test_case/test_dependency/test_bpm_2_dem.py::TestBPMDem::test_add_dem"], scope="package")
def test_add_org(self, fix_req, fix_dependency, fix_db):
add_org_url = test_example.host + "/api/org/v1/org/addOrg"
add_org_data = {
"code": "testAddOrg",
"demId": fix_dependency["demId"],
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
fix_db.delete("""delete from uc_org where CODE_="testAddOrg";""")
res = fix_req.request(method="post", url=add_org_url, json=add_org_data)
try:
assert "成功" in res.text
except AssertionError:
print("断言失败")
raise AssertionError("断言失败")
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: __init__.py
# Author: wen
# Datetime: 2024/9/7 上午11:44
# Description:
#
# ---------------------------------------------------------------------------
namespace = "wj"
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: conftest.py
# Author: wen
# Datetime: 2024/8/31 下午4:32
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from Test_3.common.db import DB
from Test_3.request_method.request_method import RequestMethod
# 创建DB类对象的自定义固件
@pytest.fixture(scope="session")
def fix_db():
db = DB()
yield db
db.close()
# 创建RequestMethod类对象的自定义固件
@pytest.fixture(scope="session")
def fix_req():
req = RequestMethod()
yield req
[pytest]
; ;开启日志
; log_cli=true
; ;设置日志的级别,如果不设置级别的话,可以设置为NOTSET,如果要设置级别,级别可以有debug,info,warning,error,致命
; log_level=NOTSET
; ;设置日志显示的信息格式
; log_format=%(levelname)s--%(asctime)s--%(message)s
; ;设置日志中时间显示的格式
; log_date_format=%Y-%m-%d %H:%M:%S
; ;每个py文件运行的时候追加的命令
; ;addopts=-vs
; ;设置日志保存的文件
; log_file=../report/log/bpm_test.log
;设置日志保存在文件中的级别
log_file_level=error
;设置日志在文件中的信息格式
log_file_format=%(levelname)s--%(asctime)s--%(message)s
;设置文件日志中时间显示的格式
log_file_date_format=%Y-%m-%d %H:%M:%S
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test62
# FileName: conftest.py
# Author: wen
# Datetime: 2024/8/31 下午4:32
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
from Test_3 import log
from Test_3.common.read_excel import ReadExcel
from Test_3.test_case.test_wj import namespace
# 创建ReadExcel对象
excel = ReadExcel(namespace)
class TestBPM:
@allure.epic("BPM系统——wj")
# 设置用例的参数化
@pytest.mark.parametrize("module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key", excel.get_data())
def test_bpm(self, fix_req, fix_db, module_name, api_name, title, level, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key):
# print(url, method, mime, case_data, expect_data, sql_type, sql_data, update_key)
allure.dynamic.feature(module_name)
allure.dynamic.story(api_name)
allure.dynamic.title(title)
allure.dynamic.severity(level)
# 判断sql语句的类型是否为delete,如果是,先使用DB类对象调用delete方法执行删除的sql语句,删除完成后,再发送请求
if sql_type == "delete":
# 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象
fix_db.delete(sql_data["delete"])
# 判断sql语句的类型是否为select,如果是,先使用DB类对象调用select方法执行查询的sql语句,获取查询结果后,将查询的结果更新到用例数据中,再发送请求
elif sql_type == "select":
# 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象
select_result = fix_db.select(sql_data["select"])
# 更新用例数据中的key
case_data[update_key] = select_result
# 判断sql语句的类型是否为delete|select,或者select|delete
elif sql_type == "delete|select" or sql_type == "select|delete":
# 使用DB类对象调用delete方法执行删除语句,fix_db自定义固件在用例中就是DB类对象
fix_db.delete(sql_data["delete"])
# 使用DB类对象调用select方法执行查询语句,fix_db自定义固件在用例中就是DB类对象
select_result = fix_db.select(sql_data["select"])
# 更新用例数据中的key
case_data[update_key] = select_result
# 使用RequestMethod类对象调用request_all方法发送请求,fix_req自定义固件在用例中就是RequestMethod类对象
res = fix_req.request_all(case_url=url, case_method=method, case_mime=mime, case_data=case_data)
try:
# 断言
for key in expect_data.keys():
# 断言期望数据key对应的值和服务器返回的key对应的值是否相等,相等则断言成功,否则断言失败
assert expect_data[key] == res.json().get(key)
except AssertionError:
# 断言失败后
log.error(f"断言失败,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}")
raise AssertionError("断言失败")
else:
# 断言成功后
log.error(f"断言成功,用例数据为:{case_data},服务器返回数据为:{res.text},期望数据为:{expect_data}")
if __name__ == '__main__':
bpm = TestBPM()
# bpm.bpm_demo()
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