Commit aeae50a1 by dzf

提交接口自动化测试脚本V1.0

parents
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/8/7 18:49
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: db.py
# Author: xxxxxxx
# Datetime: 2023/8/7 20:09
# Description:
#
# ---------------------------------------------------------------------------
import pymysql
from My_APIAuto_demo.common.read_ini import ReadIni
class DB:
def __init__(self):
read_ini = ReadIni()
self.conn = pymysql.connect(host=read_ini.get_sql_connect_message("host"),
port=int(read_ini.get_sql_connect_message("port")),
user=read_ini.get_sql_connect_message("user"),
password=read_ini.get_sql_connect_message("pwd"),
database=read_ini.get_sql_connect_message("database"),
charset="utf8"
)
self.cursor = self.conn.cursor()
def close(self):
self.cursor.close()
self.conn.close()
def delete(self,sql_sentence):
self.cursor.execute(sql_sentence)
self.conn.commit()
def select(self,sql_sentence):
self.cursor.execute(sql_sentence)
select_result = self.cursor.fetchall()
if select_result:
return select_result[0][0]
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: read_excel.py
# Author: xxxxxxx
# Datetime: 2023/8/7 19:07
# Description:
#
# ---------------------------------------------------------------------------
import openpyxl
from My_APIAuto_demo.common.read_ini import ReadIni
from My_APIAuto_demo.common.read_json import read_json
from My_APIAuto_demo.data_config.settings import *
class ReadExcel:
def __init__(self):
self.read_ini = ReadIni()
case_data_path = self.read_ini.get_file_path(CASE)
expect_data_path = self.read_ini.get_file_path(EXPECT)
sql_data_path = self.read_ini.get_file_path(SQL)
self.case_data_dict = read_json(case_data_path)
self.expect_data_dict = read_json(expect_data_path)
self.sql_data_dict = read_json(sql_data_path)
excel_path = self.read_ini.get_file_path(EXCEL)
wb = openpyxl.load_workbook(excel_path)
table_name = self.read_ini.get_table_name(TABLE)
self.ws = wb[table_name]
def __get_cell_data(self,column:str,row:int):
value = self.ws[column + str(row)].value
if value is None:
return None
elif value.strip():
return value.strip()
else:
return None
def module_name(self,row):
return self.__get_cell_data(MODULE,row)
def interface_name(self,row):
return self.__get_cell_data(API,row)
def case_title(self,row):
return self.__get_cell_data(TITLE,row)
def case_level(self,row):
return self.__get_cell_data(LEVEL,row)
def case_method(self,row):
return self.__get_cell_data(METHOD,row)
def case_url(self,row):
host = self.read_ini.get_host(HOST)
url_name = self.__get_cell_data(PATH,row)
return host+url_name
def case_mime(self,row):
value = self.__get_cell_data(MIME,row)
if value is None:
return None
elif value:
return value.lower()
else:
return None
def case_data(self,row):
value = self.__get_cell_data(CASEDATA,row)
if value is None:
return None
elif value:
module_name = self.module_name(row)
interface_name = self.interface_name(row)
return self.case_data_dict[module_name][interface_name][value]
else:
return None
def expect_data(self,row):
value = self.__get_cell_data(EXPECTDATA,row)
if value is None:
return None
elif value:
module_name = self.module_name(row)
interface_name = self.interface_name(row)
return self.expect_data_dict[module_name][interface_name][value]
else:
return None
def get_sql_type(self,row):
value = self.__get_cell_data(SQLTYPE,row)
if value is None:
return None
elif value:
return value.lower()
else:
return None
def sql_sentence(self,row):
value = self.__get_cell_data(SQLSENTENCE,row)
if value is None:
return None
elif value:
module_name = self.module_name(row)
interface_name = self.interface_name(row)
return self.sql_data_dict[module_name][interface_name][value]
else:
return None
def update_key(self,row):
value = self.__get_cell_data(UPDATEKEY,row)
if value is None:
return None
elif value:
return value
else:
return None
def get_data(self):
list_data = []
for row in range(2,self.ws.max_row+1):
module_name = self.module_name(row)
interface_name = self.interface_name(row)
case_title = self.case_title(row)
case_level = self.case_level(row)
case_method = self.case_method(row)
case_url = self.case_url(row)
case_mime = self.case_mime(row)
case_data = self.case_data(row)
expect_data = self.expect_data(row)
sql_type = self.get_sql_type(row)
sql_sentence = self.sql_sentence(row)
update_key = self.update_key(row)
list_data.append([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])
else:
return list_data
if __name__ == '__main__':
read_excel = ReadExcel()
print(read_excel.case_mime(15))
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: read_ini.py
# Author: xxxxxxx
# Datetime: 2023/8/7 18:54
# Description:
#
# ---------------------------------------------------------------------------
import configparser
import os
class ReadIni:
def __init__(self):
self.data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)),"data_config")
# print(self.data_config_path)
ini_path = os.path.join(self.data_config_path,"config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path,encoding="utf-8")
def get_file_path(self,key):
file_name = self.conf.get("file",key).strip()
return os.path.join(self.data_config_path,file_name)
def get_host(self,key):
return self.conf.get("host",key).strip()
def get_table_name(self,key):
return self.conf.get("table_name",key).strip()
def get_sql_connect_message(self,key):
return self.conf.get("sql",key).strip()
if __name__ == '__main__':
read_ini = ReadIni()
print(read_ini.get_file_path("excel"))
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: read_json.py
# Author: xxxxxxx
# Datetime: 2023/8/7 19:07
# Description:
#
# ---------------------------------------------------------------------------
import json
def read_json(filename):
with open(filename,mode="r",encoding="utf-8") as fp:
return json.load(fp)
if __name__ == '__main__':
print(read_json(r"D:\python-learn\My_APIAuto_demo\data_config\case_data.json"))
\ No newline at end of file
{
"认证接口":{
"登录系统":{
"LoginSuccess": {"password": "MTIzNDU2","username": "admin"},
"LoginFailUsernameIsNone":{"password": "MTIzNDU2","username": ""},
"LoginFailUsernameIsLong":{"password": "MTIzNDU2","username": "adminadminadminadminadminadminadminadminadmin"},
"LoginFailUsernameIsShort":{"password": "MTIzNDU2","username": "a"},
"LoginFailUsernameIsSpecialChar":{"password": "MTIzNDU2","username": "▬♦◊◦☼♠♣"},
"LoginFailUsernameIsError":{"password": "MTIzNDU2","username": "tomcat"},
"LoginFailPWDIsNone":{"password": "","username": "admin"},
"LoginFailPWDIsLong":{"password": "MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2","username": "admin"},
"LoginFailPWDIsShort":{"password": "1","username": "admin"},
"LoginFailPWDIsSpecial":{"password": "▬♦◊◦☼♠♣","username": "admin"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "org9527",
"description": "org9527",
"isDefault": 0,
"name": "org9527"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "不知道"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "org9527_org",
"demId": "不知道",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "org9527的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"删除组织": {
"DeleteOrgSuccess": "org9527_org"
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"query": {"orgCode": "org9527_org"},
"body": [
{"alias":"sz","value":0},
{"alias":"zy","value":"math"},
{"alias":"rq","value":"2023-08-04T16:00:00.000Z"},
{"alias":"ah","value":"lq"},
{"alias":"yyyy","value":"org9527_org"},
{"alias":"xb","value":"2"}]
}
}
}
}
\ No newline at end of file
[file]
excel=APIAutoTest.xlsx
case=case_data.json
expect=expect_data.json
sql=sql.json
[host]
test_bpm=http://120.46.172.186:8080
[table_name]
table=BPM接口
[sql]
host=120.46.172.186
port=3306
user=root
pwd=root@2023
database=eipsaas
\ No newline at end of file
{
"认证接口":{
"登录系统":{
"LoginSuccess": {"username": "超级管理员","account": "admin"},
"LoginFailUsernameIsNone":{"state": false,"message": "账号或密码错误"},
"LoginFailUsernameIsLong":{"state": false,"message": "账号或密码错误"},
"LoginFailUsernameIsShort":{"state": false,"message": "账号或密码错误"},
"LoginFailUsernameIsSpecialChar":{"state": false,"message": "账号或密码错误"},
"LoginFailUsernameIsError":{"state": false,"message": "账号或密码错误"},
"LoginFailPWDIsNone":{"state": false,"message": "账号或密码错误"},
"LoginFailPWDIsLong":{"state": false,"message": "账号或密码错误"},
"LoginFailPWDIsShort":{"state": false,"message": "账号或密码错误"},
"LoginFailPWDIsSpecial":{"state": false,"message": "账号或密码错误"}
},
"刷新token": {
"RefreshSuccess": {"message": "刷新token成功"}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"state": true, "message": "添加维度成功!"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"state": true, "message": "删除维度成功!"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"state": true, "message": "添加组织成功!"}
},
"删除组织": {
"DeleteOrgSuccess": {"state": true, "message": "删除组织成功!"}
},
"保存组织参数": {
"SaveOrgParamSuccess": {"state": true, "message": "保存组织参数成功!"}
}
}
}
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test_56_env
# FileName: column.py
# Author: xxxxxxx
# Datetime: 2023/8/7 17:27
# Description:
#
# ---------------------------------------------------------------------------
"""excel列号的配置文件"""
MODULE = "b"
API = "C"
TITLE = "D"
LEVEL = "E"
PATH = "F"
METHOD = "G"
MIME = "H"
CASEDATA = "I"
EXPECTDATA = "J"
SQLTYPE = "K"
SQLSENTENCE = "L"
UPDATEKEY = "M"
"""配ini文件中file节点下的key"""
EXCEL = "excel"
CASE = "case"
EXPECT = "expect"
SQL = "sql"
"""配置table_name节点下的key"""
TABLE = "table"
"""配置host节点下的key"""
HOST = "test_bpm"
"""配置sql节点下的key"""
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"select": "SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";",
"delete": "DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";"
}
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
['组织管理', '删除组织', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/org/v1/org/deleteOrg', 'text/plain', 'org9527_org', {'state': True, 'message': '删除组织成功!'}, None, None, None]
断言成功
['组织管理', '添加组织', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/org/v1/org/addOrg', 'application/json', {'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}, {'state': True, 'message': '添加组织成功!'}, 'delete|select', {'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`="org9527";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`="org9527_org";'}, 'demId']
断言成功
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为长', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:38:00--http://120.46.172.186:8080 "POST /api/org/v1/org/deleteOrg HTTP/1.1" 200 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名为空', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': ''}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
['认证接口', '刷新token', '正向用例', '中', 'get', 'http://120.46.172.186:8080/refresh', None, None, {'message': '刷新token成功'}, None, None, None]
断言失败
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /api/demension/v1/dem/addDem HTTP/1.1" 200 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名错误', '中', 'POST', 'http://120.46.172.186:8080/auth', 'json', {'password': 'MTIzNDU2', 'username': 'tomcat'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "GET /refresh HTTP/1.1" 200 None
ERROR--2023-08-10 10:37:59--模块名:认证接口,接口名:刷新token,期望结果:{'message': '刷新token成功'},实际返回结果:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
\ No newline at end of file
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.address` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.automotive`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.automotive` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.bank`.
DEBUG--2023-08-10 10:37:57--Specified locale `en_US` is not available for provider `faker.providers.bank`. Locale reset to `en_GB` for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.barcode`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.barcode` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.color`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.color` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.company`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.company` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.credit_card`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.credit_card` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.currency`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.currency` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.date_time`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.date_time` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.emoji` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.file` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.geo`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.geo` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.internet`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.internet` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.isbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.job`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.job` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.lorem`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.lorem` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.misc`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.misc` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.passport`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.passport` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.person`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.person` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.phone_number`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.phone_number` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.profile` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.python` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.sbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.ssn`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.ssn` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.user_agent` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Starting new HTTP connection (1): 120.46.172.186:8080
DEBUG--2023-08-10 10:37:57--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
DEBUG--2023-08-10 10:37:57--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为特殊字符', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': '▬♦◊◦☼♠♣', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
['认证接口', '登录系统', '反向用例-用户名过短', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': 'a'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
['维度管理', '根据维度编码删除维度', '正向用例', '高', 'DELETE', 'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds', 'query', {'ids': '不知道'}, {'state': True, 'message': '删除维度成功!'}, 'select', 'SELECT ID_ FROM uc_demension WHERE `CODE_`="org9527";', 'ids']
断言成功
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名过长', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:59--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /api/org/v1/org/addOrg HTTP/1.1" 200 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为空', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': '', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:38:00--http://120.46.172.186:8080 "DELETE /api/demension/v1/dem/deleteDemByIds?ids=1689466095531999232 HTTP/1.1" 200 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为过短', '中', 'PoST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': '1', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
['维度管理', '添加维度', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/demension/v1/dem/addDem', 'application/json', {'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}, {'state': True, 'message': '添加维度成功!'}, 'delete', 'DELETE FROM uc_demension WHERE `CODE_`="org9527";', None]
断言成功
['组织管理', '保存组织参数', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams', 'application/json|query', {'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}, {'state': True, 'message': '保存组织参数成功!'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0NzgsImlhdCI6MTY5MTYzNTA3OH0.Djnnmn-4zPFizdOQ4m3fH-zPC8lLmqQGT-cE7bANHSWDr9UH5FBH0oFqWFCRlq_38sOFUHzXPRFxZVik_IOyJA'}
['认证接口', '登录系统', '正向用例', '高', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': 'admin'}, {'username': '超级管理员', 'account': 'admin'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /api/org/v1/orgParam/saveOrgParams?orgCode=org9527_org HTTP/1.1" 200 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名特殊字符', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"BPM系统","组织管理","保存组织参数","0","0","1","0","0"
"BPM系统","组织管理","删除组织","0","0","1","0","0"
"BPM系统","认证接口","登录系统","0","0","10","0","0"
"BPM系统","维度管理","添加维度","0","0","1","0","0"
"BPM系统","认证接口","刷新token","1","0","0","0","0"
"BPM系统","维度管理","根据维度编码删除维度","0","0","1","0","0"
"BPM系统","组织管理","添加组织","0","0","1","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "BPM系统",
"children" : [ {
"name" : "认证接口",
"children" : [ {
"name" : "登录系统",
"children" : [ {
"name" : "正向用例",
"uid" : "14fa8ccecc13b393",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "'高'", "'POST'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "789f0dfecd15ca2e",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "3290337f5a1b09a5",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "84399e0c980ed847",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名特殊字符",
"uid" : "47efd1eb437ca372",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名错误",
"uid" : "99d5713c765c1e16",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tomcat'}", "'中'", "'POST'", "'json'", "'反向用例-用户名错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "a905878d006803b",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为长",
"uid" : "5b4a3d55b390b703",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为过短",
"uid" : "1178e7217e7a98e5",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '1', 'username': 'admin'}", "'中'", "'PoST'", "'application/json'", "'反向用例-密码为过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "2242576883778134",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
} ],
"uid" : "9eb19157a3426d8d3ab7067a14e9167f"
}, {
"name" : "刷新token",
"children" : [ {
"name" : "正向用例",
"uid" : "d52a2c6f1c9b7c6b",
"parentUid" : "a409e3a0b6634abcef404e6df31976c5",
"status" : "failed",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "'中'", "'get'", "None", "'正向用例'", "'http://120.46.172.186:8080/refresh'", "{'message': '刷新token成功'}", "'刷新token'", "'认证接口'", "None", "None", "None" ]
} ],
"uid" : "a409e3a0b6634abcef404e6df31976c5"
} ],
"uid" : "daf4a81c8500143ac26c740652b2737a"
}, {
"name" : "维度管理",
"children" : [ {
"name" : "添加维度",
"children" : [ {
"name" : "正向用例",
"uid" : "231e5d11a00c3399",
"parentUid" : "3b95457e3dff05384511589b8078699c",
"status" : "passed",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'添加维度'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'delete'", "None" ]
} ],
"uid" : "3b95457e3dff05384511589b8078699c"
}, {
"name" : "根据维度编码删除维度",
"children" : [ {
"name" : "正向用例",
"uid" : "f243ef36f0a3d056",
"parentUid" : "44927dd409a65c91904e4c3a6b3c1d86",
"status" : "passed",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "'高'", "'DELETE'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'", "{'state': True, 'message': '删除维度成功!'}", "'根据维度编码删除维度'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'select'", "'ids'" ]
} ],
"uid" : "44927dd409a65c91904e4c3a6b3c1d86"
} ],
"uid" : "f491e726ab090b27f6eb774a22fe1587"
}, {
"name" : "组织管理",
"children" : [ {
"name" : "添加组织",
"children" : [ {
"name" : "正向用例",
"uid" : "ff39291f22dd4365",
"parentUid" : "3d6644ef5d3e8c0186c93f4d11d89bd9",
"status" : "passed",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': True, 'message': '添加组织成功!'}", "'添加组织'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}", "'delete|select'", "'demId'" ]
} ],
"uid" : "3d6644ef5d3e8c0186c93f4d11d89bd9"
}, {
"name" : "保存组织参数",
"children" : [ {
"name" : "正向用例",
"uid" : "3901a8305e215cbb",
"parentUid" : "778600cb26b8f8f7203250b2d93427cd",
"status" : "passed",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}", "'高'", "'post'", "'application/json|query'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'", "{'state': True, 'message': '保存组织参数成功!'}", "'保存组织参数'", "'组织管理'", "None", "None", "None" ]
} ],
"uid" : "778600cb26b8f8f7203250b2d93427cd"
}, {
"name" : "删除组织",
"children" : [ {
"name" : "正向用例",
"uid" : "966ffd10d9a9fd65",
"parentUid" : "90ce342b686b1926c1d90c881fb5b7b0",
"status" : "passed",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'org9527_org'", "'高'", "'post'", "'text/plain'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'", "{'state': True, 'message': '删除组织成功!'}", "'删除组织'", "'组织管理'", "None", "None", "None" ]
} ],
"uid" : "90ce342b686b1926c1d90c881fb5b7b0"
} ],
"uid" : "ef3f7033cd07ff8e9e952819ec88f312"
} ],
"uid" : "f2ae4690c9b2f3df492f4f543cc9c7a2"
} ]
}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Product defects","1","0","0","0","0"
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ {
"name" : "Product defects",
"children" : [ {
"name" : "AssertionError: 断言失败",
"children" : [ {
"name" : "正向用例",
"uid" : "d52a2c6f1c9b7c6b",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "'中'", "'get'", "None", "'正向用例'", "'http://120.46.172.186:8080/refresh'", "{'message': '刷新token成功'}", "'刷新token'", "'认证接口'", "None", "None", "None" ]
} ],
"uid" : "19135fd4a1c65086de1dc2a02ed9d4e0"
} ],
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d"
} ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "正向用例",
"uid" : "14fa8ccecc13b393",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "'高'", "'POST'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "789f0dfecd15ca2e",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "3290337f5a1b09a5",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "84399e0c980ed847",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名特殊字符",
"uid" : "47efd1eb437ca372",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名错误",
"uid" : "99d5713c765c1e16",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tomcat'}", "'中'", "'POST'", "'json'", "'反向用例-用户名错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "a905878d006803b",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为长",
"uid" : "5b4a3d55b390b703",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为过短",
"uid" : "1178e7217e7a98e5",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '1', 'username': 'admin'}", "'中'", "'PoST'", "'application/json'", "'反向用例-密码为过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "2242576883778134",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "d52a2c6f1c9b7c6b",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "failed",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "'中'", "'get'", "None", "'正向用例'", "'http://120.46.172.186:8080/refresh'", "{'message': '刷新token成功'}", "'刷新token'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "231e5d11a00c3399",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'添加维度'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'delete'", "None" ]
}, {
"name" : "正向用例",
"uid" : "ff39291f22dd4365",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': True, 'message': '添加组织成功!'}", "'添加组织'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}", "'delete|select'", "'demId'" ]
}, {
"name" : "正向用例",
"uid" : "3901a8305e215cbb",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}", "'高'", "'post'", "'application/json|query'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'", "{'state': True, 'message': '保存组织参数成功!'}", "'保存组织参数'", "'组织管理'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "966ffd10d9a9fd65",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'org9527_org'", "'高'", "'post'", "'text/plain'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'", "{'state': True, 'message': '删除组织成功!'}", "'删除组织'", "'组织管理'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "f243ef36f0a3d056",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "'高'", "'DELETE'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'", "{'state': True, 'message': '删除维度成功!'}", "'根据维度编码删除维度'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'select'", "'ids'" ]
} ],
"uid" : "4a32e30797efccc00725261109ae2af4"
} ]
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Thu Aug 10 10:37:59 CST 2023","Thu Aug 10 10:37:59 CST 2023","76","","test_bpm","TestBPM","","","正向用例",""
"passed","Thu Aug 10 10:37:59 CST 2023","Thu Aug 10 10:38:00 CST 2023","94","","test_bpm","TestBPM","","","正向用例",""
"passed","Thu Aug 10 10:37:59 CST 2023","Thu Aug 10 10:37:59 CST 2023","103","","test_bpm","TestBPM","","","反向用例-密码为特殊字符",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","97","","test_bpm","TestBPM","","","反向用例-用户名过长",""
"passed","Thu Aug 10 10:37:59 CST 2023","Thu Aug 10 10:37:59 CST 2023","142","","test_bpm","TestBPM","","","正向用例",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","104","","test_bpm","TestBPM","","","反向用例-密码为空",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","102","","test_bpm","TestBPM","","","反向用例-用户名错误",""
"passed","Thu Aug 10 10:37:57 CST 2023","Thu Aug 10 10:37:58 CST 2023","60","","test_bpm","TestBPM","","","正向用例",""
"failed","Thu Aug 10 10:37:59 CST 2023","Thu Aug 10 10:37:59 CST 2023","102","","test_bpm","TestBPM","","","正向用例",""
"passed","Thu Aug 10 10:38:00 CST 2023","Thu Aug 10 10:38:00 CST 2023","100","","test_bpm","TestBPM","","","正向用例",""
"passed","Thu Aug 10 10:37:59 CST 2023","Thu Aug 10 10:37:59 CST 2023","184","","test_bpm","TestBPM","","","正向用例",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","101","","test_bpm","TestBPM","","","反向用例-用户名过短",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","110","","test_bpm","TestBPM","","","反向用例-密码为长",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","104","","test_bpm","TestBPM","","","反向用例-密码为过短",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","101","","test_bpm","TestBPM","","","反向用例-用户名特殊字符",""
"passed","Thu Aug 10 10:37:58 CST 2023","Thu Aug 10 10:37:58 CST 2023","54","","test_bpm","TestBPM","","","反向用例-用户名为空",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBPM",
"children" : [ {
"name" : "正向用例",
"uid" : "14fa8ccecc13b393",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "'高'", "'POST'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "789f0dfecd15ca2e",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "3290337f5a1b09a5",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "84399e0c980ed847",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名特殊字符",
"uid" : "47efd1eb437ca372",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名错误",
"uid" : "99d5713c765c1e16",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tomcat'}", "'中'", "'POST'", "'json'", "'反向用例-用户名错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "a905878d006803b",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为长",
"uid" : "5b4a3d55b390b703",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为过短",
"uid" : "1178e7217e7a98e5",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '1', 'username': 'admin'}", "'中'", "'PoST'", "'application/json'", "'反向用例-密码为过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "2242576883778134",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "d52a2c6f1c9b7c6b",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "failed",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "'中'", "'get'", "None", "'正向用例'", "'http://120.46.172.186:8080/refresh'", "{'message': '刷新token成功'}", "'刷新token'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "231e5d11a00c3399",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'添加维度'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'delete'", "None" ]
}, {
"name" : "正向用例",
"uid" : "ff39291f22dd4365",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': True, 'message': '添加组织成功!'}", "'添加组织'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}", "'delete|select'", "'demId'" ]
}, {
"name" : "正向用例",
"uid" : "3901a8305e215cbb",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}", "'高'", "'post'", "'application/json|query'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'", "{'state': True, 'message': '保存组织参数成功!'}", "'保存组织参数'", "'组织管理'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "966ffd10d9a9fd65",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'org9527_org'", "'高'", "'post'", "'text/plain'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'", "{'state': True, 'message': '删除组织成功!'}", "'删除组织'", "'组织管理'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "f243ef36f0a3d056",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "'高'", "'DELETE'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'", "{'state': True, 'message': '删除维度成功!'}", "'根据维度编码删除维度'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'select'", "'ids'" ]
} ],
"uid" : "9e2149d4e33ad22996308efb2c8b042b"
} ],
"uid" : "10f50a925462c4c85491656d24b32ac1"
} ]
}
\ No newline at end of file
{
"uid" : "1178e7217e7a98e5",
"name" : "反向用例-密码为过短",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "83e10138e8696fcd60b1d14409f900db",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "bde77ca4a3715bea",
"name" : "log",
"source" : "bde77ca4a3715bea.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "d66a52510ca9ab55",
"name" : "stdout",
"source" : "d66a52510ca9ab55.txt",
"type" : "text/plain",
"size" : 260
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': '1', 'username': 'admin'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'PoST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-密码为过短'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "1178e7217e7a98e5.json",
"parameterValues" : [ "{'password': '1', 'username': 'admin'}", "'中'", "'PoST'", "'application/json'", "'反向用例-密码为过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "14fa8ccecc13b393",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "5c261ca5565213ec9d8e29310e66f8d4",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "9bab45225f0cdc5b",
"name" : "log",
"source" : "9bab45225f0cdc5b.txt",
"type" : "text/plain",
"size" : 5166
}, {
"uid" : "f248729206ef6fb5",
"name" : "stdout",
"source" : "f248729206ef6fb5.txt",
"type" : "text/plain",
"size" : 595
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'admin'}"
}, {
"name" : "case_level",
"value" : "'高'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'username': '超级管理员', 'account': 'admin'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "14fa8ccecc13b393.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "'高'", "'POST'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "2242576883778134",
"name" : "反向用例-密码为特殊字符",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "75b76b4437740df01db7c96e0de709c5",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "b55ad0ac3058a8ea",
"name" : "log",
"source" : "b55ad0ac3058a8ea.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "a106e99acc1c0955",
"name" : "stdout",
"source" : "a106e99acc1c0955.txt",
"type" : "text/plain",
"size" : 286
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-密码为特殊字符'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "2242576883778134.json",
"parameterValues" : [ "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "231e5d11a00c3399",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "11b3198ea80c0768156f2264b92baad6",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "84dd505d8d9a17fa",
"name" : "log",
"source" : "84dd505d8d9a17fa.txt",
"type" : "text/plain",
"size" : 117
}, {
"uid" : "dc526157bc485eb6",
"name" : "stdout",
"source" : "dc526157bc485eb6.txt",
"type" : "text/plain",
"size" : 359
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}"
}, {
"name" : "case_level",
"value" : "'高'"
}, {
"name" : "case_method",
"value" : "'post'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "interface_name",
"value" : "'添加维度'"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_sentence",
"value" : "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "231e5d11a00c3399.json",
"parameterValues" : [ "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'添加维度'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'delete'", "None" ]
}
\ No newline at end of file
{
"uid" : "3290337f5a1b09a5",
"name" : "反向用例-用户名过长",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "029d0cb26cf1355b67215299abe80819",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "7a8587f3a34ec561",
"name" : "log",
"source" : "7a8587f3a34ec561.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "b324e9a25d62900d",
"name" : "stdout",
"source" : "b324e9a25d62900d.txt",
"type" : "text/plain",
"size" : 307
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-用户名过长'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "3290337f5a1b09a5.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "3901a8305e215cbb",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "94129190394b3438ee642080282c0ce4",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "f2a5480ece0122b2",
"name" : "log",
"source" : "f2a5480ece0122b2.txt",
"type" : "text/plain",
"size" : 143
}, {
"uid" : "e278a3ca5f7d4d0",
"name" : "stdout",
"source" : "e278a3ca5f7d4d0.txt",
"type" : "text/plain",
"size" : 522
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "保存组织参数"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}"
}, {
"name" : "case_level",
"value" : "'高'"
}, {
"name" : "case_method",
"value" : "'post'"
}, {
"name" : "case_mime",
"value" : "'application/json|query'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '保存组织参数成功!'}"
}, {
"name" : "interface_name",
"value" : "'保存组织参数'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "3901a8305e215cbb.json",
"parameterValues" : [ "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}", "'高'", "'post'", "'application/json|query'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'", "{'state': True, 'message': '保存组织参数成功!'}", "'保存组织参数'", "'组织管理'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "47efd1eb437ca372",
"name" : "反向用例-用户名特殊字符",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "8d36027676b90d90e66aca99540b7c4d",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "dc04e9ec6df0ce1",
"name" : "log",
"source" : "dc04e9ec6df0ce1.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "fec5ae8e75eab575",
"name" : "stdout",
"source" : "fec5ae8e75eab575.txt",
"type" : "text/plain",
"size" : 289
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-用户名特殊字符'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "47efd1eb437ca372.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "5b4a3d55b390b703",
"name" : "反向用例-密码为长",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "d5cfe05fd2d42c716f3cc25ea0dde07a",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "205659ecdf3a5320",
"name" : "log",
"source" : "205659ecdf3a5320.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "35410aa4859ec55e",
"name" : "stdout",
"source" : "35410aa4859ec55e.txt",
"type" : "text/plain",
"size" : 304
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-密码为长'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5b4a3d55b390b703.json",
"parameterValues" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "789f0dfecd15ca2e",
"name" : "反向用例-用户名为空",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "3e0933b56a69f8edd6fabcdb5759b0e5",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "e43190f5325026d7",
"name" : "log",
"source" : "e43190f5325026d7.txt",
"type" : "text/plain",
"size" : 94
}, {
"uid" : "5def6c974e42e338",
"name" : "stdout",
"source" : "5def6c974e42e338.txt",
"type" : "text/plain",
"size" : 262
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': ''}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-用户名为空'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "789f0dfecd15ca2e.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': ''}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "84399e0c980ed847",
"name" : "反向用例-用户名过短",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "07bc1a63f23bc973cace5d61f66ac049",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "96a2f5779e206930",
"name" : "log",
"source" : "96a2f5779e206930.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "a678830c8bca5f97",
"name" : "stdout",
"source" : "a678830c8bca5f97.txt",
"type" : "text/plain",
"size" : 263
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'a'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-用户名过短'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "84399e0c980ed847.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "966ffd10d9a9fd65",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "c5f12d1447c0dcba5de295292448112f",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "3aacadd3110e6da0",
"name" : "log",
"source" : "3aacadd3110e6da0.txt",
"type" : "text/plain",
"size" : 114
}, {
"uid" : "17c3d84aa7ee5f94",
"name" : "stdout",
"source" : "17c3d84aa7ee5f94.txt",
"type" : "text/plain",
"size" : 232
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "删除组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "'org9527_org'"
}, {
"name" : "case_level",
"value" : "'高'"
}, {
"name" : "case_method",
"value" : "'post'"
}, {
"name" : "case_mime",
"value" : "'text/plain'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "interface_name",
"value" : "'删除组织'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "966ffd10d9a9fd65.json",
"parameterValues" : [ "'org9527_org'", "'高'", "'post'", "'text/plain'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'", "{'state': True, 'message': '删除组织成功!'}", "'删除组织'", "'组织管理'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "99d5713c765c1e16",
"name" : "反向用例-用户名错误",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "404e1d6c83c506c2cefbbd9584f4579c",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "33dc5f1a4261c60",
"name" : "log",
"source" : "33dc5f1a4261c60.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "8bafddab1f77ffce",
"name" : "stdout",
"source" : "8bafddab1f77ffce.txt",
"type" : "text/plain",
"size" : 256
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'tomcat'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'json'"
}, {
"name" : "case_title",
"value" : "'反向用例-用户名错误'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "99d5713c765c1e16.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'tomcat'}", "'中'", "'POST'", "'json'", "'反向用例-用户名错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "a905878d006803b",
"name" : "反向用例-密码为空",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "8b6f42cc3d28853cd70fd8dbd847d81e",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "b29fc0285d66113e",
"name" : "log",
"source" : "b29fc0285d66113e.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "d2f2daa65392e003",
"name" : "stdout",
"source" : "d2f2daa65392e003.txt",
"type" : "text/plain",
"size" : 256
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': '', 'username': 'admin'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'POST'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'反向用例-密码为空'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/auth'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "interface_name",
"value" : "'登录系统'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a905878d006803b.json",
"parameterValues" : [ "{'password': '', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "d52a2c6f1c9b7c6b",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "34a095b4fd7d8fb5d23827cf26cd98fd",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <My_APIAuto_demo.test_case.test_bpm.TestBPM object at 0x000001FC3AF2BAD0>\nrep_fix = <My_APIAuto_demo.requests_method.requests_method.RequestMethod object at 0x000001FC3A7F8110>\ndb_fix = <My_APIAuto_demo.common.db.DB object at 0x000001FC3AFF6790>, module_name = '认证接口', interface_name = '刷新token'\ncase_title = '正向用例', case_level = '中', case_method = 'get', case_url = 'http://120.46.172.186:8080/refresh', case_mime = None\ncase_data = None, expect_data = {'message': '刷新token成功'}, sql_type = None, sql_sentence = None, update_key = None\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key\",ReadExcel().get_data())\n def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):\n print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])\n allure.dynamic.feature(module_name)\n allure.dynamic.story(interface_name)\n allure.dynamic.title(case_title)\n allure.dynamic.severity(case_level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)\n \n try:\n for key in expect_data:\n> assert expect_data[key] == result.json().get(key)\nE AssertionError: assert '刷新token成功' == None\nE + where None = <built-in method get of dict object at 0x000001FC3AFF7A00>('message')\nE + where <built-in method get of dict object at 0x000001FC3AFF7A00> = {'account': '', 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg', 'userAttrs': {}, ...}.get\nE + where {'account': '', 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg', 'userAttrs': {}, ...} = <bound method Response.json of <Response [200]>>()\nE + where <bound method Response.json of <Response [200]>> = <Response [200]>.json\n\ntest_bpm.py:44: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <My_APIAuto_demo.test_case.test_bpm.TestBPM object at 0x000001FC3AF2BAD0>\nrep_fix = <My_APIAuto_demo.requests_method.requests_method.RequestMethod object at 0x000001FC3A7F8110>\ndb_fix = <My_APIAuto_demo.common.db.DB object at 0x000001FC3AFF6790>, module_name = '认证接口', interface_name = '刷新token'\ncase_title = '正向用例', case_level = '中', case_method = 'get', case_url = 'http://120.46.172.186:8080/refresh', case_mime = None\ncase_data = None, expect_data = {'message': '刷新token成功'}, sql_type = None, sql_sentence = None, update_key = None\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key\",ReadExcel().get_data())\n def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):\n print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])\n allure.dynamic.feature(module_name)\n allure.dynamic.story(interface_name)\n allure.dynamic.title(case_title)\n allure.dynamic.severity(case_level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)\n \n try:\n for key in expect_data:\n assert expect_data[key] == result.json().get(key)\n except:\n print(\"断言失败\")\n logging.error(f\"模块名:{module_name},接口名:{interface_name},期望结果:{expect_data},实际返回结果:{result.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_bpm.py:48: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <My_APIAuto_demo.test_case.test_bpm.TestBPM object at 0x000001FC3AF2BAD0>\nrep_fix = <My_APIAuto_demo.requests_method.requests_method.RequestMethod object at 0x000001FC3A7F8110>\ndb_fix = <My_APIAuto_demo.common.db.DB object at 0x000001FC3AFF6790>, module_name = '认证接口', interface_name = '刷新token'\ncase_title = '正向用例', case_level = '中', case_method = 'get', case_url = 'http://120.46.172.186:8080/refresh', case_mime = None\ncase_data = None, expect_data = {'message': '刷新token成功'}, sql_type = None, sql_sentence = None, update_key = None\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key\",ReadExcel().get_data())\n def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):\n print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])\n allure.dynamic.feature(module_name)\n allure.dynamic.story(interface_name)\n allure.dynamic.title(case_title)\n allure.dynamic.severity(case_level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)\n \n try:\n for key in expect_data:\n> assert expect_data[key] == result.json().get(key)\nE AssertionError: assert '刷新token成功' == None\nE + where None = <built-in method get of dict object at 0x000001FC3AFF7A00>('message')\nE + where <built-in method get of dict object at 0x000001FC3AFF7A00> = {'account': '', 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg', 'userAttrs': {}, ...}.get\nE + where {'account': '', 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg', 'userAttrs': {}, ...} = <bound method Response.json of <Response [200]>>()\nE + where <bound method Response.json of <Response [200]>> = <Response [200]>.json\n\ntest_bpm.py:44: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <My_APIAuto_demo.test_case.test_bpm.TestBPM object at 0x000001FC3AF2BAD0>\nrep_fix = <My_APIAuto_demo.requests_method.requests_method.RequestMethod object at 0x000001FC3A7F8110>\ndb_fix = <My_APIAuto_demo.common.db.DB object at 0x000001FC3AFF6790>, module_name = '认证接口', interface_name = '刷新token'\ncase_title = '正向用例', case_level = '中', case_method = 'get', case_url = 'http://120.46.172.186:8080/refresh', case_mime = None\ncase_data = None, expect_data = {'message': '刷新token成功'}, sql_type = None, sql_sentence = None, update_key = None\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key\",ReadExcel().get_data())\n def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):\n print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])\n allure.dynamic.feature(module_name)\n allure.dynamic.story(interface_name)\n allure.dynamic.title(case_title)\n allure.dynamic.severity(case_level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)\n \n try:\n for key in expect_data:\n assert expect_data[key] == result.json().get(key)\n except:\n print(\"断言失败\")\n logging.error(f\"模块名:{module_name},接口名:{interface_name},期望结果:{expect_data},实际返回结果:{result.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_bpm.py:48: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "9aad4d578854ba0e",
"name" : "log",
"source" : "9aad4d578854ba0e.txt",
"type" : "text/plain",
"size" : 624
}, {
"uid" : "66fdf32043cec253",
"name" : "stdout",
"source" : "66fdf32043cec253.txt",
"type" : "text/plain",
"size" : 177
} ],
"parameters" : [ ],
"shouldDisplayMessage" : true,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'get'"
}, {
"name" : "case_mime",
"value" : "None"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/refresh'"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功'}"
}, {
"name" : "interface_name",
"value" : "'刷新token'"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "d52a2c6f1c9b7c6b.json",
"parameterValues" : [ "None", "'中'", "'get'", "None", "'正向用例'", "'http://120.46.172.186:8080/refresh'", "{'message': '刷新token成功'}", "'刷新token'", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "f243ef36f0a3d056",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "0f19ec3484065ac7cfb756b54964806a",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "d52e7ee95beb8dc",
"name" : "log",
"source" : "d52e7ee95beb8dc.txt",
"type" : "text/plain",
"size" : 151
}, {
"uid" : "ae6353fca685820e",
"name" : "stdout",
"source" : "ae6353fca685820e.txt",
"type" : "text/plain",
"size" : 321
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码删除维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'ids': '不知道'}"
}, {
"name" : "case_level",
"value" : "'高'"
}, {
"name" : "case_method",
"value" : "'DELETE'"
}, {
"name" : "case_mime",
"value" : "'query'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "interface_name",
"value" : "'根据维度编码删除维度'"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_sentence",
"value" : "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'"
}, {
"name" : "sql_type",
"value" : "'select'"
}, {
"name" : "update_key",
"value" : "'ids'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "f243ef36f0a3d056.json",
"parameterValues" : [ "{'ids': '不知道'}", "'高'", "'DELETE'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'", "{'state': True, 'message': '删除维度成功!'}", "'根据维度编码删除维度'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'select'", "'ids'" ]
}
\ No newline at end of file
{
"uid" : "ff39291f22dd4365",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "8ed9144af8f0fc0929ee750c5c060b15",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "rep_fix",
"time" : {
"start" : 1691635077620,
"stop" : 1691635077725,
"duration" : 105
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix",
"time" : {
"start" : 1691635077725,
"stop" : 1691635077932,
"duration" : 207
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691635077279,
"stop" : 1691635077620,
"duration" : 341
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "d2669caa0174f867",
"name" : "log",
"source" : "d2669caa0174f867.txt",
"type" : "text/plain",
"size" : 111
}, {
"uid" : "1a0d540a315c6324",
"name" : "stdout",
"source" : "1a0d540a315c6324.txt",
"type" : "text/plain",
"size" : 526
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 2,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "rep_fix::0",
"time" : {
"start" : 1691635080218,
"stop" : 1691635080218,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
}, {
"name" : "db_fix::0",
"time" : {
"start" : 1691635080214,
"stop" : 1691635080215,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "添加组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "20856-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"
}, {
"name" : "case_level",
"value" : "'高'"
}, {
"name" : "case_method",
"value" : "'post'"
}, {
"name" : "case_mime",
"value" : "'application/json'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加组织成功!'}"
}, {
"name" : "interface_name",
"value" : "'添加组织'"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_sentence",
"value" : "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}"
}, {
"name" : "sql_type",
"value" : "'delete|select'"
}, {
"name" : "update_key",
"value" : "'demId'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "ff39291f22dd4365.json",
"parameterValues" : [ "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': True, 'message': '添加组织成功!'}", "'添加组织'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}", "'delete|select'", "'demId'" ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "DESKTOP-4FFIKGU",
"children" : [ {
"name" : "20856-MainThread",
"children" : [ {
"name" : "反向用例-密码为特殊字符",
"uid" : "2242576883778134",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为过短",
"uid" : "1178e7217e7a98e5",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '1', 'username': 'admin'}", "'中'", "'PoST'", "'application/json'", "'反向用例-密码为过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "d52a2c6f1c9b7c6b",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "failed",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "'中'", "'get'", "None", "'正向用例'", "'http://120.46.172.186:8080/refresh'", "{'message': '刷新token成功'}", "'刷新token'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名特殊字符",
"uid" : "47efd1eb437ca372",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名特殊字符'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "789f0dfecd15ca2e",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "ff39291f22dd4365",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': True, 'message': '添加组织成功!'}", "'添加组织'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}", "'delete|select'", "'demId'" ]
}, {
"name" : "正向用例",
"uid" : "f243ef36f0a3d056",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "'高'", "'DELETE'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'", "{'state': True, 'message': '删除维度成功!'}", "'根据维度编码删除维度'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'select'", "'ids'" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "84399e0c980ed847",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过短'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为长",
"uid" : "5b4a3d55b390b703",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名错误",
"uid" : "99d5713c765c1e16",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tomcat'}", "'中'", "'POST'", "'json'", "'反向用例-用户名错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "14fa8ccecc13b393",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "'高'", "'POST'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "231e5d11a00c3399",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}", "'高'", "'post'", "'application/json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'添加维度'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'", "'delete'", "None" ]
}, {
"name" : "正向用例",
"uid" : "3901a8305e215cbb",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}", "'高'", "'post'", "'application/json|query'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'", "{'state': True, 'message': '保存组织参数成功!'}", "'保存组织参数'", "'组织管理'", "None", "None", "None" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "a905878d006803b",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "'中'", "'POST'", "'application/json'", "'反向用例-密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "966ffd10d9a9fd65",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'org9527_org'", "'高'", "'post'", "'text/plain'", "'正向用例'", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'", "{'state': True, 'message': '删除组织成功!'}", "'删除组织'", "'组织管理'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "3290337f5a1b09a5",
"parentUid" : "22c507a0177c10da5338d826b60324b7",
"status" : "passed",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}", "'中'", "'POST'", "'application/json'", "'反向用例-用户名过长'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'登录系统'", "'认证接口'", "None", "None", "None" ]
} ],
"uid" : "22c507a0177c10da5338d826b60324b7"
} ],
"uid" : "f73be692ef2b065133063b476e3099eb"
} ]
}
\ No newline at end of file
launch_status failed=1 1691635190000000000
launch_status broken=0 1691635190000000000
launch_status passed=15 1691635190000000000
launch_status skipped=0 1691635190000000000
launch_status unknown=0 1691635190000000000
launch_time duration=2246 1691635190000000000
launch_time min_duration=54 1691635190000000000
launch_time max_duration=184 1691635190000000000
launch_time sum_duration=1634 1691635190000000000
launch_problems product_defects=1 1691635190000000000
launch_retries retries=0 1691635190000000000
launch_retries run=16 1691635190000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 1
launch_status_broken 0
launch_status_passed 15
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 2246
launch_time_min_duration 54
launch_time_max_duration 184
launch_time_sum_duration 1634
launch_problems_product_defects 1
launch_retries_retries 0
launch_retries_run 16
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
"data" : {
"Product defects" : 1
}
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 2246
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 16
}
} ]
\ No newline at end of file
{
"029d0cb26cf1355b67215299abe80819" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "3290337f5a1b09a5",
"status" : "passed",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
}
} ]
},
"3e0933b56a69f8edd6fabcdb5759b0e5" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "789f0dfecd15ca2e",
"status" : "passed",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
}
} ]
},
"07bc1a63f23bc973cace5d61f66ac049" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "84399e0c980ed847",
"status" : "passed",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
}
} ]
},
"8ed9144af8f0fc0929ee750c5c060b15" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "ff39291f22dd4365",
"status" : "passed",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
}
} ]
},
"0f19ec3484065ac7cfb756b54964806a" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "f243ef36f0a3d056",
"status" : "passed",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
}
} ]
},
"34a095b4fd7d8fb5d23827cf26cd98fd" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "d52a2c6f1c9b7c6b",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
}
} ]
},
"8b6f42cc3d28853cd70fd8dbd847d81e" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a905878d006803b",
"status" : "passed",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
}
} ]
},
"5c261ca5565213ec9d8e29310e66f8d4" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "14fa8ccecc13b393",
"status" : "passed",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
}
} ]
},
"d5cfe05fd2d42c716f3cc25ea0dde07a" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5b4a3d55b390b703",
"status" : "passed",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
}
} ]
},
"83e10138e8696fcd60b1d14409f900db" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "1178e7217e7a98e5",
"status" : "passed",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
}
} ]
},
"11b3198ea80c0768156f2264b92baad6" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "231e5d11a00c3399",
"status" : "passed",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
}
} ]
},
"8d36027676b90d90e66aca99540b7c4d" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "47efd1eb437ca372",
"status" : "passed",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
}
} ]
},
"c5f12d1447c0dcba5de295292448112f" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "966ffd10d9a9fd65",
"status" : "passed",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
}
} ]
},
"94129190394b3438ee642080282c0ce4" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "3901a8305e215cbb",
"status" : "passed",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
}
} ]
},
"75b76b4437740df01db7c96e0de709c5" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "2242576883778134",
"status" : "passed",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
}
} ]
},
"404e1d6c83c506c2cefbbd9584f4579c" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "99d5713c765c1e16",
"status" : "passed",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 16,
"retry" : 0
}
} ]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"total" : 1,
"items" : [ {
"uid" : "f2ae4690c9b2f3df492f4f543cc9c7a2",
"name" : "BPM系统",
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"Product defects" : 1
}
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d",
"name" : "Product defects",
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 2246
}
} ]
\ No newline at end of file
[ {
"uid" : "3901a8305e215cbb",
"name" : "正向用例",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "966ffd10d9a9fd65",
"name" : "正向用例",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2242576883778134",
"name" : "反向用例-密码为特殊字符",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3290337f5a1b09a5",
"name" : "反向用例-用户名过长",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "231e5d11a00c3399",
"name" : "正向用例",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a905878d006803b",
"name" : "反向用例-密码为空",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "99d5713c765c1e16",
"name" : "反向用例-用户名错误",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "14fa8ccecc13b393",
"name" : "正向用例",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d52a2c6f1c9b7c6b",
"name" : "正向用例",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "f243ef36f0a3d056",
"name" : "正向用例",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ff39291f22dd4365",
"name" : "正向用例",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "84399e0c980ed847",
"name" : "反向用例-用户名过短",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5b4a3d55b390b703",
"name" : "反向用例-密码为长",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1178e7217e7a98e5",
"name" : "反向用例-密码为过短",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "47efd1eb437ca372",
"name" : "反向用例-用户名特殊字符",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "789f0dfecd15ca2e",
"name" : "反向用例-用户名为空",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 16
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 16,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "a905878d006803b",
"name" : "反向用例-密码为空",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ff39291f22dd4365",
"name" : "正向用例",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "84399e0c980ed847",
"name" : "反向用例-用户名过短",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5b4a3d55b390b703",
"name" : "反向用例-密码为长",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3290337f5a1b09a5",
"name" : "反向用例-用户名过长",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "14fa8ccecc13b393",
"name" : "正向用例",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "231e5d11a00c3399",
"name" : "正向用例",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "99d5713c765c1e16",
"name" : "反向用例-用户名错误",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2242576883778134",
"name" : "反向用例-密码为特殊字符",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3901a8305e215cbb",
"name" : "正向用例",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "47efd1eb437ca372",
"name" : "反向用例-用户名特殊字符",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "f243ef36f0a3d056",
"name" : "正向用例",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "966ffd10d9a9fd65",
"name" : "正向用例",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1178e7217e7a98e5",
"name" : "反向用例-密码为过短",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "789f0dfecd15ca2e",
"name" : "反向用例-用户名为空",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d52a2c6f1c9b7c6b",
"name" : "正向用例",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"status" : "failed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "3901a8305e215cbb",
"name" : "正向用例",
"time" : {
"start" : 1691635079868,
"stop" : 1691635079944,
"duration" : 76
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "966ffd10d9a9fd65",
"name" : "正向用例",
"time" : {
"start" : 1691635079966,
"stop" : 1691635080060,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "2242576883778134",
"name" : "反向用例-密码为特殊字符",
"time" : {
"start" : 1691635079005,
"stop" : 1691635079108,
"duration" : 103
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "3290337f5a1b09a5",
"name" : "反向用例-用户名过长",
"time" : {
"start" : 1691635078103,
"stop" : 1691635078200,
"duration" : 97
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "231e5d11a00c3399",
"name" : "正向用例",
"time" : {
"start" : 1691635079503,
"stop" : 1691635079645,
"duration" : 142
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a905878d006803b",
"name" : "反向用例-密码为空",
"time" : {
"start" : 1691635078613,
"stop" : 1691635078717,
"duration" : 104
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "99d5713c765c1e16",
"name" : "反向用例-用户名错误",
"time" : {
"start" : 1691635078479,
"stop" : 1691635078581,
"duration" : 102
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "14fa8ccecc13b393",
"name" : "正向用例",
"time" : {
"start" : 1691635077945,
"stop" : 1691635078005,
"duration" : 60
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d52a2c6f1c9b7c6b",
"name" : "正向用例",
"time" : {
"start" : 1691635079129,
"stop" : 1691635079231,
"duration" : 102
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "f243ef36f0a3d056",
"name" : "正向用例",
"time" : {
"start" : 1691635080091,
"stop" : 1691635080191,
"duration" : 100
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ff39291f22dd4365",
"name" : "正向用例",
"time" : {
"start" : 1691635079663,
"stop" : 1691635079847,
"duration" : 184
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "84399e0c980ed847",
"name" : "反向用例-用户名过短",
"time" : {
"start" : 1691635078221,
"stop" : 1691635078322,
"duration" : 101
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5b4a3d55b390b703",
"name" : "反向用例-密码为长",
"time" : {
"start" : 1691635078740,
"stop" : 1691635078850,
"duration" : 110
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1178e7217e7a98e5",
"name" : "反向用例-密码为过短",
"time" : {
"start" : 1691635078875,
"stop" : 1691635078979,
"duration" : 104
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "47efd1eb437ca372",
"name" : "反向用例-用户名特殊字符",
"time" : {
"start" : 1691635078351,
"stop" : 1691635078452,
"duration" : 101
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "789f0dfecd15ca2e",
"name" : "反向用例-用户名为空",
"time" : {
"start" : 1691635078029,
"stop" : 1691635078083,
"duration" : 54
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "10f50a925462c4c85491656d24b32ac1",
"name" : "test_bpm",
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 16
}
} ]
}
\ No newline at end of file
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 15,
"unknown" : 0,
"total" : 16
},
"time" : {
"start" : 1691635077945,
"stop" : 1691635080191,
"duration" : 2246,
"minDuration" : 54,
"maxDuration" : 184,
"sumDuration" : 1634
}
}
\ No newline at end of file
{"uuid": "360f3713-e701-4da1-a597-e9dd69545ccd", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078462}
\ No newline at end of file
{"uuid": "f476f3a1-9b02-4d67-9db5-21e87eec57e9", "befores": [{"name": "case_title", "status": "passed", "start": 1691635079001, "stop": 1691635079001}], "start": 1691635079001, "stop": 1691635079119}
\ No newline at end of file
{"uuid": "063edcc2-5327-46d3-84f1-64c20716b78c", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635079129, "stop": 1691635079129}], "start": 1691635079129, "stop": 1691635079477}
\ No newline at end of file
['组织管理', '添加组织', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/org/v1/org/addOrg', 'application/json', {'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}, {'state': True, 'message': '添加组织成功!'}, 'delete|select', {'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`="org9527";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`="org9527_org";'}, 'demId']
断言成功
{"uuid": "5f0e5e4d-0b80-4b48-be8f-4a1f1e3a2604", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635079002, "stop": 1691635079002}], "start": 1691635079002, "stop": 1691635079117}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "24ea299e-6e94-49c3-8ae0-b0af13bd2f1d-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "0335b236-0f12-4b8c-b37e-c42d9a3ffdd2-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "interface_name", "value": "'添加组织'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_method", "value": "'post'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'org9527_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': 'org9527的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'delete|select'"}, {"name": "sql_sentence", "value": "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"org9527_org\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1691635079663, "stop": 1691635079847, "uuid": "aa310598-4c5d-4f00-a882-426cf0c2b9ec", "historyId": "8ed9144af8f0fc0929ee750c5c060b15", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "681a85c1-979a-4c9d-a50a-ea2818e3a0c9", "befores": [{"name": "update_key", "status": "passed", "start": 1691635079868, "stop": 1691635079868}], "start": 1691635079868, "stop": 1691635079944}
\ No newline at end of file
{"uuid": "8dd6d57c-f249-4764-9954-201c192b60b3", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635079965, "stop": 1691635079965}], "start": 1691635079965, "stop": 1691635080064}
\ No newline at end of file
{"uuid": "840950f7-438f-4738-8a6f-478bd21cf311", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078872, "stop": 1691635078872}], "start": 1691635078872, "stop": 1691635078988}
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "b32e850f-7d3a-465c-8fce-1170546d1e8b", "befores": [{"name": "case_title", "status": "passed", "start": 1691635079500, "stop": 1691635079500}], "start": 1691635079500, "stop": 1691635079653}
\ No newline at end of file
{"uuid": "3ecf4a2b-9924-42e4-8d2b-911261ce80fa", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635079500, "stop": 1691635079500}], "start": 1691635079500, "stop": 1691635079650}
\ No newline at end of file
{"uuid": "0b296d9d-da1c-4572-a290-0e3d0edc0e6d", "befores": [{"name": "case_level", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079951}
\ No newline at end of file
{"uuid": "3696e1cf-230b-4f7e-a99e-848bf054dd37", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078101, "stop": 1691635078101}], "start": 1691635078101, "stop": 1691635078212}
\ No newline at end of file
{"uuid": "6f0626f0-e6ca-4b59-ac52-f9bbc70cde02", "befores": [{"name": "update_key", "status": "passed", "start": 1691635079501, "stop": 1691635079501}], "start": 1691635079501, "stop": 1691635079647}
\ No newline at end of file
{"uuid": "d3f8f133-a049-436f-8afe-7a29b0b11ada", "befores": [{"name": "case_title", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079488}
\ No newline at end of file
{"uuid": "0871baca-fadf-4f3c-bb38-188166028aa0", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635079501, "stop": 1691635079501}], "start": 1691635079501, "stop": 1691635079648}
\ No newline at end of file
{"uuid": "9fff7c56-d012-491d-97e7-df2ff16a0792", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078351, "stop": 1691635078351}], "start": 1691635078351, "stop": 1691635078453}
\ No newline at end of file
{"uuid": "3e81c4f7-5f8c-4d23-95ce-637ff423f998", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078219, "stop": 1691635078219}], "start": 1691635078219, "stop": 1691635078337}
\ No newline at end of file
{"uuid": "1439e461-621a-4317-a2a4-4e471180a0ba", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635079662, "stop": 1691635079662}], "start": 1691635079662, "stop": 1691635079852}
\ No newline at end of file
['组织管理', '保存组织参数', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams', 'application/json|query', {'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}, {'state': True, 'message': '保存组织参数成功!'}, None, None, None]
断言成功
{"uuid": "0cd7ea03-6164-4452-a464-a68bb0ad698c", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078465}
\ No newline at end of file
{"uuid": "26403db9-76f6-433a-ad53-14317fa72c99", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078477, "stop": 1691635078477}], "start": 1691635078477, "stop": 1691635078602}
\ No newline at end of file
{"uuid": "453a0f6c-57ba-485d-bd7f-f529eaf3207b", "befores": [{"name": "case_data", "status": "passed", "start": 1691635079002, "stop": 1691635079002}], "start": 1691635079002, "stop": 1691635079116}
\ No newline at end of file
{"uuid": "41921825-be70-4f58-ad73-d19f510b3051", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635079965, "stop": 1691635079965}], "start": 1691635079965, "stop": 1691635080064}
\ No newline at end of file
{"uuid": "24525d07-6075-477c-8cc1-bf6fea8c77e6", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078349, "stop": 1691635078349}], "start": 1691635078349, "stop": 1691635078468}
\ No newline at end of file
{"uuid": "7d068963-47c5-4b23-b57e-69975ce8040a", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078477, "stop": 1691635078478}], "start": 1691635078477, "stop": 1691635078595}
\ No newline at end of file
{"uuid": "3cc34756-7ecc-4e15-be91-9071981a89c8", "befores": [{"name": "case_title", "status": "passed", "start": 1691635080088, "stop": 1691635080088}], "start": 1691635080088, "stop": 1691635080210}
\ No newline at end of file
{"uuid": "a5511f0f-f905-48c5-b840-506f7cd6f9ca", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635077935, "stop": 1691635077935}], "start": 1691635077935, "stop": 1691635078012}
\ No newline at end of file
{"uuid": "8cb0bfbc-74ed-44ac-a119-12765fcec89e", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078737, "stop": 1691635078737}], "start": 1691635078737, "stop": 1691635078864}
\ No newline at end of file
{"uuid": "5ecd04ea-d36b-4924-ab1e-a16a1f5bfa81", "children": ["3597b66a-45db-43d7-9ed7-28f7ff949937", "598620d3-e067-44e2-8859-f361d5dbde85", "64fffb0e-db75-4796-ab21-4c0a6b128c97", "5dd4d8ee-6869-4e39-a419-bbdaeda4ecb7", "f59f488a-b732-4d7b-86c2-9d25b1eb95ca", "df9c9bc1-e53d-4322-a05c-25360bcafd20", "27fb936a-7dbc-473c-968e-cbe6f0f379ec", "e0f67289-5d78-4ab8-8c2f-039f86c1580d", "718b4a5f-e8a1-4e9b-8642-b18600472036", "7e3ce368-c5e2-4131-ae8d-82b94fb42f28", "65b0e690-73b9-44de-83d3-beb16541d94a", "fde9da97-aa28-4274-9045-b7c5641eb390", "aa310598-4c5d-4f00-a882-426cf0c2b9ec", "6c246857-091c-4755-9056-19b0195a1350", "027a1201-014c-473d-8421-2538cddc76a2", "975dac97-0d32-441a-84dc-5037a381c093"], "befores": [{"name": "rep_fix", "status": "passed", "start": 1691635077620, "stop": 1691635077725}], "afters": [{"name": "rep_fix::0", "status": "passed", "start": 1691635080218, "stop": 1691635080218}], "start": 1691635077620, "stop": 1691635080218}
\ No newline at end of file
{"uuid": "f9cd04ca-4369-4f9b-a35e-e46a60f494b4", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078737, "stop": 1691635078737}], "start": 1691635078737, "stop": 1691635078865}
\ No newline at end of file
{"uuid": "50381367-ed38-4698-b10b-b8b2d66c885c", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635079501, "stop": 1691635079501}], "start": 1691635079501, "stop": 1691635079648}
\ No newline at end of file
{"uuid": "bdd2b99b-86d6-4038-ae8b-e139afa4fb1f", "befores": [{"name": "case_data", "status": "passed", "start": 1691635079500, "stop": 1691635079501}], "start": 1691635079500, "stop": 1691635079650}
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"name": "反向用例-密码为过短", "status": "passed", "attachments": [{"name": "log", "source": "1dbc84b1-4afc-45c9-b49f-8d644707ac78-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "fe361214-8b02-43e1-96c2-db778065bb9b-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-密码为过短'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'PoST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '1', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078875, "stop": 1691635078979, "uuid": "718b4a5f-e8a1-4e9b-8642-b18600472036", "historyId": "83e10138e8696fcd60b1d14409f900db", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名过长', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"name": "反向用例-密码为长", "status": "passed", "attachments": [{"name": "log", "source": "7ab3f51e-b4b4-4053-a50e-59c6ee02a35a-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "c3bb5e6e-98fe-4b9d-8de5-cbc9da5172f8-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-密码为长'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078740, "stop": 1691635078850, "uuid": "e0f67289-5d78-4ab8-8c2f-039f86c1580d", "historyId": "d5cfe05fd2d42c716f3cc25ea0dde07a", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为特殊字符', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': '▬♦◊◦☼♠♣', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.address` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.automotive`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.automotive` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.bank`.
DEBUG--2023-08-10 10:37:57--Specified locale `en_US` is not available for provider `faker.providers.bank`. Locale reset to `en_GB` for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.barcode`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.barcode` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.color`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.color` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.company`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.company` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.credit_card`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.credit_card` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.currency`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.currency` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.date_time`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.date_time` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.emoji` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.file` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.geo`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.geo` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.internet`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.internet` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.isbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.job`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.job` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.lorem`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.lorem` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.misc`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.misc` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.passport`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.passport` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.person`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.person` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.phone_number`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.phone_number` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.profile` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.python` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.sbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Looking for locale `en_US` in provider `faker.providers.ssn`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.ssn` has been localized to `en_US`.
DEBUG--2023-08-10 10:37:57--Provider `faker.providers.user_agent` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-10 10:37:57--Starting new HTTP connection (1): 120.46.172.186:8080
DEBUG--2023-08-10 10:37:57--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
DEBUG--2023-08-10 10:37:57--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "9940110f-bc02-4521-98e8-5483e530b3f3", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078612, "stop": 1691635078612}], "start": 1691635078612, "stop": 1691635078718}
\ No newline at end of file
{"uuid": "362f1ddf-4c8b-472c-8f9a-d52096d56c9f", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078478, "stop": 1691635078478}], "start": 1691635078478, "stop": 1691635078593}
\ No newline at end of file
{"uuid": "0576b622-77de-4e4d-a6e8-811b3c25b8f2", "befores": [{"name": "case_method", "status": "passed", "start": 1691635079964, "stop": 1691635079964}], "start": 1691635079964, "stop": 1691635080071}
\ No newline at end of file
{"uuid": "4224b1ad-bda3-49e0-a67f-95e125441ea4", "befores": [{"name": "update_key", "status": "passed", "start": 1691635079003, "stop": 1691635079003}], "start": 1691635079003, "stop": 1691635079109}
\ No newline at end of file
{"uuid": "bbc5f62c-df8f-4542-8a1b-a89e55c9fa37", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635079866, "stop": 1691635079866}], "start": 1691635079866, "stop": 1691635079952}
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /api/org/v1/org/addOrg HTTP/1.1" 200 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /api/demension/v1/dem/addDem HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "5a26b26f-024c-4590-8cca-675da336d825", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635077935, "stop": 1691635077935}], "start": 1691635077935, "stop": 1691635078014}
\ No newline at end of file
{"uuid": "56f225be-e8bb-4e3a-bc3e-a0074174c6a2", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078728}
\ No newline at end of file
{"uuid": "d34b9a0e-0c3a-4a6c-b658-191b25d8e016", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078102, "stop": 1691635078103}], "start": 1691635078102, "stop": 1691635078201}
\ No newline at end of file
{"uuid": "ff44e69f-ae48-431f-b15f-3f4421e81a14", "befores": [{"name": "update_key", "status": "passed", "start": 1691635079129, "stop": 1691635079129}], "start": 1691635079129, "stop": 1691635079476}
\ No newline at end of file
{"uuid": "7df5f3b3-a6f2-4cd4-8a39-397e8222c185", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635077935, "stop": 1691635077936}], "start": 1691635077935, "stop": 1691635078012}
\ No newline at end of file
{"uuid": "a936727d-aac4-4bcb-9c96-d44448bdb3c1", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078089}
\ No newline at end of file
{"uuid": "78efed90-19d5-4b7b-b974-0868dd6ad228", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078738, "stop": 1691635078738}], "start": 1691635078738, "stop": 1691635078857}
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "GET /refresh HTTP/1.1" 200 None
ERROR--2023-08-10 10:37:59--模块名:认证接口,接口名:刷新token,期望结果:{'message': '刷新token成功'},实际返回结果:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
\ No newline at end of file
{"uuid": "0119c6d6-2b96-4852-aaaa-18d0cb55f9c9", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078729}
\ No newline at end of file
{"uuid": "1d9fb671-2ae3-48eb-814e-0fd0336c1d18", "befores": [{"name": "case_data", "status": "passed", "start": 1691635079964, "stop": 1691635079965}], "start": 1691635079964, "stop": 1691635080068}
\ No newline at end of file
DEBUG--2023-08-10 10:38:00--http://120.46.172.186:8080 "DELETE /api/demension/v1/dem/deleteDemByIds?ids=1689466095531999232 HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "7b57b027-163b-466d-a813-c969a6005631", "befores": [{"name": "case_url", "status": "passed", "start": 1691635080090, "stop": 1691635080090}], "start": 1691635080090, "stop": 1691635080206}
\ No newline at end of file
{"uuid": "4b775055-153e-484d-90b8-afe5d776f4f7", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078730}
\ No newline at end of file
{"uuid": "bae1f7f3-f4fc-4334-bfb5-5c787ab70f7d", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078873, "stop": 1691635078873}], "start": 1691635078873, "stop": 1691635078983}
\ No newline at end of file
{"uuid": "578d3cd6-dcd1-4360-81c2-1e8d5040c802", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078463}
\ No newline at end of file
{"uuid": "271b7c73-04be-4f4b-b64d-462dcfeb8248", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078739, "stop": 1691635078739}], "start": 1691635078739, "stop": 1691635078851}
\ No newline at end of file
{"uuid": "8e0d489f-4c65-4b4b-b190-00b11c762e0a", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078027, "stop": 1691635078027}], "start": 1691635078027, "stop": 1691635078092}
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "0778bb5c-0371-4591-a75b-dff4b210e81d", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078349, "stop": 1691635078349}], "start": 1691635078349, "stop": 1691635078467}
\ No newline at end of file
{"uuid": "92422ccf-61a3-4273-9ccc-b3ee75763865", "befores": [{"name": "case_title", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079952}
\ No newline at end of file
{"uuid": "251f60c8-ef6b-4358-bd3b-ab6246979357", "befores": [{"name": "case_method", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079950}
\ No newline at end of file
['组织管理', '删除组织', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/org/v1/org/deleteOrg', 'text/plain', 'org9527_org', {'state': True, 'message': '删除组织成功!'}, None, None, None]
断言成功
{"uuid": "aec3ba73-efea-40db-98f4-0e5b836987d8", "befores": [{"name": "case_level", "status": "passed", "start": 1691635077934, "stop": 1691635077934}], "start": 1691635077934, "stop": 1691635078018}
\ No newline at end of file
{"uuid": "7b81a11c-d871-4e76-ba7c-41996ae16c04", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078349, "stop": 1691635078349}], "start": 1691635078349, "stop": 1691635078469}
\ No newline at end of file
{"uuid": "54af80fa-ec1d-4db6-9463-5008cdd3bd76", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635080090, "stop": 1691635080090}], "start": 1691635080090, "stop": 1691635080196}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "d6363391-5cc0-492b-9fe1-89c1c7a47f34-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "40913bc3-a05d-4858-8b64-615c6f298503-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "interface_name", "value": "'删除组织'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_method", "value": "'post'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'"}, {"name": "case_mime", "value": "'text/plain'"}, {"name": "case_data", "value": "'org9527_org'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635079966, "stop": 1691635080060, "uuid": "027a1201-014c-473d-8421-2538cddc76a2", "historyId": "c5f12d1447c0dcba5de295292448112f", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "删除组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "2071d14b-0f1b-43d8-b651-8c8048b153ec-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "7a6fdc4b-79b2-4eb4-b6bd-0e432939290d-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635077945, "stop": 1691635078005, "uuid": "3597b66a-45db-43d7-9ed7-28f7ff949937", "historyId": "5c261ca5565213ec9d8e29310e66f8d4", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "e7d7a7b1-1552-454c-9910-d11e6aaf91a9", "befores": [{"name": "case_url", "status": "passed", "start": 1691635079500, "stop": 1691635079500}], "start": 1691635079500, "stop": 1691635079651}
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "ed3b8be9-9640-490d-875d-3e3d211404f4", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078088}
\ No newline at end of file
{"uuid": "55384a9a-1606-401f-a853-dcfa01a00ffa", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635080090, "stop": 1691635080090}], "start": 1691635080090, "stop": 1691635080194}
\ No newline at end of file
{"uuid": "a601a8fe-39e8-412d-99f1-605b064d4375", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635079499, "stop": 1691635079500}], "start": 1691635079499, "stop": 1691635079653}
\ No newline at end of file
{"uuid": "085acdb1-56d5-4a49-a5ab-8b6ee9988b06", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635079965, "stop": 1691635079965}], "start": 1691635079965, "stop": 1691635080068}
\ No newline at end of file
{"uuid": "8a3947cd-32f1-4978-97f0-b368b73ea705", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078332}
\ No newline at end of file
{"uuid": "75bb3997-f3d6-4b4e-af2f-db21edd1e19e", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079949}
\ No newline at end of file
{"uuid": "66f965a0-1e96-4816-9a08-660f150216f6", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078478, "stop": 1691635078478}], "start": 1691635078478, "stop": 1691635078583}
\ No newline at end of file
{"uuid": "f9f38709-f244-417d-a59b-a47ca8678759", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078027, "stop": 1691635078028}], "start": 1691635078027, "stop": 1691635078092}
\ No newline at end of file
{"uuid": "483afd52-6cf3-4c5d-b113-aab57a7111d0", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078102, "stop": 1691635078102}], "start": 1691635078102, "stop": 1691635078210}
\ No newline at end of file
{"uuid": "0d90d8dc-5756-43f0-a479-b5a2a4aefb3d", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635079964, "stop": 1691635079964}], "start": 1691635079964, "stop": 1691635080074}
\ No newline at end of file
{"uuid": "49867bb8-d4ff-410d-94dd-7cf885361ca8", "befores": [{"name": "case_level", "status": "passed", "start": 1691635079001, "stop": 1691635079001}], "start": 1691635079001, "stop": 1691635079119}
\ No newline at end of file
{"uuid": "08f45da8-4bcf-482e-a850-8a8ffac04276", "befores": [{"name": "update_key", "status": "passed", "start": 1691635080091, "stop": 1691635080091}], "start": 1691635080091, "stop": 1691635080193}
\ No newline at end of file
{"uuid": "29f98079-fd4d-4651-b66e-768e0a031e07", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078738, "stop": 1691635078738}], "start": 1691635078738, "stop": 1691635078860}
\ No newline at end of file
{"uuid": "27759c0c-aff4-4ab0-b488-341b4b0e2b48", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635079662, "stop": 1691635079662}], "start": 1691635079662, "stop": 1691635079850}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名过短', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': 'a'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"uuid": "f6d7a281-ef77-4dc6-8a23-3c5537de78b6", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078873, "stop": 1691635078873}], "start": 1691635078873, "stop": 1691635078987}
\ No newline at end of file
{"uuid": "1f6f42a7-f06f-44d6-b2cc-2c3ed675c8bd", "befores": [{"name": "case_method", "status": "passed", "start": 1691635080089, "stop": 1691635080089}], "start": 1691635080089, "stop": 1691635080207}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名错误', '中', 'POST', 'http://120.46.172.186:8080/auth', 'json', {'password': 'MTIzNDU2', 'username': 'tomcat'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"uuid": "e15a3a17-673f-4e75-ad51-d526693cbae3", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078101, "stop": 1691635078101}], "start": 1691635078101, "stop": 1691635078213}
\ No newline at end of file
{"uuid": "257ee047-08e7-4905-9789-1a2468a7f686", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078874, "stop": 1691635078874}], "start": 1691635078874, "stop": 1691635078982}
\ No newline at end of file
{"uuid": "df52255f-90d8-43c5-98ba-b0cfbbc593dd", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078737, "stop": 1691635078737}], "start": 1691635078737, "stop": 1691635078866}
\ No newline at end of file
{"uuid": "a7a04cac-7e81-41f6-8662-a9a4cb1f2c13", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078727}
\ No newline at end of file
['维度管理', '添加维度', '正向用例', '高', 'post', 'http://120.46.172.186:8080/api/demension/v1/dem/addDem', 'application/json', {'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}, {'state': True, 'message': '添加维度成功!'}, 'delete', 'DELETE FROM uc_demension WHERE `CODE_`="org9527";', None]
断言成功
{"uuid": "fd74b256-54a6-4d09-91f9-da4d85ed74d9", "befores": [{"name": "case_method", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079486}
\ No newline at end of file
{"uuid": "2bbf0a6a-9fd8-4db9-8b0a-7c25f145d5a9", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078086}
\ No newline at end of file
{"uuid": "8e55b579-f8d3-4e0f-8d32-59f601f7dee5", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635079501, "stop": 1691635079501}], "start": 1691635079501, "stop": 1691635079649}
\ No newline at end of file
{"uuid": "15296039-7b55-40fb-8a49-ca27cea10523", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635079129, "stop": 1691635079129}], "start": 1691635079129, "stop": 1691635079478}
\ No newline at end of file
{"uuid": "880aa6df-13f5-46fc-a22b-ec9b497f3614", "befores": [{"name": "case_method", "status": "passed", "start": 1691635079661, "stop": 1691635079661}], "start": 1691635079661, "stop": 1691635079854}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "a4b8aeb1-0896-4db4-8422-5cfa68ab46cf-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "1119dcd8-905b-47fa-bf5a-53d35519d9c1-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "interface_name", "value": "'保存组织参数'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_method", "value": "'post'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'"}, {"name": "case_mime", "value": "'application/json|query'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'org9527_org'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': 'org9527_org'}, {'alias': 'xb', 'value': '2'}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635079868, "stop": 1691635079944, "uuid": "6c246857-091c-4755-9056-19b0195a1350", "historyId": "94129190394b3438ee642080282c0ce4", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "保存组织参数"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "5fe65e70-13bd-4b2a-acf7-db9dc0020612", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078479, "stop": 1691635078479}], "start": 1691635078479, "stop": 1691635078582}
\ No newline at end of file
{"uuid": "8b57494c-6100-4e65-8088-1ff3425175b5", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078874, "stop": 1691635078874}], "start": 1691635078874, "stop": 1691635078981}
\ No newline at end of file
{"uuid": "9c3da87a-aff3-4dd9-9b4a-c1d58a2a3ee9", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078459}
\ No newline at end of file
{"uuid": "b31664a5-b873-467d-9df6-51c7c0f7ab38", "befores": [{"name": "case_level", "status": "passed", "start": 1691635079500, "stop": 1691635079500}], "start": 1691635079500, "stop": 1691635079652}
\ No newline at end of file
{"uuid": "c515d02c-b756-43f3-a174-b2e0805d559d", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078728}
\ No newline at end of file
{"uuid": "6e4a0248-a940-4c5f-b122-0ac1496fe1fc", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078461}
\ No newline at end of file
{"uuid": "0750197f-6832-47b7-ae06-5bc742bb56fb", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078101, "stop": 1691635078101}], "start": 1691635078101, "stop": 1691635078211}
\ No newline at end of file
{"uuid": "fb33cdc9-4e3d-452e-bafd-75e224abfbf2", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078873, "stop": 1691635078873}], "start": 1691635078873, "stop": 1691635078986}
\ No newline at end of file
{"uuid": "6ac7a8e7-40dc-40f3-81e0-189af76e1dbe", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078612, "stop": 1691635078612}], "start": 1691635078612, "stop": 1691635078719}
\ No newline at end of file
{"uuid": "88a432fb-96f9-4278-9031-a457df128733", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078091}
\ No newline at end of file
{"uuid": "4e5174e3-314f-4271-a3b8-7385b4af6cbf", "befores": [{"name": "module_name", "status": "passed", "start": 1691635079000, "stop": 1691635079000}], "start": 1691635079000, "stop": 1691635079121}
\ No newline at end of file
{"uuid": "a10db742-4953-40d8-b1ae-3749fcfc5a09", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078454}
\ No newline at end of file
{"uuid": "969a423e-081f-4e21-b117-6d27f7c5a746", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078323}
\ No newline at end of file
{"uuid": "e912c2b7-f7ae-4492-a651-89cd9b924d7a", "befores": [{"name": "case_method", "status": "passed", "start": 1691635079001, "stop": 1691635079001}], "start": 1691635079001, "stop": 1691635079118}
\ No newline at end of file
{"uuid": "420c2afb-e738-4704-97d9-7419a18e904f", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078029, "stop": 1691635078029}], "start": 1691635078028, "stop": 1691635078084}
\ No newline at end of file
{"uuid": "b01d14d5-f066-4e2f-a967-961f7478520b", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078101, "stop": 1691635078102}], "start": 1691635078101, "stop": 1691635078211}
\ No newline at end of file
{"uuid": "91eff517-3b42-4474-ad41-9c94ede70c2b", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078478, "stop": 1691635078478}], "start": 1691635078478, "stop": 1691635078590}
\ No newline at end of file
{"uuid": "c9e069fe-4d3f-4048-85fb-99e0b426cb7e", "befores": [{"name": "update_key", "status": "passed", "start": 1691635079966, "stop": 1691635079966}], "start": 1691635079966, "stop": 1691635080063}
\ No newline at end of file
{"uuid": "0d04e373-ba84-42f0-ac0b-9df7a462abc3", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078103, "stop": 1691635078103}], "start": 1691635078103, "stop": 1691635078201}
\ No newline at end of file
{"uuid": "a278b304-b8f8-45f8-9c2d-b32586d762c7", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078477, "stop": 1691635078477}], "start": 1691635078477, "stop": 1691635078603}
\ No newline at end of file
{"uuid": "1493c984-05b6-4d9a-8b95-78af6fe26297", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078874, "stop": 1691635078874}], "start": 1691635078874, "stop": 1691635078980}
\ No newline at end of file
{'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0NzgsImlhdCI6MTY5MTYzNTA3OH0.Djnnmn-4zPFizdOQ4m3fH-zPC8lLmqQGT-cE7bANHSWDr9UH5FBH0oFqWFCRlq_38sOFUHzXPRFxZVik_IOyJA'}
['认证接口', '登录系统', '正向用例', '高', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': 'admin'}, {'username': '超级管理员', 'account': 'admin'}, None, None, None]
断言成功
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "1fde3842-2b33-40d5-a8c5-084cafeedd9a", "befores": [{"name": "case_data", "status": "passed", "start": 1691635080090, "stop": 1691635080090}], "start": 1691635080090, "stop": 1691635080197}
\ No newline at end of file
{"uuid": "012dc61f-0635-4a49-a834-e43bcce77dae", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078873, "stop": 1691635078873}], "start": 1691635078873, "stop": 1691635078985}
\ No newline at end of file
{"uuid": "ba31fe83-8a20-4f2c-b52f-41e3a6d23656", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635079662, "stop": 1691635079662}], "start": 1691635079662, "stop": 1691635079850}
\ No newline at end of file
{"uuid": "344624fc-2889-455e-b9f4-2e664d3598dc", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078102, "stop": 1691635078102}], "start": 1691635078102, "stop": 1691635078202}
\ No newline at end of file
{"uuid": "c4d383df-4d5e-4cd5-9e66-d5e310c7cdca", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078737, "stop": 1691635078737}], "start": 1691635078737, "stop": 1691635078863}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "2804c0f3-8072-427c-b4d8-8938f76cffd1-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "5b2aa8aa-bf19-444c-b3b5-7be34047a3ed-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "interface_name", "value": "'添加维度'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_method", "value": "'post'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'org9527', 'description': 'org9527', 'isDefault': 0, 'name': 'org9527'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_sentence", "value": "'DELETE FROM uc_demension WHERE `CODE_`=\"org9527\";'"}, {"name": "update_key", "value": "None"}], "start": 1691635079503, "stop": 1691635079645, "uuid": "fde9da97-aa28-4274-9045-b7c5641eb390", "historyId": "11b3198ea80c0768156f2264b92baad6", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
['认证接口', '刷新token', '正向用例', '中', 'get', 'http://120.46.172.186:8080/refresh', None, None, {'message': '刷新token成功'}, None, None, None]
断言失败
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"name": "反向用例-用户名为空", "status": "passed", "attachments": [{"name": "log", "source": "449a4950-6721-456b-97b4-52d26d12de01-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "db056c8b-54fd-4a6c-b1cb-adcd6f77915c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名为空'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078029, "stop": 1691635078083, "uuid": "598620d3-e067-44e2-8859-f361d5dbde85", "historyId": "3e0933b56a69f8edd6fabcdb5759b0e5", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "fb4380f5-8c18-4662-96d7-6783d3418493", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078219, "stop": 1691635078219}], "start": 1691635078219, "stop": 1691635078334}
\ No newline at end of file
{"uuid": "19944eb1-4362-4d65-8a6c-7029d555f198", "befores": [{"name": "case_data", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079484}
\ No newline at end of file
{"uuid": "9d3c73d6-9fb8-439c-bd7d-51ac7fa52b24", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078478, "stop": 1691635078478}], "start": 1691635078478, "stop": 1691635078584}
\ No newline at end of file
{"uuid": "51dd18be-02b0-457a-b314-6536dba62dcf", "befores": [{"name": "module_name", "status": "passed", "start": 1691635080088, "stop": 1691635080088}], "start": 1691635080088, "stop": 1691635080212}
\ No newline at end of file
{"uuid": "eb1c1a75-000c-44d4-8d4a-03d064181226", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635079661, "stop": 1691635079661}], "start": 1691635079661, "stop": 1691635079857}
\ No newline at end of file
{"uuid": "d2da48e6-7389-4f09-abce-7cb109bfdf84", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078328}
\ No newline at end of file
{"uuid": "782d9ade-14b7-4523-9015-79a30a978c48", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635077936, "stop": 1691635077936}], "start": 1691635077936, "stop": 1691635078009}
\ No newline at end of file
{"uuid": "75d606c1-ac76-4454-82b9-18a72409d163", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635079002, "stop": 1691635079002}], "start": 1691635079002, "stop": 1691635079116}
\ No newline at end of file
{"uuid": "bdb9e2f1-f2da-47de-832a-82b172ddb565", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078333}
\ No newline at end of file
{"uuid": "b1678a5d-5ad9-41df-857c-ba7ff083b1c0", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078101, "stop": 1691635078101}], "start": 1691635078101, "stop": 1691635078214}
\ No newline at end of file
{"uuid": "511c7e74-427f-4982-9c82-5201d67a6992", "befores": [{"name": "module_name", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079491}
\ No newline at end of file
{"uuid": "ef2eae67-f332-48c9-8753-5a4625ea9fb4", "befores": [{"name": "case_level", "status": "passed", "start": 1691635079964, "stop": 1691635079964}], "start": 1691635079964, "stop": 1691635080072}
\ No newline at end of file
{"uuid": "8b850533-9f53-4eb8-bb89-57b0518d73c1", "befores": [{"name": "module_name", "status": "passed", "start": 1691635077932, "stop": 1691635077932}], "start": 1691635077932, "stop": 1691635078020}
\ No newline at end of file
{"uuid": "4805d79f-8b0d-4f40-84f6-0b576a15e3aa", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078219, "stop": 1691635078219}], "start": 1691635078219, "stop": 1691635078338}
\ No newline at end of file
{"uuid": "795c1be9-d7d1-4e3a-8db4-d41121b63a1e", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078478, "stop": 1691635078478}], "start": 1691635078478, "stop": 1691635078591}
\ No newline at end of file
{"uuid": "1a8013a1-b5cd-468a-92e4-22b5060024eb", "children": ["3597b66a-45db-43d7-9ed7-28f7ff949937", "598620d3-e067-44e2-8859-f361d5dbde85", "64fffb0e-db75-4796-ab21-4c0a6b128c97", "5dd4d8ee-6869-4e39-a419-bbdaeda4ecb7", "f59f488a-b732-4d7b-86c2-9d25b1eb95ca", "df9c9bc1-e53d-4322-a05c-25360bcafd20", "27fb936a-7dbc-473c-968e-cbe6f0f379ec", "e0f67289-5d78-4ab8-8c2f-039f86c1580d", "718b4a5f-e8a1-4e9b-8642-b18600472036", "7e3ce368-c5e2-4131-ae8d-82b94fb42f28", "65b0e690-73b9-44de-83d3-beb16541d94a", "fde9da97-aa28-4274-9045-b7c5641eb390", "aa310598-4c5d-4f00-a882-426cf0c2b9ec", "6c246857-091c-4755-9056-19b0195a1350", "027a1201-014c-473d-8421-2538cddc76a2", "975dac97-0d32-441a-84dc-5037a381c093"], "befores": [{"name": "db_fix", "status": "passed", "start": 1691635077725, "stop": 1691635077932}], "afters": [{"name": "db_fix::0", "status": "passed", "start": 1691635080214, "stop": 1691635080215}], "start": 1691635077725, "stop": 1691635080215}
\ No newline at end of file
{"uuid": "d7df332a-7b19-4442-a87f-89219d792120", "befores": [{"name": "case_url", "status": "passed", "start": 1691635079964, "stop": 1691635079964}], "start": 1691635079964, "stop": 1691635080070}
\ No newline at end of file
{"uuid": "89179e0d-721c-40c6-913d-f7f33d67bc08", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078873, "stop": 1691635078873}], "start": 1691635078873, "stop": 1691635078983}
\ No newline at end of file
{"uuid": "ace5dca5-f098-467a-a2ec-c1eeb1cb6e9b", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635079002, "stop": 1691635079003}], "start": 1691635079002, "stop": 1691635079110}
\ No newline at end of file
{"uuid": "b191c3ab-a52b-455e-868c-e3ce1923ec68", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078102, "stop": 1691635078102}], "start": 1691635078102, "stop": 1691635078202}
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /api/org/v1/orgParam/saveOrgParams?orgCode=org9527_org HTTP/1.1" 200 None
\ No newline at end of file
DEBUG--2023-08-10 10:37:59--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:59--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "07924816-d2bb-4e8b-b973-37767ef57fe2", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078219, "stop": 1691635078219}], "start": 1691635078219, "stop": 1691635078336}
\ No newline at end of file
{"uuid": "ee90ca4e-76f4-4eef-9089-15a6248f2ab9", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079947}
\ No newline at end of file
['维度管理', '根据维度编码删除维度', '正向用例', '高', 'DELETE', 'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds', 'query', {'ids': '不知道'}, {'state': True, 'message': '删除维度成功!'}, 'select', 'SELECT ID_ FROM uc_demension WHERE `CODE_`="org9527";', 'ids']
断言成功
{"uuid": "6cb4d31a-3bba-4b90-99b5-2a7ec16d77b6", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635080088, "stop": 1691635080088}], "start": 1691635080088, "stop": 1691635080211}
\ No newline at end of file
{"uuid": "f6e9c61c-0af6-40d9-af68-38a7928f3453", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635080090, "stop": 1691635080090}], "start": 1691635080090, "stop": 1691635080204}
\ No newline at end of file
{"uuid": "f8e1df93-6e0e-4bec-9059-5f2b880cd952", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635080090, "stop": 1691635080090}], "start": 1691635080090, "stop": 1691635080195}
\ No newline at end of file
{"uuid": "8b55fe98-25c1-4954-a5c8-4a71d99f4652", "befores": [{"name": "case_title", "status": "passed", "start": 1691635077934, "stop": 1691635077934}], "start": 1691635077934, "stop": 1691635078019}
\ No newline at end of file
{"uuid": "518cb4bc-3354-4344-a4f8-f06924ec5041", "befores": [{"name": "update_key", "status": "passed", "start": 1691635079662, "stop": 1691635079663}], "start": 1691635079662, "stop": 1691635079848}
\ No newline at end of file
{"uuid": "256a47f8-7a58-4997-a87b-46297200fa88", "children": ["3597b66a-45db-43d7-9ed7-28f7ff949937", "598620d3-e067-44e2-8859-f361d5dbde85", "64fffb0e-db75-4796-ab21-4c0a6b128c97", "5dd4d8ee-6869-4e39-a419-bbdaeda4ecb7", "f59f488a-b732-4d7b-86c2-9d25b1eb95ca", "df9c9bc1-e53d-4322-a05c-25360bcafd20", "27fb936a-7dbc-473c-968e-cbe6f0f379ec", "e0f67289-5d78-4ab8-8c2f-039f86c1580d", "718b4a5f-e8a1-4e9b-8642-b18600472036", "7e3ce368-c5e2-4131-ae8d-82b94fb42f28", "65b0e690-73b9-44de-83d3-beb16541d94a", "fde9da97-aa28-4274-9045-b7c5641eb390", "aa310598-4c5d-4f00-a882-426cf0c2b9ec", "6c246857-091c-4755-9056-19b0195a1350", "027a1201-014c-473d-8421-2538cddc76a2", "975dac97-0d32-441a-84dc-5037a381c093"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1691635077279, "stop": 1691635077620}], "start": 1691635077279, "stop": 1691635080220}
\ No newline at end of file
{"uuid": "7d98efe0-0396-466b-a3ba-ad017676cd29", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635079000, "stop": 1691635079001}], "start": 1691635079000, "stop": 1691635079120}
\ No newline at end of file
{"uuid": "7f4aa0d1-4dbe-418f-8339-cda017350048", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078872, "stop": 1691635078872}], "start": 1691635078872, "stop": 1691635078990}
\ No newline at end of file
{"uuid": "c68f8de1-0399-40a7-a744-a0f2dc470648", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635079662, "stop": 1691635079662}], "start": 1691635079662, "stop": 1691635079848}
\ No newline at end of file
{"uuid": "0f9312db-b2f1-4e66-9057-f5687f8597f7", "befores": [{"name": "case_data", "status": "passed", "start": 1691635077935, "stop": 1691635077935}], "start": 1691635077935, "stop": 1691635078014}
\ No newline at end of file
{"uuid": "cddc0395-69c4-4e5d-8228-1f46b4372b30", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635077933, "stop": 1691635077933}], "start": 1691635077933, "stop": 1691635078019}
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为空', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': '', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"uuid": "4cb80655-bd63-4e0e-ab63-d186d0d6d6b4", "befores": [{"name": "case_data", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079948}
\ No newline at end of file
{"uuid": "27dd53f9-79d2-41fd-850a-56c48451c4c5", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078464}
\ No newline at end of file
{"uuid": "e8a568a9-c545-4eea-9b80-3406634ee17a", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078087}
\ No newline at end of file
{"uuid": "d79145ce-1b21-4ea6-8a3f-c987cb05a14e", "befores": [{"name": "module_name", "status": "passed", "start": 1691635079499, "stop": 1691635079499}], "start": 1691635079499, "stop": 1691635079654}
\ No newline at end of file
{"uuid": "644186cd-3a92-4082-b8d7-3222ed6a39c3", "befores": [{"name": "sql_type", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078329}
\ No newline at end of file
{"uuid": "a67d084c-8b0b-4f6c-ace0-cd598f735ae6", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078101, "stop": 1691635078101}], "start": 1691635078101, "stop": 1691635078213}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为长', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"uuid": "94e9f6bd-b8e1-4017-94d9-e9602175105e", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078331}
\ No newline at end of file
{"uuid": "9ce32650-ff19-485d-a13b-ee0bb2544e98", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078027, "stop": 1691635078027}], "start": 1691635078027, "stop": 1691635078094}
\ No newline at end of file
{"uuid": "fe561b85-c3f4-4a1b-8904-fbc9e15835a8", "befores": [{"name": "case_title", "status": "passed", "start": 1691635079661, "stop": 1691635079661}], "start": 1691635079661, "stop": 1691635079856}
\ No newline at end of file
{"uuid": "c9eaa841-f06e-4061-8032-047fcfbf4c65", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078730}
\ No newline at end of file
{"uuid": "ae41acf7-b9fa-4086-885a-1e60524b4f9c", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078350, "stop": 1691635078350}], "start": 1691635078350, "stop": 1691635078461}
\ No newline at end of file
{"name": "反向用例-密码为空", "status": "passed", "attachments": [{"name": "log", "source": "b5135c51-3ed1-4aef-a2ff-5821844d7c68-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "b6143474-3b4d-4c34-9766-77566b3e5411-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-密码为空'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078613, "stop": 1691635078717, "uuid": "27fb936a-7dbc-473c-968e-cbe6f0f379ec", "historyId": "8b6f42cc3d28853cd70fd8dbd847d81e", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "77477415-94da-443a-943c-57df74daa387", "befores": [{"name": "update_key", "status": "passed", "start": 1691635078612, "stop": 1691635078612}], "start": 1691635078612, "stop": 1691635078718}
\ No newline at end of file
{"uuid": "49c1cf9d-a230-4081-a087-1353a3a15765", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079948}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "34aebe16-9d40-490e-b08b-cc20263b9bd8-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "a919fa8b-6ff8-4dd2-83b4-716da8fb32b1-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "interface_name", "value": "'根据维度编码删除维度'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_method", "value": "'DELETE'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'"}, {"name": "case_mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '不知道'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_sentence", "value": "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"org9527\";'"}, {"name": "update_key", "value": "'ids'"}], "start": 1691635080091, "stop": 1691635080191, "uuid": "975dac97-0d32-441a-84dc-5037a381c093", "historyId": "0f19ec3484065ac7cfb756b54964806a", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码删除维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "cf772a5e-5fff-47f9-ab65-27aa80128fe1", "befores": [{"name": "case_url", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079486}
\ No newline at end of file
{"uuid": "0d23a8b3-bcf3-4552-ade2-1612f9120fb3", "befores": [{"name": "case_title", "status": "passed", "start": 1691635079964, "stop": 1691635079964}], "start": 1691635079964, "stop": 1691635080073}
\ No newline at end of file
{"uuid": "00330a2c-99a5-42b2-bb45-8490c11260d5", "befores": [{"name": "module_name", "status": "passed", "start": 1691635079963, "stop": 1691635079963}], "start": 1691635079963, "stop": 1691635080075}
\ No newline at end of file
{"name": "反向用例-用户名错误", "status": "passed", "attachments": [{"name": "log", "source": "39a7bdea-f227-4910-8fec-c0d56fa96192-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "57bf85fd-f654-41d3-8e4a-13df8d2b634f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名错误'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'tomcat'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078479, "stop": 1691635078581, "uuid": "df9c9bc1-e53d-4322-a05c-25360bcafd20", "historyId": "404e1d6c83c506c2cefbbd9584f4579c", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"name": "反向用例-用户名过长", "status": "passed", "attachments": [{"name": "log", "source": "04d0a16c-2844-4055-95b6-35bdc96ba0c8-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "1e3aa3da-58f7-4ccf-8eea-2b83d1efc9a1-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名过长'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadminadminadminadmin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078103, "stop": 1691635078200, "uuid": "64fffb0e-db75-4796-ab21-4c0a6b128c97", "historyId": "029d0cb26cf1355b67215299abe80819", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "7762f187-7206-418c-ab90-0f60330e2813", "befores": [{"name": "update_key", "status": "passed", "start": 1691635077936, "stop": 1691635077936}], "start": 1691635077936, "stop": 1691635078008}
\ No newline at end of file
{"uuid": "3003016d-67d3-4452-a29e-99de352fb78c", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078612, "stop": 1691635078612}], "start": 1691635078612, "stop": 1691635078725}
\ No newline at end of file
{"uuid": "a12de779-1e28-4c80-ace5-8e3c31f8fcbf", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078220, "stop": 1691635078220}], "start": 1691635078220, "stop": 1691635078330}
\ No newline at end of file
{"uuid": "15333d7b-ba30-47b1-9c45-d2fb36ff9e96", "befores": [{"name": "case_level", "status": "passed", "start": 1691635078477, "stop": 1691635078477}], "start": 1691635078477, "stop": 1691635078601}
\ No newline at end of file
DEBUG--2023-08-10 10:38:00--http://120.46.172.186:8080 "POST /api/org/v1/org/deleteOrg HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "088a2b66-fa2c-4410-b569-4055ec35fd23", "befores": [{"name": "case_level", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079487}
\ No newline at end of file
{"uuid": "75aa59b2-411f-4c1d-bdb1-b660281f713d", "befores": [{"name": "case_data", "status": "passed", "start": 1691635079662, "stop": 1691635079662}], "start": 1691635079662, "stop": 1691635079851}
\ No newline at end of file
{"uuid": "2609b53b-1732-4dc1-bc42-ffe39bb47271", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078874, "stop": 1691635078874}], "start": 1691635078874, "stop": 1691635078982}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名为空', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': ''}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"uuid": "eb469ea7-e27f-4f82-ae18-b730341171e7", "befores": [{"name": "case_title", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078729}
\ No newline at end of file
{"uuid": "ceabc00a-c682-440c-816f-631408030633", "befores": [{"name": "case_url", "status": "passed", "start": 1691635079661, "stop": 1691635079662}], "start": 1691635079661, "stop": 1691635079853}
\ No newline at end of file
{"uuid": "7c33e48a-f380-4dc7-b254-99f999a89f72", "befores": [{"name": "module_name", "status": "passed", "start": 1691635079660, "stop": 1691635079660}], "start": 1691635079660, "stop": 1691635079858}
\ No newline at end of file
{"uuid": "8a6de866-5af1-4ef8-a5c4-c5715cb6d83b", "befores": [{"name": "case_url", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079949}
\ No newline at end of file
{"uuid": "6c313f2f-7fbc-44df-ad64-0eb85b17a7ce", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635078739, "stop": 1691635078739}], "start": 1691635078739, "stop": 1691635078856}
\ No newline at end of file
{"name": "反向用例-用户名过短", "status": "passed", "attachments": [{"name": "log", "source": "f6680938-a843-49d6-b88b-3a9f1865bc27-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "52a56d05-0e5a-44b7-8d8b-3902b65563a8-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名过短'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'a'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078221, "stop": 1691635078322, "uuid": "5dd4d8ee-6869-4e39-a419-bbdaeda4ecb7", "historyId": "07bc1a63f23bc973cace5d61f66ac049", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "852798e8-e68c-4d64-9d3c-1e0dbacfe73d", "befores": [{"name": "case_level", "status": "passed", "start": 1691635080089, "stop": 1691635080089}], "start": 1691635080089, "stop": 1691635080209}
\ No newline at end of file
{"uuid": "6bd1db7d-f199-4017-91d1-304b53e7c0dd", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078477, "stop": 1691635078477}], "start": 1691635078477, "stop": 1691635078602}
\ No newline at end of file
{"uuid": "ceaab207-bdb7-410b-8800-94e2bb3f3e84", "befores": [{"name": "case_url", "status": "passed", "start": 1691635077934, "stop": 1691635077934}], "start": 1691635077934, "stop": 1691635078015}
\ No newline at end of file
{"name": "正向用例", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <My_APIAuto_demo.test_case.test_bpm.TestBPM object at 0x000001FC3AF2BAD0>\nrep_fix = <My_APIAuto_demo.requests_method.requests_method.RequestMethod object at 0x000001FC3A7F8110>\ndb_fix = <My_APIAuto_demo.common.db.DB object at 0x000001FC3AFF6790>, module_name = '认证接口', interface_name = '刷新token'\ncase_title = '正向用例', case_level = '中', case_method = 'get', case_url = 'http://120.46.172.186:8080/refresh', case_mime = None\ncase_data = None, expect_data = {'message': '刷新token成功'}, sql_type = None, sql_sentence = None, update_key = None\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key\",ReadExcel().get_data())\n def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):\n print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])\n allure.dynamic.feature(module_name)\n allure.dynamic.story(interface_name)\n allure.dynamic.title(case_title)\n allure.dynamic.severity(case_level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)\n \n try:\n for key in expect_data:\n> assert expect_data[key] == result.json().get(key)\nE AssertionError: assert '刷新token成功' == None\nE + where None = <built-in method get of dict object at 0x000001FC3AFF7A00>('message')\nE + where <built-in method get of dict object at 0x000001FC3AFF7A00> = {'account': '', 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg', 'userAttrs': {}, ...}.get\nE + where {'account': '', 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg', 'userAttrs': {}, ...} = <bound method Response.json of <Response [200]>>()\nE + where <bound method Response.json of <Response [200]>> = <Response [200]>.json\n\ntest_bpm.py:44: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <My_APIAuto_demo.test_case.test_bpm.TestBPM object at 0x000001FC3AF2BAD0>\nrep_fix = <My_APIAuto_demo.requests_method.requests_method.RequestMethod object at 0x000001FC3A7F8110>\ndb_fix = <My_APIAuto_demo.common.db.DB object at 0x000001FC3AFF6790>, module_name = '认证接口', interface_name = '刷新token'\ncase_title = '正向用例', case_level = '中', case_method = 'get', case_url = 'http://120.46.172.186:8080/refresh', case_mime = None\ncase_data = None, expect_data = {'message': '刷新token成功'}, sql_type = None, sql_sentence = None, update_key = None\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key\",ReadExcel().get_data())\n def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):\n print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])\n allure.dynamic.feature(module_name)\n allure.dynamic.story(interface_name)\n allure.dynamic.title(case_title)\n allure.dynamic.severity(case_level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)\n \n try:\n for key in expect_data:\n assert expect_data[key] == result.json().get(key)\n except:\n print(\"断言失败\")\n logging.error(f\"模块名:{module_name},接口名:{interface_name},期望结果:{expect_data},实际返回结果:{result.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_bpm.py:48: AssertionError"}, "attachments": [{"name": "log", "source": "341d52aa-9643-4390-994b-31b940ad6672-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "81323749-1002-48a0-8a11-fa223f90929a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'刷新token'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'get'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "case_mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635079129, "stop": 1691635079231, "uuid": "65b0e690-73b9-44de-83d3-beb16541d94a", "historyId": "34a095b4fd7d8fb5d23827cf26cd98fd", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "585f7904-9710-4a41-9f4c-b104d56fc585", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078738, "stop": 1691635078738}], "start": 1691635078737, "stop": 1691635078862}
\ No newline at end of file
{"uuid": "dba78181-8d76-4517-90e1-67e83cce9ef5", "befores": [{"name": "case_method", "status": "passed", "start": 1691635077934, "stop": 1691635077934}], "start": 1691635077934, "stop": 1691635078017}
\ No newline at end of file
{"uuid": "7963e430-74f7-44d7-ace8-b2fbaad3b31d", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635079964, "stop": 1691635079964}], "start": 1691635079964, "stop": 1691635080069}
\ No newline at end of file
{"uuid": "bb23838e-6141-429a-bff0-a86aa8a24f46", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078478, "stop": 1691635078478}], "start": 1691635078478, "stop": 1691635078593}
\ No newline at end of file
{"uuid": "ad5e0d75-894d-46c7-bdfe-aa454cf4bb62", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079484}
\ No newline at end of file
{"uuid": "87159550-8409-40c7-bd4e-7174f848e32b", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078088}
\ No newline at end of file
{"name": "反向用例-用户名特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "8250ff8f-2958-4215-9552-fdb2543d0612-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "ffb0d5b5-5b9b-4175-a6b9-5ad5db268ee4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名特殊字符'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635078351, "stop": 1691635078452, "uuid": "f59f488a-b732-4d7b-86c2-9d25b1eb95ca", "historyId": "8d36027676b90d90e66aca99540b7c4d", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "d300db15-81eb-4707-9fc8-282f6b59b93f", "befores": [{"name": "case_method", "status": "passed", "start": 1691635079500, "stop": 1691635079500}], "start": 1691635079500, "stop": 1691635079652}
\ No newline at end of file
{"uuid": "54c0e362-2e02-403e-9096-eb15a97fb03e", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078091}
\ No newline at end of file
{"uuid": "f39e6b42-9730-47a4-80bf-05214a52d795", "befores": [{"name": "module_name", "status": "passed", "start": 1691635078219, "stop": 1691635078219}], "start": 1691635078219, "stop": 1691635078339}
\ No newline at end of file
{"uuid": "25bce4ae-73f8-4f41-a529-d2eac9fd26f4", "befores": [{"name": "case_data", "status": "passed", "start": 1691635078102, "stop": 1691635078102}], "start": 1691635078102, "stop": 1691635078208}
\ No newline at end of file
{"uuid": "2f9878af-2989-4b3d-835f-15fc0d01ad56", "befores": [{"name": "module_name", "status": "passed", "start": 1691635079866, "stop": 1691635079866}], "start": 1691635079866, "stop": 1691635079954}
\ No newline at end of file
{"uuid": "76283816-cbd8-4090-bc7c-dd460601a8af", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635079003, "stop": 1691635079003}], "start": 1691635079003, "stop": 1691635079109}
\ No newline at end of file
{"uuid": "c3ad7cdc-ba59-41dd-9404-0d3dbdd52413", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635079128, "stop": 1691635079128}], "start": 1691635079128, "stop": 1691635079489}
\ No newline at end of file
DEBUG--2023-08-10 10:37:58--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-10 10:37:58--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "6a89d9cd-d58f-45f5-838a-4b5da527b8cf", "befores": [{"name": "case_method", "status": "passed", "start": 1691635078737, "stop": 1691635078737}], "start": 1691635078737, "stop": 1691635078863}
\ No newline at end of file
{"uuid": "9a1f7d14-be73-41e1-bbd7-650d9b1302ef", "befores": [{"name": "case_url", "status": "passed", "start": 1691635078028, "stop": 1691635078028}], "start": 1691635078028, "stop": 1691635078090}
\ No newline at end of file
{"uuid": "52337001-a41c-4976-b0e8-3358fe2826db", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635078738, "stop": 1691635078738}], "start": 1691635078738, "stop": 1691635078859}
\ No newline at end of file
{"uuid": "7e436bf8-52d6-4631-8148-6759b95782ec", "befores": [{"name": "case_url", "status": "passed", "start": 1691635079001, "stop": 1691635079002}], "start": 1691635079001, "stop": 1691635079117}
\ No newline at end of file
{"uuid": "6eb5e09f-ca4d-4746-8fb8-9b204b8a0f0d", "befores": [{"name": "expect_data", "status": "passed", "start": 1691635079129, "stop": 1691635079129}], "start": 1691635079129, "stop": 1691635079478}
\ No newline at end of file
{"uuid": "f2587655-7122-4a1c-b7ed-d4c61410af20", "befores": [{"name": "interface_name", "status": "passed", "start": 1691635078872, "stop": 1691635078872}], "start": 1691635078872, "stop": 1691635078989}
\ No newline at end of file
{"uuid": "5615cbfd-8a7d-4c1f-b62c-616bc09c07cf", "befores": [{"name": "case_level", "status": "passed", "start": 1691635079661, "stop": 1691635079661}], "start": 1691635079661, "stop": 1691635079855}
\ No newline at end of file
{"name": "反向用例-密码为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "a64ea620-c647-4a57-9859-7edad6661ab7-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "1f6eed82-3950-4292-a260-6d8d8fab0863-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "interface_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-密码为特殊字符'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '▬♦◊◦☼♠♣', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1691635079005, "stop": 1691635079108, "uuid": "7e3ce368-c5e2-4131-ae8d-82b94fb42f28", "historyId": "75b76b4437740df01db7c96e0de709c5", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "20856-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "5ce048d6-32f3-4a9f-b858-27dda233a51a", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078738, "stop": 1691635078738}], "start": 1691635078738, "stop": 1691635078861}
\ No newline at end of file
{"uuid": "095d74e6-eb4f-47fe-832f-12be77897521", "befores": [{"name": "case_mime", "status": "passed", "start": 1691635078611, "stop": 1691635078611}], "start": 1691635078611, "stop": 1691635078727}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-密码为过短', '中', 'PoST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': '1', 'username': 'admin'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
{"uuid": "f12c7df6-3bc7-4c72-9617-28c0661e2b83", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691635079867, "stop": 1691635079867}], "start": 1691635079867, "stop": 1691635079946}
\ No newline at end of file
['认证接口', '登录系统', '反向用例-用户名特殊字符', '中', 'POST', 'http://120.46.172.186:8080/auth', 'application/json', {'password': 'MTIzNDU2', 'username': '▬♦◊◦☼♠♣'}, {'state': False, 'message': '账号或密码错误'}, None, None, None]
断言成功
ERROR--2023-08-10 10:37:59--模块名:认证接口,接口名:刷新token,期望结果:{'message': '刷新token成功'},实际返回结果:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
ERROR--2023-08-10 10:37:59--模块名:认证接口,接口名:刷新token,期望结果:{'message': '刷新token成功'},实际返回结果:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE0ODAsImlhdCI6MTY5MTYzNTA4MH0.GZen-_zdKtEsx-96As3KgVvmLiedKL06pR0O-2JZcQX79d2B2fpQwYvahxx66lyWxje9FqeAk-yE01f26g5FXg","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Test Report</title>
<style>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;
}
#environment tr:nth-child(odd) {
background-color: #f6f6f6;
}
/******************************
* 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;
}
/******************************
* 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
*------------------*/
.log:only-child {
height: inherit;
}
.log {
background-color: #e6e6e6;
border: 1px solid #e6e6e6;
color: black;
display: block;
font-family: "Courier New", Courier, monospace;
height: 230px;
overflow-y: scroll;
padding: 5px;
white-space: pre-wrap;
}
div.image {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin-left: 5px;
overflow: hidden;
width: 320px;
}
div.image img {
width: 320px;
}
div.video {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin-left: 5px;
overflow: hidden;
width: 320px;
}
div.video video {
overflow: hidden;
width: 320px;
height: 240px;
}
.collapsed {
display: none;
}
.expander::after {
content: " (show details)";
color: #BBB;
font-style: italic;
cursor: pointer;
}
.collapser::after {
content: " (hide details)";
color: #BBB;
font-style: italic;
cursor: pointer;
}
/*------------------
* 3. Sorting items
*------------------*/
.sortable {
cursor: pointer;
}
.sort-icon {
font-size: 0px;
float: left;
margin-right: 5px;
margin-top: 5px;
/*triangle*/
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
}
.inactive .sort-icon {
/*finish triangle*/
border-top: 8px solid #E6E6E6;
}
.asc.active .sort-icon {
/*finish triangle*/
border-bottom: 8px solid #999;
}
.desc.active .sort-icon {
/*finish triangle*/
border-top: 8px solid #999;
}
</style></head>
<body onLoad="init()">
<script>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
function toArray(iter) {
if (iter === null) {
return null;
}
return Array.prototype.slice.call(iter);
}
function find(selector, elem) { // eslint-disable-line no-redeclare
if (!elem) {
elem = document;
}
return elem.querySelector(selector);
}
function find_all(selector, elem) {
if (!elem) {
elem = document;
}
return toArray(elem.querySelectorAll(selector));
}
function sort_column(elem) {
toggle_sort_states(elem);
const colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
let key;
if (elem.classList.contains('result')) {
key = key_result;
} else if (elem.classList.contains('links')) {
key = key_link;
} else {
key = key_alpha;
}
sort_table(elem, key(colIndex));
}
function show_all_extras() { // eslint-disable-line no-unused-vars
find_all('.col-result').forEach(show_extras);
}
function hide_all_extras() { // eslint-disable-line no-unused-vars
find_all('.col-result').forEach(hide_extras);
}
function show_extras(colresult_elem) {
const extras = colresult_elem.parentNode.nextElementSibling;
const expandcollapse = colresult_elem.firstElementChild;
extras.classList.remove('collapsed');
expandcollapse.classList.remove('expander');
expandcollapse.classList.add('collapser');
}
function hide_extras(colresult_elem) {
const extras = colresult_elem.parentNode.nextElementSibling;
const expandcollapse = colresult_elem.firstElementChild;
extras.classList.add('collapsed');
expandcollapse.classList.remove('collapser');
expandcollapse.classList.add('expander');
}
function show_filters() {
const filter_items = document.getElementsByClassName('filter');
for (let i = 0; i < filter_items.length; i++)
filter_items[i].hidden = false;
}
function add_collapse() {
// Add links for show/hide all
const resulttable = find('table#results-table');
const showhideall = document.createElement('p');
showhideall.innerHTML = '<a href="javascript:show_all_extras()">Show all details</a> / ' +
'<a href="javascript:hide_all_extras()">Hide all details</a>';
resulttable.parentElement.insertBefore(showhideall, resulttable);
// Add show/hide link to each result
find_all('.col-result').forEach(function(elem) {
const collapsed = get_query_parameter('collapsed') || 'Passed';
const extras = elem.parentNode.nextElementSibling;
const expandcollapse = document.createElement('span');
if (extras.classList.contains('collapsed')) {
expandcollapse.classList.add('expander');
} else if (collapsed.includes(elem.innerHTML)) {
extras.classList.add('collapsed');
expandcollapse.classList.add('expander');
} else {
expandcollapse.classList.add('collapser');
}
elem.appendChild(expandcollapse);
elem.addEventListener('click', function(event) {
if (event.currentTarget.parentNode.nextElementSibling.classList.contains('collapsed')) {
show_extras(event.currentTarget);
} else {
hide_extras(event.currentTarget);
}
});
});
}
function get_query_parameter(name) {
const match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
function init () { // eslint-disable-line no-unused-vars
reset_sort_headers();
add_collapse();
show_filters();
sort_column(find('.initial-sort'));
find_all('.sortable').forEach(function(elem) {
elem.addEventListener('click',
function() {
sort_column(elem);
}, false);
});
}
function sort_table(clicked, key_func) {
const rows = find_all('.results-table-row');
const reversed = !clicked.classList.contains('asc');
const sorted_rows = sort(rows, key_func, reversed);
/* Whole table is removed here because browsers acts much slower
* when appending existing elements.
*/
const thead = document.getElementById('results-table-head');
document.getElementById('results-table').remove();
const parent = document.createElement('table');
parent.id = 'results-table';
parent.appendChild(thead);
sorted_rows.forEach(function(elem) {
parent.appendChild(elem);
});
document.getElementsByTagName('BODY')[0].appendChild(parent);
}
function sort(items, key_func, reversed) {
const sort_array = items.map(function(item, i) {
return [key_func(item), i];
});
sort_array.sort(function(a, b) {
const key_a = a[0];
const key_b = b[0];
if (key_a == key_b) return 0;
if (reversed) {
return key_a < key_b ? 1 : -1;
} else {
return key_a > key_b ? 1 : -1;
}
});
return sort_array.map(function(item) {
const index = item[1];
return items[index];
});
}
function key_alpha(col_index) {
return function(elem) {
return elem.childNodes[1].childNodes[col_index].firstChild.data.toLowerCase();
};
}
function key_link(col_index) {
return function(elem) {
const dataCell = elem.childNodes[1].childNodes[col_index].firstChild;
return dataCell == null ? '' : dataCell.innerText.toLowerCase();
};
}
function key_result(col_index) {
return function(elem) {
const strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
'Skipped', 'Passed'];
return strings.indexOf(elem.childNodes[1].childNodes[col_index].firstChild.data);
};
}
function reset_sort_headers() {
find_all('.sort-icon').forEach(function(elem) {
elem.parentNode.removeChild(elem);
});
find_all('.sortable').forEach(function(elem) {
const icon = document.createElement('div');
icon.className = 'sort-icon';
icon.textContent = 'vvv';
elem.insertBefore(icon, elem.firstChild);
elem.classList.remove('desc', 'active');
elem.classList.add('asc', 'inactive');
});
}
function toggle_sort_states(elem) {
//if active, toggle between asc and desc
if (elem.classList.contains('active')) {
elem.classList.toggle('asc');
elem.classList.toggle('desc');
}
//if inactive, reset all other functions and add ascending active
if (elem.classList.contains('inactive')) {
reset_sort_headers();
elem.classList.remove('inactive');
elem.classList.add('active');
}
}
function is_all_rows_hidden(value) {
return value.hidden == false;
}
function filter_table(elem) { // eslint-disable-line no-unused-vars
const outcome_att = 'data-test-result';
const outcome = elem.getAttribute(outcome_att);
const class_outcome = outcome + ' results-table-row';
const outcome_rows = document.getElementsByClassName(class_outcome);
for(let i = 0; i < outcome_rows.length; i++){
outcome_rows[i].hidden = !elem.checked;
}
const rows = find_all('.results-table-row').filter(is_all_rows_hidden);
const all_rows_hidden = rows.length == 0 ? true : false;
const not_found_message = document.getElementById('not-found-message');
not_found_message.hidden = !all_rows_hidden;
}
</script>
<h1>报告.html</h1>
<p>Report generated on 08-Aug-2023 at 15:18:57 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.1.0</p>
<h2>Summary</h2>
<p>16 tests ran in 8.12 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">15 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">1 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>, <input checked="true" class="filter" data-test-result="rerun" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="rerun">5 rerun</span>
<h2>Results</h2>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable result initial-sort" col="result">Result</th>
<th class="sortable" col="name">Test</th>
<th class="sortable" col="duration">Duration</th>
<th class="sortable links" col="links">Links</th></tr>
<tr hidden="true" id="not-found-message">
<th colspan="4">No results found. Try to check the filters</th></tr></thead>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data10-None-None-None]</td>
<td class="col-duration">0.08</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="rerun results-table-row">
<tr>
<td class="col-result">Rerun</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data10-None-None-None]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="rerun results-table-row">
<tr>
<td class="col-result">Rerun</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data10-None-None-None]</td>
<td class="col-duration">0.06</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="rerun results-table-row">
<tr>
<td class="col-result">Rerun</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data10-None-None-None]</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="rerun results-table-row">
<tr>
<td class="col-result">Rerun</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data10-None-None-None]</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="rerun results-table-row">
<tr>
<td class="col-result">Rerun</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data10-None-None-None]</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-正向用例-高-POST-http://120.46.172.186:8080/auth-application/json-case_data0-expect_data0-None-None-None]</td>
<td class="col-duration">0.56</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名为空-中-POST-http://120.46.172.186:8080/auth-application/json-case_data1-expect_data1-None-None-None]</td>
<td class="col-duration">0.06</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名过长-中-POST-http://120.46.172.186:8080/auth-application/json-case_data2-expect_data2-None-None-None]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名过短-中-POST-http://120.46.172.186:8080/auth-application/json-case_data3-expect_data3-None-None-None]</td>
<td class="col-duration">0.11</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名特殊字符-中-POST-http://120.46.172.186:8080/auth-application/json-case_data4-expect_data4-None-None-None]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名错误-中-POST-http://120.46.172.186:8080/auth-json-case_data5-expect_data5-None-None-None]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码为空-中-POST-http://120.46.172.186:8080/auth-application/json-case_data6-expect_data6-None-None-None]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码为长-中-POST-http://120.46.172.186:8080/auth-application/json-case_data7-expect_data7-None-None-None]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码为过短-中-PoST-http://120.46.172.186:8080/auth-application/json-case_data8-expect_data8-None-None-None]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码为特殊字符-中-POST-http://120.46.172.186:8080/auth-application/json-case_data9-expect_data9-None-None-None]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[维度管理-添加维度-正向用例-高-post-http://120.46.172.186:8080/api/demension/v1/dem/addDem-application/json-case_data11-expect_data11-delete-DELETE FROM uc_demension WHERE `CODE_`=&quot;org9527&quot;;-None]</td>
<td class="col-duration">0.14</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[组织管理-添加组织-正向用例-高-post-http://120.46.172.186:8080/api/org/v1/org/addOrg-application/json-case_data12-expect_data12-delete|select-sql_sentence12-demId]</td>
<td class="col-duration">0.19</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[组织管理-保存组织参数-正向用例-高-post-http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams-application/json|query-case_data13-expect_data13-None-None-None]</td>
<td class="col-duration">0.07</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[组织管理-删除组织-正向用例-高-post-http://120.46.172.186:8080/api/org/v1/org/deleteOrg-text/plain-org9527_org-expect_data14-None-None-None]</td>
<td class="col-duration">0.06</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[维度管理-根据维度编码删除维度-正向用例-高-DELETE-http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds-query-case_data15-expect_data15-select-SELECT ID_ FROM uc_demension WHERE `CODE_`=&quot;org9527&quot;;-ids]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="empty log">No log output captured.</div></td></tr></tbody></table></body></html>
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/8/7 18:50
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: requests_method.py
# Author: xxxxxxx
# Datetime: 2023/8/8 9:56
# Description:
#
# ---------------------------------------------------------------------------
import base64
import requests
from My_APIAuto_demo.common.read_ini import ReadIni
from My_APIAuto_demo.data_config.settings import HOST
class RequestMethod:
def __init__(self):
login_url = ReadIni().get_host(HOST)+"/auth"
login_data = {"username":"admin","password":"123456"}
login_data["password"] = base64.b64encode(login_data["password"].encode("utf-8")).decode("utf-8")
self.bpm_session = requests.sessions.Session()
self.bpm_session.headers["Authorization"] = "Bearer "+self.bpm_session.post(url=login_url, json=login_data).json().get("token")
print(self.bpm_session.headers)
def request_all(self,method,url,mime,case_data):
if mime == "application/x-www-form-urlencoded" or mime == "x-www-form-urlencoded":
return self.bpm_session.request(url=url,method=method,data=case_data)
elif mime == "application/json" or mime == "json":
return self.bpm_session.request(url=url,method=method,json=case_data)
elif mime == "multipart/form-data" or mime == "form-data":
return self.bpm_session.request(url=url,method=method,files=case_data)
elif mime == "params" or mime == "query":
return self.bpm_session.request(url=url,method=method,params=case_data)
elif mime == "text/plain" or mime == "text":
return self.bpm_session.request(url=url,method=method,data=case_data)
elif mime == "application/json|query" or mime == "json|query" or mime == "query|json":
return self.bpm_session.request(url=url,method=method,params=case_data['query'],json=case_data['body'])
elif mime is None:
return self.bpm_session.request(url=url,method=method)
else:
raise NameError("传入的媒体类型错误!")
if __name__ == '__main__':
rep = RequestMethod()
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/8/7 18:51
# Description:
#
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: conftest.py
# Author: xxxxxxx
# Datetime: 2023/8/8 10:28
# Description:
#
# ---------------------------------------------------------------------------
import pytest
from My_APIAuto_demo.common.db import DB
from My_APIAuto_demo.requests_method.requests_method import RequestMethod
@pytest.fixture(scope="session")
def rep_fix():
rep = RequestMethod()
yield rep
@pytest.fixture(scope="session")
def db_fix():
db = DB()
yield db
db.close()
def pytest_collection_modifyitems(items):
# item表示每个测试用例,解决用例名称中文显示问题
for item in items:
item.name = item.name.encode("utf-8").decode("unicode-escape")
item._nodeid = item._nodeid.encode("utf-8").decode("unicode-escape")
\ No newline at end of file
[pytest]
;开启日志
log_cli=true
;设置日志的级别,如果不设置级别的话,可以设置为NOTSET,如果要设置级别,级别可以有debug,info,warning,error,致命
log_level=NOTSET
;设置日志显示的信息格式
log_format=%(levelname)s--%(asctime)s--%(message)s
;设置日志中时间显示的格式
log_date_format=%Y-%m-%d %H:%M:%S
;每个py文件运行的时候追加的命令
;addopts=-vs
;设置日志保存的文件
log_file=../report/log/日志.log
;设置日志保存在文件中的级别
log_file_level=error
;设置日志在文件中的信息格式
log_file_format=%(levelname)s--%(asctime)s--%(message)s
;设置文件日志中时间显示的格式
log_file_date_format=%Y-%m-%d %H:%M:%S
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: python-learn
# FileName: test_bpm.py
# Author: xxxxxxx
# Datetime: 2023/8/8 10:32
# Description:
#
# ---------------------------------------------------------------------------
import logging
import allure
import pytest
from My_APIAuto_demo.common.read_excel import ReadExcel
class TestBPM:
@allure.epic("BPM系统")
@pytest.mark.parametrize("module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key",ReadExcel().get_data())
def test_bpm(self,rep_fix,db_fix,module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key):
print([module_name,interface_name,case_title,case_level,case_method,case_url,case_mime,case_data,expect_data,sql_type,sql_sentence,update_key])
allure.dynamic.feature(module_name)
allure.dynamic.story(interface_name)
allure.dynamic.title(case_title)
allure.dynamic.severity(case_level)
if sql_type == "delete":
db_fix.delete(sql_sentence)
elif sql_type == "select":
select_result = db_fix.select(sql_sentence)
case_data[update_key] = select_result
elif sql_type == "select|delete" or sql_type == "delete|select":
db_fix.delete(sql_sentence["delete"])
select_result = db_fix.select(sql_sentence["select"])
case_data[update_key] = select_result
result = rep_fix.request_all(method=case_method,url=case_url,mime=case_mime,case_data=case_data)
try:
for key in expect_data:
assert expect_data[key] == result.json().get(key)
except:
print("断言失败")
logging.error(f"模块名:{module_name},接口名:{interface_name},期望结果:{expect_data},实际返回结果:{result.text}")
raise AssertionError("断言失败")
else:
print("断言成功")
if __name__ == '__main__':
pytest.main()
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