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"
"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
"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" : "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" : "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
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
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