Commit 542129eb by billchuan

接口自动化测试框架V1.0

parent 733cb598
from InterfaceAutoTest_V1.common.log import write_log
log = write_log()
import pymysql
from InterfaceAutoTest_V1.common import log
from InterfaceAutoTest_V1.common.read_ini import ReadIni
class DB:
def __init__(self):
read_ini = ReadIni()
try:
self.conn = pymysql.connect(
host=read_ini.get_sql_conn_message('host'),
port=int(read_ini.get_sql_conn_message('port')),
user=read_ini.get_sql_conn_message('user'),
password=read_ini.get_sql_conn_message('pwd'),
database=read_ini.get_sql_conn_message('database'),
charset="utf8"
)
self.cursor = self.conn.cursor()
except:
log.error('数据库链接失败或游标对象创建失败,请检查数据库配置!!!')
def query(self, sql):
try:
self.cursor.execute(sql)
select_result = self.cursor.fetchall()
if select_result:
return select_result[0][0]
except:
log.error("执行查询的sql语句错误,请察看sql语句是否正确")
def delete(self, sql):
try:
self.cursor.execute(sql)
self.conn.commit()
except:
log.error("执行删除的sql语句错误,请察看sql语句是否正确")
def update(self, sql):
pass
def insert(self, sql):
pass
def close(self):
self.cursor.close()
self.conn.close()
\ No newline at end of file
import logging
import os
import datetime
def write_log():
logger = logging.getLogger('王德发')
logger.level = logging.NOTSET
log_path = os.path.join(os.path.dirname(os.path.dirname(__file__)),
'report/log/BPM测试运行日志-%s.log' % (datetime.datetime.now().strftime('%Y.%m.%d')))
handler = logging.FileHandler(log_path, mode='a', encoding='utf-8')
format = logging.Formatter('%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s - %(name)s')
handler.setFormatter(format)
logger.addHandler(handler)
return logger
import openpyxl
from InterfaceAutoTest_V1.common import log
from InterfaceAutoTest_V1.common.read_ini import ReadIni
from InterfaceAutoTest_V1.common.read_json import read_json
class ReadExcel:
def __init__(self, table_name: str):
self.read_ini = ReadIni()
try:
self.wb = openpyxl.load_workbook(self.read_ini.get_file_path('excel'))
self.ws = self.wb[table_name]
except:
log.error('获取工作表失败,请察看工作表名称是否配置正确!!!')
self.case_data_dict = read_json(self.read_ini.get_file_path('case'))
self.expect_data_dict = read_json(self.read_ini.get_file_path('expect'))
self.sql_data_dict = read_json(self.read_ini.get_file_path('sql'))
def __get_cell_value(self, column: str, row: int) -> str:
try:
value = self.ws[column + str(row)].value
if value is None:
return None
elif value.strip():
return value.strip()
except:
log.error('获取指定单元格数据失败,请检查输入的列号和行号是否正确!!')
def module_name(self, row):
return self.__get_cell_value('b', row)
def api_name(self, row):
return self.__get_cell_value('c', row)
def case_title(self, row):
return self.__get_cell_value('d', row)
def case_level(self, row):
return self.__get_cell_value('e', row)
def case_url(self, row):
return self.read_ini.get_host_value('host') + self.__get_cell_value('g', row)
def case_method(self, row):
return self.__get_cell_value('f', row)
def case_mime(self, row):
mime = self.__get_cell_value('h', row)
if mime:
return mime.lower()
def case_data(self, row):
case_data_key = self.__get_cell_value('i', row)
if case_data_key:
module_name = self.module_name(row)
api_name = self.api_name(row)
try:
return self.case_data_dict[module_name][api_name][case_data_key]
except:
log.error('请检查用例数据的配置!!!')
def expect_data(self, row):
expect_data_key = self.__get_cell_value('j', row)
if expect_data_key:
module_name = self.module_name(row)
api_name = self.api_name(row)
try:
return self.expect_data_dict[module_name][api_name][expect_data_key]
except:
log.error('请检查期望数据的配置!!!')
def sql_type(self, row):
value = self.__get_cell_value('k', row)
if value:
return value.lower()
def sql_data(self, row):
sql_data_key = self.__get_cell_value('l', row)
if sql_data_key:
module_name = self.module_name(row)
api_name = self.api_name(row)
try:
return self.sql_data_dict[module_name][api_name][sql_data_key]
except:
log.error('请检查sql语句数据的配置!!!')
def update_key(self, row):
return self.__get_cell_value('m', row)
def get_data(self):
data_list = []
try:
for row in range(2, self.ws.max_row + 1):
module_name =self.module_name(row)
api_name = self.api_name(row)
case_title = self.case_title(row)
case_level = self.case_level(row)
case_url = self.case_url(row)
case_method = self.case_method(row)
case_mime = self.case_mime(row)
case_data = self.case_data(row)
expect_data = self.expect_data(row)
sql_type = self.sql_type(row)
sql_data = self.sql_data(row)
update_key = self.update_key(row)
data_list.append([module_name,api_name,case_title,case_level,case_url, case_method, case_mime, case_data, expect_data, sql_type,
sql_data, update_key])
else:
return data_list
except:
log.error('请检查excel中是否存在空行,如果存在,请删除空行!!')
print(ReadExcel('BPM-WDF').get_data())
import configparser
import os
from InterfaceAutoTest_V1.common import log
class ReadIni:
def __init__(self):
self.data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data_config')
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: str):
try:
file_path = os.path.join(self.data_config_path, self.conf.get('file', key))
if os.path.isfile(file_path):
return file_path
else:
log.error('获取的文件路径非法!!!')
except:
log.error('传入的%s非法,请检查是否与config文件中file节点下的key值对应' % (key))
def get_host_value(self, key: str):
try:
value = self.conf.get('host', key)
except:
log.error('传入的%s非法,请检查是否与config文件中host节点下的key值对应' % (key))
else:
return value
def get_table_name(self, key: str):
try:
value = self.conf.get('table', key)
except:
log.error('传入的%s非法,请检查是否与config文件中table节点下的key值对应' % (key))
else:
return value
def get_sql_conn_message(self, key: str):
try:
value = self.conf.get('sql', key)
except:
log.error('传入的%s非法,请检查是否与config文件中sql节点下的key值对应' % (key))
else:
return value
import json
import os
from InterfaceAutoTest_V1.common import log
def read_json(file):
if os.path.isfile(file) and file.endswith(".json"):
try:
with open(file, mode="r", encoding="utf-8") as f:
return json.loads(f.read())
except:
log.error("打开json文件获取json文件的内容序列化为python对象失败,请察看json文件是否有错误!!!")
else:
log.error("json文件的路径不合法")
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"username": "admin",
"password": "MTIzNDU2"
},
"LoginErrorUsernameIsNone": {
"username": "",
"password": "MTIzNDU2"
},
"LoginErrorPasswordIsNone": {
"username": "admin",
"password": ""
},
"LoginErrorPasswordError": {
"username": "admin",
"password": "MTIzNDU222"
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "wdf_test_dem",
"description": "我的发测试维度",
"isDefault": 0,
"name": "我的发测试维度"
},
"AddDemErrorCodeIsNone": {
"code": "",
"description": "我的发测试维度",
"isDefault": 0,
"name": "我的发测试维度"
}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {
"code": "wdf_test_dem"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "wdf_test_org",
"demId": "不知道",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "我的发测试组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
},
"AddOrgErrorCodeIsNone": {
"code": "",
"demId": "不知道",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "我的发测试组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
}
}
}
\ No newline at end of file
[file]
excel = InterfaceAutoTest.xlsx
case = case_data.json
expect = expect_data.json
sql = sql.json
[host]
host = http://120.46.172.186:8080
[table]
table_name =
[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",
"loginStatus": true
},
"LoginErrorUsernameIsNone": {
"state": false,
"message": "账号或密码错误"
},
"LoginErrorPasswordIsNone": {
"state": false,
"message": "账号或密码错误"
},
"LoginErrorPasswordError": {
"state": false,
"message": "账号或密码错误"
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"state": true,
"message": "添加维度成功!"
},
"AddDemErrorCodeIsNone": {
"state": false,
"message": "添加维度信息失败,维度编码【code】必填!"
}
},
"根据维度编码获取维度信息": {
"GetDemMessageSuccess": {
"demCode": "wdf_test_dem",
"name": "我的发测试维度"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"state": true,
"message": "添加组织成功!"
},
"AddOrgErrorCodeIsNone": {
"state": false,
"message": "添加组织失败,组织编码【code】不能为空!"
}
}
}
}
\ No newline at end of file
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"select": "SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";",
"delete": "DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";"
},
"AddOrgErrorCodeIsNone": {
"select": "SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";",
"delete": "DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";"
}
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
ERROR  王德发:db.py:37 执行删除的sql语句错误,请察看sql语句是否正确
\ No newline at end of file
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"BPM系统测试-王德发","认证接口","登录系统","0","0","4","0","0"
"BPM系统测试-王德发","维度管理","添加维度","0","0","2","0","0"
"BPM系统测试-王德发","组织管理","添加组织","0","0","2","0","0"
"BPM系统测试-王德发","维度管理","根据维度编码获取维度信息","0","0","1","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "BPM系统测试-王德发",
"children" : [ {
"name" : "认证接口",
"children" : [ {
"name" : "登录系统",
"children" : [ {
"name" : "正向用例-用户名和密码正确",
"uid" : "a4e0f260b8fa7531",
"parentUid" : "a3360db85aa4ed82a36cf5f9abac4111",
"status" : "passed",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU2'}", "'高'", "'POST'", "'json'", "'正向用例-用户名和密码正确'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空,密码正确填写",
"uid" : "58698e4cfdff21af",
"parentUid" : "a3360db85aa4ed82a36cf5f9abac4111",
"status" : "passed",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': '', 'password': 'MTIzNDU2'}", "'中'", "'POST'", "'json'", "'反向用例-用户名为空,密码正确填写'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名正确填写,密码为空",
"uid" : "7b349d76f92c7444",
"parentUid" : "a3360db85aa4ed82a36cf5f9abac4111",
"status" : "passed",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': ''}", "'中'", "'POST'", "'json'", "'反向用例-用户名正确填写,密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名填写正确,密码填写错误",
"uid" : "71f613087bcd4830",
"parentUid" : "a3360db85aa4ed82a36cf5f9abac4111",
"status" : "passed",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU222'}", "'中'", "'POST'", "'json'", "'反向用例-用户名填写正确,密码填写错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
} ],
"uid" : "a3360db85aa4ed82a36cf5f9abac4111"
} ],
"uid" : "de718a25c5fddd41b48d01e162def99b"
}, {
"name" : "维度管理",
"children" : [ {
"name" : "添加维度",
"children" : [ {
"name" : "正向用例",
"uid" : "431f066c21510188",
"parentUid" : "2d90d824e60ba122ba8885e51ff18494",
"status" : "passed",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'高'", "'POST'", "'json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'", "'delete'", "None" ]
}, {
"name" : "反向用例",
"uid" : "4841da5b52756922",
"parentUid" : "2d90d824e60ba122ba8885e51ff18494",
"status" : "passed",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'中'", "'POST'", "'json'", "'反向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}", "'维度管理'", "None", "'delete'", "None" ]
} ],
"uid" : "2d90d824e60ba122ba8885e51ff18494"
}, {
"name" : "根据维度编码获取维度信息",
"children" : [ {
"name" : "正向用例",
"uid" : "1f29be7445451682",
"parentUid" : "e7e23ddae88251aeaa8d43f32dbbb5a5",
"status" : "passed",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'wdf_test_dem'}", "'中'", "'GET'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'", "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}", "'维度管理'", "None", "None", "None" ]
} ],
"uid" : "e7e23ddae88251aeaa8d43f32dbbb5a5"
} ],
"uid" : "5380b6998f136787d89ba6be79706929"
}, {
"name" : "组织管理",
"children" : [ {
"name" : "添加组织",
"children" : [ {
"name" : "正向用例",
"uid" : "a1bcdc98c0e94a3b",
"parentUid" : "02f462836ec24214d0cd392fc0914dad",
"status" : "passed",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}", "'select|delete'", "'demId'" ]
}, {
"name" : "反向用例",
"uid" : "cb9d5bdf1a764e22",
"parentUid" : "02f462836ec24214d0cd392fc0914dad",
"status" : "passed",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'中'", "'POST'", "'application/json'", "'反向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': False, 'message': '添加组织失败,组织编码【code】不能为空!'}", "'组织管理'", "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}", "'select|delete'", "'demId'" ]
} ],
"uid" : "02f462836ec24214d0cd392fc0914dad"
} ],
"uid" : "6b0b7944767b9e04975fcb7457a76ff9"
} ],
"uid" : "2d147c6217fd8aeadb3de7b95fe531c5"
} ]
}
\ No newline at end of file
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "test_wdf.test_bpm",
"children" : [ {
"name" : "正向用例-用户名和密码正确",
"uid" : "a4e0f260b8fa7531",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU2'}", "'高'", "'POST'", "'json'", "'正向用例-用户名和密码正确'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空,密码正确填写",
"uid" : "58698e4cfdff21af",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': '', 'password': 'MTIzNDU2'}", "'中'", "'POST'", "'json'", "'反向用例-用户名为空,密码正确填写'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名正确填写,密码为空",
"uid" : "7b349d76f92c7444",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': ''}", "'中'", "'POST'", "'json'", "'反向用例-用户名正确填写,密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名填写正确,密码填写错误",
"uid" : "71f613087bcd4830",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU222'}", "'中'", "'POST'", "'json'", "'反向用例-用户名填写正确,密码填写错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "431f066c21510188",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'高'", "'POST'", "'json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'", "'delete'", "None" ]
}, {
"name" : "反向用例",
"uid" : "4841da5b52756922",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'中'", "'POST'", "'json'", "'反向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}", "'维度管理'", "None", "'delete'", "None" ]
}, {
"name" : "正向用例",
"uid" : "1f29be7445451682",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'wdf_test_dem'}", "'中'", "'GET'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'", "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}", "'维度管理'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "a1bcdc98c0e94a3b",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}", "'select|delete'", "'demId'" ]
}, {
"name" : "反向用例",
"uid" : "cb9d5bdf1a764e22",
"parentUid" : "0e555ff9ad679802505886637bda96f9",
"status" : "passed",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'中'", "'POST'", "'application/json'", "'反向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': False, 'message': '添加组织失败,组织编码【code】不能为空!'}", "'组织管理'", "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}", "'select|delete'", "'demId'" ]
} ],
"uid" : "test_wdf.test_bpm"
} ]
}
\ 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","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","90","test_wdf","test_bpm","TestBpm","","","反向用例-用户名填写正确,密码填写错误",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","180","test_wdf","test_bpm","TestBpm","","","正向用例",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","53","test_wdf","test_bpm","TestBpm","","","反向用例-用户名为空,密码正确填写",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","52","test_wdf","test_bpm","TestBpm","","","反向用例",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:24 CST 2023","174","test_wdf","test_bpm","TestBpm","","","正向用例",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","82","test_wdf","test_bpm","TestBpm","","","正向用例",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","96","test_wdf","test_bpm","TestBpm","","","反向用例-用户名正确填写,密码为空",""
"passed","Mon Nov 06 11:16:23 CST 2023","Mon Nov 06 11:16:23 CST 2023","54","test_wdf","test_bpm","TestBpm","","","正向用例-用户名和密码正确",""
"passed","Mon Nov 06 11:16:24 CST 2023","Mon Nov 06 11:16:24 CST 2023","163","test_wdf","test_bpm","TestBpm","","","反向用例",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "test_wdf",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBpm",
"children" : [ {
"name" : "正向用例-用户名和密码正确",
"uid" : "a4e0f260b8fa7531",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU2'}", "'高'", "'POST'", "'json'", "'正向用例-用户名和密码正确'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名为空,密码正确填写",
"uid" : "58698e4cfdff21af",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': '', 'password': 'MTIzNDU2'}", "'中'", "'POST'", "'json'", "'反向用例-用户名为空,密码正确填写'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名正确填写,密码为空",
"uid" : "7b349d76f92c7444",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': ''}", "'中'", "'POST'", "'json'", "'反向用例-用户名正确填写,密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名填写正确,密码填写错误",
"uid" : "71f613087bcd4830",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU222'}", "'中'", "'POST'", "'json'", "'反向用例-用户名填写正确,密码填写错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "431f066c21510188",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'高'", "'POST'", "'json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'", "'delete'", "None" ]
}, {
"name" : "反向用例",
"uid" : "4841da5b52756922",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'中'", "'POST'", "'json'", "'反向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}", "'维度管理'", "None", "'delete'", "None" ]
}, {
"name" : "正向用例",
"uid" : "1f29be7445451682",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'wdf_test_dem'}", "'中'", "'GET'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'", "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}", "'维度管理'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "a1bcdc98c0e94a3b",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}", "'select|delete'", "'demId'" ]
}, {
"name" : "反向用例",
"uid" : "cb9d5bdf1a764e22",
"parentUid" : "28ea16dd357e8b61f282c548a03ea63f",
"status" : "passed",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'中'", "'POST'", "'application/json'", "'反向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': False, 'message': '添加组织失败,组织编码【code】不能为空!'}", "'组织管理'", "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}", "'select|delete'", "'demId'" ]
} ],
"uid" : "28ea16dd357e8b61f282c548a03ea63f"
} ],
"uid" : "f70effad92ba27aff357f02a7d1a5143"
} ],
"uid" : "4cc0afdf2a494b0f890060ef4d5eb567"
} ]
}
\ No newline at end of file
{
"uid" : "1f29be7445451682",
"name" : "正向用例",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "428c5cbbd1751f9eba3924400000000b",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583809,
"stop" : 1699240583809,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "fbea825fee18581c",
"name" : "stdout",
"source" : "fbea825fee18581c.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码获取维度信息"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'根据维度编码获取维度信息'"
}, {
"name" : "case_data",
"value" : "{'code': 'wdf_test_dem'}"
}, {
"name" : "case_level",
"value" : "'中'"
}, {
"name" : "case_method",
"value" : "'GET'"
}, {
"name" : "case_mime",
"value" : "'query'"
}, {
"name" : "case_title",
"value" : "'正向用例'"
}, {
"name" : "case_url",
"value" : "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'"
}, {
"name" : "expect_data",
"value" : "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "1f29be7445451682.json",
"parameterValues" : [ "'根据维度编码获取维度信息'", "{'code': 'wdf_test_dem'}", "'中'", "'GET'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'", "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}", "'维度管理'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "431f066c21510188",
"name" : "正向用例",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "4c7f2654fceeef8f3f59a7ae7be9d3e6",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583535,
"stop" : 1699240583536,
"duration" : 1
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "203a1122696fa85a",
"name" : "stdout",
"source" : "203a1122696fa85a.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'添加维度'"
}, {
"name" : "case_data",
"value" : "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}"
}, {
"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/api/demension/v1/dem/addDem'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "431f066c21510188.json",
"parameterValues" : [ "'添加维度'", "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'高'", "'POST'", "'json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'", "'delete'", "None" ]
}
\ No newline at end of file
{
"uid" : "4841da5b52756922",
"name" : "反向用例",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "a004e2d803632d06806e597d95c3a8c0",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583738,
"stop" : 1699240583738,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "fc016de897e233c9",
"name" : "log",
"source" : "fc016de897e233c9.txt",
"type" : "text/plain",
"size" : 104
}, {
"uid" : "6bef34bc01dfbde",
"name" : "stdout",
"source" : "6bef34bc01dfbde.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'添加维度'"
}, {
"name" : "case_data",
"value" : "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}"
}, {
"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/api/demension/v1/dem/addDem'"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}"
}, {
"name" : "module_name",
"value" : "'维度管理'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "4841da5b52756922.json",
"parameterValues" : [ "'添加维度'", "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'中'", "'POST'", "'json'", "'反向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}", "'维度管理'", "None", "'delete'", "None" ]
}
\ No newline at end of file
{
"uid" : "58698e4cfdff21af",
"name" : "反向用例-用户名为空,密码正确填写",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "4ba65c98f4203c09e406784f82260356",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583236,
"stop" : 1699240583236,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "34e8591d6fc26e3d",
"name" : "stdout",
"source" : "34e8591d6fc26e3d.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': '', 'password': 'MTIzNDU2'}"
}, {
"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" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "58698e4cfdff21af.json",
"parameterValues" : [ "'登录系统'", "{'username': '', 'password': 'MTIzNDU2'}", "'中'", "'POST'", "'json'", "'反向用例-用户名为空,密码正确填写'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "71f613087bcd4830",
"name" : "反向用例-用户名填写正确,密码填写错误",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "95f1bc7c0c5780b86d719357b8b73e54",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583424,
"stop" : 1699240583424,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "6650ee086c1ea806",
"name" : "stdout",
"source" : "6650ee086c1ea806.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'MTIzNDU222'}"
}, {
"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" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "71f613087bcd4830.json",
"parameterValues" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU222'}", "'中'", "'POST'", "'json'", "'反向用例-用户名填写正确,密码填写错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "7b349d76f92c7444",
"name" : "反向用例-用户名正确填写,密码为空",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "42ceb953820b163ad551683337470d7f",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583304,
"stop" : 1699240583304,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "516f9c3d193fd871",
"name" : "stdout",
"source" : "516f9c3d193fd871.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': ''}"
}, {
"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" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "7b349d76f92c7444.json",
"parameterValues" : [ "'登录系统'", "{'username': 'admin', 'password': ''}", "'中'", "'POST'", "'json'", "'反向用例-用户名正确填写,密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "a1bcdc98c0e94a3b",
"name" : "正向用例",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "eeb6789781d1acc05d7e210d19b0cb17",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583909,
"stop" : 1699240583909,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "97ad69285de0a142",
"name" : "stdout",
"source" : "97ad69285de0a142.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "添加组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'添加组织'"
}, {
"name" : "case_data",
"value" : "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}"
}, {
"name" : "sql_type",
"value" : "'select|delete'"
}, {
"name" : "update_key",
"value" : "'demId'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a1bcdc98c0e94a3b.json",
"parameterValues" : [ "'添加组织'", "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}", "'select|delete'", "'demId'" ]
}
\ No newline at end of file
{
"uid" : "a4e0f260b8fa7531",
"name" : "正向用例-用户名和密码正确",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "6da34adc8d27e8acc6edded6ae93bd74",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "80320ac63d126513",
"name" : "stdout",
"source" : "80320ac63d126513.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'登录系统'"
}, {
"name" : "case_data",
"value" : "{'username': 'admin', 'password': 'MTIzNDU2'}"
}, {
"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" : "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}"
}, {
"name" : "module_name",
"value" : "'认证接口'"
}, {
"name" : "sql_data",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "update_key",
"value" : "None"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a4e0f260b8fa7531.json",
"parameterValues" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU2'}", "'高'", "'POST'", "'json'", "'正向用例-用户名和密码正确'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}", "'认证接口'", "None", "None", "None" ]
}
\ No newline at end of file
{
"uid" : "cb9d5bdf1a764e22",
"name" : "反向用例",
"fullName" : "test_wdf.test_bpm.TestBpm#test_bpm",
"historyId" : "d2ccbaa27edc8666ae13898a0b7077a7",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1699240582850,
"stop" : 1699240583050,
"duration" : 200
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_skip_sensitive",
"time" : {
"start" : 1699240584102,
"stop" : 1699240584102,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_verify_url",
"time" : {
"start" : 1699240582850,
"stop" : 1699240582850,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "sensitive_url",
"time" : {
"start" : 1699240583146,
"stop" : 1699240583146,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1699240582705,
"stop" : 1699240582849,
"duration" : 144
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "base_url",
"time" : {
"start" : 1699240582849,
"stop" : 1699240582849,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix",
"time" : {
"start" : 1699240583051,
"stop" : 1699240583146,
"duration" : 95
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "e32ec02f08888d91",
"name" : "stdout",
"source" : "e32ec02f08888d91.txt",
"type" : "text/plain",
"size" : 16
} ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : true,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1699240584286,
"stop" : 1699240584286,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "req_fix::0",
"time" : {
"start" : 1699240584285,
"stop" : 1699240584285,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"hasContent" : false,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "添加组织"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统测试-王德发"
}, {
"name" : "parentSuite",
"value" : "test_wdf"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBpm"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "2536-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_wdf.test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "api_name",
"value" : "'添加组织'"
}, {
"name" : "case_data",
"value" : "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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': False, 'message': '添加组织失败,组织编码【code】不能为空!'}"
}, {
"name" : "module_name",
"value" : "'组织管理'"
}, {
"name" : "sql_data",
"value" : "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}"
}, {
"name" : "sql_type",
"value" : "'select|delete'"
}, {
"name" : "update_key",
"value" : "'demId'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "cb9d5bdf1a764e22.json",
"parameterValues" : [ "'添加组织'", "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'中'", "'POST'", "'application/json'", "'反向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': False, 'message': '添加组织失败,组织编码【code】不能为空!'}", "'组织管理'", "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}", "'select|delete'", "'demId'" ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "DESKTOP-4FFIKGU",
"children" : [ {
"name" : "2536-MainThread",
"children" : [ {
"name" : "正向用例-用户名和密码正确",
"uid" : "a4e0f260b8fa7531",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU2'}", "'高'", "'POST'", "'json'", "'正向用例-用户名和密码正确'", "'http://120.46.172.186:8080/auth'", "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "1f29be7445451682",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'根据维度编码获取维度信息'", "{'code': 'wdf_test_dem'}", "'中'", "'GET'", "'query'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'", "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}", "'维度管理'", "None", "None", "None" ]
}, {
"name" : "反向用例-用户名正确填写,密码为空",
"uid" : "7b349d76f92c7444",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': ''}", "'中'", "'POST'", "'json'", "'反向用例-用户名正确填写,密码为空'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "正向用例",
"uid" : "431f066c21510188",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'高'", "'POST'", "'json'", "'正向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': True, 'message': '添加维度成功!'}", "'维度管理'", "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'", "'delete'", "None" ]
}, {
"name" : "反向用例-用户名为空,密码正确填写",
"uid" : "58698e4cfdff21af",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': '', 'password': 'MTIzNDU2'}", "'中'", "'POST'", "'json'", "'反向用例-用户名为空,密码正确填写'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例",
"uid" : "4841da5b52756922",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加维度'", "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}", "'中'", "'POST'", "'json'", "'反向用例'", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'", "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}", "'维度管理'", "None", "'delete'", "None" ]
}, {
"name" : "反向用例-用户名填写正确,密码填写错误",
"uid" : "71f613087bcd4830",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'登录系统'", "{'username': 'admin', 'password': 'MTIzNDU222'}", "'中'", "'POST'", "'json'", "'反向用例-用户名填写正确,密码填写错误'", "'http://120.46.172.186:8080/auth'", "{'state': False, 'message': '账号或密码错误'}", "'认证接口'", "None", "None", "None" ]
}, {
"name" : "反向用例",
"uid" : "cb9d5bdf1a764e22",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "'中'", "'POST'", "'application/json'", "'反向用例'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'", "{'state': False, 'message': '添加组织失败,组织编码【code】不能为空!'}", "'组织管理'", "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}", "'select|delete'", "'demId'" ]
}, {
"name" : "正向用例",
"uid" : "a1bcdc98c0e94a3b",
"parentUid" : "cd2342681294b875b254f82a5c35bd2e",
"status" : "passed",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'添加组织'", "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', '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_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}", "'select|delete'", "'demId'" ]
} ],
"uid" : "cd2342681294b875b254f82a5c35bd2e"
} ],
"uid" : "f73be692ef2b065133063b476e3099eb"
} ]
}
\ No newline at end of file
launch_status failed=0 1699240984000000000
launch_status broken=0 1699240984000000000
launch_status passed=9 1699240984000000000
launch_status skipped=0 1699240984000000000
launch_status unknown=0 1699240984000000000
launch_time duration=1121 1699240984000000000
launch_time min_duration=52 1699240984000000000
launch_time max_duration=180 1699240984000000000
launch_time sum_duration=944 1699240984000000000
launch_retries retries=0 1699240984000000000
launch_retries run=9 1699240984000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 0
launch_status_broken 0
launch_status_passed 9
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 1121
launch_time_min_duration 52
launch_time_max_duration 180
launch_time_sum_duration 944
launch_retries_retries 0
launch_retries_run 9
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
"data" : {
"duration" : 1121
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 9,
"unknown" : 0,
"total" : 9
}
} ]
\ No newline at end of file
{
"eeb6789781d1acc05d7e210d19b0cb17" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a1bcdc98c0e94a3b",
"status" : "passed",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
}
} ]
},
"d2ccbaa27edc8666ae13898a0b7077a7" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "cb9d5bdf1a764e22",
"status" : "passed",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
}
} ]
},
"4c7f2654fceeef8f3f59a7ae7be9d3e6" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "431f066c21510188",
"status" : "passed",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
}
} ]
},
"428c5cbbd1751f9eba3924400000000b" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "1f29be7445451682",
"status" : "passed",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
}
} ]
},
"6da34adc8d27e8acc6edded6ae93bd74" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a4e0f260b8fa7531",
"status" : "passed",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
}
} ]
},
"a004e2d803632d06806e597d95c3a8c0" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "4841da5b52756922",
"status" : "passed",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
}
} ]
},
"4ba65c98f4203c09e406784f82260356" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "58698e4cfdff21af",
"status" : "passed",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
}
} ]
},
"42ceb953820b163ad551683337470d7f" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "7b349d76f92c7444",
"status" : "passed",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
}
} ]
},
"95f1bc7c0c5780b86d719357b8b73e54" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "71f613087bcd4830",
"status" : "passed",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 9,
"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('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.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
}));
\ No newline at end of file
'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('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.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="data/attachments/' + src + '">' +
'</div>';
}
function renderDiffContent(type, data) {
function findImage(name) {
if (data.testStage && data.testStage.attachments) {
return data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
}
return null;
}
var diffImage = findImage('diff');
var actualImage = findImage('actual');
var expectedImage = findImage('expected');
if (!diffImage && !actualImage && !expectedImage) {
return '<span>Diff, actual and expected image have not been provided.</span>';
}
if (type === 'diff') {
if (!diffImage) {
return renderImage(actualImage.source);
}
return renderImage(diffImage.source);
}
if (type === 'overlay') {
return '<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="data/attachments/' + expectedImage.source + '">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="data/attachments/' + actualImage.source + '">' +
'</div>' +
'</div>';
}
}
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: {
'click [name="screen-diff-type"]': 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove'
},
templateContext: function () {
return {
diffType: settings.get('diffType')
}
},
template: function (data) {
var testType = data.labels.filter(function (label) {
return label.name === 'testType'
})[0];
if (!testType || testType.value !== 'screenshotDiff') {
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="screen-diff-type" value="diff"> Show diff</label>' +
'<label><input type="radio" name="screen-diff-type" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(data.diffType, data) +
'</div>';
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="screen-diff-type"][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(ScreenDiffView, {position: 'before'});
})();
.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;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"total" : 1,
"items" : [ {
"uid" : "2d147c6217fd8aeadb3de7b95fe531c5",
"name" : "BPM系统测试-王德发",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
{
"total" : 0,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 1121
}
} ]
\ No newline at end of file
[ {
"uid" : "71f613087bcd4830",
"name" : "反向用例-用户名填写正确,密码填写错误",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "431f066c21510188",
"name" : "正向用例",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "58698e4cfdff21af",
"name" : "反向用例-用户名为空,密码正确填写",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "4841da5b52756922",
"name" : "反向用例",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a1bcdc98c0e94a3b",
"name" : "正向用例",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1f29be7445451682",
"name" : "正向用例",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7b349d76f92c7444",
"name" : "反向用例-用户名正确填写,密码为空",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a4e0f260b8fa7531",
"name" : "正向用例-用户名和密码正确",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "cb9d5bdf1a764e22",
"name" : "反向用例",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 9,
"unknown" : 0,
"total" : 9
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 9,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "a4e0f260b8fa7531",
"name" : "正向用例-用户名和密码正确",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "431f066c21510188",
"name" : "正向用例",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "58698e4cfdff21af",
"name" : "反向用例-用户名为空,密码正确填写",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "4841da5b52756922",
"name" : "反向用例",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1f29be7445451682",
"name" : "正向用例",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7b349d76f92c7444",
"name" : "反向用例-用户名正确填写,密码为空",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "cb9d5bdf1a764e22",
"name" : "反向用例",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "71f613087bcd4830",
"name" : "反向用例-用户名填写正确,密码填写错误",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a1bcdc98c0e94a3b",
"name" : "正向用例",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "71f613087bcd4830",
"name" : "反向用例-用户名填写正确,密码填写错误",
"time" : {
"start" : 1699240583427,
"stop" : 1699240583517,
"duration" : 90
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "431f066c21510188",
"name" : "正向用例",
"time" : {
"start" : 1699240583538,
"stop" : 1699240583718,
"duration" : 180
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "58698e4cfdff21af",
"name" : "反向用例-用户名为空,密码正确填写",
"time" : {
"start" : 1699240583238,
"stop" : 1699240583291,
"duration" : 53
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "4841da5b52756922",
"name" : "反向用例",
"time" : {
"start" : 1699240583742,
"stop" : 1699240583794,
"duration" : 52
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a1bcdc98c0e94a3b",
"name" : "正向用例",
"time" : {
"start" : 1699240583912,
"stop" : 1699240584086,
"duration" : 174
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1f29be7445451682",
"name" : "正向用例",
"time" : {
"start" : 1699240583811,
"stop" : 1699240583893,
"duration" : 82
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7b349d76f92c7444",
"name" : "反向用例-用户名正确填写,密码为空",
"time" : {
"start" : 1699240583306,
"stop" : 1699240583402,
"duration" : 96
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a4e0f260b8fa7531",
"name" : "正向用例-用户名和密码正确",
"time" : {
"start" : 1699240583148,
"stop" : 1699240583202,
"duration" : 54
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "cb9d5bdf1a764e22",
"name" : "反向用例",
"time" : {
"start" : 1699240584106,
"stop" : 1699240584269,
"duration" : 163
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "4cc0afdf2a494b0f890060ef4d5eb567",
"name" : "test_wdf",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 9,
"unknown" : 0,
"total" : 9
}
} ]
}
\ No newline at end of file
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 9,
"unknown" : 0,
"total" : 9
},
"time" : {
"start" : 1699240583148,
"stop" : 1699240584269,
"duration" : 1121,
"minDuration" : 52,
"maxDuration" : 180,
"sumDuration" : 944
}
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title id="head-title">report.html</title>
<style type="text/css">body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
/* do not increase min-width as some may use split screens */
min-width: 800px;
color: #999;
}
h1 {
font-size: 24px;
color: black;
}
h2 {
font-size: 16px;
color: black;
}
p {
color: black;
}
a {
color: #999;
}
table {
border-collapse: collapse;
}
/******************************
* SUMMARY INFORMATION
******************************/
#environment td {
padding: 5px;
border: 1px solid #e6e6e6;
vertical-align: top;
}
#environment tr:nth-child(odd) {
background-color: #f6f6f6;
}
#environment ul {
margin: 0;
padding: 0 20px;
}
/******************************
* TEST RESULT COLORS
******************************/
span.passed,
.passed .col-result {
color: green;
}
span.skipped,
span.xfailed,
span.rerun,
.skipped .col-result,
.xfailed .col-result,
.rerun .col-result {
color: orange;
}
span.error,
span.failed,
span.xpassed,
.error .col-result,
.failed .col-result,
.xpassed .col-result {
color: red;
}
.col-links__extra {
margin-right: 3px;
}
/******************************
* RESULTS TABLE
*
* 1. Table Layout
* 2. Extra
* 3. Sorting items
*
******************************/
/*------------------
* 1. Table Layout
*------------------*/
#results-table {
border: 1px solid #e6e6e6;
color: #999;
font-size: 12px;
width: 100%;
}
#results-table th,
#results-table td {
padding: 5px;
border: 1px solid #e6e6e6;
text-align: left;
}
#results-table th {
font-weight: bold;
}
/*------------------
* 2. Extra
*------------------*/
.logwrapper {
max-height: 230px;
overflow-y: scroll;
background-color: #e6e6e6;
}
.logwrapper.expanded {
max-height: none;
}
.logwrapper.expanded .logexpander:after {
content: "collapse [-]";
}
.logwrapper .logexpander {
z-index: 1;
position: sticky;
top: 10px;
width: max-content;
border: 1px solid;
border-radius: 3px;
padding: 5px 7px;
margin: 10px 0 10px calc(100% - 80px);
cursor: pointer;
background-color: #e6e6e6;
}
.logwrapper .logexpander:after {
content: "expand [+]";
}
.logwrapper .logexpander:hover {
color: #000;
border-color: #000;
}
.logwrapper .log {
min-height: 40px;
position: relative;
top: -50px;
height: calc(100% + 50px);
border: 1px solid #e6e6e6;
color: black;
display: block;
font-family: "Courier New", Courier, monospace;
padding: 5px;
padding-right: 80px;
white-space: pre-wrap;
}
div.media {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin: 0 5px;
overflow: hidden;
width: 320px;
}
.media-container {
display: grid;
grid-template-columns: 25px auto 25px;
align-items: center;
flex: 1 1;
overflow: hidden;
height: 200px;
}
.media-container--fullscreen {
grid-template-columns: 0px auto 0px;
}
.media-container__nav--right,
.media-container__nav--left {
text-align: center;
cursor: pointer;
}
.media-container__viewport {
cursor: pointer;
text-align: center;
height: inherit;
}
.media-container__viewport img,
.media-container__viewport video {
object-fit: cover;
width: 100%;
max-height: 100%;
}
.media__name,
.media__counter {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 0 0 25px;
align-items: center;
}
.collapsible td:not(.col-links) {
cursor: pointer;
}
.collapsible td:not(.col-links):hover::after {
color: #bbb;
font-style: italic;
cursor: pointer;
}
.col-result {
width: 130px;
}
.col-result:hover::after {
content: " (hide details)";
}
.col-result.collapsed:hover::after {
content: " (show details)";
}
#environment-header h2:hover::after {
content: " (hide details)";
color: #bbb;
font-style: italic;
cursor: pointer;
font-size: 12px;
}
#environment-header.collapsed h2:hover::after {
content: " (show details)";
color: #bbb;
font-style: italic;
cursor: pointer;
font-size: 12px;
}
/*------------------
* 3. Sorting items
*------------------*/
.sortable {
cursor: pointer;
}
.sortable.desc:after {
content: " ";
position: relative;
left: 5px;
bottom: -12.5px;
border: 10px solid #4caf50;
border-bottom: 0;
border-left-color: transparent;
border-right-color: transparent;
}
.sortable.asc:after {
content: " ";
position: relative;
left: 5px;
bottom: 12.5px;
border: 10px solid #4caf50;
border-top: 0;
border-left-color: transparent;
border-right-color: transparent;
}
.hidden, .summary__reload__button.hidden {
display: none;
}
.summary__data {
flex: 0 0 550px;
}
.summary__reload {
flex: 1 1;
display: flex;
justify-content: center;
}
.summary__reload__button {
flex: 0 0 300px;
display: flex;
color: white;
font-weight: bold;
background-color: #4caf50;
text-align: center;
justify-content: center;
align-items: center;
border-radius: 3px;
cursor: pointer;
}
.summary__reload__button:hover {
background-color: #46a049;
}
.summary__spacer {
flex: 0 0 550px;
}
.controls {
display: flex;
justify-content: space-between;
}
.filters,
.collapse {
display: flex;
align-items: center;
}
.filters button,
.collapse button {
color: #999;
border: none;
background: none;
cursor: pointer;
text-decoration: underline;
}
.filters button:hover,
.collapse button:hover {
color: #ccc;
}
.filter__label {
margin-right: 10px;
}
</style>
</head>
<body>
<h1 id="title">report.html</h1>
<p>Report generated on 06-Nov-2023 at 10:05:04 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
v4.0.2</p>
<div id="environment-header">
<h2>Environment</h2>
</div>
<table id="environment"></table>
<!-- TEMPLATES -->
<template id="template_environment_row">
<tr>
<td></td>
<td></td>
</tr>
</template>
<template id="template_results-table__body--empty">
<tbody class="results-table-row">
<tr id="not-found-message">
<td colspan="4">No results found. Check the filters.</th>
</tr>
</template>
<template id="template_results-table__tbody">
<tbody class="results-table-row">
<tr class="collapsible">
</tr>
<tr class="extras-row">
<td class="extra" colspan="4">
<div class="extraHTML"></div>
<div class="media">
<div class="media-container">
<div class="media-container__nav--left"><</div>
<div class="media-container__viewport">
<img src="" />
<video controls>
<source src="" type="video/mp4">
</video>
</div>
<div class="media-container__nav--right">></div>
</div>
<div class="media__name"></div>
<div class="media__counter"></div>
</div>
<div class="logwrapper">
<div class="logexpander"></div>
<div class="log"></div>
</div>
</td>
</tr>
</tbody>
</template>
<!-- END TEMPLATES -->
<div class="summary">
<div class="summary__data">
<h2>Summary</h2>
<div class="additional-summary prefix">
</div>
<p class="run-count">9 tests took 00:00:01.</p>
<p class="filter">(Un)check the boxes to filter the results.</p>
<div class="summary__reload">
<div class="summary__reload__button hidden" onclick="location.reload()">
<div>There are still tests running. <br />Reload this page to ge the latest results!</div>
</div>
</div>
<div class="summary__spacer"></div>
<div class="controls">
<div class="filters">
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="failed" disabled/>
<span class="failed">0 Failed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" />
<span class="passed">9 Passed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="skipped" disabled/>
<span class="skipped">0 Skipped,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xfailed" disabled/>
<span class="xfailed">0 Expected failures,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xpassed" disabled/>
<span class="xpassed">0 Unexpected passes,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="error" disabled/>
<span class="error">0 Errors,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="rerun" disabled/>
<span class="rerun">0 Reruns</span>
</div>
<div class="collapse">
<button id="show_all_details">Show all details</button>&nbsp;/&nbsp;<button id="hide_all_details">Hide all details</button>
</div>
</div>
</div>
<div class="additional-summary summary">
</div>
<div class="additional-summary postfix">
</div>
</div>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable" data-column-type="result">Result</th>
<th class="sortable" data-column-type="testId">Test</th>
<th class="sortable" data-column-type="duration">Duration</th>
<th>Links</th>
</tr>
</thead>
</table>
</body>
<footer>
<div id="data-container" data-jsonblob="{&#34;environment&#34;: {&#34;Python&#34;: &#34;3.11.2&#34;, &#34;Platform&#34;: &#34;Windows-10-10.0.17763-SP0&#34;, &#34;Packages&#34;: {&#34;pytest&#34;: &#34;7.4.3&#34;, &#34;pluggy&#34;: &#34;1.0.0&#34;}, &#34;Plugins&#34;: {&#34;allure-pytest&#34;: &#34;2.13.2&#34;, &#34;Faker&#34;: &#34;19.12.0&#34;, &#34;assume&#34;: &#34;2.4.3&#34;, &#34;base-url&#34;: &#34;2.0.0&#34;, &#34;dependency&#34;: &#34;0.5.1&#34;, &#34;html&#34;: &#34;4.0.2&#34;, &#34;metadata&#34;: &#34;3.0.0&#34;, &#34;ordering&#34;: &#34;0.6&#34;, &#34;rerunfailures&#34;: &#34;12.0&#34;, &#34;selenium&#34;: &#34;4.0.1&#34;, &#34;variables&#34;: &#34;3.0.0&#34;}, &#34;JAVA_HOME&#34;: &#34;D:\\java\\jdk&#34;, &#34;Driver&#34;: null, &#34;Capabilities&#34;: {}}, &#34;tests&#34;: {&#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u6b63\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u548c\\u5bc6\\u7801\\u6b63\\u786e-case_data0-expect_data0-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u6b63\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u548c\\u5bc6\\u7801\\u6b63\\u786e-case_data0-expect_data0-None-None-None]&#34;, &#34;duration&#34;: &#34;54 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u6b63\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u548c\\u5bc6\\u7801\\u6b63\\u786e-case_data0-expect_data0-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;54 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u4e3a\\u7a7a,\\u5bc6\\u7801\\u6b63\\u786e\\u586b\\u5199-case_data1-expect_data1-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u4e3a\\u7a7a,\\u5bc6\\u7801\\u6b63\\u786e\\u586b\\u5199-case_data1-expect_data1-None-None-None]&#34;, &#34;duration&#34;: &#34;50 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u4e3a\\u7a7a,\\u5bc6\\u7801\\u6b63\\u786e\\u586b\\u5199-case_data1-expect_data1-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;50 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u6b63\\u786e\\u586b\\u5199,\\u5bc6\\u7801\\u4e3a\\u7a7a-case_data2-expect_data2-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u6b63\\u786e\\u586b\\u5199,\\u5bc6\\u7801\\u4e3a\\u7a7a-case_data2-expect_data2-None-None-None]&#34;, &#34;duration&#34;: &#34;94 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u6b63\\u786e\\u586b\\u5199,\\u5bc6\\u7801\\u4e3a\\u7a7a-case_data2-expect_data2-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;94 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u586b\\u5199\\u6b63\\u786e\\uff0c\\u5bc6\\u7801\\u586b\\u5199\\u9519\\u8bef-case_data3-expect_data3-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u586b\\u5199\\u6b63\\u786e\\uff0c\\u5bc6\\u7801\\u586b\\u5199\\u9519\\u8bef-case_data3-expect_data3-None-None-None]&#34;, &#34;duration&#34;: &#34;84 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/auth-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-\\u7528\\u6237\\u540d\\u586b\\u5199\\u6b63\\u786e\\uff0c\\u5bc6\\u7801\\u586b\\u5199\\u9519\\u8bef-case_data3-expect_data3-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;84 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/addDem-POST-json-\\u6b63\\u5411\\u7528\\u4f8b-case_data4-expect_data4-delete-DELETE FROM uc_demension WHERE CODE_=\&#34;wdf_test_dem\&#34;;-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/addDem-POST-json-\\u6b63\\u5411\\u7528\\u4f8b-case_data4-expect_data4-delete-DELETE FROM uc_demension WHERE CODE_=\&#34;wdf_test_dem\&#34;;-None]&#34;, &#34;duration&#34;: &#34;176 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/addDem-POST-json-\\u6b63\\u5411\\u7528\\u4f8b-case_data4-expect_data4-delete-DELETE FROM uc_demension WHERE CODE_=\&#34;wdf_test_dem\&#34;;-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;176 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/addDem-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-case_data5-expect_data5-delete-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/addDem-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-case_data5-expect_data5-delete-None-None]&#34;, &#34;duration&#34;: &#34;45 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/addDem-POST-json-\\u53cd\\u5411\\u7528\\u4f8b-case_data5-expect_data5-delete-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;45 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n\n------------------------------ Captured log call -------------------------------\nERROR \u738b\u5fb7\u53d1:db.py:37 \u6267\u884c\u5220\u9664\u7684sql\u8bed\u53e5\u9519\u8bef\uff0c\u8bf7\u5bdf\u770bsql\u8bed\u53e5\u662f\u5426\u6b63\u786e\n\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/getDem-GET-query-\\u6b63\\u5411\\u7528\\u4f8b-case_data6-expect_data6-None-None-None]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/getDem-GET-query-\\u6b63\\u5411\\u7528\\u4f8b-case_data6-expect_data6-None-None-None]&#34;, &#34;duration&#34;: &#34;93 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/demension/v1/dem/getDem-GET-query-\\u6b63\\u5411\\u7528\\u4f8b-case_data6-expect_data6-None-None-None]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;93 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/org/v1/org/addOrg-POST-application/json-\\u6b63\\u5411\\u7528\\u4f8b-case_data7-expect_data7-select|delete-sql_data7-demId]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/org/v1/org/addOrg-POST-application/json-\\u6b63\\u5411\\u7528\\u4f8b-case_data7-expect_data7-select|delete-sql_data7-demId]&#34;, &#34;duration&#34;: &#34;173 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/org/v1/org/addOrg-POST-application/json-\\u6b63\\u5411\\u7528\\u4f8b-case_data7-expect_data7-select|delete-sql_data7-demId]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;173 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}], &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/org/v1/org/addOrg-POST-application/json-\\u53cd\\u5411\\u7528\\u4f8b-case_data8-expect_data8-select|delete-sql_data8-demId]&#34;: [{&#34;extras&#34;: [], &#34;result&#34;: &#34;Passed&#34;, &#34;testId&#34;: &#34;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/org/v1/org/addOrg-POST-application/json-\\u53cd\\u5411\\u7528\\u4f8b-case_data8-expect_data8-select|delete-sql_data8-demId]&#34;, &#34;duration&#34;: &#34;168 ms&#34;, &#34;resultsTableRow&#34;: [&#34;&lt;td class=\&#34;col-result\&#34;&gt;Passed&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-testId\&#34;&gt;test_wdf/test_bpm.py::TestBpm::test_bpm[http://120.46.172.186:8080/api/org/v1/org/addOrg-POST-application/json-\\u53cd\\u5411\\u7528\\u4f8b-case_data8-expect_data8-select|delete-sql_data8-demId]&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-duration\&#34;&gt;168 ms&lt;/td&gt;&#34;, &#34;&lt;td class=\&#34;col-links\&#34;&gt;&lt;/td&gt;&#34;], &#34;log&#34;: &#34;----------------------------- Captured stdout call -----------------------------\n\u65ad\u8a00\u6210\u529f!!!\n&#34;}]}, &#34;renderCollapsed&#34;: [&#34;passed&#34;], &#34;initialSort&#34;: &#34;result&#34;, &#34;title&#34;: &#34;report.html&#34;}"></div>
<script>
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const { getCollapsedCategory, setCollapsedIds } = require('./storage.js')
class DataManager {
setManager(data) {
const collapsedCategories = [...getCollapsedCategory(data.renderCollapsed)]
const collapsedIds = []
const tests = Object.values(data.tests).flat().map((test, index) => {
const collapsed = collapsedCategories.includes(test.result.toLowerCase())
const id = `test_${index}`
if (collapsed) {
collapsedIds.push(id)
}
return {
...test,
id,
collapsed,
}
})
const dataBlob = { ...data, tests }
this.data = { ...dataBlob }
this.renderData = { ...dataBlob }
setCollapsedIds(collapsedIds)
}
get allData() {
return { ...this.data }
}
resetRender() {
this.renderData = { ...this.data }
}
setRender(data) {
this.renderData.tests = [...data]
}
toggleCollapsedItem(id) {
this.renderData.tests = this.renderData.tests.map((test) =>
test.id === id ? { ...test, collapsed: !test.collapsed } : test,
)
}
set allCollapsed(collapsed) {
this.renderData = { ...this.renderData, tests: [...this.renderData.tests.map((test) => (
{ ...test, collapsed }
))] }
}
get testSubset() {
return [...this.renderData.tests]
}
get environment() {
return this.renderData.environment
}
get initialSort() {
return this.data.initialSort
}
}
module.exports = {
manager: new DataManager(),
}
},{"./storage.js":8}],2:[function(require,module,exports){
const mediaViewer = require('./mediaviewer.js')
const templateEnvRow = document.getElementById('template_environment_row')
const templateResult = document.getElementById('template_results-table__tbody')
function htmlToElements(html) {
const temp = document.createElement('template')
temp.innerHTML = html
return temp.content.childNodes
}
const find = (selector, elem) => {
if (!elem) {
elem = document
}
return elem.querySelector(selector)
}
const findAll = (selector, elem) => {
if (!elem) {
elem = document
}
return [...elem.querySelectorAll(selector)]
}
const dom = {
getStaticRow: (key, value) => {
const envRow = templateEnvRow.content.cloneNode(true)
const isObj = typeof value === 'object' && value !== null
const values = isObj ? Object.keys(value).map((k) => `${k}: ${value[k]}`) : null
const valuesElement = htmlToElements(
values ? `<ul>${values.map((val) => `<li>${val}</li>`).join('')}<ul>` : `<div>${value}</div>`)[0]
const td = findAll('td', envRow)
td[0].textContent = key
td[1].appendChild(valuesElement)
return envRow
},
getResultTBody: ({ testId, id, log, extras, resultsTableRow, tableHtml, result, collapsed }) => {
const resultBody = templateResult.content.cloneNode(true)
resultBody.querySelector('tbody').classList.add(result.toLowerCase())
resultBody.querySelector('tbody').id = testId
resultBody.querySelector('.collapsible').dataset.id = id
resultsTableRow.forEach((html) => {
const t = document.createElement('template')
t.innerHTML = html
resultBody.querySelector('.collapsible').appendChild(t.content)
})
if (log) {
// Wrap lines starting with "E" with span.error to color those lines red
const wrappedLog = log.replace(/^E.*$/gm, (match) => `<span class="error">${match}</span>`)
resultBody.querySelector('.log').innerHTML = wrappedLog
} else {
resultBody.querySelector('.log').remove()
}
if (collapsed) {
resultBody.querySelector('.collapsible > td')?.classList.add('collapsed')
resultBody.querySelector('.extras-row').classList.add('hidden')
} else {
resultBody.querySelector('.collapsible > td')?.classList.remove('collapsed')
}
const media = []
extras?.forEach(({ name, format_type, content }) => {
if (['image', 'video'].includes(format_type)) {
media.push({ path: content, name, format_type })
}
if (format_type === 'html') {
resultBody.querySelector('.extraHTML').insertAdjacentHTML('beforeend', `<div>${content}</div>`)
}
})
mediaViewer.setup(resultBody, media)
// Add custom html from the pytest_html_results_table_html hook
tableHtml?.forEach((item) => {
resultBody.querySelector('td[class="extra"]').insertAdjacentHTML('beforeend', item)
})
return resultBody
},
}
module.exports = {
dom,
htmlToElements,
find,
findAll,
}
},{"./mediaviewer.js":6}],3:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const storageModule = require('./storage.js')
const getFilteredSubSet = (filter) =>
manager.allData.tests.filter(({ result }) => filter.includes(result.toLowerCase()))
const doInitFilter = () => {
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
}
const doFilter = (type, show) => {
if (show) {
storageModule.showCategory(type)
} else {
storageModule.hideCategory(type)
}
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
const sortColumn = storageModule.getSort()
doSort(sortColumn, true)
}
module.exports = {
doFilter,
doInitFilter,
}
},{"./datamanager.js":1,"./sort.js":7,"./storage.js":8}],4:[function(require,module,exports){
const { redraw, bindEvents, renderStatic } = require('./main.js')
const { doInitFilter } = require('./filter.js')
const { doInitSort } = require('./sort.js')
const { manager } = require('./datamanager.js')
const data = JSON.parse(document.getElementById('data-container').dataset.jsonblob)
function init() {
manager.setManager(data)
doInitFilter()
doInitSort()
renderStatic()
redraw()
bindEvents()
}
init()
},{"./datamanager.js":1,"./filter.js":3,"./main.js":5,"./sort.js":7}],5:[function(require,module,exports){
const { dom, find, findAll } = require('./dom.js')
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const { doFilter } = require('./filter.js')
const {
getVisible,
getCollapsedIds,
setCollapsedIds,
getSort,
getSortDirection,
possibleFilters,
} = require('./storage.js')
const removeChildren = (node) => {
while (node.firstChild) {
node.removeChild(node.firstChild)
}
}
const renderStatic = () => {
const renderEnvironmentTable = () => {
const environment = manager.environment
const rows = Object.keys(environment).map((key) => dom.getStaticRow(key, environment[key]))
const table = document.getElementById('environment')
removeChildren(table)
rows.forEach((row) => table.appendChild(row))
}
renderEnvironmentTable()
}
const addItemToggleListener = (elem) => {
elem.addEventListener('click', ({ target }) => {
const id = target.parentElement.dataset.id
manager.toggleCollapsedItem(id)
const collapsedIds = getCollapsedIds()
if (collapsedIds.includes(id)) {
const updated = collapsedIds.filter((item) => item !== id)
setCollapsedIds(updated)
} else {
collapsedIds.push(id)
setCollapsedIds(collapsedIds)
}
redraw()
})
}
const renderContent = (tests) => {
const sortAttr = getSort(manager.initialSort)
const sortAsc = JSON.parse(getSortDirection())
const rows = tests.map(dom.getResultTBody)
const table = document.getElementById('results-table')
const tableHeader = document.getElementById('results-table-head')
const newTable = document.createElement('table')
newTable.id = 'results-table'
// remove all sorting classes and set the relevant
findAll('.sortable', tableHeader).forEach((elem) => elem.classList.remove('asc', 'desc'))
tableHeader.querySelector(`.sortable[data-column-type="${sortAttr}"]`).classList.add(sortAsc ? 'desc' : 'asc')
newTable.appendChild(tableHeader)
if (!rows.length) {
const emptyTable = document.getElementById('template_results-table__body--empty').content.cloneNode(true)
newTable.appendChild(emptyTable)
} else {
rows.forEach((row) => {
if (!!row) {
findAll('.collapsible td:not(.col-links', row).forEach(addItemToggleListener)
find('.logexpander', row).addEventListener('click',
(evt) => evt.target.parentNode.classList.toggle('expanded'),
)
newTable.appendChild(row)
}
})
}
table.replaceWith(newTable)
}
const renderDerived = () => {
const currentFilter = getVisible()
possibleFilters.forEach((result) => {
const input = document.querySelector(`input[data-test-result="${result}"]`)
input.checked = currentFilter.includes(result)
})
}
const bindEvents = () => {
const filterColumn = (evt) => {
const { target: element } = evt
const { testResult } = element.dataset
doFilter(testResult, element.checked)
const collapsedIds = getCollapsedIds()
const updated = manager.renderData.tests.map((test) => {
return {
...test,
collapsed: collapsedIds.includes(test.id),
}
})
manager.setRender(updated)
redraw()
}
const header = document.getElementById('environment-header')
header.addEventListener('click', () => {
const table = document.getElementById('environment')
table.classList.toggle('hidden')
header.classList.toggle('collapsed')
})
findAll('input[name="filter_checkbox"]').forEach((elem) => {
elem.addEventListener('click', filterColumn)
})
findAll('.sortable').forEach((elem) => {
elem.addEventListener('click', (evt) => {
const { target: element } = evt
const { columnType } = element.dataset
doSort(columnType)
redraw()
})
})
document.getElementById('show_all_details').addEventListener('click', () => {
manager.allCollapsed = false
setCollapsedIds([])
redraw()
})
document.getElementById('hide_all_details').addEventListener('click', () => {
manager.allCollapsed = true
const allIds = manager.renderData.tests.map((test) => test.id)
setCollapsedIds(allIds)
redraw()
})
}
const redraw = () => {
const { testSubset } = manager
renderContent(testSubset)
renderDerived()
}
module.exports = {
redraw,
bindEvents,
renderStatic,
}
},{"./datamanager.js":1,"./dom.js":2,"./filter.js":3,"./sort.js":7,"./storage.js":8}],6:[function(require,module,exports){
class MediaViewer {
constructor(assets) {
this.assets = assets
this.index = 0
}
nextActive() {
this.index = this.index === this.assets.length - 1 ? 0 : this.index + 1
return [this.activeFile, this.index]
}
prevActive() {
this.index = this.index === 0 ? this.assets.length - 1 : this.index -1
return [this.activeFile, this.index]
}
get currentIndex() {
return this.index
}
get activeFile() {
return this.assets[this.index]
}
}
const setup = (resultBody, assets) => {
if (!assets.length) {
resultBody.querySelector('.media').classList.add('hidden')
return
}
const mediaViewer = new MediaViewer(assets)
const container = resultBody.querySelector('.media-container')
const leftArrow = resultBody.querySelector('.media-container__nav--left')
const rightArrow = resultBody.querySelector('.media-container__nav--right')
const mediaName = resultBody.querySelector('.media__name')
const counter = resultBody.querySelector('.media__counter')
const imageEl = resultBody.querySelector('img')
const sourceEl = resultBody.querySelector('source')
const videoEl = resultBody.querySelector('video')
const setImg = (media, index) => {
if (media?.format_type === 'image') {
imageEl.src = media.path
imageEl.classList.remove('hidden')
videoEl.classList.add('hidden')
} else if (media?.format_type === 'video') {
sourceEl.src = media.path
videoEl.classList.remove('hidden')
imageEl.classList.add('hidden')
}
mediaName.innerText = media?.name
counter.innerText = `${index + 1} / ${assets.length}`
}
setImg(mediaViewer.activeFile, mediaViewer.currentIndex)
const moveLeft = () => {
const [media, index] = mediaViewer.prevActive()
setImg(media, index)
}
const doRight = () => {
const [media, index] = mediaViewer.nextActive()
setImg(media, index)
}
const openImg = () => {
window.open(mediaViewer.activeFile.path, '_blank')
}
if (assets.length === 1) {
container.classList.add('media-container--fullscreen')
} else {
leftArrow.addEventListener('click', moveLeft)
rightArrow.addEventListener('click', doRight)
}
imageEl.addEventListener('click', openImg)
}
module.exports = {
setup,
}
},{}],7:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const storageModule = require('./storage.js')
const genericSort = (list, key, ascending, customOrder) => {
let sorted
if (customOrder) {
sorted = list.sort((a, b) => {
const aValue = a.result.toLowerCase()
const bValue = b.result.toLowerCase()
const aIndex = customOrder.findIndex((item) => item.toLowerCase() === aValue)
const bIndex = customOrder.findIndex((item) => item.toLowerCase() === bValue)
// Compare the indices to determine the sort order
return aIndex - bIndex
})
} else {
sorted = list.sort((a, b) => a[key] === b[key] ? 0 : a[key] > b[key] ? 1 : -1)
}
if (ascending) {
sorted.reverse()
}
return sorted
}
const durationSort = (list, ascending) => {
const parseDuration = (duration) => {
if (duration.includes(':')) {
// If it's in the format "HH:mm:ss"
const [hours, minutes, seconds] = duration.split(':').map(Number)
return (hours * 3600 + minutes * 60 + seconds) * 1000
} else {
// If it's in the format "nnn ms"
return parseInt(duration)
}
}
const sorted = list.sort((a, b) => parseDuration(a['duration']) - parseDuration(b['duration']))
if (ascending) {
sorted.reverse()
}
return sorted
}
const doInitSort = () => {
const type = storageModule.getSort(manager.initialSort)
const ascending = storageModule.getSortDirection()
const list = manager.testSubset
const initialOrder = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed', 'Skipped', 'Passed']
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
if (type?.toLowerCase() === 'original') {
manager.setRender(list)
} else {
let sortedList
switch (type) {
case 'duration':
sortedList = durationSort(list, ascending)
break
case 'result':
sortedList = genericSort(list, type, ascending, initialOrder)
break
default:
sortedList = genericSort(list, type, ascending)
break
}
manager.setRender(sortedList)
}
}
const doSort = (type, skipDirection) => {
const newSortType = storageModule.getSort(manager.initialSort) !== type
const currentAsc = storageModule.getSortDirection()
let ascending
if (skipDirection) {
ascending = currentAsc
} else {
ascending = newSortType ? false : !currentAsc
}
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
const list = manager.testSubset
const sortedList = type === 'duration' ? durationSort(list, ascending) : genericSort(list, type, ascending)
manager.setRender(sortedList)
}
module.exports = {
doInitSort,
doSort,
}
},{"./datamanager.js":1,"./storage.js":8}],8:[function(require,module,exports){
const possibleFilters = [
'passed',
'skipped',
'failed',
'error',
'xfailed',
'xpassed',
'rerun',
]
const getVisible = () => {
const url = new URL(window.location.href)
const settings = new URLSearchParams(url.search).get('visible')
const lower = (item) => {
const lowerItem = item.toLowerCase()
if (possibleFilters.includes(lowerItem)) {
return lowerItem
}
return null
}
return settings === null ?
possibleFilters :
[...new Set(settings?.split(',').map(lower).filter((item) => item))]
}
const hideCategory = (categoryToHide) => {
const url = new URL(window.location.href)
const visibleParams = new URLSearchParams(url.search).get('visible')
const currentVisible = visibleParams ? visibleParams.split(',') : [...possibleFilters]
const settings = [...new Set(currentVisible)].filter((f) => f !== categoryToHide).join(',')
url.searchParams.set('visible', settings)
window.history.pushState({}, null, unescape(url.href))
}
const showCategory = (categoryToShow) => {
if (typeof window === 'undefined') {
return
}
const url = new URL(window.location.href)
const currentVisible = new URLSearchParams(url.search).get('visible')?.split(',').filter(Boolean) ||
[...possibleFilters]
const settings = [...new Set([categoryToShow, ...currentVisible])]
const noFilter = possibleFilters.length === settings.length || !settings.length
noFilter ? url.searchParams.delete('visible') : url.searchParams.set('visible', settings.join(','))
window.history.pushState({}, null, unescape(url.href))
}
const getSort = (initialSort) => {
const url = new URL(window.location.href)
let sort = new URLSearchParams(url.search).get('sort')
if (!sort) {
sort = initialSort || 'result'
}
return sort
}
const setSort = (type) => {
const url = new URL(window.location.href)
url.searchParams.set('sort', type)
window.history.pushState({}, null, unescape(url.href))
}
const getCollapsedCategory = (renderCollapsed) => {
let categories
if (typeof window !== 'undefined') {
const url = new URL(window.location.href)
const collapsedItems = new URLSearchParams(url.search).get('collapsed')
switch (true) {
case !renderCollapsed && collapsedItems === null:
categories = ['passed']
break
case collapsedItems?.length === 0 || /^["']{2}$/.test(collapsedItems):
categories = []
break
case /^all$/.test(collapsedItems) || collapsedItems === null && /^all$/.test(renderCollapsed):
categories = [...possibleFilters]
break
default:
categories = collapsedItems?.split(',').map((item) => item.toLowerCase()) || renderCollapsed
break
}
} else {
categories = []
}
return categories
}
const getSortDirection = () => JSON.parse(sessionStorage.getItem('sortAsc')) || false
const setSortDirection = (ascending) => sessionStorage.setItem('sortAsc', ascending)
const getCollapsedIds = () => JSON.parse(sessionStorage.getItem('collapsedIds')) || []
const setCollapsedIds = (list) => sessionStorage.setItem('collapsedIds', JSON.stringify(list))
module.exports = {
getVisible,
hideCategory,
showCategory,
getCollapsedIds,
setCollapsedIds,
getSort,
setSort,
getSortDirection,
setSortDirection,
getCollapsedCategory,
possibleFilters,
}
},{}]},{},[4]);
</script>
</footer>
</html>
\ No newline at end of file
{"uuid": "ef58e875-7b31-457b-9cb7-26c55fbd9edc", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583304, "stop": 1699240583305}], "start": 1699240583304, "stop": 1699240583409}
\ No newline at end of file
{"uuid": "9b399cd6-f72e-47c5-b66e-f112f62196b8", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583810, "stop": 1699240583810}], "start": 1699240583810, "stop": 1699240583896}
\ No newline at end of file
{"uuid": "90c046b5-61fa-4bdc-a062-df7300a8a31a", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240584104, "stop": 1699240584104}], "start": 1699240584104, "stop": 1699240584272}
\ No newline at end of file
{"uuid": "2b0d94a2-5c2b-475f-a0c3-7058d1e0da72", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583219}
\ No newline at end of file
{"uuid": "b811431d-510b-4e21-b57e-97a1fa6677e7", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583537, "stop": 1699240583537}], "start": 1699240583537, "stop": 1699240583718}
\ No newline at end of file
{"uuid": "8e348f9d-37ee-47c7-893b-db9af037512b", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583296}
\ No newline at end of file
{"uuid": "96d0504e-e1f8-4c3b-b45c-80f4948171b1", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "e02d7af7-5f89-4aea-9c94-e59278ba278c", "12173bd2-bb24-477f-897e-f533768da07f", "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "d7babdd8-e586-4f40-91ae-45057eafe3a7", "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "db_fix", "status": "passed", "start": 1699240582850, "stop": 1699240583050}], "afters": [{"name": "db_fix::0", "status": "passed", "start": 1699240584286, "stop": 1699240584286}], "start": 1699240582850, "stop": 1699240584287}
\ No newline at end of file
{"uuid": "994ef08c-dfd2-4087-996b-e55cf031a227", "children": ["e02d7af7-5f89-4aea-9c94-e59278ba278c"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583236, "stop": 1699240583236}], "start": 1699240583236, "stop": 1699240583299}
\ No newline at end of file
{"uuid": "52944c97-a847-48c1-9c29-49689d992d47", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583294}
\ No newline at end of file
{"uuid": "722e7d4d-5a03-499f-a93e-13f1d3d5ca05", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583739, "stop": 1699240583798}
\ No newline at end of file
{"uuid": "431fc078-68ad-4d05-b294-88dea589dc24", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583425, "stop": 1699240583425}], "start": 1699240583425, "stop": 1699240583520}
\ No newline at end of file
{"uuid": "2e484652-7c01-4d6c-b291-48f40ccd0d48", "children": ["d7babdd8-e586-4f40-91ae-45057eafe3a7"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583738, "stop": 1699240583738}], "start": 1699240583738, "stop": 1699240583803}
\ No newline at end of file
{"uuid": "312a65b7-4e9f-4859-b564-82d8d624197a", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583426, "stop": 1699240583426}], "start": 1699240583426, "stop": 1699240583518}
\ No newline at end of file
{"uuid": "148c4ae4-3973-4d77-b6d4-7dc3dd7b5e96", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583297}
\ No newline at end of file
{"uuid": "5270edb2-a6dd-469f-b65e-a32aefa83d8b", "befores": [{"name": "api_name", "status": "passed", "start": 1699240584103, "stop": 1699240584103}], "start": 1699240584103, "stop": 1699240584279}
\ No newline at end of file
{"uuid": "e9c1a7df-52d6-4c64-ab26-cd0e5afeef91", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583741, "stop": 1699240583741}], "start": 1699240583741, "stop": 1699240583794}
\ No newline at end of file
{"uuid": "64e838c3-5a61-4a51-bd89-c1ccb342da22", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583810, "stop": 1699240583810}], "start": 1699240583810, "stop": 1699240583897}
\ No newline at end of file
{"uuid": "2677a1f8-03d4-4330-a9d5-7e5421e535be", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583900}
\ No newline at end of file
{"name": "正向用例-用户名和密码正确", "status": "passed", "attachments": [{"name": "stdout", "source": "2828a5d7-79cf-4c15-8f63-60ed8963b787-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'正向用例-用户名和密码正确'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'MTIzNDU2'}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin', 'loginStatus': True}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1699240583148, "stop": 1699240583202, "uuid": "2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "historyId": "6da34adc8d27e8acc6edded6ae93bd74", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "6411c44d-056d-4507-824b-a305b8dae92e", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583214}
\ No newline at end of file
{"uuid": "aa704389-cdf1-4f0a-85c5-3727cba54a24", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583305, "stop": 1699240583305}], "start": 1699240583305, "stop": 1699240583406}
\ No newline at end of file
{"uuid": "7f2c80f6-4e33-4019-9922-aa0899688478", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583537, "stop": 1699240583537}], "start": 1699240583537, "stop": 1699240583719}
\ No newline at end of file
{"uuid": "14345072-29f8-418c-acf5-28114b166653", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583148, "stop": 1699240583148}], "start": 1699240583148, "stop": 1699240583204}
\ No newline at end of file
{"uuid": "5db9de09-df2e-405d-91b2-c2a76d5dceac", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583911, "stop": 1699240583911}], "start": 1699240583911, "stop": 1699240584086}
\ No newline at end of file
{"uuid": "72e058f8-91cf-4f9a-aa5c-a591c092a398", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583222}
\ No newline at end of file
{"uuid": "40bab0b0-95e3-4239-bf32-e60ea54ac4c2", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583305, "stop": 1699240583305}], "start": 1699240583305, "stop": 1699240583408}
\ No newline at end of file
{"uuid": "f73c9149-2683-4aa5-99ee-13818be07d8a", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583426, "stop": 1699240583426}], "start": 1699240583426, "stop": 1699240583519}
\ No newline at end of file
{"uuid": "48def8c9-2f8b-418c-8ae0-488f4b18c09a", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583305, "stop": 1699240583305}], "start": 1699240583305, "stop": 1699240583407}
\ No newline at end of file
{"uuid": "8bc9b137-4ec7-4f0a-ba86-80dc2c523697", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583536, "stop": 1699240583536}], "start": 1699240583536, "stop": 1699240583724}
\ No newline at end of file
{"uuid": "685c2eb4-a720-4e6d-a1a1-41a1b973643d", "befores": [{"name": "case_data", "status": "passed", "start": 1699240584104, "stop": 1699240584104}], "start": 1699240584104, "stop": 1699240584273}
\ No newline at end of file
{"uuid": "d5684c47-9911-4688-93dc-020a457d86a6", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583425, "stop": 1699240583425}], "start": 1699240583425, "stop": 1699240583524}
\ No newline at end of file
{"uuid": "ee8b7e1e-ed0b-4e7c-b2ff-434d93d6c875", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583424, "stop": 1699240583424}], "start": 1699240583424, "stop": 1699240583526}
\ No newline at end of file
{"uuid": "81b34edf-4f6f-484d-bee1-088e18654365", "children": ["12173bd2-bb24-477f-897e-f533768da07f"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583416}
\ No newline at end of file
{"uuid": "1d3d8d22-5542-4733-9919-995ae25b786a", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583738, "stop": 1699240583802}
\ No newline at end of file
{"uuid": "1c17ce54-d015-4dcf-bb43-5ad5400e8015", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583739, "stop": 1699240583799}
\ No newline at end of file
{"uuid": "1ce7b513-a071-4df0-9620-60825e0bc267", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583411}
\ No newline at end of file
{"uuid": "c8b0bfef-be0e-407c-95e9-3668bb06a2fc", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583146, "stop": 1699240583146}], "start": 1699240583146, "stop": 1699240583225}
\ No newline at end of file
{"uuid": "2461cd47-fc0c-4afe-a93a-e2e6d8945234", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583536, "stop": 1699240583537}], "start": 1699240583536, "stop": 1699240583723}
\ No newline at end of file
{"uuid": "26f30176-079c-46fe-8c0c-62b3ce3d309e", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240584104, "stop": 1699240584105}], "start": 1699240584104, "stop": 1699240584271}
\ No newline at end of file
{"uuid": "8da8f507-64a8-403e-9cfa-721f138b4d47", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583147, "stop": 1699240583148}], "start": 1699240583147, "stop": 1699240583205}
\ No newline at end of file
{"uuid": "51b3fc19-51c4-4466-b459-9e7bee9f914c", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583901}
\ No newline at end of file
{"uuid": "e4288298-5ddc-4813-8abb-9abee45b174a", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583425, "stop": 1699240583425}], "start": 1699240583425, "stop": 1699240583521}
\ No newline at end of file
{"uuid": "7f570514-8838-4d95-8b76-033e2fb6fcf8", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583305, "stop": 1699240583305}], "start": 1699240583305, "stop": 1699240583404}
\ No newline at end of file
{"name": "反向用例-用户名填写正确,密码填写错误", "status": "passed", "attachments": [{"name": "stdout", "source": "edb3b5bc-0af4-490c-921a-bd3b978a1e81-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名填写正确,密码填写错误'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'MTIzNDU222'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1699240583427, "stop": 1699240583517, "uuid": "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "historyId": "95f1bc7c0c5780b86d719357b8b73e54", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "18d793b6-ce69-474d-b4d2-bf141f594595", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583911, "stop": 1699240583911}], "start": 1699240583911, "stop": 1699240584088}
\ No newline at end of file
{"uuid": "51f514c8-925d-4f1b-bda3-1aafd7c7d42b", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583238, "stop": 1699240583238}], "start": 1699240583238, "stop": 1699240583292}
\ No newline at end of file
{"uuid": "75db67e6-8e02-4b85-95b8-5c44f348ebd5", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583911, "stop": 1699240583911}], "start": 1699240583911, "stop": 1699240584087}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "stdout", "source": "0b84c7cc-4c9c-4f4c-a729-89e9da7e515e-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'添加维度'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'wdf_test_dem', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'DELETE FROM uc_demension WHERE CODE_=\"wdf_test_dem\";'"}, {"name": "update_key", "value": "None"}], "start": 1699240583538, "stop": 1699240583718, "uuid": "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "historyId": "4c7f2654fceeef8f3f59a7ae7be9d3e6", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "515bf712-16de-432b-abd7-2e85521ac418", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583414}
\ No newline at end of file
{"uuid": "51173eab-dd14-4a80-9986-d1b4c33ec785", "befores": [{"name": "case_level", "status": "passed", "start": 1699240584103, "stop": 1699240584103}], "start": 1699240584103, "stop": 1699240584277}
\ No newline at end of file
{"uuid": "49313c21-9fa4-44cf-836b-aeb833af429d", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583221}
\ No newline at end of file
{"uuid": "48b7d75f-274e-424a-9ae9-cb4d5048b718", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583810, "stop": 1699240583810}], "start": 1699240583810, "stop": 1699240583895}
\ No newline at end of file
{"uuid": "a90012c5-fc7f-4e1e-a7ff-892f4f59ac82", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583910, "stop": 1699240583910}], "start": 1699240583910, "stop": 1699240584093}
\ No newline at end of file
{"name": "反向用例", "status": "passed", "attachments": [{"name": "log", "source": "a479a2b5-a5a2-46b0-ae14-97424b6a2f25-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "a5ca9a2d-f622-4bfc-9d4c-c57a8e09b268-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'添加维度'"}, {"name": "case_title", "value": "'反向用例'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': '', 'description': '我的发测试维度', 'isDefault': 0, 'name': '我的发测试维度'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '添加维度信息失败,维度编码【code】必填!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1699240583742, "stop": 1699240583794, "uuid": "d7babdd8-e586-4f40-91ae-45057eafe3a7", "historyId": "a004e2d803632d06806e597d95c3a8c0", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "53395641-9c57-40f4-80e2-ad451c48b611", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583897}
\ No newline at end of file
{"uuid": "18df75bd-1901-423a-8d48-091fc0d83399", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583220}
\ No newline at end of file
{"uuid": "8c40057b-9aae-4b52-bccb-6d4ad533ea98", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583299}
\ No newline at end of file
{"uuid": "b629b75c-686e-4d4e-821a-c9b6101442bb", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583295}
\ No newline at end of file
{"uuid": "43719e00-d057-423b-8955-0f1f0417e494", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583413}
\ No newline at end of file
{"uuid": "43d2869b-51f7-4f43-bd55-6774e0efabd4", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583536, "stop": 1699240583536}], "start": 1699240583536, "stop": 1699240583729}
\ No newline at end of file
{"uuid": "a4190861-4c4b-4cbf-bcb9-89bcbaa828cd", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583910, "stop": 1699240583910}], "start": 1699240583910, "stop": 1699240584091}
\ No newline at end of file
{"uuid": "f6462056-cb75-4ed5-a865-c22e4a4d081c", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583146, "stop": 1699240583146}], "start": 1699240583146, "stop": 1699240583228}
\ No newline at end of file
{"uuid": "da211301-e772-4def-a74b-842f996fc5bf", "children": ["e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240584102, "stop": 1699240584102}], "start": 1699240584102, "stop": 1699240584281}
\ No newline at end of file
{"uuid": "d73ff966-4088-45c3-98f3-f69e16c42337", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "e02d7af7-5f89-4aea-9c94-e59278ba278c", "12173bd2-bb24-477f-897e-f533768da07f", "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "d7babdd8-e586-4f40-91ae-45057eafe3a7", "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "_verify_url", "status": "passed", "start": 1699240582850, "stop": 1699240582850}], "start": 1699240582850, "stop": 1699240584288}
\ No newline at end of file
{"uuid": "4a78bdef-a5ee-480f-b926-05a89324784d", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583216}
\ No newline at end of file
{"uuid": "45af5953-12db-4cb2-8c3c-6cfe6812300b", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583902}
\ No newline at end of file
{"uuid": "50b9cd68-e231-40e6-abcc-4cd737b62659", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "e02d7af7-5f89-4aea-9c94-e59278ba278c", "12173bd2-bb24-477f-897e-f533768da07f", "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "d7babdd8-e586-4f40-91ae-45057eafe3a7", "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "sensitive_url", "status": "passed", "start": 1699240583146, "stop": 1699240583146}], "start": 1699240583146, "stop": 1699240584282}
\ No newline at end of file
{"uuid": "9eda7cdd-c064-4013-978b-4d1d5dee6686", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583740, "stop": 1699240583740}], "start": 1699240583740, "stop": 1699240583796}
\ No newline at end of file
{"uuid": "7dbe4344-64b9-4eda-887a-988cc83d64c5", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583424, "stop": 1699240583424}], "start": 1699240583424, "stop": 1699240583529}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "stdout", "source": "08484304-0345-4774-b8cf-eb6268e5cbf4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'维度管理'"}, {"name": "api_name", "value": "'根据维度编码获取维度信息'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/getDem'"}, {"name": "case_method", "value": "'GET'"}, {"name": "case_mime", "value": "'query'"}, {"name": "case_data", "value": "{'code': 'wdf_test_dem'}"}, {"name": "expect_data", "value": "{'demCode': 'wdf_test_dem', 'name': '我的发测试维度'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1699240583811, "stop": 1699240583893, "uuid": "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "historyId": "428c5cbbd1751f9eba3924400000000b", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码获取维度信息"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "56b20684-ad44-40fa-b52b-4e21b3b7b81d", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583739, "stop": 1699240583801}
\ No newline at end of file
{"uuid": "8963cc65-88e2-40b3-a548-c6e7637bfd5b", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583147, "stop": 1699240583147}], "start": 1699240583147, "stop": 1699240583217}
\ No newline at end of file
{"uuid": "f8c5ed87-bd27-44dc-a37f-bfd4e6b99a1a", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240584104, "stop": 1699240584104}], "start": 1699240584104, "stop": 1699240584274}
\ No newline at end of file
{"uuid": "06c2d000-cc16-45e0-bd00-1c80a97418d4", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583415}
\ No newline at end of file
{"uuid": "687ab1b1-d439-4003-98da-5118a1d22f5a", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583740, "stop": 1699240583740}], "start": 1699240583740, "stop": 1699240583797}
\ No newline at end of file
{"uuid": "f262a005-0d5f-416a-a31e-6ec31a8ccdbe", "befores": [{"name": "update_key", "status": "passed", "start": 1699240584105, "stop": 1699240584105}], "start": 1699240584105, "stop": 1699240584270}
\ No newline at end of file
{"uuid": "d34a19db-bab3-42cb-94bb-40e45b368fc3", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583537, "stop": 1699240583537}], "start": 1699240583537, "stop": 1699240583720}
\ No newline at end of file
{"name": "反向用例-用户名正确填写,密码为空", "status": "passed", "attachments": [{"name": "stdout", "source": "4638087a-7dae-4992-9130-4d302711f361-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名正确填写,密码为空'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1699240583306, "stop": 1699240583402, "uuid": "12173bd2-bb24-477f-897e-f533768da07f", "historyId": "42ceb953820b163ad551683337470d7f", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "cfb19d2f-1d84-4306-a329-aadf72bc0d73", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583536, "stop": 1699240583536}], "start": 1699240583536, "stop": 1699240583726}
\ No newline at end of file
{"uuid": "23386c26-d7bc-41eb-8485-52111bc32360", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583537, "stop": 1699240583537}], "start": 1699240583537, "stop": 1699240583722}
\ No newline at end of file
{"uuid": "114462e2-1235-4b33-9c89-90a2d487d59e", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583425, "stop": 1699240583425}], "start": 1699240583425, "stop": 1699240583520}
\ No newline at end of file
{"uuid": "b12fcbd3-8b60-44a1-9ff9-7193c519eba0", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583899}
\ No newline at end of file
{"uuid": "54d0d889-8cf8-430e-83df-073fb7800d64", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583910, "stop": 1699240583910}], "start": 1699240583910, "stop": 1699240584091}
\ No newline at end of file
{"uuid": "69a2b48e-6468-4132-89f0-50c9fbc41d77", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "e02d7af7-5f89-4aea-9c94-e59278ba278c", "12173bd2-bb24-477f-897e-f533768da07f", "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "d7babdd8-e586-4f40-91ae-45057eafe3a7", "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1699240582705, "stop": 1699240582849}], "start": 1699240582705, "stop": 1699240584291}
\ No newline at end of file
{"name": "反向用例", "status": "passed", "attachments": [{"name": "stdout", "source": "bfd85e53-cf4f-415f-a16c-8b130ac8d168-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "api_name", "value": "'添加组织'"}, {"name": "case_title", "value": "'反向用例'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': '', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '添加组织失败,组织编码【code】不能为空!'}"}, {"name": "sql_type", "value": "'select|delete'"}, {"name": "sql_data", "value": "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org1\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1699240584106, "stop": 1699240584269, "uuid": "e726a26b-a196-4547-b6df-0e4d291fd209", "historyId": "d2ccbaa27edc8666ae13898a0b7077a7", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "b2d8ad7b-9eed-4569-b799-9a7610d4d5f2", "children": ["195c3c01-5295-4e1b-8b0e-525f9c771b1a"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583535, "stop": 1699240583536}], "start": 1699240583535, "stop": 1699240583730}
\ No newline at end of file
{"uuid": "c163b893-718b-4ec8-ad10-5053ea6a853d", "befores": [{"name": "case_mime", "status": "passed", "start": 1699240583910, "stop": 1699240583910}], "start": 1699240583910, "stop": 1699240584090}
\ No newline at end of file
{"uuid": "d45ae598-1cac-4fa6-a359-a30940c04092", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583910, "stop": 1699240583910}], "start": 1699240583909, "stop": 1699240584094}
\ No newline at end of file
ERROR  王德发:db.py:37 执行删除的sql语句错误,请察看sql语句是否正确
\ No newline at end of file
{"uuid": "f5db0feb-ba5e-4993-8d4f-980ee067e834", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583425, "stop": 1699240583425}], "start": 1699240583425, "stop": 1699240583522}
\ No newline at end of file
{"uuid": "7c3f658c-23a8-4dbb-bceb-918ec1c6a257", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583296}
\ No newline at end of file
{"uuid": "60658c6d-9b8a-4d2b-83cf-3ac3fbe3489d", "children": ["8c111ce7-519e-40bd-8ab6-e59764aa7ec0"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583903}
\ No newline at end of file
{"uuid": "4f6aaaed-bc62-4ffa-ad61-e610726081bc", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583412}
\ No newline at end of file
{"uuid": "daa403b6-fe46-4c57-bd80-8911c9b22777", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583739, "stop": 1699240583802}
\ No newline at end of file
{"uuid": "e6b207a4-6419-424e-9017-aa3bfedd2d41", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583304, "stop": 1699240583304}], "start": 1699240583304, "stop": 1699240583410}
\ No newline at end of file
{"uuid": "9c405dad-ae37-4087-9913-f6949dc54a23", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583294}
\ No newline at end of file
{"uuid": "e07d3333-1040-423b-8662-4457a94127bb", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583426, "stop": 1699240583426}], "start": 1699240583426, "stop": 1699240583517}
\ No newline at end of file
{"uuid": "35fde80a-6570-4b3c-adb4-841aeeb4930d", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583238, "stop": 1699240583238}], "start": 1699240583238, "stop": 1699240583291}
\ No newline at end of file
{"uuid": "fd6a22c6-26c6-4f20-bff8-e732ea3a56d0", "befores": [{"name": "case_title", "status": "passed", "start": 1699240584103, "stop": 1699240584103}], "start": 1699240584103, "stop": 1699240584278}
\ No newline at end of file
{"uuid": "b5a5cf7f-6b4f-41dc-a56e-d1e6947cba44", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583425, "stop": 1699240583425}], "start": 1699240583425, "stop": 1699240583523}
\ No newline at end of file
{"uuid": "bde5d63a-a280-4321-9a93-385353cd4b86", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583146, "stop": 1699240583146}], "start": 1699240583146, "stop": 1699240583223}
\ No newline at end of file
{"uuid": "5ff32341-de04-44d1-bc89-13548c4ca478", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583899}
\ No newline at end of file
{"uuid": "17aef5bb-cb02-47ed-bd86-05b26c3e432c", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583740, "stop": 1699240583740}], "start": 1699240583740, "stop": 1699240583798}
\ No newline at end of file
{"uuid": "84952c63-d8eb-4da0-979c-243dbb5758e9", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583305, "stop": 1699240583305}], "start": 1699240583305, "stop": 1699240583405}
\ No newline at end of file
{"uuid": "4b0efa52-a236-4f78-955b-b05614608e1e", "befores": [{"name": "module_name", "status": "passed", "start": 1699240583909, "stop": 1699240583909}], "start": 1699240583909, "stop": 1699240584096}
\ No newline at end of file
{"uuid": "362ab1b2-3ac2-4fde-8e5c-f00965d32743", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583537, "stop": 1699240583537}], "start": 1699240583537, "stop": 1699240583721}
\ No newline at end of file
{"uuid": "57414019-76b7-44ff-9db0-3bcd716baef6", "befores": [{"name": "module_name", "status": "passed", "start": 1699240584103, "stop": 1699240584103}], "start": 1699240584103, "stop": 1699240584280}
\ No newline at end of file
{"uuid": "2fe2c380-387e-4f65-b6b4-65688fe40e42", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583426, "stop": 1699240583426}], "start": 1699240583426, "stop": 1699240583518}
\ No newline at end of file
{"uuid": "a7f47353-5582-4028-a037-2c30a91af7c4", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583536, "stop": 1699240583536}], "start": 1699240583536, "stop": 1699240583727}
\ No newline at end of file
{"uuid": "318d3899-1efc-4dc8-adba-34c956fad047", "befores": [{"name": "case_data", "status": "passed", "start": 1699240583910, "stop": 1699240583911}], "start": 1699240583910, "stop": 1699240584089}
\ No newline at end of file
{"uuid": "986d2780-7f6b-4dc6-a4fc-51fd6c0a7bb3", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "e02d7af7-5f89-4aea-9c94-e59278ba278c", "12173bd2-bb24-477f-897e-f533768da07f", "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "d7babdd8-e586-4f40-91ae-45057eafe3a7", "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "base_url", "status": "passed", "start": 1699240582849, "stop": 1699240582849}], "start": 1699240582849, "stop": 1699240584290}
\ No newline at end of file
{"uuid": "479a66fe-3a16-4973-a157-57d1bcce4190", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583148, "stop": 1699240583148}], "start": 1699240583148, "stop": 1699240583203}
\ No newline at end of file
{"uuid": "59f5c2d5-209f-41b7-a335-fd97ca8281e3", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240584105, "stop": 1699240584105}], "start": 1699240584105, "stop": 1699240584270}
\ No newline at end of file
{"uuid": "622379c4-52e0-4bd3-9c8f-7554d8884bc8", "befores": [{"name": "update_key", "status": "passed", "start": 1699240583810, "stop": 1699240583810}], "start": 1699240583810, "stop": 1699240583894}
\ No newline at end of file
{"uuid": "ba3fe288-ffbf-4ed7-8533-1f5958e5d35c", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583238, "stop": 1699240583238}], "start": 1699240583238, "stop": 1699240583293}
\ No newline at end of file
{"uuid": "de621b33-6850-44e7-9217-1159e189c84b", "children": ["20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583424, "stop": 1699240583424}], "start": 1699240583424, "stop": 1699240583530}
\ No newline at end of file
{"name": "反向用例-用户名为空,密码正确填写", "status": "passed", "attachments": [{"name": "stdout", "source": "6fd55c86-992b-40cf-a2af-4e90c8a103d8-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'认证接口'"}, {"name": "api_name", "value": "'登录系统'"}, {"name": "case_title", "value": "'反向用例-用户名为空,密码正确填写'"}, {"name": "case_level", "value": "'中'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'json'"}, {"name": "case_data", "value": "{'username': '', 'password': 'MTIzNDU2'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1699240583238, "stop": 1699240583291, "uuid": "e02d7af7-5f89-4aea-9c94-e59278ba278c", "historyId": "4ba65c98f4203c09e406784f82260356", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
{"uuid": "305b8030-7cce-46fa-bb0c-a9084cba74ee", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583909, "stop": 1699240583909}], "start": 1699240583909, "stop": 1699240584095}
\ No newline at end of file
{"uuid": "eeebe51f-a9ab-4179-a1d8-6f152b3b1d31", "befores": [{"name": "sql_type", "status": "passed", "start": 1699240583810, "stop": 1699240583810}], "start": 1699240583810, "stop": 1699240583895}
\ No newline at end of file
{"uuid": "3445cf6c-3b25-4ce0-b808-1e3ed7949ff1", "befores": [{"name": "case_method", "status": "passed", "start": 1699240584104, "stop": 1699240584104}], "start": 1699240584104, "stop": 1699240584275}
\ No newline at end of file
{"uuid": "7fe14ec3-fb09-45e6-806b-48a741369663", "befores": [{"name": "sql_data", "status": "passed", "start": 1699240583741, "stop": 1699240583741}], "start": 1699240583741, "stop": 1699240583795}
\ No newline at end of file
{"uuid": "caa0b0ef-9161-4208-ad1d-5998e26caa17", "befores": [{"name": "case_url", "status": "passed", "start": 1699240584104, "stop": 1699240584104}], "start": 1699240584103, "stop": 1699240584276}
\ No newline at end of file
{"uuid": "76e74b0f-81a0-4f86-8599-a98f4bb01b0c", "children": ["2ad4c457-244e-4f6c-aa2c-ac3c99c96ea6", "e02d7af7-5f89-4aea-9c94-e59278ba278c", "12173bd2-bb24-477f-897e-f533768da07f", "20a4a2c0-d5dc-4ece-8fe4-9c815d2bf841", "195c3c01-5295-4e1b-8b0e-525f9c771b1a", "d7babdd8-e586-4f40-91ae-45057eafe3a7", "8c111ce7-519e-40bd-8ab6-e59764aa7ec0", "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "e726a26b-a196-4547-b6df-0e4d291fd209"], "befores": [{"name": "req_fix", "status": "passed", "start": 1699240583051, "stop": 1699240583146}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1699240584285, "stop": 1699240584285}], "start": 1699240583051, "stop": 1699240584285}
\ No newline at end of file
{"uuid": "6945661b-3930-4992-bcb6-544f88d55640", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583536, "stop": 1699240583536}], "start": 1699240583536, "stop": 1699240583728}
\ No newline at end of file
{"uuid": "24b57d46-546a-481c-a0be-3a09c1e82e17", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583536, "stop": 1699240583536}], "start": 1699240583536, "stop": 1699240583725}
\ No newline at end of file
{"uuid": "54f331b2-d067-4bbc-9c0a-f7d67424e97d", "befores": [{"name": "case_title", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583297}
\ No newline at end of file
{"uuid": "ce5468bb-a8a9-4455-a2e2-f538bc86bc1f", "befores": [{"name": "expect_data", "status": "passed", "start": 1699240583911, "stop": 1699240583911}], "start": 1699240583911, "stop": 1699240584089}
\ No newline at end of file
{"uuid": "9516d9cc-204c-4719-8326-7edc8c329db3", "children": ["d18a0550-ebb0-4876-96b6-c5bfebd8dca1"], "befores": [{"name": "_skip_sensitive", "status": "passed", "start": 1699240583909, "stop": 1699240583909}], "start": 1699240583909, "stop": 1699240584097}
\ No newline at end of file
{"uuid": "44cfeeab-3aea-4654-bc0d-1cd859cf33df", "befores": [{"name": "case_url", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583739, "stop": 1699240583800}
\ No newline at end of file
{"uuid": "0b420531-0154-4042-adc3-87273366ed63", "befores": [{"name": "case_method", "status": "passed", "start": 1699240583809, "stop": 1699240583809}], "start": 1699240583809, "stop": 1699240583898}
\ No newline at end of file
{"uuid": "595329a1-de8a-4552-88ca-7a9ef4ca702c", "befores": [{"name": "api_name", "status": "passed", "start": 1699240583237, "stop": 1699240583237}], "start": 1699240583237, "stop": 1699240583298}
\ No newline at end of file
{"uuid": "b573c23d-b689-4321-a9c0-c459a6f01ffa", "befores": [{"name": "case_level", "status": "passed", "start": 1699240583739, "stop": 1699240583739}], "start": 1699240583739, "stop": 1699240583800}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "stdout", "source": "30bef0bc-e97d-4ae2-9ad7-464350a873b4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module_name", "value": "'组织管理'"}, {"name": "api_name", "value": "'添加组织'"}, {"name": "case_title", "value": "'正向用例'"}, {"name": "case_level", "value": "'高'"}, {"name": "case_url", "value": "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"}, {"name": "case_method", "value": "'POST'"}, {"name": "case_mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'wdf_test_org', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '我的发测试组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'select|delete'"}, {"name": "sql_data", "value": "{'select': 'SELECT ID_ from uc_demension WHERE CODE_=\"wdf_test_dem\";', 'delete': 'DELETE FROM uc_org WHERE CODE_=\"wdf_test_org\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1699240583912, "stop": 1699240584086, "uuid": "d18a0550-ebb0-4876-96b6-c5bfebd8dca1", "historyId": "eeb6789781d1acc05d7e210d19b0cb17", "testCaseId": "93265016c96676d4f18610ff2fdb174d", "fullName": "test_wdf.test_bpm.TestBpm#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统测试-王德发"}, {"name": "parentSuite", "value": "test_wdf"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBpm"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "2536-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_wdf.test_bpm"}]}
\ No newline at end of file
2023-11-04 16:10:09,763 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:10:09,763 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:10:09,773 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:10:10,702 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-04 16:10:40,866 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:10:40,877 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:10:41,808 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-04 16:16:31,428 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:16:31,438 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:16:41,576 - db.py[line:21] - ERROR: 数据库链接失败或游标对象创建失败,请检查数据库配置!!! - 王德发
2023-11-04 16:17:16,679 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:17:16,690 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:17:26,821 - db.py[line:21] - ERROR: 数据库链接失败或游标对象创建失败,请检查数据库配置!!! - 王德发
2023-11-04 16:17:40,011 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:17:40,022 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:17:50,153 - db.py[line:21] - ERROR: 数据库链接失败或游标对象创建失败,请检查数据库配置!!! - 王德发
2023-11-04 16:18:02,917 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:18:02,927 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:18:03,861 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-04 16:21:52,012 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:21:52,012 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:21:53,011 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-04 16:23:23,137 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:23:23,152 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:23:24,167 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-04 16:28:56,371 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:28:56,387 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:28:57,374 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-04 16:42:53,182 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:42:53,193 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-04 16:42:54,133 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 09:33:25,109 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 09:33:25,109 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 09:33:25,124 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 09:33:26,287 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 09:58:36,216 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 09:58:36,227 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 09:58:37,241 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:00:17,714 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:00:17,727 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:00:18,702 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:01:09,761 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:01:09,774 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:01:10,767 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:02:50,447 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:02:50,459 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:02:51,427 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:03:58,635 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:03:58,650 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:03:59,178 - test_bpm.py[line:32] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'MTIzNDU2'},期望数据为:{'username': '超级管理', 'account': 'admin', 'loginStatus': True},服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTkzMjI2MzgsImlhdCI6MTY5OTIzNjIzOH0.varqIivUloYxZuPbNyoQuI3X1eQuv5Gk-MYSNKvDkYCYTN2LDPaabsS8SQENARj_wiofhAehWLoPU2f9MQCQmw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} - 王德发
2023-11-06 10:04:01,525 - test_bpm.py[line:32] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'MTIzNDU2'},期望数据为:{'username': '超级管理', 'account': 'admin', 'loginStatus': True},服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTkzMjI2NDAsImlhdCI6MTY5OTIzNjI0MH0.w8pveNpoVD8pZY-Vv7VdY1bhXg3Ft9zBCobSCwMXM6-Vc5BPEHKxrqLqjZLwaEnfOJiDqxc30730Xgztm5d7tA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} - 王德发
2023-11-06 10:04:03,605 - test_bpm.py[line:32] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'MTIzNDU2'},期望数据为:{'username': '超级管理', 'account': 'admin', 'loginStatus': True},服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTkzMjI2NDMsImlhdCI6MTY5OTIzNjI0M30.URNcUwye8-KNOzLDM6rRzckIeWXy_N9duBpTDJFkqyIP7mZ0NC0OHOih133DLUdnAnBAEq9K4nPfhOqEkTwmyw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} - 王德发
2023-11-06 10:04:05,681 - test_bpm.py[line:32] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'MTIzNDU2'},期望数据为:{'username': '超级管理', 'account': 'admin', 'loginStatus': True},服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTkzMjI2NDUsImlhdCI6MTY5OTIzNjI0NX0.u2NSzYujBVl8a-wNBRG5zodKBGu_oBIRypmH9lPqYUdalUskOIMhuJma-7epTz5SO219KfY0RlhVHWnu7H1W3Q","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} - 王德发
2023-11-06 10:04:07,772 - test_bpm.py[line:32] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'MTIzNDU2'},期望数据为:{'username': '超级管理', 'account': 'admin', 'loginStatus': True},服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTkzMjI2NDcsImlhdCI6MTY5OTIzNjI0N30.3doKr9oKdM2bGw5Uj_1U0V6ArhdWn_oKrcVdj67l-RTVcZ38OHklgPU0I6w-AWhRkocDnXf25OScuHi8gt2O-g","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} - 王德发
2023-11-06 10:04:09,866 - test_bpm.py[line:32] - ERROR: 断言失败,用例数据为:{'username': 'admin', 'password': 'MTIzNDU2'},期望数据为:{'username': '超级管理', 'account': 'admin', 'loginStatus': True},服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTkzMjI2NDksImlhdCI6MTY5OTIzNjI0OX0.zi7h_ImaWaGI87DuolZucouF6sdfphKcMV-JRCRtq4WFt9iDlmQWFvhnY2dlH53Ffx2f3OpxJJCqgDxUbhIlNA","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}} - 王德发
2023-11-06 10:04:10,309 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:05:02,763 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:05:02,781 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:05:03,774 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:49:36,823 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:49:36,835 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:49:37,852 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 10:57:04,430 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 10:57:04,448 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,448 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,449 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,449 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,449 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,449 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,454 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,454 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,455 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,455 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,455 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,455 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,456 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,457 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,457 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,457 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,457 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,457 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,457 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,458 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,458 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,458 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,458 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,458 - read_excel.py[line:58] - ERROR: 请检查用例数据的配置!!! - 王德发
2023-11-06 10:57:04,458 - read_excel.py[line:68] - ERROR: 请检查期望数据的配置!!! - 王德发
2023-11-06 10:57:04,459 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:05:54,435 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:05:54,449 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:05:55,507 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 11:06:16,248 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:06:16,265 - read_excel.py[line:83] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:06:17,269 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 11:16:05,748 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:16:05,766 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:16:06,719 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 11:16:22,679 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:16:22,693 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 11:16:23,743 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 16:04:46,541 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 16:04:46,554 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!! - 王德发
2023-11-06 16:04:47,585 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确 - 王德发
2023-11-06 11:16:22 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!!
2023-11-06 11:16:22 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!!
2023-11-06 11:16:22 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!!
2023-11-06 11:16:23 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确
import base64
import requests
from InterfaceAutoTest_V1.common import log
from InterfaceAutoTest_V1.common.read_ini import ReadIni
class RequestsAll:
def __init__(self):
login_url = ReadIni().get_host_value('host') + '/auth'
login_data = {'username': 'admin', 'password': base64.b64encode("123456".encode()).decode()}
self.bpm_session = requests.Session()
self.bpm_session.headers.update(
{"Authorization": "Bearer " + self.bpm_session.post(url=login_url, json=login_data).json().get("token")})
def requests_all(self, req_method, req_url, req_mime=None, case_data=None):
if req_mime == "json" or req_mime == "application/json":
return self.bpm_session.request(method=req_method, url=req_url, json=case_data)
elif req_mime == "x-www-form-urlencoded" or req_mime == "application/x-www-form-urlencoded":
return self.bpm_session.request(method=req_method, url=req_url, data=case_data)
elif req_mime == "form-data" or req_mime == "multipart/form-data":
return self.bpm_session.request(method=req_method, url=req_url, files=case_data)
elif req_mime == "query" or req_mime == "params" or req_mime == "param":
return self.bpm_session.request(method=req_method, url=req_url, params=case_data)
elif req_mime is None:
return self.bpm_session.request(method=req_method, url=req_url)
elif req_mime == "query|body" or req_mime == "body|query" or req_mime == "json|query" or req_mime == "query|json":
return self.bpm_session.request(method=req_method, url=req_url, params=case_data["query"],
json=case_data["body"])
else:
log.error("传入的媒体类型的值错误,请检查excel中是否填入正确")
[pytest]
;设置日志保存的文件
log_file=./report/log/bpm_接口自动化框架最新运行日志.log
;设置日志保存在文件中的级别
log_file_level=error
;设置日志在文件中的信息格式
log_file_format=%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s
;设置文件日志中时间显示的格式
log_file_date_format=%Y-%m-%d %H:%M:%S
\ No newline at end of file
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/11/4 15:37
# Description:
# ---------------------------------------------------------------------------
import pytest
from InterfaceAutoTest_V1.common.db import DB
from InterfaceAutoTest_V1.requests_method.requests_all import RequestsAll
@pytest.fixture(scope='session')
def req_fix():
req = RequestsAll()
yield req
@pytest.fixture(scope='session')
def db_fix():
db = DB()
yield db
db.close()
def pytest_collection_modifyitems(items):
# item表示每个测试用例,解决用例名称中文显示问题
for item in items:
item.name = item.name.encode("utf-8").decode("unicode-escape")
item._nodeid = item._nodeid.encode("utf-8").decode("unicode-escape")
\ No newline at end of file
2023-11-06 16:04:46 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!!
2023-11-06 16:04:46 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!!
2023-11-06 16:04:46 - read_excel.py[line:86] - ERROR: 请检查sql语句数据的配置!!!
2023-11-06 16:04:47 - db.py[line:37] - ERROR: 执行删除的sql语句错误,请察看sql语句是否正确
import allure
import pytest
from InterfaceAutoTest_V1.common import log
from InterfaceAutoTest_V1.common.read_excel import ReadExcel
class TestBpm:
@allure.epic('BPM系统测试-王德发')
@pytest.mark.parametrize(
'module_name,api_name,case_title,case_level,case_url, case_method, case_mime, case_data, expect_data,'
' sql_type,sql_data, update_key',
ReadExcel('BPM-WDF').get_data())
def test_bpm(self, db_fix, req_fix, module_name, api_name, case_title, case_level, case_url, case_method, case_mime,
case_data, expect_data, sql_type,
sql_data, update_key):
allure.dynamic.feature(module_name)
allure.dynamic.story(api_name)
allure.dynamic.title(case_title)
allure.dynamic.severity(case_level)
if sql_type == 'delete':
db_fix.delete(sql_data)
elif sql_type == 'select':
case_data[update_key] = db_fix.query(sql_data)
elif sql_type == 'select|delete' or sql_type == 'delete|select':
db_fix.delete(sql_data['delete'])
case_data[update_key] = db_fix.query(sql_data['select'])
res = req_fix.requests_all(req_method=case_method, req_url=case_url, req_mime=case_mime, case_data=case_data)
try:
for key in expect_data:
assert expect_data[key] == res.json()[key]
print('断言成功!!!')
except:
log.error("断言失败" + ",用例数据为:" + str(case_data) + ",期望数据为:" + str(
expect_data) + ",服务器返回的数据为:" + res.text)
raise AssertionError('断言失败!!!')
if __name__ == '__main__':
pytest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment