Commit 3953ce2e by yyr

接口自动化框架—v1.2

parent 15634d65
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="py.test" />
</component>
</module>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="study_pytest.apiAutoTest_v1.common.read_excel.ReadExcel.read_json" />
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/apiAutoTest_v3.iml" filepath="$PROJECT_DIR$/.idea/apiAutoTest_v3.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="97d18fb3-53a6-401a-befb-7adb5a601747" name="更改" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ProjectColorInfo"><![CDATA[{
"associatedIndex": 6
}]]></component>
<component name="ProjectId" id="2locKNrF5JeKsXJi1RxFqy0C7FV" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.ShowReadmeOnStart": "true",
"last_opened_file_path": "D:/projects/python312/pythonProject/self_copy/apiAutoTest_v3"
}
}]]></component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-python-sdk-975db3bf15a3-31b6be0877a2-com.jetbrains.pycharm.community.sharedIndexes.bundled-PC-241.18034.82" />
</set>
</attachedChunks>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="默认任务">
<changelist id="97d18fb3-53a6-401a-befb-7adb5a601747" name="更改" comment="" />
<created>1725849805401</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1725849805401</updated>
</task>
<servers />
</component>
</project>
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: toast
# Datetime: 2024/9/7 上午9:14
# Description:
#
# ---------------------------------------------------------------------------
import logging
import os
import time
def log(name="toast"):
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.addHandler(handle)
return logger
log = log()
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: toast
# Datetime: 2024/9/7 上午10:08
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: db.py
# Author: toast
# Datetime: 2024/9/7 上午10:08
# Description:
#
# ---------------------------------------------------------------------------
import pymysql
from apiAutoTest_v3 import log
from apiAutoTest_v3.common.read_project_ini import ReadProjectIni
class DB:
def __init__(self):
pro_ini = ReadProjectIni()
self.conn = pymysql.connect(
host= pro_ini.get_sql_connect_msg("host"),
port=int(pro_ini.get_sql_connect_msg("port")),
user=pro_ini.get_sql_connect_msg("user"),
password=pro_ini.get_sql_connect_msg("password"),
database=pro_ini.get_sql_connect_msg("database"),
charset="utf8"
)
self.cursor =self.conn.cursor()
def close(self):
self.cursor.close()
self.conn.close()
def select(self,sql,n=0):
if isinstance(sql,str):
if sql.strip().lower().startswith("select"):
try:
self.cursor.execute(sql)
except Exception as e:
log.error(f"执行select方法时,产生错误,sql语句为:{sql},错误为:{e}")
return e
else:
select_result = self.cursor.fetchall()
if isinstance(n,int) and select_result:
try:
return select_result[n][0]
except Exception as e:
log.error(f"执行select方法时,获取查询结果失败,传入的n为:{n}")
else:
log.error(f"执行select方法时,sql语句不是查询你的sql语句,sql语句为:{sql}")
raise ValueError("sql语句错误")
else:
log.error(f"执行select方法时,sql语句错误,sql语句为:{sql}")
raise ValueError("sql语句错误")
def delete(self,sql):
if isinstance(sql,str):
if sql.strip().lower().startswith("delete"):
try:
self.cursor.execute(sql)
self.conn.commit()
except Exception as e:
log.error(f"执行delete方法时,产生错误,sql语句为:{sql},错误为:{e}")
raise e
else:
log.error(f"执行delete方法时,sql语句错误,sql语句为:{sql}")
raise ValueError("sql语句错误")
else:
log.error(f"执行delete方法时,sql语句错误,sql语句为:{sql}")
raise ValueError("sql语句错误")
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: read_excel.py
# Author: toast
# Datetime: 2024/9/7 上午11:02
# Description:
#
# ---------------------------------------------------------------------------
import openpyxl
from apiAutoTest_v3 import log
from apiAutoTest_v3.common.read_json import read_json
from apiAutoTest_v3.common.read_project_ini import ReadProjectIni
from apiAutoTest_v3.common.read_user_ini import ReadUserIni
from apiAutoTest_v3.data_config.settings import *
class ReadExcel:
def __init__(self,user_dir_name):
self.pro_ini = ReadProjectIni()
user_ini = ReadUserIni(user_dir_name)
case_data_path = user_ini.get_file_path(FILE_CASE)
expect_data_path = user_ini.get_file_path(FILE_EXPECT)
sql_data_path = user_ini.get_file_path(FILE_SQL)
excel_path = user_ini.get_file_path(FILE_EXCEL)
table_name = user_ini.get_table_name(TABLE_KEY)
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"加载excel工作簿/获取excel工作表时产生错误,错误为:{e},excel的路径为:{excel_path},工作表名称为:{table_name}")
raise e
def __get_cell_value(self,column,row):
try:
cell_value = self.ws[column + str(row)].value
except Exception as e:
log.error(f"获取单元格数据失败,错误为:{e},列号为:{column},行号为:{row}")
raise e
else:
if cell_value is None:
return None
elif cell_value.strip():
return cell_value.strip()
def moduel_name(self,row):
return self.__get_cell_value(MODULE,row)
def api_name(self,row):
return self.__get_cell_value(API,row)
def case_url(self,row):
path = self.__get_cell_value(URL,row)
if path:
return self.pro_ini.get_host(HOST_KEY)+path
def case_req_method(self,row):
return self.__get_cell_value(REQ_METHOD,row)
def case_mime(self,row):
mime = self.__get_cell_value(MIME,row)
if mime:
return mime.lower()
def case_data(self,row):
case_data_key = self.__get_cell_value(CASE_DATA,row)
if case_data_key:
module_name = self.moduel_name(row)
api_name = self.api_name(row)
return self.case_data_dict[module_name][api_name][case_data_key]
def expect_data(self,row):
expect_data_key = self.__get_cell_value(EXPECT_DATA,row)
if expect_data_key:
module_name = self.moduel_name(row)
api_name = self.api_name(row)
return self.expect_data_dict[module_name][api_name][expect_data_key]
def sql_data(self,row):
sql_data_key = self.__get_cell_value(SQL_DATA,row)
if sql_data_key:
module_name = self.moduel_name(row)
api_name = self.api_name(row)
return self.sql_data_dict[module_name][api_name][sql_data_key]
def sql_type(self,row):
sql_type = self.__get_cell_value(SQL_TYPE,row)
if sql_type:
return sql_type.lower()
def update_data(self,row):
return self.__get_cell_value(UPDATE_KEY,row)
def case_title(self,row):
return self.__get_cell_value(TITLE,row)
def 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.moduel_name(row)
api_name = self.api_name(row)
title = self.case_title(row)
level = self.case_level(row)
url = self.case_url(row)
method = self.case_req_method(row)
mime = self.case_mime(row)
case_data = self.case_data(row)
expect_data = self.expect_data(row)
sql_type = self.sql_type(row)
sql_data = self.sql_data(row)
update_data = self.update_data(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_data])
return list_data
if __name__ == '__main__':
E = ReadExcel('toast')
print(E.sql_data(16))
# print(E.get_data())
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: read_json.py
# Author: toast
# Datetime: 2024/9/7 上午10:55
# Description:
#
# ---------------------------------------------------------------------------
import json
from apiAutoTest_v3 import log
def read_json(file_path):
if isinstance(file_path, str):
try:
with open(file_path,mode="r",encoding="utf-8") as f:
return json.load(f)
except Exception as e:
log.error(f"读取json文件失败,传入的文件路径为:{file_path}-可能文件路径不存在/数据格式错误,错误为:{e}")
raise e
else:
log.error(f"执行read_json方法失败,传入的文件路径:{file_path}-不为字符串")
raise ValueError("传入文件路径必须为字符串")
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: read_project_ini.py
# Author: toast
# Datetime: 2024/9/7 上午10:09
# Description:
#
# ---------------------------------------------------------------------------
import configparser
import os
from apiAutoTest_v3 import log
class ReadProjectIni:
def __init__(self):
self.data_config = os.path.join(os.path.dirname(os.path.dirname(__file__)),"data_config")
ini_path = os.path.join(self.data_config,"project_config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path,encoding="utf-8")
def get_host(self,key):
try:
return self.conf.get("host",key)
except Exception as e:
log.error(f"方法get_host执行失败,形参为key传参为:{key},错误为:{e}")
raise e
def get_sql_connect_msg(self,key):
try:
return self.conf.get("sql",key)
except Exception as e:
log.error(f"方法get_sql_connect_msg执行失败,形参为key传参为:{key},错误为:{e}")
raise e
if __name__ == '__main__':
ini = ReadProjectIni()
print(ini.get_host("host"))
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: read_user_ini.py
# Author: toast
# Datetime: 2024/9/7 上午10:28
# Description:
#
# ---------------------------------------------------------------------------
import configparser
import os
from apiAutoTest_v3 import log
class ReadUserIni:
def __init__(self,user_dir_name):
data_config = os.path.join(os.path.dirname(os.path.dirname(__file__)),"data_config")
self.user_dir = os.path.join(data_config,user_dir_name)
ini_path = os.path.join(self.user_dir,"config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path,encoding="utf-8")
def get_file_path(self,key):
try:
log.info(f"执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为{key}")
file_name = self.conf.get("file",key)
except Exception as e:
log.error(f"方法get_file_path执行失败,传入形参key值为:{key},错误为:{e}")
raise e
else:
return os.path.join(self.user_dir,file_name)
def get_table_name(self,key):
try:
log.info(f"执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为{key}")
return self.conf.get("table",key)
except Exception as e:
log.error(f"方法get_table_name执行失败,传入形参key值为:{key},错误为:{e}")
raise e
{
"认证接口":{
"登录系统":{
"LoginSuccess": {"username": "admin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsNone": {"username": "","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsSpecialChar": {"username": "#!$!@#!@#","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsLong": {"username": "adminadminadminadminadminadminadminadminadmin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsShort": {"username": "a","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsError": {"username": "adminxyz","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorPasswordIsNone": {"username": "admin","password": ""},
"LoginErrorPasswordIsSpecialChar": {"username": "admin","password": "#!$!@#!@#"},
"LoginErrorPasswordIsLong": {"username": "admin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn"},
"LoginErrorPasswordIsShort": {"username": "admin","password": "123456"},
"LoginErrorPasswordIsError": {"username": "admin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"code": "requestsAddDem","description": "requestsAddDem","isDefault": 1,"name": "requests添加的维度"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"code": "requestsAddDem"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "需要更新"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "requestsAddDem",
"description": "requestsAddDem",
"isDefault": 0,
"name": "requestsAddDem"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "testAddOrg",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"用户加入组织": {
"OrgAddUserSuccess": {"orgCode": "testAddOrg", "accounts": "admin,guest"}
},
"保存组织参数": {
"SaveOrgparamsSuccess": {
"query": {"orgCode": "testAddOrg"},
"body": [{"alias": "hxxmts", "value": "项目中没有关系户"}]
}
},
"删除组织": {
"DeleteOrgSuccess": "testAddOrg"
}
}
}
{
"认证接口":{
"登录系统":{
"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"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"message": "删除维度成功!"}
},
"更新维度": {
"UpdateDemSuccess": {"message": "更新维度成功"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"message": "添加组织成功"}
},
"用户加入组织": {
"OrgAddUserSuccess": {"message":"加入成功"}
},
"保存组织参数": {
"SaveOrgparamsSuccess": {"message":"保存组织参数成功!"}
},
"删除组织": {
"DeleteOrgSuccess": {"message":"删除组织成功!"}
}
}
}
{
"维度管理": {
"添加维度": {
"AddDemSuccess": {"delete": "dELETE FROM uc_demension WHERE `CODE_`=\"requestsAddDem\";"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"select": "select ID_ from uc_demension where CODE_=\"requestsAddDem\";"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"select": "select ID_ from uc_demension where CODE_=\"requestsAddDem\"; ",
"delete": "delete from uc_org where CODE_=\"testAddOrg\";"
}
}
}
}
[file]
# 配置数据配置层中文件的名称
excel=bread.xlsx
case=bread_case_data.json
expect=bread_expect_data.json
sql=bread_sql_data.json
[table]
# 配置工作表名称
table_name=BPM
#存放公共的数据
[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
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: settings.py
# Author: toast
# Datetime: 2024/9/7 上午9:33
# 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文件中host节点的key
HOST_KEY = "bpm_host"
#ini文件中table节点的key
TABLE_KEY = "table_name"
\ No newline at end of file
[file]
excel = toast.xlsx
case = toast_case_data.json
expect = toast_expect_data.json
sql = toast_sql_data.json
[table]
table_name = 登录和添加维度的用例
\ No newline at end of file
{
"认证接口":{
"登录系统":{
"LoginSuccess": {"username": "admin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsNone": {"username": "","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsSpecialChar": {"username": "#!$!@#!@#","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsLong": {"username": "adminadminadminadminadminadminadminadminadmin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsShort": {"username": "a","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorUsernameIsError": {"username": "adminxyz","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="},
"LoginErrorPasswordIsNone": {"username": "admin","password": ""},
"LoginErrorPasswordIsSpecialChar": {"username": "admin","password": "#!$!@#!@#"},
"LoginErrorPasswordIsLong": {"username": "admin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn"},
"LoginErrorPasswordIsShort": {"username": "admin","password": "123456"},
"LoginErrorPasswordIsError": {"username": "admin","password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"code": "requestsAddDem","description": "requestsAddDem","isDefault": 1,"name": "requests添加的维度"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"code": "requestsAddDem"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "需要更新"}
}
}
}
\ 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":"解密密码异常,请检查RSA公钥和私钥配置"},
"LoginErrorPasswordIsShort": {"message":"解密密码异常,请检查RSA公钥和私钥配置"},
"LoginErrorPasswordIsError":{"message":"账号或密码错误"}
},
"刷新token": {
"RefreshSuccess": {"message": "刷新token成功"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"message": "添加维度成功"}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {"isDelete": "0"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"message": "删除维度成功!"}
}
}
}
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "dELETE FROM uc_demension WHERE `CODE_`=\"requestsAddDem\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "select ID_ from uc_demension where CODE_=\"requestsAddDem\";"
}
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title id="head-title">bread_report.html</title>
<style type="text/css">body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
/* do not increase min-width as some may use split screens */
min-width: 800px;
color: #999;
}
h1 {
font-size: 24px;
color: black;
}
h2 {
font-size: 16px;
color: black;
}
p {
color: black;
}
a {
color: #999;
}
table {
border-collapse: collapse;
}
/******************************
* SUMMARY INFORMATION
******************************/
#environment td {
padding: 5px;
border: 1px solid #e6e6e6;
vertical-align: top;
}
#environment tr:nth-child(odd) {
background-color: #f6f6f6;
}
#environment ul {
margin: 0;
padding: 0 20px;
}
/******************************
* TEST RESULT COLORS
******************************/
span.passed,
.passed .col-result {
color: green;
}
span.skipped,
span.xfailed,
span.rerun,
.skipped .col-result,
.xfailed .col-result,
.rerun .col-result {
color: orange;
}
span.error,
span.failed,
span.xpassed,
.error .col-result,
.failed .col-result,
.xpassed .col-result {
color: red;
}
.col-links__extra {
margin-right: 3px;
}
/******************************
* RESULTS TABLE
*
* 1. Table Layout
* 2. Extra
* 3. Sorting items
*
******************************/
/*------------------
* 1. Table Layout
*------------------*/
#results-table {
border: 1px solid #e6e6e6;
color: #999;
font-size: 12px;
width: 100%;
}
#results-table th,
#results-table td {
padding: 5px;
border: 1px solid #e6e6e6;
text-align: left;
}
#results-table th {
font-weight: bold;
}
/*------------------
* 2. Extra
*------------------*/
.logwrapper {
max-height: 230px;
overflow-y: scroll;
background-color: #e6e6e6;
}
.logwrapper.expanded {
max-height: none;
}
.logwrapper.expanded .logexpander:after {
content: "collapse [-]";
}
.logwrapper .logexpander {
z-index: 1;
position: sticky;
top: 10px;
width: max-content;
border: 1px solid;
border-radius: 3px;
padding: 5px 7px;
margin: 10px 0 10px calc(100% - 80px);
cursor: pointer;
background-color: #e6e6e6;
}
.logwrapper .logexpander:after {
content: "expand [+]";
}
.logwrapper .logexpander:hover {
color: #000;
border-color: #000;
}
.logwrapper .log {
min-height: 40px;
position: relative;
top: -50px;
height: calc(100% + 50px);
border: 1px solid #e6e6e6;
color: black;
display: block;
font-family: "Courier New", Courier, monospace;
padding: 5px;
padding-right: 80px;
white-space: pre-wrap;
}
div.media {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin: 0 5px;
overflow: hidden;
width: 320px;
}
.media-container {
display: grid;
grid-template-columns: 25px auto 25px;
align-items: center;
flex: 1 1;
overflow: hidden;
height: 200px;
}
.media-container--fullscreen {
grid-template-columns: 0px auto 0px;
}
.media-container__nav--right,
.media-container__nav--left {
text-align: center;
cursor: pointer;
}
.media-container__viewport {
cursor: pointer;
text-align: center;
height: inherit;
}
.media-container__viewport img,
.media-container__viewport video {
object-fit: cover;
width: 100%;
max-height: 100%;
}
.media__name,
.media__counter {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 0 0 25px;
align-items: center;
}
.collapsible td:not(.col-links) {
cursor: pointer;
}
.collapsible td:not(.col-links):hover::after {
color: #bbb;
font-style: italic;
cursor: pointer;
}
.col-result {
width: 130px;
}
.col-result:hover::after {
content: " (hide details)";
}
.col-result.collapsed:hover::after {
content: " (show details)";
}
#environment-header h2:hover::after {
content: " (hide details)";
color: #bbb;
font-style: italic;
cursor: pointer;
font-size: 12px;
}
#environment-header.collapsed h2:hover::after {
content: " (show details)";
color: #bbb;
font-style: italic;
cursor: pointer;
font-size: 12px;
}
/*------------------
* 3. Sorting items
*------------------*/
.sortable {
cursor: pointer;
}
.sortable.desc:after {
content: " ";
position: relative;
left: 5px;
bottom: -12.5px;
border: 10px solid #4caf50;
border-bottom: 0;
border-left-color: transparent;
border-right-color: transparent;
}
.sortable.asc:after {
content: " ";
position: relative;
left: 5px;
bottom: 12.5px;
border: 10px solid #4caf50;
border-top: 0;
border-left-color: transparent;
border-right-color: transparent;
}
.hidden, .summary__reload__button.hidden {
display: none;
}
.summary__data {
flex: 0 0 550px;
}
.summary__reload {
flex: 1 1;
display: flex;
justify-content: center;
}
.summary__reload__button {
flex: 0 0 300px;
display: flex;
color: white;
font-weight: bold;
background-color: #4caf50;
text-align: center;
justify-content: center;
align-items: center;
border-radius: 3px;
cursor: pointer;
}
.summary__reload__button:hover {
background-color: #46a049;
}
.summary__spacer {
flex: 0 0 550px;
}
.controls {
display: flex;
justify-content: space-between;
}
.filters,
.collapse {
display: flex;
align-items: center;
}
.filters button,
.collapse button {
color: #999;
border: none;
background: none;
cursor: pointer;
text-decoration: underline;
}
.filters button:hover,
.collapse button:hover {
color: #ccc;
}
.filter__label {
margin-right: 10px;
}
</style>
</head>
<body>
<h1 id="title">bread_report.html</h1>
<p>Report generated on 07-Sep-2024 at 17:08:17 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
v4.1.1</p>
<div id="environment-header">
<h2>Environment</h2>
</div>
<table id="environment"></table>
<!-- TEMPLATES -->
<template id="template_environment_row">
<tr>
<td></td>
<td></td>
</tr>
</template>
<template id="template_results-table__body--empty">
<tbody class="results-table-row">
<tr id="not-found-message">
<td colspan="4">No results found. Check the filters.</th>
</tr>
</template>
<template id="template_results-table__tbody">
<tbody class="results-table-row">
<tr class="collapsible">
</tr>
<tr class="extras-row">
<td class="extra" colspan="4">
<div class="extraHTML"></div>
<div class="media">
<div class="media-container">
<div class="media-container__nav--left"><</div>
<div class="media-container__viewport">
<img src="" />
<video controls>
<source src="" type="video/mp4">
</video>
</div>
<div class="media-container__nav--right">></div>
</div>
<div class="media__name"></div>
<div class="media__counter"></div>
</div>
<div class="logwrapper">
<div class="logexpander"></div>
<div class="log"></div>
</div>
</td>
</tr>
</tbody>
</template>
<!-- END TEMPLATES -->
<div class="summary">
<div class="summary__data">
<h2>Summary</h2>
<div class="additional-summary prefix">
</div>
<p class="run-count">7 tests took 322 ms.</p>
<p class="filter">(Un)check the boxes to filter the results.</p>
<div class="summary__reload">
<div class="summary__reload__button hidden" onclick="location.reload()">
<div>There are still tests running. <br />Reload this page to get the latest results!</div>
</div>
</div>
<div class="summary__spacer"></div>
<div class="controls">
<div class="filters">
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="failed" />
<span class="failed">3 Failed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" />
<span class="passed">4 Passed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="skipped" disabled/>
<span class="skipped">0 Skipped,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xfailed" disabled/>
<span class="xfailed">0 Expected failures,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xpassed" disabled/>
<span class="xpassed">0 Unexpected passes,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="error" disabled/>
<span class="error">0 Errors,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="rerun" disabled/>
<span class="rerun">0 Reruns</span>
</div>
<div class="collapse">
<button id="show_all_details">Show all details</button>&nbsp;/&nbsp;<button id="hide_all_details">Hide all details</button>
</div>
</div>
</div>
<div class="additional-summary summary">
</div>
<div class="additional-summary postfix">
</div>
</div>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable" data-column-type="result">Result</th>
<th class="sortable" data-column-type="testId">Test</th>
<th class="sortable" data-column-type="duration">Duration</th>
<th>Links</th>
</tr>
</thead>
</table>
</body>
<footer>
<div id="data-container" data-jsonblob="{&#34;environment&#34;: {&#34;Python&#34;: &#34;3.12.4&#34;, &#34;Platform&#34;: &#34;Windows-11-10.0.22631-SP0&#34;, &#34;Packages&#34;: {&#34;pytest&#34;: &#34;8.3.2&#34;, &#34;pluggy&#34;: &#34;1.5.0&#34;}, &#34;Plugins&#34;: {&#34;allure-pytest&#34;: &#34;2.13.5&#34;, &#34;dependency&#34;: &#34;0.6.0&#34;, &#34;html&#34;: &#34;4.1.1&#34;, &#34;metadata&#34;: &#34;3.1.1&#34;, &#34;ordering&#34;: &#34;0.6&#34;, &#34;rerunfailures&#34;: &#34;14.0&#34;}}, &#34;tests&#34;: {&#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/demension/v1/dem/addDem-post-application/json-case_data0-expect_data0-delete-sql_data0-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Failed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/demension/v1/dem/addDem-post-application/json-case_data0-expect_data0-delete-sql_data0-None]&#34;, &#34;duration&#34;: &#34;129 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Failed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/demension/v1/dem/addDem-post-application/json-case_data0-expect_data0-delete-sql_data0-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;129 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;self = &amp;lt;self_copy.apiAutoTest_v3.test_case.bread.test_bpm.TestBPM object at 0x0000027761363DA0&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000027761528B90&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x000002776159EA80&amp;gt;, module_name = &amp;#x27;\u7ef4\u5ea6\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/demension/v1/dem/addDem&amp;#x27;, method = &amp;#x27;post&amp;#x27;, mime = &amp;#x27;application/json&amp;#x27;\ncase_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 1, &amp;#x27;name&amp;#x27;: &amp;#x27;requests\u6dfb\u52a0\u7684\u7ef4\u5ea6&amp;#x27;}, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27;}, sql_type = &amp;#x27;delete&amp;#x27;\nsql_data = {&amp;#x27;delete&amp;#x27;: &amp;#x27;dELETE FROM uc_demension WHERE `CODE_`=&amp;quot;requestsAddDem&amp;quot;;&amp;#x27;}, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-bread&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n&amp;gt; assert expect_data[key] == res.json().get(key)\nE AssertionError: assert &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27; == &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\uff01&amp;#x27;\nE \nE - \u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\uff01\nE ? -\nE + \u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\n\ntest_case\\bread\\test_bpm.py:47: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = &amp;lt;self_copy.apiAutoTest_v3.test_case.bread.test_bpm.TestBPM object at 0x0000027761363DA0&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000027761528B90&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x000002776159EA80&amp;gt;, module_name = &amp;#x27;\u7ef4\u5ea6\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/demension/v1/dem/addDem&amp;#x27;, method = &amp;#x27;post&amp;#x27;, mime = &amp;#x27;application/json&amp;#x27;\ncase_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 1, &amp;#x27;name&amp;#x27;: &amp;#x27;requests\u6dfb\u52a0\u7684\u7ef4\u5ea6&amp;#x27;}, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27;}, sql_type = &amp;#x27;delete&amp;#x27;\nsql_data = {&amp;#x27;delete&amp;#x27;: &amp;#x27;dELETE FROM uc_demension WHERE `CODE_`=&amp;quot;requestsAddDem&amp;quot;;&amp;#x27;}, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-bread&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n log.error(f&amp;quot;\u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1a{url},\u7528\u4f8b\u6570\u636e\uff1a{case_data},\u671f\u671b\u6570\u636e\uff1a{expect_data},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{res.text}&amp;quot;)\n&amp;gt; raise AssertionError(&amp;quot;\u65ad\u8a00\u5931\u8d25&amp;quot;)\nE AssertionError: \u65ad\u8a00\u5931\u8d25\n\ntest_case\\bread\\test_bpm.py:50: AssertionError\n\n------------------------------ Captured log call -------------------------------\nERROR toast:test_bpm.py:49 \u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/demension/v1/dem/addDem,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 1, &amp;#x27;name&amp;#x27;: &amp;#x27;requests\u6dfb\u52a0\u7684\u7ef4\u5ea6&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u66f4\\u65b0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-put-json-case_data1-expect_data1-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Failed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u66f4\\u65b0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-put-json-case_data1-expect_data1-None-None-None]&#34;, &#34;duration&#34;: &#34;20 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Failed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u66f4\\u65b0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-put-json-case_data1-expect_data1-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;20 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;self = &amp;lt;self_copy.apiAutoTest_v3.test_case.bread.test_bpm.TestBPM object at 0x0000027761293FE0&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000027761528B90&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x000002776159EA80&amp;gt;, module_name = &amp;#x27;\u7ef4\u5ea6\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u4e2d&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/demension/v1/dem/updateDem&amp;#x27;, method = &amp;#x27;put&amp;#x27;, mime = &amp;#x27;json&amp;#x27;\ncase_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 0, &amp;#x27;name&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;}, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6\u6210\u529f&amp;#x27;}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-bread&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n&amp;gt; assert expect_data[key] == res.json().get(key)\nE AssertionError: assert &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6\u6210\u529f&amp;#x27; == &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6\u6210\u529f\uff01&amp;#x27;\nE \nE - \u66f4\u65b0\u7ef4\u5ea6\u6210\u529f\uff01\nE ? -\nE + \u66f4\u65b0\u7ef4\u5ea6\u6210\u529f\n\ntest_case\\bread\\test_bpm.py:47: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = &amp;lt;self_copy.apiAutoTest_v3.test_case.bread.test_bpm.TestBPM object at 0x0000027761293FE0&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000027761528B90&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x000002776159EA80&amp;gt;, module_name = &amp;#x27;\u7ef4\u5ea6\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u4e2d&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/demension/v1/dem/updateDem&amp;#x27;, method = &amp;#x27;put&amp;#x27;, mime = &amp;#x27;json&amp;#x27;\ncase_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 0, &amp;#x27;name&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;}, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6\u6210\u529f&amp;#x27;}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-bread&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n log.error(f&amp;quot;\u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1a{url},\u7528\u4f8b\u6570\u636e\uff1a{case_data},\u671f\u671b\u6570\u636e\uff1a{expect_data},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{res.text}&amp;quot;)\n&amp;gt; raise AssertionError(&amp;quot;\u65ad\u8a00\u5931\u8d25&amp;quot;)\nE AssertionError: \u65ad\u8a00\u5931\u8d25\n\ntest_case\\bread\\test_bpm.py:50: AssertionError\n\n------------------------------ Captured log call -------------------------------\nERROR toast:test_bpm.py:49 \u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/demension/v1/dem/updateDem,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 0, &amp;#x27;name&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u66f4\u65b0\u7ef4\u5ea6\u6210\u529f&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u66f4\u65b0\u7ef4\u5ea6\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/org/v1/org/addOrg-POST-json-case_data2-expect_data2-delete|select-sql_data2-demId]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Failed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/org/v1/org/addOrg-POST-json-case_data2-expect_data2-delete|select-sql_data2-demId]&#34;, &#34;duration&#34;: &#34;48 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Failed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/org/v1/org/addOrg-POST-json-case_data2-expect_data2-delete|select-sql_data2-demId]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;48 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;self = &amp;lt;self_copy.apiAutoTest_v3.test_case.bread.test_bpm.TestBPM object at 0x000002776159D940&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000027761528B90&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x000002776159EA80&amp;gt;, module_name = &amp;#x27;\u7ec4\u7ec7\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/org/v1/org/addOrg&amp;#x27;, method = &amp;#x27;POST&amp;#x27;, mime = &amp;#x27;json&amp;#x27;, case_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;testAddOrg&amp;#x27;, &amp;#x27;demId&amp;#x27;: &amp;#x27;1832344664687616000&amp;#x27;, &amp;#x27;exceedLimitNum&amp;#x27;: 0, &amp;#x27;grade&amp;#x27;: &amp;#x27;&amp;#x27;, ...}\nexpect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f&amp;#x27;}, sql_type = &amp;#x27;delete|select&amp;#x27;\nsql_data = {&amp;#x27;delete&amp;#x27;: &amp;#x27;delete from uc_org where CODE_=&amp;quot;testAddOrg&amp;quot;;&amp;#x27;, &amp;#x27;select&amp;#x27;: &amp;#x27;select ID_ from uc_demension where CODE_=&amp;quot;requestsAddDem&amp;quot;; &amp;#x27;}, update_key = &amp;#x27;demId&amp;#x27;\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-bread&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n&amp;gt; assert expect_data[key] == res.json().get(key)\nE AssertionError: assert &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f&amp;#x27; == &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f\uff01&amp;#x27;\nE \nE - \u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f\uff01\nE ? -\nE + \u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f\n\ntest_case\\bread\\test_bpm.py:47: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = &amp;lt;self_copy.apiAutoTest_v3.test_case.bread.test_bpm.TestBPM object at 0x000002776159D940&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000027761528B90&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x000002776159EA80&amp;gt;, module_name = &amp;#x27;\u7ec4\u7ec7\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/org/v1/org/addOrg&amp;#x27;, method = &amp;#x27;POST&amp;#x27;, mime = &amp;#x27;json&amp;#x27;, case_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;testAddOrg&amp;#x27;, &amp;#x27;demId&amp;#x27;: &amp;#x27;1832344664687616000&amp;#x27;, &amp;#x27;exceedLimitNum&amp;#x27;: 0, &amp;#x27;grade&amp;#x27;: &amp;#x27;&amp;#x27;, ...}\nexpect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f&amp;#x27;}, sql_type = &amp;#x27;delete|select&amp;#x27;\nsql_data = {&amp;#x27;delete&amp;#x27;: &amp;#x27;delete from uc_org where CODE_=&amp;quot;testAddOrg&amp;quot;;&amp;#x27;, &amp;#x27;select&amp;#x27;: &amp;#x27;select ID_ from uc_demension where CODE_=&amp;quot;requestsAddDem&amp;quot;; &amp;#x27;}, update_key = &amp;#x27;demId&amp;#x27;\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-bread&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data[&amp;quot;delete&amp;quot;])\n \n select_result = fix_db.select(sql_data[&amp;quot;select&amp;quot;])\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n log.error(f&amp;quot;\u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1a{url},\u7528\u4f8b\u6570\u636e\uff1a{case_data},\u671f\u671b\u6570\u636e\uff1a{expect_data},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{res.text}&amp;quot;)\n&amp;gt; raise AssertionError(&amp;quot;\u65ad\u8a00\u5931\u8d25&amp;quot;)\nE AssertionError: \u65ad\u8a00\u5931\u8d25\n\ntest_case\\bread\\test_bpm.py:50: AssertionError\n\n------------------------------ Captured log call -------------------------------\nERROR toast:test_bpm.py:49 \u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/org/v1/org/addOrg,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;code&amp;#x27;: &amp;#x27;testAddOrg&amp;#x27;, &amp;#x27;demId&amp;#x27;: &amp;#x27;1832344664687616000&amp;#x27;, &amp;#x27;exceedLimitNum&amp;#x27;: 0, &amp;#x27;grade&amp;#x27;: &amp;#x27;&amp;#x27;, &amp;#x27;limitNum&amp;#x27;: 0, &amp;#x27;name&amp;#x27;: &amp;#x27;\u6d4b\u8bd5\u6dfb\u52a0\u7684\u7ec4\u7ec7&amp;#x27;, &amp;#x27;nowNum&amp;#x27;: 0, &amp;#x27;orderNo&amp;#x27;: 0, &amp;#x27;parentId&amp;#x27;: &amp;#x27;0&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u6dfb\u52a0\u7ec4\u7ec7\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u7528\\u6237\\u52a0\\u5165\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg-POST-query-case_data3-expect_data3-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u7528\\u6237\\u52a0\\u5165\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg-POST-query-case_data3-expect_data3-None-None-None]&#34;, &#34;duration&#34;: &#34;36 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u7528\\u6237\\u52a0\\u5165\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg-POST-query-case_data3-expect_data3-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;36 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;orgCode&amp;#x27;: &amp;#x27;testAddOrg&amp;#x27;, &amp;#x27;accounts&amp;#x27;: &amp;#x27;admin,guest&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u52a0\u5165\u6210\u529f&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u52a0\u5165\u6210\u529f&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u4fdd\\u5b58\\u7ec4\\u7ec7\\u53c2\\u6570-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-POST-query|json-case_data4-expect_data4-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u4fdd\\u5b58\\u7ec4\\u7ec7\\u53c2\\u6570-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-POST-query|json-case_data4-expect_data4-None-None-None]&#34;, &#34;duration&#34;: &#34;28 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u4fdd\\u5b58\\u7ec4\\u7ec7\\u53c2\\u6570-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-POST-query|json-case_data4-expect_data4-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;28 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;query&amp;#x27;: {&amp;#x27;orgCode&amp;#x27;: &amp;#x27;testAddOrg&amp;#x27;}, &amp;#x27;body&amp;#x27;: [{&amp;#x27;alias&amp;#x27;: &amp;#x27;hxxmts&amp;#x27;, &amp;#x27;value&amp;#x27;: &amp;#x27;\u9879\u76ee\u4e2d\u6ca1\u6709\u5173\u7cfb\u6237&amp;#x27;}]},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u4fdd\u5b58\u7ec4\u7ec7\u53c2\u6570\u6210\u529f\uff01&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u4fdd\u5b58\u7ec4\u7ec7\u53c2\u6570\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u5220\\u9664\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-POST-form-testAddOrg-expect_data5-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u5220\\u9664\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-POST-form-testAddOrg-expect_data5-None-None-None]&#34;, &#34;duration&#34;: &#34;29 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ec4\\u7ec7\\u7ba1\\u7406-\\u5220\\u9664\\u7ec4\\u7ec7-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-POST-form-testAddOrg-expect_data5-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;29 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/org/v1/org/deleteOrg,\u7528\u4f8b\u6570\u636e\uff1atestAddOrg,\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u5220\u9664\u7ec4\u7ec7\u6210\u529f\uff01&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u5220\u9664\u7ec4\u7ec7\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6839\\u636e\\u7ef4\\u5ea6\\u7f16\\u7801\\u5220\\u9664\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-delete-query-case_data6-expect_data6-select-sql_data6-ids]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6839\\u636e\\u7ef4\\u5ea6\\u7f16\\u7801\\u5220\\u9664\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-delete-query-case_data6-expect_data6-select-sql_data6-ids]&#34;, &#34;duration&#34;: &#34;31 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_case/bread/test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6839\\u636e\\u7ef4\\u5ea6\\u7f16\\u7801\\u5220\\u9664\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-delete-query-case_data6-expect_data6-select-sql_data6-ids]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;31 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;ids&amp;#x27;: &amp;#x27;1832344664687616000&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u5220\u9664\u7ef4\u5ea6\u6210\u529f\uff01&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u5220\u9664\u7ef4\u5ea6\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}]}, &#34;renderCollapsed&#34;: [&#34;passed&#34;], &#34;initialSort&#34;: &#34;result&#34;, &#34;title&#34;: &#34;bread_report.html&#34;}"></div>
<script>
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const { getCollapsedCategory, setCollapsedIds } = require('./storage.js')
class DataManager {
setManager(data) {
const collapsedCategories = [...getCollapsedCategory(data.renderCollapsed)]
const collapsedIds = []
const tests = Object.values(data.tests).flat().map((test, index) => {
const collapsed = collapsedCategories.includes(test.result.toLowerCase())
const id = `test_${index}`
if (collapsed) {
collapsedIds.push(id)
}
return {
...test,
id,
collapsed,
}
})
const dataBlob = { ...data, tests }
this.data = { ...dataBlob }
this.renderData = { ...dataBlob }
setCollapsedIds(collapsedIds)
}
get allData() {
return { ...this.data }
}
resetRender() {
this.renderData = { ...this.data }
}
setRender(data) {
this.renderData.tests = [...data]
}
toggleCollapsedItem(id) {
this.renderData.tests = this.renderData.tests.map((test) =>
test.id === id ? { ...test, collapsed: !test.collapsed } : test,
)
}
set allCollapsed(collapsed) {
this.renderData = { ...this.renderData, tests: [...this.renderData.tests.map((test) => (
{ ...test, collapsed }
))] }
}
get testSubset() {
return [...this.renderData.tests]
}
get environment() {
return this.renderData.environment
}
get initialSort() {
return this.data.initialSort
}
}
module.exports = {
manager: new DataManager(),
}
},{"./storage.js":8}],2:[function(require,module,exports){
const mediaViewer = require('./mediaviewer.js')
const templateEnvRow = document.getElementById('template_environment_row')
const templateResult = document.getElementById('template_results-table__tbody')
function htmlToElements(html) {
const temp = document.createElement('template')
temp.innerHTML = html
return temp.content.childNodes
}
const find = (selector, elem) => {
if (!elem) {
elem = document
}
return elem.querySelector(selector)
}
const findAll = (selector, elem) => {
if (!elem) {
elem = document
}
return [...elem.querySelectorAll(selector)]
}
const dom = {
getStaticRow: (key, value) => {
const envRow = templateEnvRow.content.cloneNode(true)
const isObj = typeof value === 'object' && value !== null
const values = isObj ? Object.keys(value).map((k) => `${k}: ${value[k]}`) : null
const valuesElement = htmlToElements(
values ? `<ul>${values.map((val) => `<li>${val}</li>`).join('')}<ul>` : `<div>${value}</div>`)[0]
const td = findAll('td', envRow)
td[0].textContent = key
td[1].appendChild(valuesElement)
return envRow
},
getResultTBody: ({ testId, id, log, extras, resultsTableRow, tableHtml, result, collapsed }) => {
const resultBody = templateResult.content.cloneNode(true)
resultBody.querySelector('tbody').classList.add(result.toLowerCase())
resultBody.querySelector('tbody').id = testId
resultBody.querySelector('.collapsible').dataset.id = id
resultsTableRow.forEach((html) => {
const t = document.createElement('template')
t.innerHTML = html
resultBody.querySelector('.collapsible').appendChild(t.content)
})
if (log) {
// Wrap lines starting with "E" with span.error to color those lines red
const wrappedLog = log.replace(/^E.*$/gm, (match) => `<span class="error">${match}</span>`)
resultBody.querySelector('.log').innerHTML = wrappedLog
} else {
resultBody.querySelector('.log').remove()
}
if (collapsed) {
resultBody.querySelector('.collapsible > td')?.classList.add('collapsed')
resultBody.querySelector('.extras-row').classList.add('hidden')
} else {
resultBody.querySelector('.collapsible > td')?.classList.remove('collapsed')
}
const media = []
extras?.forEach(({ name, format_type, content }) => {
if (['image', 'video'].includes(format_type)) {
media.push({ path: content, name, format_type })
}
if (format_type === 'html') {
resultBody.querySelector('.extraHTML').insertAdjacentHTML('beforeend', `<div>${content}</div>`)
}
})
mediaViewer.setup(resultBody, media)
// Add custom html from the pytest_html_results_table_html hook
tableHtml?.forEach((item) => {
resultBody.querySelector('td[class="extra"]').insertAdjacentHTML('beforeend', item)
})
return resultBody
},
}
module.exports = {
dom,
htmlToElements,
find,
findAll,
}
},{"./mediaviewer.js":6}],3:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const storageModule = require('./storage.js')
const getFilteredSubSet = (filter) =>
manager.allData.tests.filter(({ result }) => filter.includes(result.toLowerCase()))
const doInitFilter = () => {
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
}
const doFilter = (type, show) => {
if (show) {
storageModule.showCategory(type)
} else {
storageModule.hideCategory(type)
}
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
const sortColumn = storageModule.getSort()
doSort(sortColumn, true)
}
module.exports = {
doFilter,
doInitFilter,
}
},{"./datamanager.js":1,"./sort.js":7,"./storage.js":8}],4:[function(require,module,exports){
const { redraw, bindEvents, renderStatic } = require('./main.js')
const { doInitFilter } = require('./filter.js')
const { doInitSort } = require('./sort.js')
const { manager } = require('./datamanager.js')
const data = JSON.parse(document.getElementById('data-container').dataset.jsonblob)
function init() {
manager.setManager(data)
doInitFilter()
doInitSort()
renderStatic()
redraw()
bindEvents()
}
init()
},{"./datamanager.js":1,"./filter.js":3,"./main.js":5,"./sort.js":7}],5:[function(require,module,exports){
const { dom, find, findAll } = require('./dom.js')
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const { doFilter } = require('./filter.js')
const {
getVisible,
getCollapsedIds,
setCollapsedIds,
getSort,
getSortDirection,
possibleFilters,
} = require('./storage.js')
const removeChildren = (node) => {
while (node.firstChild) {
node.removeChild(node.firstChild)
}
}
const renderStatic = () => {
const renderEnvironmentTable = () => {
const environment = manager.environment
const rows = Object.keys(environment).map((key) => dom.getStaticRow(key, environment[key]))
const table = document.getElementById('environment')
removeChildren(table)
rows.forEach((row) => table.appendChild(row))
}
renderEnvironmentTable()
}
const addItemToggleListener = (elem) => {
elem.addEventListener('click', ({ target }) => {
const id = target.parentElement.dataset.id
manager.toggleCollapsedItem(id)
const collapsedIds = getCollapsedIds()
if (collapsedIds.includes(id)) {
const updated = collapsedIds.filter((item) => item !== id)
setCollapsedIds(updated)
} else {
collapsedIds.push(id)
setCollapsedIds(collapsedIds)
}
redraw()
})
}
const renderContent = (tests) => {
const sortAttr = getSort(manager.initialSort)
const sortAsc = JSON.parse(getSortDirection())
const rows = tests.map(dom.getResultTBody)
const table = document.getElementById('results-table')
const tableHeader = document.getElementById('results-table-head')
const newTable = document.createElement('table')
newTable.id = 'results-table'
// remove all sorting classes and set the relevant
findAll('.sortable', tableHeader).forEach((elem) => elem.classList.remove('asc', 'desc'))
tableHeader.querySelector(`.sortable[data-column-type="${sortAttr}"]`)?.classList.add(sortAsc ? 'desc' : 'asc')
newTable.appendChild(tableHeader)
if (!rows.length) {
const emptyTable = document.getElementById('template_results-table__body--empty').content.cloneNode(true)
newTable.appendChild(emptyTable)
} else {
rows.forEach((row) => {
if (!!row) {
findAll('.collapsible td:not(.col-links', row).forEach(addItemToggleListener)
find('.logexpander', row).addEventListener('click',
(evt) => evt.target.parentNode.classList.toggle('expanded'),
)
newTable.appendChild(row)
}
})
}
table.replaceWith(newTable)
}
const renderDerived = () => {
const currentFilter = getVisible()
possibleFilters.forEach((result) => {
const input = document.querySelector(`input[data-test-result="${result}"]`)
input.checked = currentFilter.includes(result)
})
}
const bindEvents = () => {
const filterColumn = (evt) => {
const { target: element } = evt
const { testResult } = element.dataset
doFilter(testResult, element.checked)
const collapsedIds = getCollapsedIds()
const updated = manager.renderData.tests.map((test) => {
return {
...test,
collapsed: collapsedIds.includes(test.id),
}
})
manager.setRender(updated)
redraw()
}
const header = document.getElementById('environment-header')
header.addEventListener('click', () => {
const table = document.getElementById('environment')
table.classList.toggle('hidden')
header.classList.toggle('collapsed')
})
findAll('input[name="filter_checkbox"]').forEach((elem) => {
elem.addEventListener('click', filterColumn)
})
findAll('.sortable').forEach((elem) => {
elem.addEventListener('click', (evt) => {
const { target: element } = evt
const { columnType } = element.dataset
doSort(columnType)
redraw()
})
})
document.getElementById('show_all_details').addEventListener('click', () => {
manager.allCollapsed = false
setCollapsedIds([])
redraw()
})
document.getElementById('hide_all_details').addEventListener('click', () => {
manager.allCollapsed = true
const allIds = manager.renderData.tests.map((test) => test.id)
setCollapsedIds(allIds)
redraw()
})
}
const redraw = () => {
const { testSubset } = manager
renderContent(testSubset)
renderDerived()
}
module.exports = {
redraw,
bindEvents,
renderStatic,
}
},{"./datamanager.js":1,"./dom.js":2,"./filter.js":3,"./sort.js":7,"./storage.js":8}],6:[function(require,module,exports){
class MediaViewer {
constructor(assets) {
this.assets = assets
this.index = 0
}
nextActive() {
this.index = this.index === this.assets.length - 1 ? 0 : this.index + 1
return [this.activeFile, this.index]
}
prevActive() {
this.index = this.index === 0 ? this.assets.length - 1 : this.index -1
return [this.activeFile, this.index]
}
get currentIndex() {
return this.index
}
get activeFile() {
return this.assets[this.index]
}
}
const setup = (resultBody, assets) => {
if (!assets.length) {
resultBody.querySelector('.media').classList.add('hidden')
return
}
const mediaViewer = new MediaViewer(assets)
const container = resultBody.querySelector('.media-container')
const leftArrow = resultBody.querySelector('.media-container__nav--left')
const rightArrow = resultBody.querySelector('.media-container__nav--right')
const mediaName = resultBody.querySelector('.media__name')
const counter = resultBody.querySelector('.media__counter')
const imageEl = resultBody.querySelector('img')
const sourceEl = resultBody.querySelector('source')
const videoEl = resultBody.querySelector('video')
const setImg = (media, index) => {
if (media?.format_type === 'image') {
imageEl.src = media.path
imageEl.classList.remove('hidden')
videoEl.classList.add('hidden')
} else if (media?.format_type === 'video') {
sourceEl.src = media.path
videoEl.classList.remove('hidden')
imageEl.classList.add('hidden')
}
mediaName.innerText = media?.name
counter.innerText = `${index + 1} / ${assets.length}`
}
setImg(mediaViewer.activeFile, mediaViewer.currentIndex)
const moveLeft = () => {
const [media, index] = mediaViewer.prevActive()
setImg(media, index)
}
const doRight = () => {
const [media, index] = mediaViewer.nextActive()
setImg(media, index)
}
const openImg = () => {
window.open(mediaViewer.activeFile.path, '_blank')
}
if (assets.length === 1) {
container.classList.add('media-container--fullscreen')
} else {
leftArrow.addEventListener('click', moveLeft)
rightArrow.addEventListener('click', doRight)
}
imageEl.addEventListener('click', openImg)
}
module.exports = {
setup,
}
},{}],7:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const storageModule = require('./storage.js')
const genericSort = (list, key, ascending, customOrder) => {
let sorted
if (customOrder) {
sorted = list.sort((a, b) => {
const aValue = a.result.toLowerCase()
const bValue = b.result.toLowerCase()
const aIndex = customOrder.findIndex((item) => item.toLowerCase() === aValue)
const bIndex = customOrder.findIndex((item) => item.toLowerCase() === bValue)
// Compare the indices to determine the sort order
return aIndex - bIndex
})
} else {
sorted = list.sort((a, b) => a[key] === b[key] ? 0 : a[key] > b[key] ? 1 : -1)
}
if (ascending) {
sorted.reverse()
}
return sorted
}
const durationSort = (list, ascending) => {
const parseDuration = (duration) => {
if (duration.includes(':')) {
// If it's in the format "HH:mm:ss"
const [hours, minutes, seconds] = duration.split(':').map(Number)
return (hours * 3600 + minutes * 60 + seconds) * 1000
} else {
// If it's in the format "nnn ms"
return parseInt(duration)
}
}
const sorted = list.sort((a, b) => parseDuration(a['duration']) - parseDuration(b['duration']))
if (ascending) {
sorted.reverse()
}
return sorted
}
const doInitSort = () => {
const type = storageModule.getSort(manager.initialSort)
const ascending = storageModule.getSortDirection()
const list = manager.testSubset
const initialOrder = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed', 'Skipped', 'Passed']
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
if (type?.toLowerCase() === 'original') {
manager.setRender(list)
} else {
let sortedList
switch (type) {
case 'duration':
sortedList = durationSort(list, ascending)
break
case 'result':
sortedList = genericSort(list, type, ascending, initialOrder)
break
default:
sortedList = genericSort(list, type, ascending)
break
}
manager.setRender(sortedList)
}
}
const doSort = (type, skipDirection) => {
const newSortType = storageModule.getSort(manager.initialSort) !== type
const currentAsc = storageModule.getSortDirection()
let ascending
if (skipDirection) {
ascending = currentAsc
} else {
ascending = newSortType ? false : !currentAsc
}
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
const list = manager.testSubset
const sortedList = type === 'duration' ? durationSort(list, ascending) : genericSort(list, type, ascending)
manager.setRender(sortedList)
}
module.exports = {
doInitSort,
doSort,
}
},{"./datamanager.js":1,"./storage.js":8}],8:[function(require,module,exports){
const possibleFilters = [
'passed',
'skipped',
'failed',
'error',
'xfailed',
'xpassed',
'rerun',
]
const getVisible = () => {
const url = new URL(window.location.href)
const settings = new URLSearchParams(url.search).get('visible')
const lower = (item) => {
const lowerItem = item.toLowerCase()
if (possibleFilters.includes(lowerItem)) {
return lowerItem
}
return null
}
return settings === null ?
possibleFilters :
[...new Set(settings?.split(',').map(lower).filter((item) => item))]
}
const hideCategory = (categoryToHide) => {
const url = new URL(window.location.href)
const visibleParams = new URLSearchParams(url.search).get('visible')
const currentVisible = visibleParams ? visibleParams.split(',') : [...possibleFilters]
const settings = [...new Set(currentVisible)].filter((f) => f !== categoryToHide).join(',')
url.searchParams.set('visible', settings)
window.history.pushState({}, null, unescape(url.href))
}
const showCategory = (categoryToShow) => {
if (typeof window === 'undefined') {
return
}
const url = new URL(window.location.href)
const currentVisible = new URLSearchParams(url.search).get('visible')?.split(',').filter(Boolean) ||
[...possibleFilters]
const settings = [...new Set([categoryToShow, ...currentVisible])]
const noFilter = possibleFilters.length === settings.length || !settings.length
noFilter ? url.searchParams.delete('visible') : url.searchParams.set('visible', settings.join(','))
window.history.pushState({}, null, unescape(url.href))
}
const getSort = (initialSort) => {
const url = new URL(window.location.href)
let sort = new URLSearchParams(url.search).get('sort')
if (!sort) {
sort = initialSort || 'result'
}
return sort
}
const setSort = (type) => {
const url = new URL(window.location.href)
url.searchParams.set('sort', type)
window.history.pushState({}, null, unescape(url.href))
}
const getCollapsedCategory = (renderCollapsed) => {
let categories
if (typeof window !== 'undefined') {
const url = new URL(window.location.href)
const collapsedItems = new URLSearchParams(url.search).get('collapsed')
switch (true) {
case !renderCollapsed && collapsedItems === null:
categories = ['passed']
break
case collapsedItems?.length === 0 || /^["']{2}$/.test(collapsedItems):
categories = []
break
case /^all$/.test(collapsedItems) || collapsedItems === null && /^all$/.test(renderCollapsed):
categories = [...possibleFilters]
break
default:
categories = collapsedItems?.split(',').map((item) => item.toLowerCase()) || renderCollapsed
break
}
} else {
categories = []
}
return categories
}
const getSortDirection = () => JSON.parse(sessionStorage.getItem('sortAsc')) || false
const setSortDirection = (ascending) => sessionStorage.setItem('sortAsc', ascending)
const getCollapsedIds = () => JSON.parse(sessionStorage.getItem('collapsedIds')) || []
const setCollapsedIds = (list) => sessionStorage.setItem('collapsedIds', JSON.stringify(list))
module.exports = {
getVisible,
hideCategory,
showCategory,
getCollapsedIds,
setCollapsedIds,
getSort,
setSort,
getSortDirection,
setSortDirection,
getCollapsedCategory,
possibleFilters,
}
},{}]},{},[4]);
</script>
</footer>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title id="head-title">toast_report.html</title>
<style type="text/css">body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
/* do not increase min-width as some may use split screens */
min-width: 800px;
color: #999;
}
h1 {
font-size: 24px;
color: black;
}
h2 {
font-size: 16px;
color: black;
}
p {
color: black;
}
a {
color: #999;
}
table {
border-collapse: collapse;
}
/******************************
* SUMMARY INFORMATION
******************************/
#environment td {
padding: 5px;
border: 1px solid #e6e6e6;
vertical-align: top;
}
#environment tr:nth-child(odd) {
background-color: #f6f6f6;
}
#environment ul {
margin: 0;
padding: 0 20px;
}
/******************************
* TEST RESULT COLORS
******************************/
span.passed,
.passed .col-result {
color: green;
}
span.skipped,
span.xfailed,
span.rerun,
.skipped .col-result,
.xfailed .col-result,
.rerun .col-result {
color: orange;
}
span.error,
span.failed,
span.xpassed,
.error .col-result,
.failed .col-result,
.xpassed .col-result {
color: red;
}
.col-links__extra {
margin-right: 3px;
}
/******************************
* RESULTS TABLE
*
* 1. Table Layout
* 2. Extra
* 3. Sorting items
*
******************************/
/*------------------
* 1. Table Layout
*------------------*/
#results-table {
border: 1px solid #e6e6e6;
color: #999;
font-size: 12px;
width: 100%;
}
#results-table th,
#results-table td {
padding: 5px;
border: 1px solid #e6e6e6;
text-align: left;
}
#results-table th {
font-weight: bold;
}
/*------------------
* 2. Extra
*------------------*/
.logwrapper {
max-height: 230px;
overflow-y: scroll;
background-color: #e6e6e6;
}
.logwrapper.expanded {
max-height: none;
}
.logwrapper.expanded .logexpander:after {
content: "collapse [-]";
}
.logwrapper .logexpander {
z-index: 1;
position: sticky;
top: 10px;
width: max-content;
border: 1px solid;
border-radius: 3px;
padding: 5px 7px;
margin: 10px 0 10px calc(100% - 80px);
cursor: pointer;
background-color: #e6e6e6;
}
.logwrapper .logexpander:after {
content: "expand [+]";
}
.logwrapper .logexpander:hover {
color: #000;
border-color: #000;
}
.logwrapper .log {
min-height: 40px;
position: relative;
top: -50px;
height: calc(100% + 50px);
border: 1px solid #e6e6e6;
color: black;
display: block;
font-family: "Courier New", Courier, monospace;
padding: 5px;
padding-right: 80px;
white-space: pre-wrap;
}
div.media {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin: 0 5px;
overflow: hidden;
width: 320px;
}
.media-container {
display: grid;
grid-template-columns: 25px auto 25px;
align-items: center;
flex: 1 1;
overflow: hidden;
height: 200px;
}
.media-container--fullscreen {
grid-template-columns: 0px auto 0px;
}
.media-container__nav--right,
.media-container__nav--left {
text-align: center;
cursor: pointer;
}
.media-container__viewport {
cursor: pointer;
text-align: center;
height: inherit;
}
.media-container__viewport img,
.media-container__viewport video {
object-fit: cover;
width: 100%;
max-height: 100%;
}
.media__name,
.media__counter {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 0 0 25px;
align-items: center;
}
.collapsible td:not(.col-links) {
cursor: pointer;
}
.collapsible td:not(.col-links):hover::after {
color: #bbb;
font-style: italic;
cursor: pointer;
}
.col-result {
width: 130px;
}
.col-result:hover::after {
content: " (hide details)";
}
.col-result.collapsed:hover::after {
content: " (show details)";
}
#environment-header h2:hover::after {
content: " (hide details)";
color: #bbb;
font-style: italic;
cursor: pointer;
font-size: 12px;
}
#environment-header.collapsed h2:hover::after {
content: " (show details)";
color: #bbb;
font-style: italic;
cursor: pointer;
font-size: 12px;
}
/*------------------
* 3. Sorting items
*------------------*/
.sortable {
cursor: pointer;
}
.sortable.desc:after {
content: " ";
position: relative;
left: 5px;
bottom: -12.5px;
border: 10px solid #4caf50;
border-bottom: 0;
border-left-color: transparent;
border-right-color: transparent;
}
.sortable.asc:after {
content: " ";
position: relative;
left: 5px;
bottom: 12.5px;
border: 10px solid #4caf50;
border-top: 0;
border-left-color: transparent;
border-right-color: transparent;
}
.hidden, .summary__reload__button.hidden {
display: none;
}
.summary__data {
flex: 0 0 550px;
}
.summary__reload {
flex: 1 1;
display: flex;
justify-content: center;
}
.summary__reload__button {
flex: 0 0 300px;
display: flex;
color: white;
font-weight: bold;
background-color: #4caf50;
text-align: center;
justify-content: center;
align-items: center;
border-radius: 3px;
cursor: pointer;
}
.summary__reload__button:hover {
background-color: #46a049;
}
.summary__spacer {
flex: 0 0 550px;
}
.controls {
display: flex;
justify-content: space-between;
}
.filters,
.collapse {
display: flex;
align-items: center;
}
.filters button,
.collapse button {
color: #999;
border: none;
background: none;
cursor: pointer;
text-decoration: underline;
}
.filters button:hover,
.collapse button:hover {
color: #ccc;
}
.filter__label {
margin-right: 10px;
}
</style>
</head>
<body>
<h1 id="title">toast_report.html</h1>
<p>Report generated on 07-Sep-2024 at 17:07:11 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
v4.1.1</p>
<div id="environment-header">
<h2>Environment</h2>
</div>
<table id="environment"></table>
<!-- TEMPLATES -->
<template id="template_environment_row">
<tr>
<td></td>
<td></td>
</tr>
</template>
<template id="template_results-table__body--empty">
<tbody class="results-table-row">
<tr id="not-found-message">
<td colspan="4">No results found. Check the filters.</th>
</tr>
</template>
<template id="template_results-table__tbody">
<tbody class="results-table-row">
<tr class="collapsible">
</tr>
<tr class="extras-row">
<td class="extra" colspan="4">
<div class="extraHTML"></div>
<div class="media">
<div class="media-container">
<div class="media-container__nav--left"><</div>
<div class="media-container__viewport">
<img src="" />
<video controls>
<source src="" type="video/mp4">
</video>
</div>
<div class="media-container__nav--right">></div>
</div>
<div class="media__name"></div>
<div class="media__counter"></div>
</div>
<div class="logwrapper">
<div class="logexpander"></div>
<div class="log"></div>
</div>
</td>
</tr>
</tbody>
</template>
<!-- END TEMPLATES -->
<div class="summary">
<div class="summary__data">
<h2>Summary</h2>
<div class="additional-summary prefix">
</div>
<p class="run-count">14 tests took 465 ms.</p>
<p class="filter">(Un)check the boxes to filter the results.</p>
<div class="summary__reload">
<div class="summary__reload__button hidden" onclick="location.reload()">
<div>There are still tests running. <br />Reload this page to get the latest results!</div>
</div>
</div>
<div class="summary__spacer"></div>
<div class="controls">
<div class="filters">
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="failed" />
<span class="failed">3 Failed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" />
<span class="passed">11 Passed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="skipped" disabled/>
<span class="skipped">0 Skipped,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xfailed" disabled/>
<span class="xfailed">0 Expected failures,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xpassed" disabled/>
<span class="xpassed">0 Unexpected passes,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="error" disabled/>
<span class="error">0 Errors,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="rerun" disabled/>
<span class="rerun">0 Reruns</span>
</div>
<div class="collapse">
<button id="show_all_details">Show all details</button>&nbsp;/&nbsp;<button id="hide_all_details">Hide all details</button>
</div>
</div>
</div>
<div class="additional-summary summary">
</div>
<div class="additional-summary postfix">
</div>
</div>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable" data-column-type="result">Result</th>
<th class="sortable" data-column-type="testId">Test</th>
<th class="sortable" data-column-type="duration">Duration</th>
<th>Links</th>
</tr>
</thead>
</table>
</body>
<footer>
<div id="data-container" data-jsonblob="{&#34;environment&#34;: {&#34;Python&#34;: &#34;3.12.4&#34;, &#34;Platform&#34;: &#34;Windows-11-10.0.22631-SP0&#34;, &#34;Packages&#34;: {&#34;pytest&#34;: &#34;8.3.2&#34;, &#34;pluggy&#34;: &#34;1.5.0&#34;}, &#34;Plugins&#34;: {&#34;allure-pytest&#34;: &#34;2.13.5&#34;, &#34;dependency&#34;: &#34;0.6.0&#34;, &#34;html&#34;: &#34;4.1.1&#34;, &#34;metadata&#34;: &#34;3.1.1&#34;, &#34;ordering&#34;: &#34;0.6&#34;, &#34;rerunfailures&#34;: &#34;14.0&#34;}}, &#34;tests&#34;: {&#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u767b\\u5f55\\u7684\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/auth-POST-application/json-case_data0-expect_data0-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u767b\\u5f55\\u7684\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/auth-POST-application/json-case_data0-expect_data0-None-None-None]&#34;, &#34;duration&#34;: &#34;120 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u767b\\u5f55\\u7684\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/auth-POST-application/json-case_data0-expect_data0-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;120 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ=&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;\u8d85\u7ea7\u7ba1\u7406\u5458&amp;#x27;, &amp;#x27;account&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;userId&amp;#x27;: &amp;#x27;1&amp;#x27;, &amp;#x27;expiration&amp;#x27;: 86400, &amp;#x27;loginStatus&amp;#x27;: True},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;token&amp;quot;:&amp;quot;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMTksImlhdCI6MTcyNTY5OTkxOX0.7K0D3R3FlYi7HD_cmL1CYf7AC9F3X-u_XxXh02xPAFvQtGFEWUzY_uTbkzm4U0Vw9WgCRYsJtwIG_NuWEQ1tJQ&amp;quot;,&amp;quot;username&amp;quot;:&amp;quot;\u8d85\u7ea7\u7ba1\u7406\u5458&amp;quot;,&amp;quot;account&amp;quot;:&amp;quot;admin&amp;quot;,&amp;quot;userId&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;expiration&amp;quot;:86400,&amp;quot;loginStatus&amp;quot;:true,&amp;quot;userAttrs&amp;quot;:{&amp;quot;tenantId&amp;quot;:&amp;quot;-1&amp;quot;}}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u4e3a\\u7a7a-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data1-expect_data1-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u4e3a\\u7a7a-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data1-expect_data1-None-None-None]&#34;, &#34;duration&#34;: &#34;20 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u4e3a\\u7a7a-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data1-expect_data1-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;20 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ=&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387175686144&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u4e3a\\u7279\\u6b8a\\u5b57\\u7b26-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data2-expect_data2-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u4e3a\\u7279\\u6b8a\\u5b57\\u7b26-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data2-expect_data2-None-None-None]&#34;, &#34;duration&#34;: &#34;22 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u4e3a\\u7279\\u6b8a\\u5b57\\u7b26-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data2-expect_data2-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;22 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;#!$!@#!@#&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ=&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387276349440&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u8fc7\\u957f-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data3-expect_data3-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u8fc7\\u957f-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data3-expect_data3-None-None-None]&#34;, &#34;duration&#34;: &#34;23 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u8fc7\\u957f-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data3-expect_data3-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;23 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;adminadminadminadminadminadminadminadminadmin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ=&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387381207040&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u77ed-\\u4e2d-http://36.139.193.99:8088/auth-POST-json-case_data4-expect_data4-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u77ed-\\u4e2d-http://36.139.193.99:8088/auth-POST-json-case_data4-expect_data4-None-None-None]&#34;, &#34;duration&#34;: &#34;26 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u77ed-\\u4e2d-http://36.139.193.99:8088/auth-POST-json-case_data4-expect_data4-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;26 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;a&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ=&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387494453248&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u9519\\u8bef-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data5-expect_data5-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u9519\\u8bef-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data5-expect_data5-None-None-None]&#34;, &#34;duration&#34;: &#34;27 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-username\\u9519\\u8bef-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data5-expect_data5-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;27 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;adminxyz&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ=&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u6237\u9519\u8bef\u6216\u8be5\u79df\u6237\u672a\u542f\u7528&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387611893760&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u4e3a\\u7a7a-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data6-expect_data6-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u4e3a\\u7a7a-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data6-expect_data6-None-None-None]&#34;, &#34;duration&#34;: &#34;30 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u4e3a\\u7a7a-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data6-expect_data6-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;30 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387750305792&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u4e3a\\u7279\\u6b8a\\u5b57\\u7b26-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data7-expect_data7-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u4e3a\\u7279\\u6b8a\\u5b57\\u7b26-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data7-expect_data7-None-None-None]&#34;, &#34;duration&#34;: &#34;27 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u4e3a\\u7279\\u6b8a\\u5b57\\u7b26-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data7-expect_data7-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;27 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;#!$!@#!@#&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387871940608&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u8fc7\\u957f-\\u4e2d-http://36.139.193.99:8088/auth-post-application/json-case_data8-expect_data8-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u8fc7\\u957f-\\u4e2d-http://36.139.193.99:8088/auth-post-application/json-case_data8-expect_data8-None-None-None]&#34;, &#34;duration&#34;: &#34;20 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u8fc7\\u957f-\\u4e2d-http://36.139.193.99:8088/auth-post-application/json-case_data8-expect_data8-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;20 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u89e3\u5bc6\u5bc6\u7801\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5RSA\u516c\u94a5\u548c\u79c1\u94a5\u914d\u7f6e&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u89e3\u5bc6\u5bc6\u7801\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5RSA\u516c\u94a5\u548c\u79c1\u94a5\u914d\u7f6e&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344387964215296&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u8fc7\\u77ed-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data9-expect_data9-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u8fc7\\u77ed-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data9-expect_data9-None-None-None]&#34;, &#34;duration&#34;: &#34;18 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u8fc7\\u77ed-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data9-expect_data9-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;18 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;123456&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u89e3\u5bc6\u5bc6\u7801\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5RSA\u516c\u94a5\u548c\u79c1\u94a5\u914d\u7f6e&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:false,&amp;quot;message&amp;quot;:&amp;quot;\u89e3\u5bc6\u5bc6\u7801\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5RSA\u516c\u94a5\u548c\u79c1\u94a5\u914d\u7f6e&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;logId&amp;quot;:&amp;quot;1832344388052295680&amp;quot;}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u9519\\u8bef-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data10-expect_data10-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Failed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u9519\\u8bef-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data10-expect_data10-None-None-None]&#34;, &#34;duration&#34;: &#34;32 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Failed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u767b\\u5f55\\u7cfb\\u7edf-\\u53cd\\u5411\\u7528\\u4f8b-password\\u9519\\u8bef-\\u4e2d-http://36.139.193.99:8088/auth-POST-application/json-case_data10-expect_data10-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;32 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;self = &amp;lt;self_copy.apiAutoTest_v3.test_case.toast.test_bpm.TestBPM object at 0x0000020B63EBA060&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000020B63BCECC0&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x0000020B63DF5670&amp;gt;, module_name = &amp;#x27;\u8ba4\u8bc1\u63a5\u53e3&amp;#x27;, api_name = &amp;#x27;\u767b\u5f55\u7cfb\u7edf&amp;#x27;, level = &amp;#x27;\u53cd\u5411\u7528\u4f8b-password\u9519\u8bef&amp;#x27;, title = &amp;#x27;\u4e2d&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/auth&amp;#x27;, method = &amp;#x27;POST&amp;#x27;, mime = &amp;#x27;application/json&amp;#x27;\ncase_data = {&amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ&amp;#x27;, &amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;}\nexpect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;#x27;}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-toast&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data)\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data)\n \n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n&amp;gt; assert expect_data[key] == res.json().get(key)\nE AssertionError: assert &amp;#x27;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;#x27; == None\nE + where None = &amp;lt;built-in method get of dict object at 0x0000020B63F1DE40&amp;gt;(&amp;#x27;message&amp;#x27;)\nE + where &amp;lt;built-in method get of dict object at 0x0000020B63F1DE40&amp;gt; = {&amp;#x27;account&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;expiration&amp;#x27;: 86400, &amp;#x27;loginStatus&amp;#x27;: True, &amp;#x27;token&amp;#x27;: &amp;#x27;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w&amp;#x27;, ...}.get\nE + where {&amp;#x27;account&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;expiration&amp;#x27;: 86400, &amp;#x27;loginStatus&amp;#x27;: True, &amp;#x27;token&amp;#x27;: &amp;#x27;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w&amp;#x27;, ...} = json()\nE + where json = &amp;lt;Response [200]&amp;gt;.json\n\ntest_case\\toast\\test_bpm.py:47: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = &amp;lt;self_copy.apiAutoTest_v3.test_case.toast.test_bpm.TestBPM object at 0x0000020B63EBA060&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000020B63BCECC0&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x0000020B63DF5670&amp;gt;, module_name = &amp;#x27;\u8ba4\u8bc1\u63a5\u53e3&amp;#x27;, api_name = &amp;#x27;\u767b\u5f55\u7cfb\u7edf&amp;#x27;, level = &amp;#x27;\u53cd\u5411\u7528\u4f8b-password\u9519\u8bef&amp;#x27;, title = &amp;#x27;\u4e2d&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/auth&amp;#x27;, method = &amp;#x27;POST&amp;#x27;, mime = &amp;#x27;application/json&amp;#x27;\ncase_data = {&amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ&amp;#x27;, &amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;}\nexpect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;#x27;}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-toast&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data)\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data)\n \n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n log.error(f&amp;quot;\u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1a{url},\u7528\u4f8b\u6570\u636e\uff1a{case_data},\u671f\u671b\u6570\u636e\uff1a{expect_data},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{res.text}&amp;quot;)\n&amp;gt; raise AssertionError(&amp;quot;\u65ad\u8a00\u5931\u8d25&amp;quot;)\nE AssertionError: \u65ad\u8a00\u5931\u8d25\n\ntest_case\\toast\\test_bpm.py:50: AssertionError\n\n------------------------------ Captured log call -------------------------------\nERROR toast:test_bpm.py:49 \u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/auth,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;username&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;password&amp;#x27;: &amp;#x27;bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u8d26\u53f7\u6216\u5bc6\u7801\u9519\u8bef&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;token&amp;quot;:&amp;quot;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w&amp;quot;,&amp;quot;username&amp;quot;:&amp;quot;\u8d85\u7ea7\u7ba1\u7406\u5458&amp;quot;,&amp;quot;account&amp;quot;:&amp;quot;admin&amp;quot;,&amp;quot;userId&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;expiration&amp;quot;:86400,&amp;quot;loginStatus&amp;quot;:true,&amp;quot;userAttrs&amp;quot;:{&amp;quot;tenantId&amp;quot;:&amp;quot;-1&amp;quot;}}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u5237\\u65b0token-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/refresh-GET-None-None-expect_data11-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Failed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u5237\\u65b0token-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/refresh-GET-None-None-expect_data11-None-None-None]&#34;, &#34;duration&#34;: &#34;28 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Failed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u8ba4\\u8bc1\\u63a5\\u53e3-\\u5237\\u65b0token-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/refresh-GET-None-None-expect_data11-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;28 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;self = &amp;lt;self_copy.apiAutoTest_v3.test_case.toast.test_bpm.TestBPM object at 0x0000020B63EB9FD0&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000020B63BCECC0&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x0000020B63DF5670&amp;gt;, module_name = &amp;#x27;\u8ba4\u8bc1\u63a5\u53e3&amp;#x27;, api_name = &amp;#x27;\u5237\u65b0token&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/refresh&amp;#x27;, method = &amp;#x27;GET&amp;#x27;, mime = None, case_data = None, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u5237\u65b0token\u6210\u529f&amp;#x27;}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-toast&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data)\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data)\n \n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n&amp;gt; assert expect_data[key] == res.json().get(key)\nE AssertionError: assert &amp;#x27;\u5237\u65b0token\u6210\u529f&amp;#x27; == None\nE + where None = &amp;lt;built-in method get of dict object at 0x0000020B63F5AE00&amp;gt;(&amp;#x27;message&amp;#x27;)\nE + where &amp;lt;built-in method get of dict object at 0x0000020B63F5AE00&amp;gt; = {&amp;#x27;account&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;expiration&amp;#x27;: 86400, &amp;#x27;loginStatus&amp;#x27;: True, &amp;#x27;token&amp;#x27;: &amp;#x27;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w&amp;#x27;, ...}.get\nE + where {&amp;#x27;account&amp;#x27;: &amp;#x27;admin&amp;#x27;, &amp;#x27;expiration&amp;#x27;: 86400, &amp;#x27;loginStatus&amp;#x27;: True, &amp;#x27;token&amp;#x27;: &amp;#x27;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w&amp;#x27;, ...} = json()\nE + where json = &amp;lt;Response [200]&amp;gt;.json\n\ntest_case\\toast\\test_bpm.py:47: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = &amp;lt;self_copy.apiAutoTest_v3.test_case.toast.test_bpm.TestBPM object at 0x0000020B63EB9FD0&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000020B63BCECC0&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x0000020B63DF5670&amp;gt;, module_name = &amp;#x27;\u8ba4\u8bc1\u63a5\u53e3&amp;#x27;, api_name = &amp;#x27;\u5237\u65b0token&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/refresh&amp;#x27;, method = &amp;#x27;GET&amp;#x27;, mime = None, case_data = None, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u5237\u65b0token\u6210\u529f&amp;#x27;}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-toast&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data)\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data)\n \n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n log.error(f&amp;quot;\u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1a{url},\u7528\u4f8b\u6570\u636e\uff1a{case_data},\u671f\u671b\u6570\u636e\uff1a{expect_data},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{res.text}&amp;quot;)\n&amp;gt; raise AssertionError(&amp;quot;\u65ad\u8a00\u5931\u8d25&amp;quot;)\nE AssertionError: \u65ad\u8a00\u5931\u8d25\n\ntest_case\\toast\\test_bpm.py:50: AssertionError\n\n------------------------------ Captured log call -------------------------------\nERROR toast:test_bpm.py:49 \u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/refresh,\u7528\u4f8b\u6570\u636e\uff1aNone,\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u5237\u65b0token\u6210\u529f&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;token&amp;quot;:&amp;quot;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w&amp;quot;,&amp;quot;username&amp;quot;:&amp;quot;admin&amp;quot;,&amp;quot;account&amp;quot;:&amp;quot;admin&amp;quot;,&amp;quot;userId&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;expiration&amp;quot;:86400,&amp;quot;loginStatus&amp;quot;:true}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/demension/v1/dem/addDem-post-application/json-case_data12-expect_data12-delete-dELETE FROM uc_demension WHERE `CODE_`=\&#34;requestsAddDem\&#34;;-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Failed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/demension/v1/dem/addDem-post-application/json-case_data12-expect_data12-delete-dELETE FROM uc_demension WHERE `CODE_`=\&#34;requestsAddDem\&#34;;-None]&#34;, &#34;duration&#34;: &#34;38 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Failed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6dfb\\u52a0\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u9ad8-http://36.139.193.99:8088/api/demension/v1/dem/addDem-post-application/json-case_data12-expect_data12-delete-dELETE FROM uc_demension WHERE `CODE_`=\&#34;requestsAddDem\&#34;;-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;38 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;self = &amp;lt;self_copy.apiAutoTest_v3.test_case.toast.test_bpm.TestBPM object at 0x0000020B63EB9F40&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000020B63BCECC0&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x0000020B63DF5670&amp;gt;, module_name = &amp;#x27;\u7ef4\u5ea6\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/demension/v1/dem/addDem&amp;#x27;, method = &amp;#x27;post&amp;#x27;, mime = &amp;#x27;application/json&amp;#x27;\ncase_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 1, &amp;#x27;name&amp;#x27;: &amp;#x27;requests\u6dfb\u52a0\u7684\u7ef4\u5ea6&amp;#x27;}, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27;}, sql_type = &amp;#x27;delete&amp;#x27;\nsql_data = &amp;#x27;dELETE FROM uc_demension WHERE `CODE_`=&amp;quot;requestsAddDem&amp;quot;;&amp;#x27;, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-toast&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data)\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data)\n \n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n&amp;gt; assert expect_data[key] == res.json().get(key)\nE AssertionError: assert &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27; == &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\uff01&amp;#x27;\nE \nE - \u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\uff01\nE ? -\nE + \u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\n\ntest_case\\toast\\test_bpm.py:47: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = &amp;lt;self_copy.apiAutoTest_v3.test_case.toast.test_bpm.TestBPM object at 0x0000020B63EB9F40&amp;gt;, fix_db = &amp;lt;self_copy.apiAutoTest_v3.common.db.DB object at 0x0000020B63BCECC0&amp;gt;\nfix_req = &amp;lt;self_copy.apiAutoTest_v3.request_method.request_method.RequestMethod object at 0x0000020B63DF5670&amp;gt;, module_name = &amp;#x27;\u7ef4\u5ea6\u7ba1\u7406&amp;#x27;, api_name = &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6&amp;#x27;, level = &amp;#x27;\u6b63\u5411\u7528\u4f8b&amp;#x27;, title = &amp;#x27;\u9ad8&amp;#x27;\nurl = &amp;#x27;http://36.139.193.99:8088/api/demension/v1/dem/addDem&amp;#x27;, method = &amp;#x27;post&amp;#x27;, mime = &amp;#x27;application/json&amp;#x27;\ncase_data = {&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 1, &amp;#x27;name&amp;#x27;: &amp;#x27;requests\u6dfb\u52a0\u7684\u7ef4\u5ea6&amp;#x27;}, expect_data = {&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27;}, sql_type = &amp;#x27;delete&amp;#x27;\nsql_data = &amp;#x27;dELETE FROM uc_demension WHERE `CODE_`=&amp;quot;requestsAddDem&amp;quot;;&amp;#x27;, update_key = None\n\n @allure.epic(&amp;quot;BPM\u9879\u76ee-toast&amp;quot;)\n @pytest.mark.parametrize(&amp;quot;module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key&amp;quot;,excel.get_data())\n def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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 \n if sql_type == &amp;quot;delete&amp;quot;:\n fix_db.delete(sql_data)\n \n elif sql_type == &amp;quot;select&amp;quot;:\n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n elif sql_type == &amp;quot;select|delete&amp;quot; or sql_type == &amp;quot;delete|select&amp;quot;:\n fix_db.delete(sql_data)\n \n select_result = fix_db.select(sql_data)\n case_data[update_key] = select_result\n \n res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)\n \n try:\n for key in expect_data.keys():\n assert expect_data[key] == res.json().get(key)\n except AssertionError:\n log.error(f&amp;quot;\u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1a{url},\u7528\u4f8b\u6570\u636e\uff1a{case_data},\u671f\u671b\u6570\u636e\uff1a{expect_data},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{res.text}&amp;quot;)\n&amp;gt; raise AssertionError(&amp;quot;\u65ad\u8a00\u5931\u8d25&amp;quot;)\nE AssertionError: \u65ad\u8a00\u5931\u8d25\n\ntest_case\\toast\\test_bpm.py:50: AssertionError\n\n------------------------------ Captured log call -------------------------------\nERROR toast:test_bpm.py:49 \u65ad\u8a00\u5931\u8d25\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/demension/v1/dem/addDem,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;code&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;description&amp;#x27;: &amp;#x27;requestsAddDem&amp;#x27;, &amp;#x27;isDefault&amp;#x27;: 1, &amp;#x27;name&amp;#x27;: &amp;#x27;requests\u6dfb\u52a0\u7684\u7ef4\u5ea6&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u6dfb\u52a0\u7ef4\u5ea6\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}], &#34;test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6839\\u636e\\u7ef4\\u5ea6\\u7f16\\u7801\\u5220\\u9664\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-delete-query-case_data13-expect_data13-select-select ID_ from uc_demension where CODE_=\&#34;requestsAddDem\&#34;;-ids]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6839\\u636e\\u7ef4\\u5ea6\\u7f16\\u7801\\u5220\\u9664\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-delete-query-case_data13-expect_data13-select-select ID_ from uc_demension where CODE_=\&#34;requestsAddDem\&#34;;-ids]&#34;, &#34;duration&#34;: &#34;33 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_bpm.py::TestBPM::test_bpm[\\u7ef4\\u5ea6\\u7ba1\\u7406-\\u6839\\u636e\\u7ef4\\u5ea6\\u7f16\\u7801\\u5220\\u9664\\u7ef4\\u5ea6-\\u6b63\\u5411\\u7528\\u4f8b-\\u4e2d-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-delete-query-case_data13-expect_data13-select-select ID_ from uc_demension where CODE_=\&#34;requestsAddDem\&#34;;-ids]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;33 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;------------------------------ Captured log call -------------------------------\nINFO toast:test_bpm.py:52 \u65ad\u8a00\u6210\u529f\uff0c\u63a5\u53e3url\u4e3a\uff1ahttp://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,\u7528\u4f8b\u6570\u636e\uff1a{&amp;#x27;ids&amp;#x27;: &amp;#x27;1832344388912128000&amp;#x27;},\u671f\u671b\u6570\u636e\uff1a{&amp;#x27;message&amp;#x27;: &amp;#x27;\u5220\u9664\u7ef4\u5ea6\u6210\u529f\uff01&amp;#x27;},\u670d\u52a1\u5668\u8fd4\u56de\u6570\u636e\uff1a{&amp;quot;state&amp;quot;:true,&amp;quot;message&amp;quot;:&amp;quot;\u5220\u9664\u7ef4\u5ea6\u6210\u529f\uff01&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;code&amp;quot;:200}\n\n&#34;}]}, &#34;renderCollapsed&#34;: [&#34;passed&#34;], &#34;initialSort&#34;: &#34;result&#34;, &#34;title&#34;: &#34;toast_report.html&#34;}"></div>
<script>
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const { getCollapsedCategory, setCollapsedIds } = require('./storage.js')
class DataManager {
setManager(data) {
const collapsedCategories = [...getCollapsedCategory(data.renderCollapsed)]
const collapsedIds = []
const tests = Object.values(data.tests).flat().map((test, index) => {
const collapsed = collapsedCategories.includes(test.result.toLowerCase())
const id = `test_${index}`
if (collapsed) {
collapsedIds.push(id)
}
return {
...test,
id,
collapsed,
}
})
const dataBlob = { ...data, tests }
this.data = { ...dataBlob }
this.renderData = { ...dataBlob }
setCollapsedIds(collapsedIds)
}
get allData() {
return { ...this.data }
}
resetRender() {
this.renderData = { ...this.data }
}
setRender(data) {
this.renderData.tests = [...data]
}
toggleCollapsedItem(id) {
this.renderData.tests = this.renderData.tests.map((test) =>
test.id === id ? { ...test, collapsed: !test.collapsed } : test,
)
}
set allCollapsed(collapsed) {
this.renderData = { ...this.renderData, tests: [...this.renderData.tests.map((test) => (
{ ...test, collapsed }
))] }
}
get testSubset() {
return [...this.renderData.tests]
}
get environment() {
return this.renderData.environment
}
get initialSort() {
return this.data.initialSort
}
}
module.exports = {
manager: new DataManager(),
}
},{"./storage.js":8}],2:[function(require,module,exports){
const mediaViewer = require('./mediaviewer.js')
const templateEnvRow = document.getElementById('template_environment_row')
const templateResult = document.getElementById('template_results-table__tbody')
function htmlToElements(html) {
const temp = document.createElement('template')
temp.innerHTML = html
return temp.content.childNodes
}
const find = (selector, elem) => {
if (!elem) {
elem = document
}
return elem.querySelector(selector)
}
const findAll = (selector, elem) => {
if (!elem) {
elem = document
}
return [...elem.querySelectorAll(selector)]
}
const dom = {
getStaticRow: (key, value) => {
const envRow = templateEnvRow.content.cloneNode(true)
const isObj = typeof value === 'object' && value !== null
const values = isObj ? Object.keys(value).map((k) => `${k}: ${value[k]}`) : null
const valuesElement = htmlToElements(
values ? `<ul>${values.map((val) => `<li>${val}</li>`).join('')}<ul>` : `<div>${value}</div>`)[0]
const td = findAll('td', envRow)
td[0].textContent = key
td[1].appendChild(valuesElement)
return envRow
},
getResultTBody: ({ testId, id, log, extras, resultsTableRow, tableHtml, result, collapsed }) => {
const resultBody = templateResult.content.cloneNode(true)
resultBody.querySelector('tbody').classList.add(result.toLowerCase())
resultBody.querySelector('tbody').id = testId
resultBody.querySelector('.collapsible').dataset.id = id
resultsTableRow.forEach((html) => {
const t = document.createElement('template')
t.innerHTML = html
resultBody.querySelector('.collapsible').appendChild(t.content)
})
if (log) {
// Wrap lines starting with "E" with span.error to color those lines red
const wrappedLog = log.replace(/^E.*$/gm, (match) => `<span class="error">${match}</span>`)
resultBody.querySelector('.log').innerHTML = wrappedLog
} else {
resultBody.querySelector('.log').remove()
}
if (collapsed) {
resultBody.querySelector('.collapsible > td')?.classList.add('collapsed')
resultBody.querySelector('.extras-row').classList.add('hidden')
} else {
resultBody.querySelector('.collapsible > td')?.classList.remove('collapsed')
}
const media = []
extras?.forEach(({ name, format_type, content }) => {
if (['image', 'video'].includes(format_type)) {
media.push({ path: content, name, format_type })
}
if (format_type === 'html') {
resultBody.querySelector('.extraHTML').insertAdjacentHTML('beforeend', `<div>${content}</div>`)
}
})
mediaViewer.setup(resultBody, media)
// Add custom html from the pytest_html_results_table_html hook
tableHtml?.forEach((item) => {
resultBody.querySelector('td[class="extra"]').insertAdjacentHTML('beforeend', item)
})
return resultBody
},
}
module.exports = {
dom,
htmlToElements,
find,
findAll,
}
},{"./mediaviewer.js":6}],3:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const storageModule = require('./storage.js')
const getFilteredSubSet = (filter) =>
manager.allData.tests.filter(({ result }) => filter.includes(result.toLowerCase()))
const doInitFilter = () => {
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
}
const doFilter = (type, show) => {
if (show) {
storageModule.showCategory(type)
} else {
storageModule.hideCategory(type)
}
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
const sortColumn = storageModule.getSort()
doSort(sortColumn, true)
}
module.exports = {
doFilter,
doInitFilter,
}
},{"./datamanager.js":1,"./sort.js":7,"./storage.js":8}],4:[function(require,module,exports){
const { redraw, bindEvents, renderStatic } = require('./main.js')
const { doInitFilter } = require('./filter.js')
const { doInitSort } = require('./sort.js')
const { manager } = require('./datamanager.js')
const data = JSON.parse(document.getElementById('data-container').dataset.jsonblob)
function init() {
manager.setManager(data)
doInitFilter()
doInitSort()
renderStatic()
redraw()
bindEvents()
}
init()
},{"./datamanager.js":1,"./filter.js":3,"./main.js":5,"./sort.js":7}],5:[function(require,module,exports){
const { dom, find, findAll } = require('./dom.js')
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const { doFilter } = require('./filter.js')
const {
getVisible,
getCollapsedIds,
setCollapsedIds,
getSort,
getSortDirection,
possibleFilters,
} = require('./storage.js')
const removeChildren = (node) => {
while (node.firstChild) {
node.removeChild(node.firstChild)
}
}
const renderStatic = () => {
const renderEnvironmentTable = () => {
const environment = manager.environment
const rows = Object.keys(environment).map((key) => dom.getStaticRow(key, environment[key]))
const table = document.getElementById('environment')
removeChildren(table)
rows.forEach((row) => table.appendChild(row))
}
renderEnvironmentTable()
}
const addItemToggleListener = (elem) => {
elem.addEventListener('click', ({ target }) => {
const id = target.parentElement.dataset.id
manager.toggleCollapsedItem(id)
const collapsedIds = getCollapsedIds()
if (collapsedIds.includes(id)) {
const updated = collapsedIds.filter((item) => item !== id)
setCollapsedIds(updated)
} else {
collapsedIds.push(id)
setCollapsedIds(collapsedIds)
}
redraw()
})
}
const renderContent = (tests) => {
const sortAttr = getSort(manager.initialSort)
const sortAsc = JSON.parse(getSortDirection())
const rows = tests.map(dom.getResultTBody)
const table = document.getElementById('results-table')
const tableHeader = document.getElementById('results-table-head')
const newTable = document.createElement('table')
newTable.id = 'results-table'
// remove all sorting classes and set the relevant
findAll('.sortable', tableHeader).forEach((elem) => elem.classList.remove('asc', 'desc'))
tableHeader.querySelector(`.sortable[data-column-type="${sortAttr}"]`)?.classList.add(sortAsc ? 'desc' : 'asc')
newTable.appendChild(tableHeader)
if (!rows.length) {
const emptyTable = document.getElementById('template_results-table__body--empty').content.cloneNode(true)
newTable.appendChild(emptyTable)
} else {
rows.forEach((row) => {
if (!!row) {
findAll('.collapsible td:not(.col-links', row).forEach(addItemToggleListener)
find('.logexpander', row).addEventListener('click',
(evt) => evt.target.parentNode.classList.toggle('expanded'),
)
newTable.appendChild(row)
}
})
}
table.replaceWith(newTable)
}
const renderDerived = () => {
const currentFilter = getVisible()
possibleFilters.forEach((result) => {
const input = document.querySelector(`input[data-test-result="${result}"]`)
input.checked = currentFilter.includes(result)
})
}
const bindEvents = () => {
const filterColumn = (evt) => {
const { target: element } = evt
const { testResult } = element.dataset
doFilter(testResult, element.checked)
const collapsedIds = getCollapsedIds()
const updated = manager.renderData.tests.map((test) => {
return {
...test,
collapsed: collapsedIds.includes(test.id),
}
})
manager.setRender(updated)
redraw()
}
const header = document.getElementById('environment-header')
header.addEventListener('click', () => {
const table = document.getElementById('environment')
table.classList.toggle('hidden')
header.classList.toggle('collapsed')
})
findAll('input[name="filter_checkbox"]').forEach((elem) => {
elem.addEventListener('click', filterColumn)
})
findAll('.sortable').forEach((elem) => {
elem.addEventListener('click', (evt) => {
const { target: element } = evt
const { columnType } = element.dataset
doSort(columnType)
redraw()
})
})
document.getElementById('show_all_details').addEventListener('click', () => {
manager.allCollapsed = false
setCollapsedIds([])
redraw()
})
document.getElementById('hide_all_details').addEventListener('click', () => {
manager.allCollapsed = true
const allIds = manager.renderData.tests.map((test) => test.id)
setCollapsedIds(allIds)
redraw()
})
}
const redraw = () => {
const { testSubset } = manager
renderContent(testSubset)
renderDerived()
}
module.exports = {
redraw,
bindEvents,
renderStatic,
}
},{"./datamanager.js":1,"./dom.js":2,"./filter.js":3,"./sort.js":7,"./storage.js":8}],6:[function(require,module,exports){
class MediaViewer {
constructor(assets) {
this.assets = assets
this.index = 0
}
nextActive() {
this.index = this.index === this.assets.length - 1 ? 0 : this.index + 1
return [this.activeFile, this.index]
}
prevActive() {
this.index = this.index === 0 ? this.assets.length - 1 : this.index -1
return [this.activeFile, this.index]
}
get currentIndex() {
return this.index
}
get activeFile() {
return this.assets[this.index]
}
}
const setup = (resultBody, assets) => {
if (!assets.length) {
resultBody.querySelector('.media').classList.add('hidden')
return
}
const mediaViewer = new MediaViewer(assets)
const container = resultBody.querySelector('.media-container')
const leftArrow = resultBody.querySelector('.media-container__nav--left')
const rightArrow = resultBody.querySelector('.media-container__nav--right')
const mediaName = resultBody.querySelector('.media__name')
const counter = resultBody.querySelector('.media__counter')
const imageEl = resultBody.querySelector('img')
const sourceEl = resultBody.querySelector('source')
const videoEl = resultBody.querySelector('video')
const setImg = (media, index) => {
if (media?.format_type === 'image') {
imageEl.src = media.path
imageEl.classList.remove('hidden')
videoEl.classList.add('hidden')
} else if (media?.format_type === 'video') {
sourceEl.src = media.path
videoEl.classList.remove('hidden')
imageEl.classList.add('hidden')
}
mediaName.innerText = media?.name
counter.innerText = `${index + 1} / ${assets.length}`
}
setImg(mediaViewer.activeFile, mediaViewer.currentIndex)
const moveLeft = () => {
const [media, index] = mediaViewer.prevActive()
setImg(media, index)
}
const doRight = () => {
const [media, index] = mediaViewer.nextActive()
setImg(media, index)
}
const openImg = () => {
window.open(mediaViewer.activeFile.path, '_blank')
}
if (assets.length === 1) {
container.classList.add('media-container--fullscreen')
} else {
leftArrow.addEventListener('click', moveLeft)
rightArrow.addEventListener('click', doRight)
}
imageEl.addEventListener('click', openImg)
}
module.exports = {
setup,
}
},{}],7:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const storageModule = require('./storage.js')
const genericSort = (list, key, ascending, customOrder) => {
let sorted
if (customOrder) {
sorted = list.sort((a, b) => {
const aValue = a.result.toLowerCase()
const bValue = b.result.toLowerCase()
const aIndex = customOrder.findIndex((item) => item.toLowerCase() === aValue)
const bIndex = customOrder.findIndex((item) => item.toLowerCase() === bValue)
// Compare the indices to determine the sort order
return aIndex - bIndex
})
} else {
sorted = list.sort((a, b) => a[key] === b[key] ? 0 : a[key] > b[key] ? 1 : -1)
}
if (ascending) {
sorted.reverse()
}
return sorted
}
const durationSort = (list, ascending) => {
const parseDuration = (duration) => {
if (duration.includes(':')) {
// If it's in the format "HH:mm:ss"
const [hours, minutes, seconds] = duration.split(':').map(Number)
return (hours * 3600 + minutes * 60 + seconds) * 1000
} else {
// If it's in the format "nnn ms"
return parseInt(duration)
}
}
const sorted = list.sort((a, b) => parseDuration(a['duration']) - parseDuration(b['duration']))
if (ascending) {
sorted.reverse()
}
return sorted
}
const doInitSort = () => {
const type = storageModule.getSort(manager.initialSort)
const ascending = storageModule.getSortDirection()
const list = manager.testSubset
const initialOrder = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed', 'Skipped', 'Passed']
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
if (type?.toLowerCase() === 'original') {
manager.setRender(list)
} else {
let sortedList
switch (type) {
case 'duration':
sortedList = durationSort(list, ascending)
break
case 'result':
sortedList = genericSort(list, type, ascending, initialOrder)
break
default:
sortedList = genericSort(list, type, ascending)
break
}
manager.setRender(sortedList)
}
}
const doSort = (type, skipDirection) => {
const newSortType = storageModule.getSort(manager.initialSort) !== type
const currentAsc = storageModule.getSortDirection()
let ascending
if (skipDirection) {
ascending = currentAsc
} else {
ascending = newSortType ? false : !currentAsc
}
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
const list = manager.testSubset
const sortedList = type === 'duration' ? durationSort(list, ascending) : genericSort(list, type, ascending)
manager.setRender(sortedList)
}
module.exports = {
doInitSort,
doSort,
}
},{"./datamanager.js":1,"./storage.js":8}],8:[function(require,module,exports){
const possibleFilters = [
'passed',
'skipped',
'failed',
'error',
'xfailed',
'xpassed',
'rerun',
]
const getVisible = () => {
const url = new URL(window.location.href)
const settings = new URLSearchParams(url.search).get('visible')
const lower = (item) => {
const lowerItem = item.toLowerCase()
if (possibleFilters.includes(lowerItem)) {
return lowerItem
}
return null
}
return settings === null ?
possibleFilters :
[...new Set(settings?.split(',').map(lower).filter((item) => item))]
}
const hideCategory = (categoryToHide) => {
const url = new URL(window.location.href)
const visibleParams = new URLSearchParams(url.search).get('visible')
const currentVisible = visibleParams ? visibleParams.split(',') : [...possibleFilters]
const settings = [...new Set(currentVisible)].filter((f) => f !== categoryToHide).join(',')
url.searchParams.set('visible', settings)
window.history.pushState({}, null, unescape(url.href))
}
const showCategory = (categoryToShow) => {
if (typeof window === 'undefined') {
return
}
const url = new URL(window.location.href)
const currentVisible = new URLSearchParams(url.search).get('visible')?.split(',').filter(Boolean) ||
[...possibleFilters]
const settings = [...new Set([categoryToShow, ...currentVisible])]
const noFilter = possibleFilters.length === settings.length || !settings.length
noFilter ? url.searchParams.delete('visible') : url.searchParams.set('visible', settings.join(','))
window.history.pushState({}, null, unescape(url.href))
}
const getSort = (initialSort) => {
const url = new URL(window.location.href)
let sort = new URLSearchParams(url.search).get('sort')
if (!sort) {
sort = initialSort || 'result'
}
return sort
}
const setSort = (type) => {
const url = new URL(window.location.href)
url.searchParams.set('sort', type)
window.history.pushState({}, null, unescape(url.href))
}
const getCollapsedCategory = (renderCollapsed) => {
let categories
if (typeof window !== 'undefined') {
const url = new URL(window.location.href)
const collapsedItems = new URLSearchParams(url.search).get('collapsed')
switch (true) {
case !renderCollapsed && collapsedItems === null:
categories = ['passed']
break
case collapsedItems?.length === 0 || /^["']{2}$/.test(collapsedItems):
categories = []
break
case /^all$/.test(collapsedItems) || collapsedItems === null && /^all$/.test(renderCollapsed):
categories = [...possibleFilters]
break
default:
categories = collapsedItems?.split(',').map((item) => item.toLowerCase()) || renderCollapsed
break
}
} else {
categories = []
}
return categories
}
const getSortDirection = () => JSON.parse(sessionStorage.getItem('sortAsc')) || false
const setSortDirection = (ascending) => sessionStorage.setItem('sortAsc', ascending)
const getCollapsedIds = () => JSON.parse(sessionStorage.getItem('collapsedIds')) || []
const setCollapsedIds = (list) => sessionStorage.setItem('collapsedIds', JSON.stringify(list))
module.exports = {
getVisible,
hideCategory,
showCategory,
getCollapsedIds,
setCollapsedIds,
getSort,
setSort,
getSortDirection,
setSortDirection,
getCollapsedCategory,
possibleFilters,
}
},{}]},{},[4]);
</script>
</footer>
</html>
\ No newline at end of file
2024-09-07 16:56:58,470 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-07 16:56:58,470 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-07 16:56:58,470 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-07 16:56:58,471 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-07 16:56:58,471 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-07 16:56:58,472 - read_json.py[line:21] - ERROR: 读取json文件失败,传入的文件路径为:D:\projects\python312\pythonProject\self_copy\apiAutoTest_v3\data_config\toast\bread_case_data.json-可能文件路径不存在/数据格式错误,错误为:[Errno 2] No such file or directory: 'D:\\projects\\python312\\pythonProject\\self_copy\\apiAutoTest_v3\\data_config\\toast\\bread_case_data.json' -- toast
2024-09-07 17:01:38,051 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-07 17:01:38,051 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-07 17:01:38,051 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-07 17:01:38,051 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-07 17:01:38,052 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-07 17:01:38,052 - read_json.py[line:21] - ERROR: 读取json文件失败,传入的文件路径为:D:\projects\python312\pythonProject\self_copy\apiAutoTest_v3\data_config\toast\bread_case_data.json-可能文件路径不存在/数据格式错误,错误为:[Errno 2] No such file or directory: 'D:\\projects\\python312\\pythonProject\\self_copy\\apiAutoTest_v3\\data_config\\toast\\bread_case_data.json' -- toast
2024-09-07 17:02:48,930 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-07 17:02:48,930 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-07 17:02:48,930 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-07 17:02:48,930 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-07 17:02:48,931 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-07 17:02:48,931 - read_json.py[line:21] - ERROR: 读取json文件失败,传入的文件路径为:D:\projects\python312\pythonProject\self_copy\apiAutoTest_v3\data_config\toast\bread_case_data.json-可能文件路径不存在/数据格式错误,错误为:[Errno 2] No such file or directory: 'D:\\projects\\python312\\pythonProject\\self_copy\\apiAutoTest_v3\\data_config\\toast\\bread_case_data.json' -- toast
2024-09-07 17:04:58,160 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-07 17:04:58,160 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-07 17:04:58,161 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-07 17:04:58,161 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-07 17:04:58,161 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-07 17:04:58,561 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True},服务器返回数据:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYxODcsImlhdCI6MTcyNTY5OTc4N30.1ld1-9ljHha6tuq1UCP_I6W_2pV5QA_6JeFKWTBpnDvWaaYXjxXuCLAfWz_Jjt_zZA6cAJqT2cQUQToyjBgFgg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} -- toast
2024-09-07 17:04:58,581 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': '', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832343830037897216"} -- toast
2024-09-07 17:04:58,606 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': '#!$!@#!@#', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832343830142754816"} -- toast
2024-09-07 17:04:58,640 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'adminadminadminadminadminadminadminadminadmin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832343830281166848"} -- toast
2024-09-07 17:04:58,665 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'a', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832343830390218752"} -- toast
2024-09-07 17:04:58,690 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'adminxyz', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832343830499270656"} -- toast
2024-09-07 17:04:58,719 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': ''},期望数据:{'message': '账号或密码错误'},服务器返回数据:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832343830620905472"} -- toast
2024-09-07 17:04:58,750 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': '#!$!@#!@#'},期望数据:{'message': '账号或密码错误'},服务器返回数据:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832343830746734592"} -- toast
2024-09-07 17:04:58,771 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn'},期望数据:{'message': '解密密码异常,请检查RSA公钥和私钥配置'},服务器返回数据:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832343830834814976"} -- toast
2024-09-07 17:04:58,788 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': '123456'},期望数据:{'message': '解密密码异常,请检查RSA公钥和私钥配置'},服务器返回数据:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832343830910312448"} -- toast
2024-09-07 17:04:58,821 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ'},期望数据:{'message': '账号或密码错误'},服务器返回数据:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYxODcsImlhdCI6MTcyNTY5OTc4N30.1ld1-9ljHha6tuq1UCP_I6W_2pV5QA_6JeFKWTBpnDvWaaYXjxXuCLAfWz_Jjt_zZA6cAJqT2cQUQToyjBgFgg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} -- toast
2024-09-07 17:04:59,108 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/refresh,用例数据:None,期望数据:{'message': '刷新token成功'},服务器返回数据:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYxODcsImlhdCI6MTcyNTY5OTc4N30.1ld1-9ljHha6tuq1UCP_I6W_2pV5QA_6JeFKWTBpnDvWaaYXjxXuCLAfWz_Jjt_zZA6cAJqT2cQUQToyjBgFgg","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true} -- toast
2024-09-07 17:04:59,171 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/addDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 1, 'name': 'requests添加的维度'},期望数据:{'message': '添加维度成功'},服务器返回数据:{"state":true,"message":"添加维度成功!","value":"","code":200} -- toast
2024-09-07 17:04:59,228 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,用例数据:{'ids': '1832343832432844800'},期望数据:{'message': '删除维度成功!'},服务器返回数据:{"state":true,"message":"删除维度成功!","value":"","code":200} -- toast
2024-09-07 17:07:11,257 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-07 17:07:11,257 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-07 17:07:11,257 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-07 17:07:11,257 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-07 17:07:11,257 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-07 17:07:11,389 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True},服务器返回数据:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMTksImlhdCI6MTcyNTY5OTkxOX0.7K0D3R3FlYi7HD_cmL1CYf7AC9F3X-u_XxXh02xPAFvQtGFEWUzY_uTbkzm4U0Vw9WgCRYsJtwIG_NuWEQ1tJQ","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} -- toast
2024-09-07 17:07:11,413 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': '', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344387175686144"} -- toast
2024-09-07 17:07:11,437 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': '#!$!@#!@#', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344387276349440"} -- toast
2024-09-07 17:07:11,462 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'adminadminadminadminadminadminadminadminadmin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344387381207040"} -- toast
2024-09-07 17:07:11,490 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'a', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344387494453248"} -- toast
2024-09-07 17:07:11,519 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'adminxyz', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ='},期望数据:{'message': '账户错误或该租户未启用'},服务器返回数据:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1832344387611893760"} -- toast
2024-09-07 17:07:11,551 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': ''},期望数据:{'message': '账号或密码错误'},服务器返回数据:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832344387750305792"} -- toast
2024-09-07 17:07:11,580 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': '#!$!@#!@#'},期望数据:{'message': '账号或密码错误'},服务器返回数据:{"state":false,"message":"账号或密码错误","code":200,"logId":"1832344387871940608"} -- toast
2024-09-07 17:07:11,603 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jznbF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn'},期望数据:{'message': '解密密码异常,请检查RSA公钥和私钥配置'},服务器返回数据:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832344387964215296"} -- toast
2024-09-07 17:07:11,623 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': '123456'},期望数据:{'message': '解密密码异常,请检查RSA公钥和私钥配置'},服务器返回数据:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1832344388052295680"} -- toast
2024-09-07 17:07:11,657 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/auth,用例数据:{'username': 'admin', 'password': 'bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQqmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerVlYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ'},期望数据:{'message': '账号或密码错误'},服务器返回数据:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} -- toast
2024-09-07 17:07:11,783 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/refresh,用例数据:None,期望数据:{'message': '刷新token成功'},服务器返回数据:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MjU3ODYzMjAsImlhdCI6MTcyNTY5OTkyMH0.H2p3QVeFtxXxsnHLK2Bovzkz567yiShCCEeVRxI8uoiIWz8g7Lc9qF-txDyHJmqp59AaEHmhZ1mrLWW3kkPA9w","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true} -- toast
2024-09-07 17:07:11,838 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/addDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 1, 'name': 'requests添加的维度'},期望数据:{'message': '添加维度成功'},服务器返回数据:{"state":true,"message":"添加维度成功!","value":"","code":200} -- toast
2024-09-07 17:07:11,885 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,用例数据:{'ids': '1832344388912128000'},期望数据:{'message': '删除维度成功!'},服务器返回数据:{"state":true,"message":"删除维度成功!","value":"","code":200} -- toast
2024-09-07 17:08:17,399 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-07 17:08:17,399 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-07 17:08:17,399 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-07 17:08:17,399 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-07 17:08:17,400 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-07 17:08:17,588 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/addDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 1, 'name': 'requests添加的维度'},期望数据:{'message': '添加维度成功'},服务器返回数据:{"state":true,"message":"添加维度成功!","value":"","code":200} -- toast
2024-09-07 17:08:17,735 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/updateDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 0, 'name': 'requestsAddDem'},期望数据:{'message': '更新维度成功'},服务器返回数据:{"state":true,"message":"更新维度成功!","value":"","code":200} -- toast
2024-09-07 17:08:17,793 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/org/v1/org/addOrg,用例数据:{'code': 'testAddOrg', 'demId': '1832344664687616000', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据:{'message': '添加组织成功'},服务器返回数据:{"state":true,"message":"添加组织成功!","value":"","code":200} -- toast
2024-09-07 17:08:17,840 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg,用例数据:{'orgCode': 'testAddOrg', 'accounts': 'admin,guest'},期望数据:{'message': '加入成功'},服务器返回数据:{"state":true,"message":"加入成功","value":"","code":200} -- toast
2024-09-07 17:08:17,870 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams,用例数据:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},期望数据:{'message': '保存组织参数成功!'},服务器返回数据:{"state":true,"message":"保存组织参数成功!","value":"","code":200} -- toast
2024-09-07 17:08:17,900 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/org/deleteOrg,用例数据:testAddOrg,期望数据:{'message': '删除组织成功!'},服务器返回数据:{"state":true,"message":"删除组织成功!","value":"","code":200} -- toast
2024-09-07 17:08:17,932 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,用例数据:{'ids': '1832344664687616000'},期望数据:{'message': '删除维度成功!'},服务器返回数据:{"state":true,"message":"删除维度成功!","value":"","code":200} -- toast
2024-09-09 10:55:01,728 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-09 10:55:01,728 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为case -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为expect -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为sql -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:26] - INFO: 执行方法get_file_path为根据key获取file节点下key对应文件的路径,形参key的传参为excel -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-09 10:55:01,729 - read_user_ini.py[line:36] - INFO: 执行方法get_table_name为根据key获取table节点下key对应表名,形参key的传参为table_name -- toast
2024-09-09 10:55:02,516 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/addDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 1, 'name': 'requests添加的维度'},期望数据:{'message': '添加维度成功'},服务器返回数据:{"state":true,"message":"添加维度成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,516 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/addDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 1, 'name': 'requests添加的维度'},期望数据:{'message': '添加维度成功'},服务器返回数据:{"state":true,"message":"添加维度成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,831 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/updateDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 0, 'name': 'requestsAddDem'},期望数据:{'message': '更新维度成功'},服务器返回数据:{"state":true,"message":"更新维度成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,831 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/updateDem,用例数据:{'code': 'requestsAddDem', 'description': 'requestsAddDem', 'isDefault': 0, 'name': 'requestsAddDem'},期望数据:{'message': '更新维度成功'},服务器返回数据:{"state":true,"message":"更新维度成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,878 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/org/v1/org/addOrg,用例数据:{'code': 'testAddOrg', 'demId': '1832975501154164736', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据:{'message': '添加组织成功'},服务器返回数据:{"state":true,"message":"添加组织成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,878 - test_bpm.py[line:49] - ERROR: 断言失败,接口url为:http://36.139.193.99:8088/api/org/v1/org/addOrg,用例数据:{'code': 'testAddOrg', 'demId': '1832975501154164736', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据:{'message': '添加组织成功'},服务器返回数据:{"state":true,"message":"添加组织成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,923 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg,用例数据:{'orgCode': 'testAddOrg', 'accounts': 'admin,guest'},期望数据:{'message': '加入成功'},服务器返回数据:{"state":true,"message":"加入成功","value":"","code":200} -- toast
2024-09-09 10:55:02,923 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/orgUsers/addUsersForOrg,用例数据:{'orgCode': 'testAddOrg', 'accounts': 'admin,guest'},期望数据:{'message': '加入成功'},服务器返回数据:{"state":true,"message":"加入成功","value":"","code":200} -- toast
2024-09-09 10:55:02,946 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams,用例数据:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},期望数据:{'message': '保存组织参数成功!'},服务器返回数据:{"state":true,"message":"保存组织参数成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,946 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams,用例数据:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'hxxmts', 'value': '项目中没有关系户'}]},期望数据:{'message': '保存组织参数成功!'},服务器返回数据:{"state":true,"message":"保存组织参数成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,980 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/org/deleteOrg,用例数据:testAddOrg,期望数据:{'message': '删除组织成功!'},服务器返回数据:{"state":true,"message":"删除组织成功!","value":"","code":200} -- toast
2024-09-09 10:55:02,980 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/org/v1/org/deleteOrg,用例数据:testAddOrg,期望数据:{'message': '删除组织成功!'},服务器返回数据:{"state":true,"message":"删除组织成功!","value":"","code":200} -- toast
2024-09-09 10:55:03,012 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,用例数据:{'ids': '1832975501154164736'},期望数据:{'message': '删除维度成功!'},服务器返回数据:{"state":true,"message":"删除维度成功!","value":"","code":200} -- toast
2024-09-09 10:55:03,012 - test_bpm.py[line:52] - INFO: 断言成功,接口url为:http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds,用例数据:{'ids': '1832975501154164736'},期望数据:{'message': '删除维度成功!'},服务器返回数据:{"state":true,"message":"删除维度成功!","value":"","code":200} -- toast
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: toast
# Datetime: 2024/9/7 下午2:05
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: request_method.py
# Author: toast
# Datetime: 2024/9/7 下午2:05
# Description:
#
# ---------------------------------------------------------------------------
import requests
from apiAutoTest_v3.common.read_project_ini import ReadProjectIni
class RequestMethod:
def __init__(self):
login_url = ReadProjectIni().get_host("bpm_host")+"/auth"
login_data = {"username": "admin", "password": "bF6N3L93cX8pV6x2yEqxNjwIIPaEOYw9bNI5GuIY4g9MeoFyPFPL5WteHaV0LcxQ"
"qmDJWlhuCRMXzAPvrFcxJrA8BgGjJpmB1WMrQrazIJPbWbCfmDit2s2jzn+DRerV"
"lYIFojDM96y24drEniwWzHtaJKiWoc7LGL1csNmokvQ="}
self.bpm_session= requests.sessions.Session()
res = self.bpm_session.post(url=login_url, json=login_data)
token = res.json().get("token")
self.bpm_session.headers["Authorization"] = f"Bearer {token}"
def request_all(self,req_method,req_url,req_mime,case_data):
if req_mime == "application/x-www-form-urlencoded" or req_mime == "form":
return self.bpm_session.request(method=req_method,url=req_url,data=case_data)
elif req_mime == "application/json" or req_mime == "json":
return self.bpm_session.request(method=req_method,url=req_url,json=case_data)
elif req_mime == "multipart/form_data" or req_mime == "form-data":
return self.bpm_session.request(method=req_method,url=req_url,files=case_data)
elif req_mime == "query" or req_mime == "params":
return self.bpm_session.request(method=req_method,url=req_url,params=case_data)
elif req_mime is None:
return self.bpm_session.request(method=req_method,url=req_url)
elif req_mime == "query|json" or req_mime == "json|params":
return self.bpm_session.request(method=req_method,url=req_url,params=case_data["query"],json=case_data["body"])
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: toast
# Datetime: 2024/9/7 下午2:21
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: toast
# Datetime: 2024/9/7 下午3:56
# Description:
#
# ---------------------------------------------------------------------------
namespace = 'bread'
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: conftest.py
# Author: toast
# Datetime: 2024/9/7 下午2:23
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from apiAutoTest_v3.common.db import DB
from apiAutoTest_v3.request_method.request_method import RequestMethod
@pytest.fixture(scope="session")
def fix_db():
db = DB()
yield db
db.close()
@pytest.fixture(scope="session")
def fix_req():
req = RequestMethod()
yield req
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: test_bpm.py
# Author: toast
# Datetime: 2024/9/7 下午2:26
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
from apiAutoTest_v3 import log
from apiAutoTest_v3.common.read_excel import ReadExcel
from apiAutoTest_v3.test_case.bread import namespace
excel = ReadExcel(namespace)
class TestBPM:
@allure.epic("BPM项目-bread")
@pytest.mark.parametrize("module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key",excel.get_data())
def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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)
if sql_type == "delete":
fix_db.delete(sql_data["delete"])
elif sql_type == "select":
select_result = fix_db.select(sql_data["select"])
case_data[update_key] = select_result
elif sql_type == "select|delete" or sql_type == "delete|select":
fix_db.delete(sql_data["delete"])
select_result = fix_db.select(sql_data["select"])
case_data[update_key] = select_result
res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)
try:
for key in expect_data.keys():
assert expect_data[key] == res.json().get(key)
except AssertionError:
log.error(f"断言失败,接口url为:{url},用例数据:{case_data},期望数据:{expect_data},服务器返回数据:{res.text}")
raise AssertionError("断言失败")
else:
log.info(f"断言成功,接口url为:{url},用例数据:{case_data},期望数据:{expect_data},服务器返回数据:{res.text}")
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: toast
# Datetime: 2024/9/7 下午2:21
# Description:
#
# ---------------------------------------------------------------------------
namespace = "toast"
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: conftest.py
# Author: toast
# Datetime: 2024/9/7 下午2:23
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from apiAutoTest_v3.common.db import DB
from apiAutoTest_v3.request_method.request_method import RequestMethod
@pytest.fixture(scope="session")
def fix_db():
db = DB()
yield db
db.close()
@pytest.fixture(scope="session")
def fix_req():
req = RequestMethod()
yield req
\ No newline at end of file
[pytest]
log_file_level = error
log_file_format = %(levelname)s--%(asctime)s--%(message)s
log_file_data_format = %Y-%m-%d %H:%M:%S
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: test_bpm.py
# Author: toast
# Datetime: 2024/9/7 下午2:26
# Description:
#
# ---------------------------------------------------------------------------
import allure
import pytest
from apiAutoTest_v3 import log
from apiAutoTest_v3.common.read_excel import ReadExcel
from apiAutoTest_v3.test_case.toast import namespace
excel = ReadExcel(namespace)
class TestBPM:
@allure.epic("BPM项目-toast")
@pytest.mark.parametrize("module_name, api_name, level, title, url, method, mime, case_data, expect_data, sql_type, sql_data, update_key",excel.get_data())
def test_bpm(self,fix_db,fix_req,module_name, api_name, level, title, 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)
if sql_type == "delete":
fix_db.delete(sql_data)
elif sql_type == "select":
select_result = fix_db.select(sql_data)
case_data[update_key] = select_result
elif sql_type == "select|delete" or sql_type == "delete|select":
fix_db.delete(sql_data)
select_result = fix_db.select(sql_data)
case_data[update_key] = select_result
res = fix_req.request_all(req_method=method, req_url=url, req_mime=mime, case_data=case_data)
try:
for key in expect_data.keys():
assert expect_data[key] == res.json().get(key)
except AssertionError:
log.error(f"断言失败,接口url为:{url},用例数据:{case_data},期望数据:{expect_data},服务器返回数据:{res.text}")
raise AssertionError("断言失败")
else:
log.info(f"断言成功,接口url为:{url},用例数据:{case_data},期望数据:{expect_data},服务器返回数据:{res.text}")
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