Commit e0e0db4b by white

api_v1

parent 8ed2e95f
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: test63
# FileName: __init__.py
# Author: lao_zhao
# Datetime: 2024/11/4 14:00
# Description:
# __init__.py 包运行时最先运行
# ---------------------------------------------------------------------------
import logging
import os
import time
def api_log():
# 将日志写入到文件中
# 1: 创建Logger对象
logger = logging.getLogger(name="张三")
# 2:设置日志写入到文件中的级别
logger.level = logging.INFO
# 3:创建一个日志文件handler对象
# 动态获取日志文件的路径
report_path = os.path.join(os.path.dirname(__file__), "re_port_l")
log_path = os.path.join(report_path, "log")
# 日志文件的名称:xxxx-xx-xx-xx-xx-xx.log
log_name = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + ".log"
log_file_path = os.path.join(log_path, log_name)
handler = logging.FileHandler(filename=log_file_path, mode="a", encoding="utf-8")
# 4: 设置日志在文件中显示的格式
formatter = logging.Formatter(
'%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s ------ %(name)s')
# 给日志文件的handler对象添加日志的格式
handler.setFormatter(formatter)
# 给Logger对象添加日志文件的handler对象
logger.addHandler(handler)
return logger
log = api_log()
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
INFO  张三:test_bbb.py:24 断言成功,用例数据为:None,期望数据为:{'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjY0MDIsImlhdCI6MTczMDg4MDAwMn0.I37j__1b73gyn4lmeRal0h1qA0e4LfSfax28LbJ-g__EVsQaRWHYK8PtkkGiXMPxlM6fFJHLxCtXHE2pEJS5xg","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'ids': '1854071230748532736'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams query|json {'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]} {'state': True, 'message': '保存组织参数成功!'} None None None
post http://36.139.193.99:8088/api/org/v1/org/deleteOrg x-www-form-urlencoded testAddOrg {'state': True, 'message': '删除组织成功!'} None None None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'ids': '1854071232405282816'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/demension/v1/dem/addDem json {'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'} {'state': True, 'message': '添加维度成功!'} DELETE FROM uc_demension WHERE CODE_="testAddDem"; delete None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
get http://36.139.193.99:8088/refresh None None {'loginStatus': True} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjY0MDEsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1854071227439226880"}
\ No newline at end of file
post http://36.139.193.99:8088/api/demension/v1/dem/addDem json {'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'} {'state': True, 'message': '添加维度成功!'} DELETE FROM uc_demension WHERE CODE_="testAddDem"; delete None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:testAddOrg,期望数据为:{'state': True, 'message': '删除组织成功!'}, 服务器返回的数据为:{"state":true,"message":"部分删除成功,其中编码为【testAddOrg】的组织不存在;","value":"","code":200}
\ No newline at end of file
Post http://36.139.193.99:8088/auth application/json {'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
post http://36.139.193.99:8088/auth application/json {'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071230110998528"}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/org/deleteOrg x-www-form-urlencoded testAddOrg {'state': True, 'message': '删除组织成功!'} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功'}, 服务器返回的数据为:{"state":false,"message":"添加组织失败,组织编码[testAddOrg]已存在!","value":"保存失败","code":200}
\ No newline at end of file
DELETE http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds query {'ids': ''} {'state': False, 'message': '维度id不能为空!'} None None None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/org/addOrg json {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'} {'state': True, 'message': '添加组织成功'} {'delete': 'delete from uc_org where CODE_="testAddOrg";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";'} select|delete demId
DELETE http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds query {'ids': '需要更新'} {'state': True, 'message': '删除维度成功!'} SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem"; select ids
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071229951614976"}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854071231977463808"}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': ''} {'state': False, 'message': '账户错误或该租户未启用'} None None None
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': '1'} {'state': False, 'message': '账户错误或该租户未启用'} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854071228097732608"}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854071233730682880"}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功'}, 服务器返回的数据为:{"state":false,"message":"添加组织失败,组织编码[testAddOrg]已存在!","value":"保存失败","code":200}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854071229578321920"}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071230261993472"}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams query|json {'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]} {'state': True, 'message': '保存组织参数成功!'} None None None
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/user/v1/user/addUser json {'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1} {'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200} delete from uc_user where ACCOUNT_="testAddUser"; delete None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854071229771259904"}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
put http://36.139.193.99:8088/api/demension/v1/dem/updateDem application/json {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'} {'state': True, 'message': '更新维度成功'} None None None
DELETE http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds query {'ids': ''} {'state': False, 'message': '维度id不能为空!'} None None None
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'} {'state': False, 'message': '账户错误或该租户未启用'} None None None
post http://36.139.193.99:8088/api/user/v1/user/addUser json {'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1} {'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200} delete from uc_user where ACCOUNT_="testAddUser"; delete None
post http://36.139.193.99:8088/auth application/json {'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'} {'state': False, 'message': '账户错误或该租户未启用'} None None None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjY0MDEsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/org/addOrg json {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'} {'state': True, 'message': '添加组织成功'} {'delete': 'delete from uc_org where CODE_="testAddOrg";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";'} select|delete demId
put http://36.139.193.99:8088/api/demension/v1/dem/updateDem application/json {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'} {'state': True, 'message': '更新维度成功'} None None None
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071230421377024"}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:testAddOrg,期望数据为:{'state': True, 'message': '删除组织成功!'}, 服务器返回的数据为:{"state":true,"message":"部分删除成功,其中编码为【testAddOrg】的组织不存在;","value":"","code":200}
\ No newline at end of file
put http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem query {'code': 'testAddDem'} {'state': True, 'message': '设置默认维度成功'} None None None
DELETE http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds query {'ids': '需要更新'} {'state': True, 'message': '删除维度成功!'} SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem"; select ids
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} None None None
put http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem query {'code': 'testAddDem'} {'state': True, 'message': '设置默认维度成功'} None None None
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","","","15","2","12","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"uid" : "a970dbe891e4e51d",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"uid" : "89fb43f470f39c96",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"uid" : "f3a293d263d1cb21",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"uid" : "10a5669909df260",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"uid" : "dec9f08a7e3cd7b8",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"uid" : "383c98239007dc82",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"uid" : "26ffaaa6b4dcc995",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'Post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"uid" : "4cefa2bcd8b1b0ed",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"uid" : "af72be2c59a03860",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"uid" : "5204d390075ffa",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"uid" : "2e0e41965036e904",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'loginStatus': True}", "'get'", "None", "None", "None", "None", "'http://36.139.193.99:8088/refresh'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "fab6f15b3584c974",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"uid" : "112546ebabd588fd",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"uid" : "db8f12ef2339334f",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"uid" : "dfa2de4323c355d7",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"uid" : "dde6f7bc2915a6af",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"uid" : "bcd08329059556c2",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "broken",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "a31292b00e8353e5",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "7e644a758ec60837",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"uid" : "19c7e703371ba778",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "9846c7a0d65d17f7",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"uid" : "a3ad40c765d494b4",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"uid" : "d14bf09bcbc76f1a",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"uid" : "16f1a91a3c0314b1",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"uid" : "8dddfafa3f171101",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"uid" : "5665531c57cea0c7",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "broken",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "5222f66754e1fa9b",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "9790585531d4c0d4",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "passed",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"uid" : "15df1a1d3850b5b4",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "failed",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ]
}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Product defects","15","0","0","0","0"
"Test defects","0","2","0","0","0"
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ {
"name" : "Product defects",
"children" : [ {
"name" : "AssertionError: 断言失败",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"uid" : "89fb43f470f39c96",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"uid" : "f3a293d263d1cb21",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"uid" : "10a5669909df260",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"uid" : "dec9f08a7e3cd7b8",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"uid" : "383c98239007dc82",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"uid" : "112546ebabd588fd",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"uid" : "db8f12ef2339334f",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"uid" : "dfa2de4323c355d7",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"uid" : "dde6f7bc2915a6af",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"uid" : "19c7e703371ba778",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"uid" : "a3ad40c765d494b4",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"uid" : "d14bf09bcbc76f1a",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"uid" : "16f1a91a3c0314b1",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"uid" : "8dddfafa3f171101",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"uid" : "15df1a1d3850b5b4",
"parentUid" : "19135fd4a1c65086de1dc2a02ed9d4e0",
"status" : "failed",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "19135fd4a1c65086de1dc2a02ed9d4e0"
} ],
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d"
}, {
"name" : "Test defects",
"children" : [ {
"name" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"uid" : "bcd08329059556c2",
"parentUid" : "7bdfe0a79952d79498277ed8effbf653",
"status" : "broken",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"uid" : "5665531c57cea0c7",
"parentUid" : "7bdfe0a79952d79498277ed8effbf653",
"status" : "broken",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
} ],
"uid" : "7bdfe0a79952d79498277ed8effbf653"
} ],
"uid" : "bdbf199525818fae7a8651db9eafe741"
} ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "test_",
"children" : [ {
"name" : "test_gy.test_bbb",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"uid" : "a970dbe891e4e51d",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"uid" : "89fb43f470f39c96",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"uid" : "f3a293d263d1cb21",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"uid" : "10a5669909df260",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"uid" : "dec9f08a7e3cd7b8",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"uid" : "383c98239007dc82",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"uid" : "26ffaaa6b4dcc995",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'Post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"uid" : "4cefa2bcd8b1b0ed",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"uid" : "af72be2c59a03860",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"uid" : "5204d390075ffa",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"uid" : "2e0e41965036e904",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'loginStatus': True}", "'get'", "None", "None", "None", "None", "'http://36.139.193.99:8088/refresh'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "fab6f15b3584c974",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"uid" : "112546ebabd588fd",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"uid" : "db8f12ef2339334f",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"uid" : "dfa2de4323c355d7",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"uid" : "dde6f7bc2915a6af",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"uid" : "bcd08329059556c2",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "broken",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "a31292b00e8353e5",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "7e644a758ec60837",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "passed",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"uid" : "19c7e703371ba778",
"parentUid" : "cd355838435c306f1e91e190093b20c4",
"status" : "failed",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "test_gy.test_bbb"
}, {
"name" : "test_zf.test_bbb",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "9846c7a0d65d17f7",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "passed",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"uid" : "a3ad40c765d494b4",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "failed",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"uid" : "d14bf09bcbc76f1a",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "failed",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"uid" : "16f1a91a3c0314b1",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "failed",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"uid" : "8dddfafa3f171101",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "failed",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"uid" : "5665531c57cea0c7",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "broken",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "5222f66754e1fa9b",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "passed",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "9790585531d4c0d4",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "passed",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"uid" : "15df1a1d3850b5b4",
"parentUid" : "812e6d015fbec0ab3db96d5a1ab4546d",
"status" : "failed",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "test_zf.test_bbb"
} ],
"uid" : "fa49b1d3d7dfb5aa5ff1de9df316c37c"
} ]
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","14","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",""
"failed","Wed Nov 06 16:02:53 CST 2024","Wed Nov 06 16:02:54 CST 2024","27","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","26","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",""
"failed","Wed Nov 06 16:02:53 CST 2024","Wed Nov 06 16:02:53 CST 2024","26","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","31","test_.test_gy","test_bbb","TestBPM","","","test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=""testAddDem"";-select-ids]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","14","test_.test_zf","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","25","test_.test_zf","test_bbb","TestBPM","","","test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","26","test_.test_gy","test_bbb","TestBPM","","","test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","39","test_.test_zf","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=""testAddUser"";-delete-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","16","test_.test_zf","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",""
"failed","Wed Nov 06 16:02:52 CST 2024","Wed Nov 06 16:02:52 CST 2024","28","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",""
"failed","Wed Nov 06 16:02:53 CST 2024","Wed Nov 06 16:02:53 CST 2024","93","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","28","test_.test_gy","test_bbb","TestBPM","","","test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",""
"broken","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","0","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","29","test_.test_gy","test_bbb","TestBPM","","","test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",""
"passed","Wed Nov 06 16:02:52 CST 2024","Wed Nov 06 16:02:52 CST 2024","30","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","27","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",""
"broken","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","1","test_.test_zf","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","40","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=""testAddDem"";-delete-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","50","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=""testAddUser"";-delete-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","37","test_.test_zf","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=""testAddDem"";-delete-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","24","test_.test_gy","test_bbb","TestBPM","","","test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","28","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","27","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","23","test_.test_zf","test_bbb","TestBPM","","","test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",""
"passed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","44","test_.test_zf","test_bbb","TestBPM","","","test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=""testAddDem"";-select-ids]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:55 CST 2024","12","test_.test_zf","test_bbb","TestBPM","","","test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","16","test_.test_gy","test_bbb","TestBPM","","","test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",""
"failed","Wed Nov 06 16:02:54 CST 2024","Wed Nov 06 16:02:54 CST 2024","13","test_.test_gy","test_bbb","TestBPM","","","test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "test_.test_gy",
"children" : [ {
"name" : "test_bbb",
"children" : [ {
"name" : "TestBPM",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"uid" : "a970dbe891e4e51d",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"uid" : "89fb43f470f39c96",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"uid" : "f3a293d263d1cb21",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"uid" : "10a5669909df260",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"uid" : "dec9f08a7e3cd7b8",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"uid" : "383c98239007dc82",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"uid" : "26ffaaa6b4dcc995",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'Post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"uid" : "4cefa2bcd8b1b0ed",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"uid" : "af72be2c59a03860",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"uid" : "5204d390075ffa",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"uid" : "2e0e41965036e904",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'loginStatus': True}", "'get'", "None", "None", "None", "None", "'http://36.139.193.99:8088/refresh'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "fab6f15b3584c974",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"uid" : "112546ebabd588fd",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"uid" : "db8f12ef2339334f",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"uid" : "dfa2de4323c355d7",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"uid" : "dde6f7bc2915a6af",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"uid" : "bcd08329059556c2",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "broken",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "a31292b00e8353e5",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "7e644a758ec60837",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "passed",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"uid" : "19c7e703371ba778",
"parentUid" : "d9825871708452e57c796ccca60f7752",
"status" : "failed",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "d9825871708452e57c796ccca60f7752"
} ],
"uid" : "f1bd547e2e9688dbf888d122d58a117a"
} ],
"uid" : "a9e3a85c53a733102c80e9041762c618"
}, {
"name" : "test_.test_zf",
"children" : [ {
"name" : "test_bbb",
"children" : [ {
"name" : "TestBPM",
"children" : [ {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "9846c7a0d65d17f7",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "passed",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"uid" : "a3ad40c765d494b4",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "failed",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"uid" : "d14bf09bcbc76f1a",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "failed",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"uid" : "16f1a91a3c0314b1",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "failed",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"uid" : "8dddfafa3f171101",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "failed",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"uid" : "5665531c57cea0c7",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "broken",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "5222f66754e1fa9b",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "passed",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "9790585531d4c0d4",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "passed",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"uid" : "15df1a1d3850b5b4",
"parentUid" : "62be2d673766240a44d7f41d31e442d1",
"status" : "failed",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
} ],
"uid" : "62be2d673766240a44d7f41d31e442d1"
} ],
"uid" : "5238e0f9010f3000c22670c65e30a5ff"
} ],
"uid" : "27ca9d9322967b64ebe7b68c074b9948"
} ]
}
\ No newline at end of file
{
"uid" : "10a5669909df260",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "e364bf2b17e5077689db45f2f4c35dc2",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C06E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '1', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C06E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '1', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C06E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '1', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C06E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '1', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "8479564544ff5920",
"name" : "log",
"source" : "8479564544ff5920.txt",
"type" : "text/plain",
"size" : 324
}, {
"uid" : "7aeea7e7cf69a442",
"name" : "stdout",
"source" : "7aeea7e7cf69a442.txt",
"type" : "text/plain",
"size" : 172
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'admin', 'password': '1'}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "10a5669909df260.json",
"parameterValues" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "112546ebabd588fd",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "3f6c0d87b134af87e062cf3d98246f96",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C249B50>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '设置默认维度成功!' == '设置默认维度成功'\nE \nE - 设置默认维度成功\nE + 设置默认维度成功!\nE ? +\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C249B50>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C249B50>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '设置默认维度成功!' == '设置默认维度成功'\nE \nE - 设置默认维度成功\nE + 设置默认维度成功!\nE ? +\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C249B50>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "eb7bb3143eeb6d7b",
"name" : "log",
"source" : "eb7bb3143eeb6d7b.txt",
"type" : "text/plain",
"size" : 284
}, {
"uid" : "f139ca93432af69a",
"name" : "stdout",
"source" : "f139ca93432af69a.txt",
"type" : "text/plain",
"size" : 164
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddDem'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '设置默认维度成功'}"
}, {
"name" : "method",
"value" : "'put'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "112546ebabd588fd.json",
"parameterValues" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}
\ No newline at end of file
{
"uid" : "15df1a1d3850b5b4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "2499a6b1c7fcacceebbe7b51cc8b523a",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649B20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649B20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649B20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649B20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "8e1fe7292b153b1",
"name" : "log",
"source" : "8e1fe7292b153b1.txt",
"type" : "text/plain",
"size" : 302
}, {
"uid" : "5a4318a27b17ab00",
"name" : "stdout",
"source" : "5a4318a27b17ab00.txt",
"type" : "text/plain",
"size" : 157
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'ids': ''}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '维度id不能为空!'}"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "15df1a1d3850b5b4.json",
"parameterValues" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "16f1a91a3c0314b1",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "240b5b536fa5a7370c7a876b96ee7742",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B980>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000002AA7C75C640>('state')\nE + where <built-in method get of dict object at 0x000002AA7C75C640> = {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'}.get\nE + where {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B980>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B980>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000002AA7C75C640>('state')\nE + where <built-in method get of dict object at 0x000002AA7C75C640> = {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'}.get\nE + where {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B980>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "8e5acf6ab252075",
"name" : "log",
"source" : "8e5acf6ab252075.txt",
"type" : "text/plain",
"size" : 472
}, {
"uid" : "dc8c933ff4ec0f20",
"name" : "stdout",
"source" : "dc8c933ff4ec0f20.txt",
"type" : "text/plain",
"size" : 428
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '添加组织成功'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql",
"value" : "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"
}, {
"name" : "sqlType",
"value" : "'select|delete'"
}, {
"name" : "updateKey",
"value" : "'demId'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "16f1a91a3c0314b1.json",
"parameterValues" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}
\ No newline at end of file
{
"uid" : "19c7e703371ba778",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "383b79733551d588e4f71c41ce018763",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B312D20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B312D20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B312D20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B312D20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "757d23cbe66bb288",
"name" : "log",
"source" : "757d23cbe66bb288.txt",
"type" : "text/plain",
"size" : 302
}, {
"uid" : "b4ce369dd8d58b72",
"name" : "stdout",
"source" : "b4ce369dd8d58b72.txt",
"type" : "text/plain",
"size" : 157
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'ids': ''}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '维度id不能为空!'}"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "19c7e703371ba778.json",
"parameterValues" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "26ffaaa6b4dcc995",
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "721e17be3f6f7c87aeccf44ccc2f7340",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "734789654e08d76c",
"name" : "log",
"source" : "734789654e08d76c.txt",
"type" : "text/plain",
"size" : 498
}, {
"uid" : "496be2ff3423b60c",
"name" : "stdout",
"source" : "496be2ff3423b60c.txt",
"type" : "text/plain",
"size" : 338
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'Post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "26ffaaa6b4dcc995.json",
"parameterValues" : [ "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'Post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "2e0e41965036e904",
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "a738918aa4e608fe5afc144f7e1b2ecb",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "181e995c010a9d45",
"name" : "log",
"source" : "181e995c010a9d45.txt",
"type" : "text/plain",
"size" : 447
}, {
"uid" : "3a2595c0e9ca2c02",
"name" : "stdout",
"source" : "3a2595c0e9ca2c02.txt",
"type" : "text/plain",
"size" : 85
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "None"
}, {
"name" : "expect",
"value" : "{'loginStatus': True}"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/refresh'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "2e0e41965036e904.json",
"parameterValues" : [ "None", "{'loginStatus': True}", "'get'", "None", "None", "None", "None", "'http://36.139.193.99:8088/refresh'" ]
}
\ No newline at end of file
{
"uid" : "383c98239007dc82",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "0abe3de2b798f5d0e677c84f1c47fc4c",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C29C0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C29C0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C29C0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C29C0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "ac3e760e1027fbad",
"name" : "log",
"source" : "ac3e760e1027fbad.txt",
"type" : "text/plain",
"size" : 323
}, {
"uid" : "7abe8e7f5ac476ab",
"name" : "stdout",
"source" : "7abe8e7f5ac476ab.txt",
"type" : "text/plain",
"size" : 171
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'admin', 'password': ''}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "383c98239007dc82.json",
"parameterValues" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "4cefa2bcd8b1b0ed",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "1a9f428371c0dd5f957d2f7cc3dfdc3e",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "563023feffc590",
"name" : "log",
"source" : "563023feffc590.txt",
"type" : "text/plain",
"size" : 499
}, {
"uid" : "bd2087e3b2b42e92",
"name" : "stdout",
"source" : "bd2087e3b2b42e92.txt",
"type" : "text/plain",
"size" : 339
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "4cefa2bcd8b1b0ed.json",
"parameterValues" : [ "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "5204d390075ffa",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "491e5a5f52dc86ce26387925709034d5",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "e84d2721a4095976",
"name" : "log",
"source" : "e84d2721a4095976.txt",
"type" : "text/plain",
"size" : 531
}, {
"uid" : "8a5cd9b1307f6189",
"name" : "stdout",
"source" : "8a5cd9b1307f6189.txt",
"type" : "text/plain",
"size" : 371
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5204d390075ffa.json",
"parameterValues" : [ "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "5222f66754e1fa9b",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "86a7ab9cae3089908addd26d6b786b08",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "36ba0d758739292d",
"name" : "log",
"source" : "36ba0d758739292d.txt",
"type" : "text/plain",
"size" : 449
}, {
"uid" : "9f76586b566b34b2",
"name" : "stdout",
"source" : "9f76586b566b34b2.txt",
"type" : "text/plain",
"size" : 376
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql",
"value" : "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"
}, {
"name" : "sqlType",
"value" : "'delete'"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/user/v1/user/addUser'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5222f66754e1fa9b.json",
"parameterValues" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}
\ No newline at end of file
{
"uid" : "5665531c57cea0c7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "f9bb821f1f218e87d39ab0e105cf5ce9",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"status" : "broken",
"statusMessage" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649D60>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nmime = 'query|json'\ncase = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nexpect = {'message': '保存组织参数成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n> res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n\ntest_\\test_zf\\test_bbb.py:15: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nreq_method = 'post'\nreq_url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nreq_mime = 'query|json'\nreq_case = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nsql_type = None, sql_data = None, update_key = None\n\n def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n # 使用DB类对象,执行删除sql语句\n self.db.delete(sql_data)\n \n # 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中\n elif sql_type == \"select\":\n # 使用DB类对象,执行查询sql语句,并获取查询结果\n select_res = self.db.select(sql_data)\n # 将查询结果更新到用例数据中\n req_case[update_key] = select_res\n # print(\"用例数据:\", req_case)\n # print(\"更新的key:\", update_key)\n # print(\"查询结果:\", select_res)\n # print(\"用例数据更新之后:\", req_case)\n \n # 删除数据完成之后 或者 用例数据更新为查询结果之后 在发送请求\n # 判断不同的媒体类型使用不用的关键字传参\n \n # 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参\n if req_mime == \"application/x-www-form-urlencoded\" or req_mime == 'x-www-form-urlencoded' or req_mime == \"form\":\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, data=req_case)\n \n # 判断请求的媒体类型的值是否为application/json或者为json使用json传参\n elif req_mime == \"application/json\" or req_mime == 'json':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, json=req_case)\n \n # 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参\n elif req_mime == \"multipart/form-data\" or req_mime == 'form-data':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, files=req_case)\n \n # 判断请求的媒体类型的值是否为query使用params传参\n elif req_mime == \"query\":\n return self.bpm_session.request(method=req_method, url=req_url, params=req_case)\n \n # 判断请求的媒体类型的值是否为None, 表示没有传参\n elif req_mime is None:\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url)\n \n else:\n> raise ValueError(\"传入的媒体类型的值错误!!!,可以继承该类,复写该方法\")\nE ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法\n\n..\\api_1104\\re_\\re_method.py:59: ValueError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "broken",
"statusMessage" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649D60>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nmime = 'query|json'\ncase = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nexpect = {'message': '保存组织参数成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n> res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n\ntest_\\test_zf\\test_bbb.py:15: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nreq_method = 'post'\nreq_url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nreq_mime = 'query|json'\nreq_case = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nsql_type = None, sql_data = None, update_key = None\n\n def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n # 使用DB类对象,执行删除sql语句\n self.db.delete(sql_data)\n \n # 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中\n elif sql_type == \"select\":\n # 使用DB类对象,执行查询sql语句,并获取查询结果\n select_res = self.db.select(sql_data)\n # 将查询结果更新到用例数据中\n req_case[update_key] = select_res\n # print(\"用例数据:\", req_case)\n # print(\"更新的key:\", update_key)\n # print(\"查询结果:\", select_res)\n # print(\"用例数据更新之后:\", req_case)\n \n # 删除数据完成之后 或者 用例数据更新为查询结果之后 在发送请求\n # 判断不同的媒体类型使用不用的关键字传参\n \n # 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参\n if req_mime == \"application/x-www-form-urlencoded\" or req_mime == 'x-www-form-urlencoded' or req_mime == \"form\":\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, data=req_case)\n \n # 判断请求的媒体类型的值是否为application/json或者为json使用json传参\n elif req_mime == \"application/json\" or req_mime == 'json':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, json=req_case)\n \n # 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参\n elif req_mime == \"multipart/form-data\" or req_mime == 'form-data':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, files=req_case)\n \n # 判断请求的媒体类型的值是否为query使用params传参\n elif req_mime == \"query\":\n return self.bpm_session.request(method=req_method, url=req_url, params=req_case)\n \n # 判断请求的媒体类型的值是否为None, 表示没有传参\n elif req_mime is None:\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url)\n \n else:\n> raise ValueError(\"传入的媒体类型的值错误!!!,可以继承该类,复写该方法\")\nE ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法\n\n..\\api_1104\\re_\\re_method.py:59: ValueError",
"steps" : [ ],
"attachments" : [ {
"uid" : "984c5186c37e5750",
"name" : "stdout",
"source" : "984c5186c37e5750.txt",
"type" : "text/plain",
"size" : 225
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '保存组织参数成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'query|json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Test defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "5665531c57cea0c7.json",
"parameterValues" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}
\ No newline at end of file
{
"uid" : "7e644a758ec60837",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "a1621bca7dd27d892a98f6fd8db72fbf",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "1954778beca85d3c",
"name" : "log",
"source" : "1954778beca85d3c.txt",
"type" : "text/plain",
"size" : 279
}, {
"uid" : "f5049b4c6a7f5ebf",
"name" : "stdout",
"source" : "f5049b4c6a7f5ebf.txt",
"type" : "text/plain",
"size" : 217
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'ids': '需要更新'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql",
"value" : "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sqlType",
"value" : "'select'"
}, {
"name" : "updateKey",
"value" : "'ids'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "7e644a758ec60837.json",
"parameterValues" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "89fb43f470f39c96",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "9764a99d1500f41252331a53d78b9275",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5EF470>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000002AA7C63D600>('state')\nE + where <built-in method get of dict object at 0x000002AA7C63D600> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...EsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...EsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5EF470>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5EF470>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000002AA7C63D600>('state')\nE + where <built-in method get of dict object at 0x000002AA7C63D600> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...EsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...EsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5EF470>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "3bd3cfe7ea39cf53",
"name" : "log",
"source" : "3bd3cfe7ea39cf53.txt",
"type" : "text/plain",
"size" : 739
}, {
"uid" : "b7a1fb15bddfff51",
"name" : "stdout",
"source" : "b7a1fb15bddfff51.txt",
"type" : "text/plain",
"size" : 342
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "89fb43f470f39c96.json",
"parameterValues" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "8dddfafa3f171101",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "141aefa230f0d6f949b1cdfbcd3350f6",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649E20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '部分删除成功,其中编码为...ddOrg】的组织不存在;' == '删除组织成功!'\nE \nE - 删除组织成功!\nE + 部分删除成功,其中编码为【testAddOrg】的组织不存在;\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649E20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649E20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '部分删除成功,其中编码为...ddOrg】的组织不存在;' == '删除组织成功!'\nE \nE - 删除组织成功!\nE + 部分删除成功,其中编码为【testAddOrg】的组织不存在;\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649E20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "f107d455611420e0",
"name" : "log",
"source" : "f107d455611420e0.txt",
"type" : "text/plain",
"size" : 315
}, {
"uid" : "568071b54545907a",
"name" : "stdout",
"source" : "568071b54545907a.txt",
"type" : "text/plain",
"size" : 156
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "'testAddOrg'"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'x-www-form-urlencoded'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "8dddfafa3f171101.json",
"parameterValues" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}
\ No newline at end of file
{
"uid" : "9790585531d4c0d4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "90f4e8eb194fe89ccba17750d9cd38a1",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "215a3ef1c50d9339",
"name" : "log",
"source" : "215a3ef1c50d9339.txt",
"type" : "text/plain",
"size" : 279
}, {
"uid" : "6a3b72b5c19f7411",
"name" : "stdout",
"source" : "6a3b72b5c19f7411.txt",
"type" : "text/plain",
"size" : 217
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'ids': '需要更新'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql",
"value" : "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sqlType",
"value" : "'select'"
}, {
"name" : "updateKey",
"value" : "'ids'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "9790585531d4c0d4.json",
"parameterValues" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
"uid" : "9846c7a0d65d17f7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "6632b932debab6910458efba5e671e82",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "5b63250a319ab4f3",
"name" : "log",
"source" : "5b63250a319ab4f3.txt",
"type" : "text/plain",
"size" : 338
}, {
"uid" : "2d98671b74f593b9",
"name" : "stdout",
"source" : "2d98671b74f593b9.txt",
"type" : "text/plain",
"size" : 269
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql",
"value" : "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sqlType",
"value" : "'delete'"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "9846c7a0d65d17f7.json",
"parameterValues" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
"uid" : "a31292b00e8353e5",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "f3f8f356daa76f6c375727b1feed8984",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "ec6b1639205409f4",
"name" : "log",
"source" : "ec6b1639205409f4.txt",
"type" : "text/plain",
"size" : 449
}, {
"uid" : "bcb647517a8c08da",
"name" : "stdout",
"source" : "bcb647517a8c08da.txt",
"type" : "text/plain",
"size" : 376
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql",
"value" : "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"
}, {
"name" : "sqlType",
"value" : "'delete'"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/user/v1/user/addUser'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a31292b00e8353e5.json",
"parameterValues" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}
\ No newline at end of file
{
"uid" : "a3ad40c765d494b4",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "fb0dfd0659d46056ab3161dfae24b79b",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B3B0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '设置默认维度成功!' == '设置默认维度成功'\nE \nE - 设置默认维度成功\nE + 设置默认维度成功!\nE ? +\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B3B0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B3B0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '设置默认维度成功!' == '设置默认维度成功'\nE \nE - 设置默认维度成功\nE + 设置默认维度成功!\nE ? +\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B3B0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "9db978933e0faa3b",
"name" : "log",
"source" : "9db978933e0faa3b.txt",
"type" : "text/plain",
"size" : 284
}, {
"uid" : "fba7df5248dc3dcd",
"name" : "stdout",
"source" : "fba7df5248dc3dcd.txt",
"type" : "text/plain",
"size" : 164
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddDem'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '设置默认维度成功'}"
}, {
"name" : "method",
"value" : "'put'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "a3ad40c765d494b4.json",
"parameterValues" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}
\ No newline at end of file
{
"uid" : "a970dbe891e4e51d",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "9aa402c222208be60ed8f701981570fc",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "c96993e93ae6a7f9",
"name" : "log",
"source" : "c96993e93ae6a7f9.txt",
"type" : "text/plain",
"size" : 780
}, {
"uid" : "f631864290d1bf3e",
"name" : "stdout",
"source" : "f631864290d1bf3e.txt",
"type" : "text/plain",
"size" : 387
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect",
"value" : "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "a970dbe891e4e51d.json",
"parameterValues" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "af72be2c59a03860",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "87b34b9ddf3c436bff3c3b67a3e25341",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "97b8a9266692fbae",
"name" : "log",
"source" : "97b8a9266692fbae.txt",
"type" : "text/plain",
"size" : 528
}, {
"uid" : "4c067351dfa1c40c",
"name" : "stdout",
"source" : "4c067351dfa1c40c.txt",
"type" : "text/plain",
"size" : 368
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "af72be2c59a03860.json",
"parameterValues" : [ "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "bcd08329059556c2",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "31e353a9d6614953bb72ca1e8924a3ca",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B313440>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nmime = 'query|json'\ncase = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nexpect = {'message': '保存组织参数成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n> res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n\ntest_\\test_gy\\test_bbb.py:15: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nreq_method = 'post'\nreq_url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nreq_mime = 'query|json'\nreq_case = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nsql_type = None, sql_data = None, update_key = None\n\n def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n # 使用DB类对象,执行删除sql语句\n self.db.delete(sql_data)\n \n # 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中\n elif sql_type == \"select\":\n # 使用DB类对象,执行查询sql语句,并获取查询结果\n select_res = self.db.select(sql_data)\n # 将查询结果更新到用例数据中\n req_case[update_key] = select_res\n # print(\"用例数据:\", req_case)\n # print(\"更新的key:\", update_key)\n # print(\"查询结果:\", select_res)\n # print(\"用例数据更新之后:\", req_case)\n \n # 删除数据完成之后 或者 用例数据更新为查询结果之后 在发送请求\n # 判断不同的媒体类型使用不用的关键字传参\n \n # 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参\n if req_mime == \"application/x-www-form-urlencoded\" or req_mime == 'x-www-form-urlencoded' or req_mime == \"form\":\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, data=req_case)\n \n # 判断请求的媒体类型的值是否为application/json或者为json使用json传参\n elif req_mime == \"application/json\" or req_mime == 'json':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, json=req_case)\n \n # 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参\n elif req_mime == \"multipart/form-data\" or req_mime == 'form-data':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, files=req_case)\n \n # 判断请求的媒体类型的值是否为query使用params传参\n elif req_mime == \"query\":\n return self.bpm_session.request(method=req_method, url=req_url, params=req_case)\n \n # 判断请求的媒体类型的值是否为None, 表示没有传参\n elif req_mime is None:\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url)\n \n else:\n> raise ValueError(\"传入的媒体类型的值错误!!!,可以继承该类,复写该方法\")\nE ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法\n\n..\\api_1104\\re_\\re_method.py:59: ValueError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "broken",
"statusMessage" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B313440>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nmime = 'query|json'\ncase = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nexpect = {'message': '保存组织参数成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n> res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n\ntest_\\test_gy\\test_bbb.py:15: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nreq_method = 'post'\nreq_url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nreq_mime = 'query|json'\nreq_case = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nsql_type = None, sql_data = None, update_key = None\n\n def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n # 使用DB类对象,执行删除sql语句\n self.db.delete(sql_data)\n \n # 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中\n elif sql_type == \"select\":\n # 使用DB类对象,执行查询sql语句,并获取查询结果\n select_res = self.db.select(sql_data)\n # 将查询结果更新到用例数据中\n req_case[update_key] = select_res\n # print(\"用例数据:\", req_case)\n # print(\"更新的key:\", update_key)\n # print(\"查询结果:\", select_res)\n # print(\"用例数据更新之后:\", req_case)\n \n # 删除数据完成之后 或者 用例数据更新为查询结果之后 在发送请求\n # 判断不同的媒体类型使用不用的关键字传参\n \n # 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参\n if req_mime == \"application/x-www-form-urlencoded\" or req_mime == 'x-www-form-urlencoded' or req_mime == \"form\":\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, data=req_case)\n \n # 判断请求的媒体类型的值是否为application/json或者为json使用json传参\n elif req_mime == \"application/json\" or req_mime == 'json':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, json=req_case)\n \n # 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参\n elif req_mime == \"multipart/form-data\" or req_mime == 'form-data':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, files=req_case)\n \n # 判断请求的媒体类型的值是否为query使用params传参\n elif req_mime == \"query\":\n return self.bpm_session.request(method=req_method, url=req_url, params=req_case)\n \n # 判断请求的媒体类型的值是否为None, 表示没有传参\n elif req_mime is None:\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url)\n \n else:\n> raise ValueError(\"传入的媒体类型的值错误!!!,可以继承该类,复写该方法\")\nE ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法\n\n..\\api_1104\\re_\\re_method.py:59: ValueError",
"steps" : [ ],
"attachments" : [ {
"uid" : "1ca3c30340bcad91",
"name" : "stdout",
"source" : "1ca3c30340bcad91.txt",
"type" : "text/plain",
"size" : 225
} ],
"parameters" : [ ],
"attachmentsCount" : 1,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '保存组织参数成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'query|json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Test defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "bcd08329059556c2.json",
"parameterValues" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}
\ No newline at end of file
{
"uid" : "d14bf09bcbc76f1a",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"fullName" : "test_.test_zf.test_bbb.TestBPM#test_bpm",
"historyId" : "e0d7781c4d1796150098245ba425b28e",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64A240>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '更新维度成功!' == '更新维度成功'\nE \nE - 更新维度成功\nE + 更新维度成功!\nE ? +\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64A240>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880174598,
"stop" : 1730880174656,
"duration" : 58
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64A240>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '更新维度成功!' == '更新维度成功'\nE \nE - 更新维度成功\nE + 更新维度成功!\nE ? +\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64A240>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "937a7d5e694a24d7",
"name" : "log",
"source" : "937a7d5e694a24d7.txt",
"type" : "text/plain",
"size" : 361
}, {
"uid" : "b40e24d37cfb5305",
"name" : "stdout",
"source" : "b40e24d37cfb5305.txt",
"type" : "text/plain",
"size" : 254
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175010,
"stop" : 1730880175010,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_zf"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_zf.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '更新维度成功'}"
}, {
"name" : "method",
"value" : "'put'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "d14bf09bcbc76f1a.json",
"parameterValues" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}
\ No newline at end of file
{
"uid" : "db8f12ef2339334f",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "93472a8d53ed5d101e84e876c38ae29b",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C1989E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '更新维度成功!' == '更新维度成功'\nE \nE - 更新维度成功\nE + 更新维度成功!\nE ? +\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C1989E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C1989E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '更新维度成功!' == '更新维度成功'\nE \nE - 更新维度成功\nE + 更新维度成功!\nE ? +\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C1989E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "ade56b9b1bd2eefa",
"name" : "log",
"source" : "ade56b9b1bd2eefa.txt",
"type" : "text/plain",
"size" : 361
}, {
"uid" : "e7fcbadddd6bb93",
"name" : "stdout",
"source" : "e7fcbadddd6bb93.txt",
"type" : "text/plain",
"size" : 254
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '更新维度成功'}"
}, {
"name" : "method",
"value" : "'put'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "db8f12ef2339334f.json",
"parameterValues" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}
\ No newline at end of file
{
"uid" : "dde6f7bc2915a6af",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "938a659267871173cccf636000e15b41",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA78791430>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '部分删除成功,其中编码为...ddOrg】的组织不存在;' == '删除组织成功!'\nE \nE - 删除组织成功!\nE + 部分删除成功,其中编码为【testAddOrg】的组织不存在;\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA78791430>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA78791430>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '部分删除成功,其中编码为...ddOrg】的组织不存在;' == '删除组织成功!'\nE \nE - 删除组织成功!\nE + 部分删除成功,其中编码为【testAddOrg】的组织不存在;\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA78791430>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "45eac65c4b357666",
"name" : "log",
"source" : "45eac65c4b357666.txt",
"type" : "text/plain",
"size" : 315
}, {
"uid" : "1cc52f2f02b3b473",
"name" : "stdout",
"source" : "1cc52f2f02b3b473.txt",
"type" : "text/plain",
"size" : 156
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "'testAddOrg'"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'x-www-form-urlencoded'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "dde6f7bc2915a6af.json",
"parameterValues" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}
\ No newline at end of file
{
"uid" : "dec9f08a7e3cd7b8",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "bee90e459d05c3bcf4593313ea9319ea",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C2AB0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C2AB0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C2AB0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C2AB0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "95b6fccddf7a0f41",
"name" : "log",
"source" : "95b6fccddf7a0f41.txt",
"type" : "text/plain",
"size" : 356
}, {
"uid" : "c8479612c2e7b97b",
"name" : "stdout",
"source" : "c8479612c2e7b97b.txt",
"type" : "text/plain",
"size" : 204
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "dec9f08a7e3cd7b8.json",
"parameterValues" : [ "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "dfa2de4323c355d7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "7b46467d480085a8ad70342b6f1e9bc7",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C198E30>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000002AA7C734F80>('state')\nE + where <built-in method get of dict object at 0x000002AA7C734F80> = {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'}.get\nE + where {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C198E30>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C198E30>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000002AA7C734F80>('state')\nE + where <built-in method get of dict object at 0x000002AA7C734F80> = {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'}.get\nE + where {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C198E30>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "582946afb2cda666",
"name" : "log",
"source" : "582946afb2cda666.txt",
"type" : "text/plain",
"size" : 472
}, {
"uid" : "6896a65706345794",
"name" : "stdout",
"source" : "6896a65706345794.txt",
"type" : "text/plain",
"size" : 428
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '添加组织成功'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql",
"value" : "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"
}, {
"name" : "sqlType",
"value" : "'select|delete'"
}, {
"name" : "updateKey",
"value" : "'demId'"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "dfa2de4323c355d7.json",
"parameterValues" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}
\ No newline at end of file
{
"uid" : "f3a293d263d1cb21",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "6b8d09588d70a67f2de4eaa0afef71bc",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C163290>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '解密密码异常,请检查RSA公钥和私钥配置' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 解密密码异常,请检查RSA公钥和私钥配置\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C163290>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "failed",
"statusMessage" : "AssertionError: 断言失败",
"statusTrace" : "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C163290>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '解密密码异常,请检查RSA公钥和私钥配置' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 解密密码异常,请检查RSA公钥和私钥配置\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C163290>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError",
"steps" : [ ],
"attachments" : [ {
"uid" : "3fadf2573745d1af",
"name" : "log",
"source" : "3fadf2573745d1af.txt",
"type" : "text/plain",
"size" : 891
}, {
"uid" : "9d692709c298cb63",
"name" : "stdout",
"source" : "9d692709c298cb63.txt",
"type" : "text/plain",
"size" : 706
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : true,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}"
}, {
"name" : "expect",
"value" : "{'state': False, 'message': '账户错误或该租户未启用'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "sql",
"value" : "None"
}, {
"name" : "sqlType",
"value" : "None"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ {
"name" : "Product defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "f3a293d263d1cb21.json",
"parameterValues" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}
\ No newline at end of file
{
"uid" : "fab6f15b3584c974",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"fullName" : "test_.test_gy.test_bbb.TestBPM#test_bpm",
"historyId" : "38b82b7bd47144ee565175a9baba9b2c",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "req_fix",
"time" : {
"start" : 1730880172384,
"stop" : 1730880172858,
"duration" : 474
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
}, {
"name" : "_session_faker",
"time" : {
"start" : 1730880170619,
"stop" : 1730880172384,
"duration" : 1765
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "a8a3cb19a5a1d83",
"name" : "log",
"source" : "a8a3cb19a5a1d83.txt",
"type" : "text/plain",
"size" : 338
}, {
"uid" : "41b3a7c7c58d2bb8",
"name" : "stdout",
"source" : "41b3a7c7c58d2bb8.txt",
"type" : "text/plain",
"size" : 269
} ],
"parameters" : [ ],
"attachmentsCount" : 2,
"shouldDisplayMessage" : false,
"hasContent" : true,
"stepsCount" : 0
},
"afterStages" : [ {
"name" : "req_fix::0",
"time" : {
"start" : 1730880175011,
"stop" : 1730880175011,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false,
"stepsCount" : 0
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "test_.test_gy"
}, {
"name" : "suite",
"value" : "test_bbb"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-2896RJV"
}, {
"name" : "thread",
"value" : "20532-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_.test_gy.test_bbb"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case",
"value" : "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"
}, {
"name" : "expect",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'json'"
}, {
"name" : "sql",
"value" : "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"
}, {
"name" : "sqlType",
"value" : "'delete'"
}, {
"name" : "updateKey",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "fab6f15b3584c974.json",
"parameterValues" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "DESKTOP-2896RJV",
"children" : [ {
"name" : "20532-MainThread",
"children" : [ {
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"uid" : "26ffaaa6b4dcc995",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'Post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"uid" : "4cefa2bcd8b1b0ed",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"uid" : "5204d390075ffa",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"uid" : "a970dbe891e4e51d",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"uid" : "112546ebabd588fd",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"uid" : "a3ad40c765d494b4",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem'}", "{'state': True, 'message': '设置默认维度成功'}", "'put'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "a31292b00e8353e5",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"uid" : "f3a293d263d1cb21",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"uid" : "89fb43f470f39c96",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"uid" : "af72be2c59a03860",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "9846c7a0d65d17f7",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"uid" : "dfa2de4323c355d7",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"uid" : "10a5669909df260",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '1'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "7e644a758ec60837",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"uid" : "16f1a91a3c0314b1",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功'}", "'post'", "'json'", "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}", "'select|delete'", "'demId'", "'http://36.139.193.99:8088/api/org/v1/org/addOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"uid" : "bcd08329059556c2",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "broken",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"uid" : "9790585531d4c0d4",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '需要更新'}", "{'state': True, 'message': '删除维度成功!'}", "'DELETE'", "'query'", "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'select'", "'ids'", "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"uid" : "5665531c57cea0c7",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "broken",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}", "{'state': True, 'message': '保存组织参数成功!'}", "'post'", "'query|json'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"uid" : "8dddfafa3f171101",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"uid" : "5222f66754e1fa9b",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}", "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}", "'post'", "'json'", "'delete from uc_user where ACCOUNT_=\"testAddUser\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/user/v1/user/addUser'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"uid" : "db8f12ef2339334f",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"uid" : "15df1a1d3850b5b4",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"uid" : "2e0e41965036e904",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'loginStatus': True}", "'get'", "None", "None", "None", "None", "'http://36.139.193.99:8088/refresh'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"uid" : "383c98239007dc82",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': ''}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"uid" : "fab6f15b3584c974",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "passed",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}", "{'state': True, 'message': '添加维度成功!'}", "'post'", "'json'", "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'", "'delete'", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"uid" : "dec9f08a7e3cd7b8",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}", "{'state': False, 'message': '账户错误或该租户未启用'}", "'post'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/auth'" ]
}, {
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"uid" : "d14bf09bcbc76f1a",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}", "{'state': True, 'message': '更新维度成功'}", "'put'", "'application/json'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'" ]
}, {
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"uid" : "19c7e703371ba778",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': ''}", "{'state': False, 'message': '维度id不能为空!'}", "'DELETE'", "'query'", "None", "None", "None", "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'" ]
}, {
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"uid" : "dde6f7bc2915a6af",
"parentUid" : "931d3baea6bd4ad2ade6063697a9b2a7",
"status" : "failed",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'testAddOrg'", "{'state': True, 'message': '删除组织成功!'}", "'post'", "'x-www-form-urlencoded'", "None", "None", "None", "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'" ]
} ],
"uid" : "931d3baea6bd4ad2ade6063697a9b2a7"
} ],
"uid" : "cf7182e5ff583663be550acdad84cc89"
} ]
}
\ No newline at end of file
launch_status failed=15 1730881286000000000
launch_status broken=2 1730881286000000000
launch_status passed=12 1730881286000000000
launch_status skipped=0 1730881286000000000
launch_status unknown=0 1730881286000000000
launch_time duration=2140 1730881286000000000
launch_time min_duration=0 1730881286000000000
launch_time max_duration=93 1730881286000000000
launch_time sum_duration=794 1730881286000000000
launch_problems product_defects=15 1730881286000000000
launch_problems test_defects=2 1730881286000000000
launch_retries retries=0 1730881286000000000
launch_retries run=29 1730881286000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 15
launch_status_broken 2
launch_status_passed 12
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 2140
launch_time_min_duration 0
launch_time_max_duration 93
launch_time_sum_duration 794
launch_problems_product_defects 15
launch_problems_test_defects 2
launch_retries_retries 0
launch_retries_run 29
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
"data" : {
"Product defects" : 15,
"Test defects" : 2
}
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 2140
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 15,
"broken" : 2,
"skipped" : 0,
"passed" : 12,
"unknown" : 0,
"total" : 29
}
} ]
\ No newline at end of file
{
"a1621bca7dd27d892a98f6fd8db72fbf" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "7e644a758ec60837",
"status" : "passed",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
}
} ]
},
"240b5b536fa5a7370c7a876b96ee7742" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "16f1a91a3c0314b1",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
}
} ]
},
"7b46467d480085a8ad70342b6f1e9bc7" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "dfa2de4323c355d7",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
}
} ]
},
"93472a8d53ed5d101e84e876c38ae29b" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "db8f12ef2339334f",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
}
} ]
},
"f9bb821f1f218e87d39ab0e105cf5ce9" : {
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5665531c57cea0c7",
"status" : "broken",
"statusDetails" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
}
} ]
},
"6b8d09588d70a67f2de4eaa0afef71bc" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "f3a293d263d1cb21",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
}
} ]
},
"a738918aa4e608fe5afc144f7e1b2ecb" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "2e0e41965036e904",
"status" : "passed",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
}
} ]
},
"2499a6b1c7fcacceebbe7b51cc8b523a" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "15df1a1d3850b5b4",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
}
} ]
},
"90f4e8eb194fe89ccba17750d9cd38a1" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "9790585531d4c0d4",
"status" : "passed",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
}
} ]
},
"141aefa230f0d6f949b1cdfbcd3350f6" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "8dddfafa3f171101",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
}
} ]
},
"86a7ab9cae3089908addd26d6b786b08" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5222f66754e1fa9b",
"status" : "passed",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
}
} ]
},
"fb0dfd0659d46056ab3161dfae24b79b" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a3ad40c765d494b4",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
}
} ]
},
"38b82b7bd47144ee565175a9baba9b2c" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "fab6f15b3584c974",
"status" : "passed",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
}
} ]
},
"938a659267871173cccf636000e15b41" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "dde6f7bc2915a6af",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
}
} ]
},
"e364bf2b17e5077689db45f2f4c35dc2" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "10a5669909df260",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
}
} ]
},
"6632b932debab6910458efba5e671e82" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "9846c7a0d65d17f7",
"status" : "passed",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
}
} ]
},
"87b34b9ddf3c436bff3c3b67a3e25341" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "af72be2c59a03860",
"status" : "passed",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
}
} ]
},
"bee90e459d05c3bcf4593313ea9319ea" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "dec9f08a7e3cd7b8",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
}
} ]
},
"1a9f428371c0dd5f957d2f7cc3dfdc3e" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "4cefa2bcd8b1b0ed",
"status" : "passed",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
}
} ]
},
"f3f8f356daa76f6c375727b1feed8984" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a31292b00e8353e5",
"status" : "passed",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
}
} ]
},
"e0d7781c4d1796150098245ba425b28e" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "d14bf09bcbc76f1a",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
}
} ]
},
"9764a99d1500f41252331a53d78b9275" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "89fb43f470f39c96",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
}
} ]
},
"9aa402c222208be60ed8f701981570fc" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "a970dbe891e4e51d",
"status" : "passed",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
}
} ]
},
"31e353a9d6614953bb72ca1e8924a3ca" : {
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "bcd08329059556c2",
"status" : "broken",
"statusDetails" : "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
}
} ]
},
"383b79733551d588e4f71c41ce018763" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "19c7e703371ba778",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
}
} ]
},
"0abe3de2b798f5d0e677c84f1c47fc4c" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "383c98239007dc82",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
}
} ]
},
"3f6c0d87b134af87e062cf3d98246f96" : {
"statistic" : {
"failed" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "112546ebabd588fd",
"status" : "failed",
"statusDetails" : "AssertionError: 断言失败",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
}
} ]
},
"721e17be3f6f7c87aeccf44ccc2f7340" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "26ffaaa6b4dcc995",
"status" : "passed",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
}
} ]
},
"491e5a5f52dc86ce26387925709034d5" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5204d390075ffa",
"status" : "passed",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
}
} ]
}
}
\ No newline at end of file
[ {
"data" : {
"run" : 29,
"retry" : 0
}
} ]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"total" : 29,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : {
"Product defects" : 15,
"Test defects" : 2
}
} ]
\ No newline at end of file
{
"total" : 2,
"items" : [ {
"uid" : "8fb3a91ba5aaf9de24cc8a92edc82b5d",
"name" : "Product defects",
"statistic" : {
"failed" : 15,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 15
}
}, {
"uid" : "bdbf199525818fae7a8651db9eafe741",
"name" : "Test defects",
"statistic" : {
"failed" : 0,
"broken" : 2,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 2
}
} ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 2140
}
} ]
\ No newline at end of file
[ {
"uid" : "dfa2de4323c355d7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "dec9f08a7e3cd7b8",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "af72be2c59a03860",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "10a5669909df260",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "7e644a758ec60837",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8dddfafa3f171101",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "a3ad40c765d494b4",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "2e0e41965036e904",
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5222f66754e1fa9b",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "16f1a91a3c0314b1",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "89fb43f470f39c96",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "f3a293d263d1cb21",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "112546ebabd588fd",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "bcd08329059556c2",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "26ffaaa6b4dcc995",
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a970dbe891e4e51d",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "4cefa2bcd8b1b0ed",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5665531c57cea0c7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "fab6f15b3584c974",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a31292b00e8353e5",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9846c7a0d65d17f7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "db8f12ef2339334f",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "5204d390075ffa",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "383c98239007dc82",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "d14bf09bcbc76f1a",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "9790585531d4c0d4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "15df1a1d3850b5b4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "19c7e703371ba778",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "dde6f7bc2915a6af",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"status" : "failed",
"severity" : "normal"
} ]
\ No newline at end of file
[ ]
\ No newline at end of file
[ ]
\ No newline at end of file
[ {
"data" : {
"failed" : 15,
"broken" : 2,
"skipped" : 0,
"passed" : 12,
"unknown" : 0,
"total" : 29
}
} ]
\ No newline at end of file
[ ]
\ No newline at end of file
[ {
"data" : {
"run" : 29,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "9846c7a0d65d17f7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "fab6f15b3584c974",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "383c98239007dc82",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "a3ad40c765d494b4",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "d14bf09bcbc76f1a",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "15df1a1d3850b5b4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "19c7e703371ba778",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "4cefa2bcd8b1b0ed",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "f3a293d263d1cb21",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "a970dbe891e4e51d",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "89fb43f470f39c96",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "dec9f08a7e3cd7b8",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "bcd08329059556c2",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "db8f12ef2339334f",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "5665531c57cea0c7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "5204d390075ffa",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8dddfafa3f171101",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "16f1a91a3c0314b1",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "9790585531d4c0d4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a31292b00e8353e5",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "dde6f7bc2915a6af",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "5222f66754e1fa9b",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "af72be2c59a03860",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "dfa2de4323c355d7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "2e0e41965036e904",
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "26ffaaa6b4dcc995",
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "7e644a758ec60837",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "10a5669909df260",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "112546ebabd588fd",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"status" : "failed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "dfa2de4323c355d7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]",
"time" : {
"start" : 1730880174390,
"stop" : 1730880174404,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "dec9f08a7e3cd7b8",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]",
"time" : {
"start" : 1730880173984,
"stop" : 1730880174011,
"duration" : 27
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "af72be2c59a03860",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]",
"time" : {
"start" : 1730880174148,
"stop" : 1730880174174,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "10a5669909df260",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]",
"time" : {
"start" : 1730880173631,
"stop" : 1730880173657,
"duration" : 26
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "7e644a758ec60837",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"time" : {
"start" : 1730880174519,
"stop" : 1730880174550,
"duration" : 31
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "8dddfafa3f171101",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]",
"time" : {
"start" : 1730880174838,
"stop" : 1730880174852,
"duration" : 14
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "a3ad40c765d494b4",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]",
"time" : {
"start" : 1730880174703,
"stop" : 1730880174728,
"duration" : 25
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "2e0e41965036e904",
"name" : "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]",
"time" : {
"start" : 1730880174225,
"stop" : 1730880174251,
"duration" : 26
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5222f66754e1fa9b",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"time" : {
"start" : 1730880174881,
"stop" : 1730880174920,
"duration" : 39
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "16f1a91a3c0314b1",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]",
"time" : {
"start" : 1730880174804,
"stop" : 1730880174820,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "89fb43f470f39c96",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]",
"time" : {
"start" : 1730880172900,
"stop" : 1730880172928,
"duration" : 28
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "f3a293d263d1cb21",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]",
"time" : {
"start" : 1730880173409,
"stop" : 1730880173502,
"duration" : 93
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "112546ebabd588fd",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]",
"time" : {
"start" : 1730880174309,
"stop" : 1730880174337,
"duration" : 28
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "bcd08329059556c2",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]",
"time" : {
"start" : 1730880174446,
"stop" : 1730880174446,
"duration" : 0
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "26ffaaa6b4dcc995",
"name" : "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]",
"time" : {
"start" : 1730880174073,
"stop" : 1730880174102,
"duration" : 29
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a970dbe891e4e51d",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]",
"time" : {
"start" : 1730880172860,
"stop" : 1730880172890,
"duration" : 30
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "4cefa2bcd8b1b0ed",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]",
"time" : {
"start" : 1730880174111,
"stop" : 1730880174138,
"duration" : 27
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5665531c57cea0c7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]",
"time" : {
"start" : 1730880174866,
"stop" : 1730880174867,
"duration" : 1
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "fab6f15b3584c974",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"time" : {
"start" : 1730880174260,
"stop" : 1730880174300,
"duration" : 40
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "a31292b00e8353e5",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]",
"time" : {
"start" : 1730880174461,
"stop" : 1730880174511,
"duration" : 50
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9846c7a0d65d17f7",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]",
"time" : {
"start" : 1730880174658,
"stop" : 1730880174695,
"duration" : 37
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "db8f12ef2339334f",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]",
"time" : {
"start" : 1730880174352,
"stop" : 1730880174376,
"duration" : 24
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "5204d390075ffa",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]",
"time" : {
"start" : 1730880174184,
"stop" : 1730880174212,
"duration" : 28
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "383c98239007dc82",
"name" : "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]",
"time" : {
"start" : 1730880174031,
"stop" : 1730880174058,
"duration" : 27
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "d14bf09bcbc76f1a",
"name" : "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]",
"time" : {
"start" : 1730880174766,
"stop" : 1730880174789,
"duration" : 23
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "9790585531d4c0d4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]",
"time" : {
"start" : 1730880174935,
"stop" : 1730880174979,
"duration" : 44
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "15df1a1d3850b5b4",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]",
"time" : {
"start" : 1730880174988,
"stop" : 1730880175000,
"duration" : 12
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "19c7e703371ba778",
"name" : "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]",
"time" : {
"start" : 1730880174568,
"stop" : 1730880174584,
"duration" : 16
},
"status" : "failed",
"severity" : "normal"
}, {
"uid" : "dde6f7bc2915a6af",
"name" : "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]",
"time" : {
"start" : 1730880174419,
"stop" : 1730880174432,
"duration" : 13
},
"status" : "failed",
"severity" : "normal"
} ]
\ No newline at end of file
{
"total" : 2,
"items" : [ {
"uid" : "a9e3a85c53a733102c80e9041762c618",
"name" : "test_.test_gy",
"statistic" : {
"failed" : 10,
"broken" : 1,
"skipped" : 0,
"passed" : 9,
"unknown" : 0,
"total" : 20
}
}, {
"uid" : "27ca9d9322967b64ebe7b68c074b9948",
"name" : "test_.test_zf",
"statistic" : {
"failed" : 5,
"broken" : 1,
"skipped" : 0,
"passed" : 3,
"unknown" : 0,
"total" : 9
}
} ]
}
\ No newline at end of file
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 15,
"broken" : 2,
"skipped" : 0,
"passed" : 12,
"unknown" : 0,
"total" : 29
},
"time" : {
"start" : 1730880172860,
"stop" : 1730880175000,
"duration" : 2140,
"minDuration" : 0,
"maxDuration" : 93,
"sumDuration" : 794
}
}
\ No newline at end of file
import configparser
import os
from api_1105 import log
class Readbasicini:
"""读取公共的ini文件配置信息 """
def __init__(self):
self.data_config = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data_config")
ini_path = os.path.join(self.data_config, "basic_config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path, encoding="utf-8")
def get_host(self, key):
"""根据key获取host节点下被测系统的域名"""
log.info(f"执行get_host方法,功能为:根据key获取host节点下被测系统的域名, 传入的参数为:{key}")
try:
return self.conf.get("host", key)
except Exception as e:
log.info(f"执行get_host方法,功能为:根据key获取host节点下被测系统的域名, 传入的参数为:{key}"
f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
def get_connect_sql_msg(self, key):
"""根据key获取sql节点下数据库的链接信息"""
log.info(f"执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:{key}")
try:
return self.conf.get("sql", key)
except Exception as e:
log.info(f"执行get_connect_sql_msg方法,功能为:根据key获取sql节点下数据库的链接信息, 传入的参数为:{key}"
f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
if __name__ == '__main__':
ini = Readbasicini()
import pymysql
from api_1104.common_.l_ini import Readini_
from api_1105 import log
class DB:
def __init__(self):
ini = Readini_()
try:
self.conn = pymysql.connect(
host=ini.get_sql_msg('host'),
port=int(ini.get_sql_msg('port')),
user=ini.get_sql_msg('user'),
password=ini.get_sql_msg('pwd'),
database=ini.get_sql_msg('database'),
charset="utf8")
self.cursor = self.conn.cursor()
except Exception as e:
log.error(f"链接数据库时出错,请求检查ini配置文件,发生的错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
def delete(self, sql_sentence):
"""执行删除的sql语句"""
# 校验sql语句
log.info(f"执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:{sql_sentence}")
if isinstance(sql_sentence, str) and sql_sentence.strip().lower().startswith("delete"):
try:
# 执行删除的sql语句--使用游标对象execute方法
self.cursor.execute(sql_sentence)
# 使用链接对象提交
self.conn.commit()
except Exception as e:
log.error(f"执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:{sql_sentence}, 错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
log.error(f"执行的方法为:delete,功能描述为:执行删除的sql语句,传入的参数为:{sql_sentence}, 错误类型为:ValueError, 错误的描述为:sql语句错误")
raise ValueError("sql语句错误")
def select(self,sql_sentence):
log.info(f"执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:{sql_sentence}")
if isinstance(sql_sentence, str) and sql_sentence.strip().lower().startswith("select"):
try:
self.cursor.execute(sql_sentence)
except Exception as e:
log.error(f"执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:{sql_sentence}, 错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
select_result = self.cursor.fetchall()
if select_result:
return select_result[0][0]
else:
log.error(f"执行的方法为:select,功能描述为:执行查询的sql语句,传入的参数为:{sql_sentence}, 错误类型为:ValueError, 错误的描述为:sql语句错误")
raise ValueError("sql语句异常")
# if __name__ == '__main__':
# db = DB()
# sql = """select ID_ from uc_demension where CODE_="M1111";"""
# print(db.select(sql))
\ No newline at end of file
from pkgutil import get_data
from sys import modules
import openpyxl
from socks import method
from api_1105 import log
from api_1105.common_.l_basic_ini import Readbasicini
from api_1105.common_.l_json import read_json
from api_1105.common_.l_user_read import Readuserini
class ReadExcel:
def __init__(self, user):
ini = Readuserini(user)
case_data_path = ini.get_file_path("case")
expect_data_path = ini.get_file_path("expect")
sql_data_path = ini.get_file_path("sql")
self.case_data_dict = read_json(case_data_path)
self.expect_data_dict = read_json(expect_data_path)
self.sql_data_dict = read_json(sql_data_path)
# 获取excel的文件路径和工作表的名称
excel_path = ini.get_file_path("excel")
table_name = ini.get_table_name('name')
try:
# 获取工作簿和工作表
wb = openpyxl.load_workbook(excel_path)
self.ws = wb[table_name]
except Exception as e:
log.error(
f"获取excel的工作簿或工作表出错,excel的路径为:{excel_path},工作表名称为:{table_name},错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
def __get_cell_value(self, column: str, row: str) -> str:
log.info(f"执行的方法为:__get_cell_value,功能描述为:获取指定单元格数据,传入的参数为:{column}列,{row}行")
try:
# 根据列号和行号获取指定单元格数据
cell_value = self.ws[column + str(row)].value
except Exception as e:
log.error(f"执行的方法为:__get_cell_value,功能描述为:获取指定单元格数据,传入的参数为:{column}列,{row}行, 报错,错误类型为:{type(e)}, 错误的描述为:{e}")
print(f"获取指定单元格数据出错,列号为:{column}, 行号为:{row}, 错误类型为:{type(e)}, 错误描述为:{e}")
raise e
else:
# 判断单元格数据是否为None,如果是,返回None
if cell_value is None:
return None
# 判断单元格数据去掉前后空格之后是否不为空的字符串,如果是,返回去掉前后空格的字符串,如果为空的字符串,返回None
if cell_value.strip(): # 非空为True
return cell_value.strip()
def module_name(self, row):
log.info(f"执行的方法为:module_name,功能描述为:根据行号,获取模块名称,传入的参数为:{row}行")
return self.__get_cell_value("b", row)
def api_name(self, row):
log.info(f"执行的方法为:api_name,功能描述为:根据行号,获取接口名称,传入的参数为:{row}行")
return self.__get_cell_value("c", row)
def case_req_method(self, row):
log.info(f"执行的方法为:req_method,功能描述为:根据行号,获取用例的请求方法,传入的参数为:{row}行")
return self.__get_cell_value("f", row)
def case_req_url(self, row):
log.info(f"执行的方法为:req_url,功能描述为:根据行号,获取用例的请求url,传入的参数为:{row}行")
path = self.__get_cell_value("g", row)
if path:
return Readbasicini().get_host("bpm") + path
def case_req_mime(self, row):
log.info(f"执行的方法为:req_mime,功能描述为:根据行号,获取用例的请求媒体类型,传入的参数为:{row}行")
mime = self.__get_cell_value("h", row)
if mime:
return mime.lower()
def case_data(self, row):
log.info(f"执行的方法为:case_data,功能描述为:根据行号,获取用例数据,传入的参数为:{row}行")
case_data_key = self.__get_cell_value("i", row)
module_name = self.module_name(row)
api_name = self.api_name(row)
if case_data_key and module_name and api_name:
return self.case_data_dict[module_name][api_name][case_data_key]
def expect_data(self, row):
"""根据行号,获取期望数据"""
log.info(f"执行的方法为:expect_data,功能描述为:根据行号,获取期望数据,传入的参数为:{row}行")
expect_data_key = self.__get_cell_value("j", row)
module_name = self.module_name(row)
api_name = self.api_name(row)
if expect_data_key and module_name and api_name:
return self.expect_data_dict[module_name][api_name][expect_data_key]
def sql_data(self, row):
log.info(f"执行的方法为:sql_data,功能描述为:根据行号,获取sql语句,传入的参数为:{row}行")
sql_data_key = self.__get_cell_value("l", row)
module_name, api_name = self.module_name(row), self.api_name(row)
if sql_data_key and module_name and api_name:
return self.sql_data_dict[module_name][api_name][sql_data_key]
def sql_type(self, row):
log.info(f"执行的方法为:sql_type,功能描述为:根据行号,获取sql语句类型,传入的参数为:{row}行")
type = self.__get_cell_value("k", row)
if type:
return type.lower()
def update_key(self, row):
log.info(f"执行的方法为:update_key,功能描述为:根据行号,获取用例的更新的key,传入的参数为:{row}行")
return self.__get_cell_value("M", row)
def get_data(self):
list_data = []
for row in range(2, self.ws.max_row + 1):
method = self.case_req_method(row)
url = self.case_req_url(row)
mime = self.case_req_mime(row)
case = self.case_data(row)
expect = self.expect_data(row)
sql = self.sql_data(row)
sqltype = self.sql_type(row)
updatekey = self.update_key(row)
if method and url and expect:
list_data.append([method, url, mime, case, expect, sql, sqltype, updatekey])
else:
return list_data
if __name__ == '__main__':
excel = ReadExcel()
print(excel.get_data())
import json
import os
from api_1105 import log
def read_json(file_path):
"""读取json文件,将json文件对应的数据序列化为python对象再返回"""
# 校验json文件的路径
log.info(f"执行的函数为:read_json,描述为:读取json文件,将json文件的内容序列化为python对象在返回,传入的参数为:{file_path}")
if isinstance(file_path, str) and os.path.isfile(file_path) and file_path.endswith(".json"):
# 读取json文件
with open(file_path, mode="r", encoding="utf-8") as f:
try:
# 将json文件对应的数据序列化为python对象再返回
return json.loads(f.read())
except Exception as e:
log.error(
f"执行的函数为:read_json,描述为:读取json文件,将json文件的内容序列化为python对象在返回,传入的参数为:{file_path}, 文件路径不存在"
f"错误类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
log.error(
f"执行的函数为:read_json,描述为:读取json文件,将json文件的内容序列化为python对象在返回,传入的参数为:{file_path}, 文件路径不存在"
f"错误类型为:FileNotFoundError, 错误的描述为:文件路径错误")
raise FileNotFoundError("json文件的路径错误")
\ No newline at end of file
import configparser
import os
from api_1105 import log
class Readuserini:
def __init__(self,user):
"""读取ini文件, 需要指明读取哪个用户的ini配置文件"""
# 获取数据配置层的路径
data_config = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data_config")
# 获取用户存放数据的目录路径
self.user_data_config = os.path.join(data_config, user)
# 获取用户的ini文件路径
ini_path = os.path.join(self.user_data_config, "config.ini")
self.conf = configparser.ConfigParser()
res = self.conf.read(ini_path, encoding="utf-8")
if not res:
log.error(f"读取ini文件失败,请检查用户名是否传入正确,用户名为:{user}, 对应的ini文件路径为:{ini_path}")
raise ValueError("用户名错误")
def get_file_path(self, key):
"""根据key获取file节点下文件的路径"""
log.info(f"执行get_file_path方法,功能为:根据key获取file节点下文件的路径, 传入的参数为:{key}")
try:
file_name = self.conf.get("file", key)
except Exception as e:
log.info(f"执行get_file_path方法,功能为:根据key获取file节点下文件的路径, 传入的参数为:{key}"
f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
else:
return os.path.join(self.user_data_config, file_name)
def get_table_name(self, key):
"""根据key获取table节点下工作表的名称"""
log.info(f"执行get_table_name方法,功能为:根据key获取table节点下工作表的名称, 传入的参数为:{key}")
try:
return self.conf.get("table", key)
except Exception as e:
log.info(f"执行get_table_name方法,功能为:根据key获取table节点下工作表的名称, 传入的参数为:{key}"
f"发生错误,错误的类型为:{type(e)}, 错误的描述为:{e}")
raise e
if __name__ == '__main__':
ini = Readuserini("gy_data")
\ No newline at end of file
# 配置被测系统的域名
[host]
bpm=http://36.139.193.99:8088
# 数据库的链接信息
[sql]
host=36.139.193.99
port=3306
user=root
pwd=Rhrc@2024
database=eip8
\ No newline at end of file
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsError": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE"
},
"LoginErrorPasswordIsLong": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsShort": {
"username": "admin",
"password": "1"
},
"LoginErrorPasswordIsSpecial": {
"username": "admin",
"password": "㊚㊛囍㊒㊖☑✔☐☒✘卍"
},
"LoginErrorPasswordIsNone": {
"username": "admin",
"password": ""
},
"LoginErrorUsernameIsNone": {
"username": "",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsShort": {
"username": "a",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsLong": {
"username": "adminadminadminadminadminadmin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsSpecial": {
"username": "㊚㊛囍㊒㊖☑✔☐☒✘卍",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "testAddDem",
"description": "testAddDem",
"isDefault": 0,
"name": "testAddDem"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "需要更新"},
"DeleteDemErrorIdIsNone": {"ids": ""}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"code": "testAddDem"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "testAddDem",
"description": "测试添加的维度",
"isDefault": 0,
"name": "测试添加的维度"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "testAddOrg",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"删除组织": {
"DelOrgSuccess": "testAddOrg"
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"query": {"orgCode": "testAddOrg"},
"body": [{"alias": "sz", "value": 1}]
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {
"id":"",
"account":"testAddUser",
"address":"",
"email":"",
"fullname":"测试添加的用户",
"mobile":"",
"password":"123456",
"photo":"",
"sex":"",
"status":1
}
}
}
}
# 配置文件的名称
[file]
# 配置用例管理文件名称
excel=apiAutoTest.xlsx
# 配置用例json文件名称
case=case_data.json
# 配置期望数据名称名称
expect=expect_data.json
# 配置sql语句文件的名称
sql=sql_data.json
# 配置excel工作表的名称
[table]
name=BPM接口测试
{
"认证接口":{
"登录系统":{
"LoginSuccess":{"username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true},
"LoginErrorPasswordIsError":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsSpecial":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsSpecial":{"state":false,"message":"账户错误或该租户未启用"}
},
"刷新token": {
"RefreshTokenSuccess": {"loginStatus":true}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"state": true, "message": "添加维度成功!"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"state":true,"message":"删除维度成功!"},
"DeleteDemErrorIdIsNone": {"state":false,"message":"维度id不能为空!"}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"state": true, "message": "设置默认维度成功"}
},
"更新维度": {
"UpdateDemSuccess": {"state": true, "message": "更新维度成功"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"state": true, "message": "添加组织成功"}
},
"删除组织": {
"DelOrgSuccess": {"state":true,"message":"删除组织成功!"}
},
"保存组织参数": {
"SaveOrgParamSuccess": {"state":true,"message":"保存组织参数成功!"}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {"state":true,"message":"用户添加成功!","value":"","code":200}
}
}
}
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"delete": "delete from uc_org where CODE_=\"testAddOrg\";",
"select": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": "delete from uc_user where ACCOUNT_=\"testAddUser\";"
}
}
}
\ No newline at end of file
# 配置文件的名称
[file]
# 配置用例管理文件名称
excel=用例excel文件.xlsx
# 配置用例json文件名称
case=用例数据.json
# 配置期望数据名称名称
expect=期望数据.json
# 配置sql语句文件的名称
sql=sql语句.json
# 配置excel工作表的名称
[table]
name=接口测试
{
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"delete": "delete from uc_org where CODE_=\"testAddOrg\";",
"select": "SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";"
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": "delete from uc_user where ACCOUNT_=\"testAddUser\";"
}
}
}
\ No newline at end of file
{
{
"认证接口":{
"登录系统":{
"LoginSuccess":{"username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true},
"LoginErrorPasswordIsError":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsSpecial":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorPasswordIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsNone":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsShort":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsLong":{"state":false,"message":"账户错误或该租户未启用"},
"LoginErrorUsernameIsSpecial":{"state":false,"message":"账户错误或该租户未启用"}
},
"刷新token": {
"RefreshTokenSuccess": {"loginStatus":true}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {"state": true, "message": "添加维度成功!"}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"state":true,"message":"删除维度成功!"},
"DeleteDemErrorIdIsNone": {"state":false,"message":"维度id不能为空!"}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"state": true, "message": "设置默认维度成功"}
},
"更新维度": {
"UpdateDemSuccess": {"state": true, "message": "更新维度成功"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {"state": true, "message": "添加组织成功"}
},
"删除组织": {
"DelOrgSuccess": {"state":true,"message":"删除组织成功!"}
},
"保存组织参数": {
"SaveOrgParamSuccess": {"state":true,"message":"保存组织参数成功!"}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {"state":true,"message":"用户添加成功!","value":"","code":200}
}
}
}
{
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsError": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE"
},
"LoginErrorPasswordIsLong": {
"username": "admin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorPasswordIsShort": {
"username": "admin",
"password": "1"
},
"LoginErrorPasswordIsSpecial": {
"username": "admin",
"password": "㊚㊛囍㊒㊖☑✔☐☒✘卍"
},
"LoginErrorPasswordIsNone": {
"username": "admin",
"password": ""
},
"LoginErrorUsernameIsNone": {
"username": "",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsShort": {
"username": "a",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsLong": {
"username": "adminadminadminadminadminadmin",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
},
"LoginErrorUsernameIsSpecial": {
"username": "㊚㊛囍㊒㊖☑✔☐☒✘卍",
"password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "testAddDem",
"description": "testAddDem",
"isDefault": 0,
"name": "testAddDem"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {"ids": "需要更新"},
"DeleteDemErrorIdIsNone": {"ids": ""}
},
"设置默认维度": {
"SetDefaultDemSuccess": {"code": "testAddDem"}
},
"更新维度": {
"UpdateDemSuccess": {
"code": "testAddDem",
"description": "测试添加的维度",
"isDefault": 0,
"name": "测试添加的维度"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "testAddOrg",
"demId": "需要更新",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "测试添加的组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"删除组织": {
"DelOrgSuccess": "testAddOrg"
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"query": {"orgCode": "testAddOrg"},
"body": [{"alias": "sz", "value": 1}]
}
}
},
"用户管理": {
"添加用户": {
"AddUserSuccess": {
"id":"",
"account":"testAddUser",
"address":"",
"email":"",
"fullname":"测试添加的用户",
"mobile":"",
"password":"123456",
"photo":"",
"sex":"",
"status":1
}
}
}
}
import requests
from api_1105 import log
from api_1105.common_.l_basic_ini import Readbasicini
from api_1105.common_.l_db import DB
class RequestsMethod:
def __init__(self):
self.db = DB()
self.bpm_session = requests.sessions.Session()
login_data = {"username": "admin","password": "QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE="}
login_url = Readbasicini().get_host("bpm") + "/auth"
token = self.bpm_session.request(method="post", url=login_url, json=login_data).json()["token"]
self.bpm_session.headers["Authorization"] = "Bearer " + token
def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):
if sql_type == "delete":
# 使用DB类对象,执行删除sql语句
self.db.delete(sql_data)
# 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中
elif sql_type == "select":
# 使用DB类对象,执行查询sql语句,并获取查询结果
select_res = self.db.select(sql_data)
# 将查询结果更新到用例数据中
req_case[update_key] = select_res
# print("用例数据:", req_case)
# print("更新的key:", update_key)
# print("查询结果:", select_res)
# print("用例数据更新之后:", req_case)
elif sql_type == "select|delete" or sql_type == "delete|select":
self.db.delete(sql_data["delete"])
select_result = self.db.select(sql_data["select"])
req_case[update_key] = select_result
# 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参
if req_mime == "application/x-www-form-urlencoded" or req_mime == 'x-www-form-urlencoded' or req_mime == "form":
# 使用Session对象发送请求,并返回服务器响应的结果
return self.bpm_session.request(method=req_method, url=req_url, data=req_case)
# 判断请求的媒体类型的值是否为application/json或者为json使用json传参
elif req_mime == "application/json" or req_mime == 'json':
# 使用Session对象发送请求,并返回服务器响应的结果
return self.bpm_session.request(method=req_method, url=req_url, json=req_case)
# 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参
elif req_mime == "multipart/form-data" or req_mime == 'form-data':
# 使用Session对象发送请求,并返回服务器响应的结果
return self.bpm_session.request(method=req_method, url=req_url, files=req_case)
# 判断请求的媒体类型的值是否为query使用params传参
elif req_mime == "query":
return self.bpm_session.request(method=req_method, url=req_url, params=req_case)
# 判断请求的媒体类型的值是否为None, 表示没有传参
elif req_mime is None:
# 使用Session对象发送请求,并返回服务器响应的结果
return self.bpm_session.request(method=req_method, url=req_url)
# 判断请求的媒体类型是否为:query|json 或者 json|query 如果是,表示在地址栏和请求体中同时传参,请求体还是以json类型传参。
elif req_mime == "query|json" or req_mime == "json|query":
# requests可以在地址栏和请求体同时传参,请求体传参根据不同的媒体类型选择不同关键字传参,地址使用params
return self.bpm_session.request(method=req_method, url=req_url, params=req_case["query"],
json=req_case["body"])
else:
log.error(f"方法:request_all,传入的媒体类型为:{req_mime}, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖")
raise ValueError("没有符合的判断分支,可以自行封装,也可以继承之后覆盖")
# if __name__ == '__main__':
# datas = [
# 'DELETE',
# 'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds',
# 'query',
# {'ids': '需要更新'},
# {'state': True, 'message': '删除维度成功!'},
# 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";',
# 'select',
# 'ids'
# ]
# req = RequestsMethod()
# req.request_all(req_method=datas[0], req_url=datas[1], req_mime=datas[2], req_case=datas[3], sql_type=datas[-2], sql_data=datas[-3], update_key=datas[-1])
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{"uuid": "76ea421d-33f4-492d-aff5-dea1cf724b9a", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174252}
\ No newline at end of file
{"uuid": "6100a6da-2380-421c-8f0d-af9a6f65f104", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174104}
\ No newline at end of file
{"uuid": "aba3a515-e9c6-4a88-9362-953930cbf57f", "befores": [{"name": "sql", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174214}
\ No newline at end of file
{"uuid": "684ab13a-2ba0-4f37-999b-bdab9bdad40b", "befores": [{"name": "mime", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174861}
\ No newline at end of file
{"uuid": "194658da-2df7-4ea6-ba58-42bb86d7c466", "befores": [{"name": "expect", "status": "passed", "start": 1730880173631, "stop": 1730880173631}], "start": 1730880173631, "stop": 1730880173666}
\ No newline at end of file
{"name": "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case1-expect1-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B3B0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '设置默认维度成功!' == '设置默认维度成功'\nE \nE - 设置默认维度成功\nE + 设置默认维度成功!\nE ? +\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B3B0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "6471422f-1307-4e4a-9337-7e7e87234cf1-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "f24140ba-1d42-4cd8-91dd-22795d4c3cb3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"}, {"name": "mime", "value": "'query'"}, {"name": "case", "value": "{'code': 'testAddDem'}"}, {"name": "expect", "value": "{'state': True, 'message': '设置默认维度成功'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174703, "stop": 1730880174728, "uuid": "ba1dfcbf-28fb-4fca-90d7-9ea90c19349d", "historyId": "fb0dfd0659d46056ab3161dfae24b79b", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "9bb8c00b-ad45-49d9-86f2-ede2b04ea5cb", "befores": [{"name": "expect", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173512}
\ No newline at end of file
{"uuid": "06f9b4b6-1e05-4832-84d3-3b6f89d28e6c", "befores": [{"name": "sql", "status": "passed", "start": 1730880172899, "stop": 1730880172899}], "start": 1730880172899, "stop": 1730880173148}
\ No newline at end of file
{"uuid": "e16d76f0-693e-4688-8967-725526bec11d", "befores": [{"name": "case", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174385}
\ No newline at end of file
{"uuid": "6c63a22b-07bd-46e6-ad65-73f0e11dbc47", "befores": [{"name": "expect", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174105}
\ No newline at end of file
{"uuid": "cdfb0c40-1749-4380-a1ba-ee1de33689c3", "befores": [{"name": "sql", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172892}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True} None None None
{"uuid": "2167178e-b841-49ae-b829-9c6743d9343e", "befores": [{"name": "method", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173625}
\ No newline at end of file
{"uuid": "1be19f41-edb1-4444-959f-091c7cb2558d", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880173631, "stop": 1730880173631}], "start": 1730880173631, "stop": 1730880173664}
\ No newline at end of file
{"uuid": "f637ca1a-060c-48dd-8727-488ac2298c43", "befores": [{"name": "expect", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174215}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:None,期望数据为:{'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjY0MDIsImlhdCI6MTczMDg4MDAwMn0.I37j__1b73gyn4lmeRal0h1qA0e4LfSfax28LbJ-g__EVsQaRWHYK8PtkkGiXMPxlM6fFJHLxCtXHE2pEJS5xg","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true}
\ No newline at end of file
{"uuid": "e95b2ed9-9576-4302-9bfc-b29205e54899", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174550}
\ No newline at end of file
{"uuid": "49848aa4-ea4c-487f-8dff-88ee97f89755", "befores": [{"name": "sql", "status": "passed", "start": 1730880174656, "stop": 1730880174656}], "start": 1730880174656, "stop": 1730880174697}
\ No newline at end of file
{"uuid": "414949a5-c5a6-4267-90c3-9f51e22132cc", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174224, "stop": 1730880174225}], "start": 1730880174224, "stop": 1730880174252}
\ No newline at end of file
{"uuid": "78dc3bd5-8aef-4c87-9d4f-25d8bfa4e70b", "befores": [{"name": "url", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174386}
\ No newline at end of file
{"uuid": "f732f52c-d114-44b5-8e94-ef26f2736836", "befores": [{"name": "method", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174349}
\ No newline at end of file
{"uuid": "1e7a8ebf-e0ec-4559-964d-091e6ea76ff0", "befores": [{"name": "sql", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174302}
\ No newline at end of file
{"uuid": "536bb14b-61c9-4f0b-b477-88fea30bb408", "befores": [{"name": "mime", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174106}
\ No newline at end of file
{"uuid": "8a9a53d9-3171-4f1f-9123-158b5082ba9f", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174419, "stop": 1730880174419}], "start": 1730880174419, "stop": 1730880174438}
\ No newline at end of file
{"uuid": "8caf495e-8386-4623-af93-da0242ece885", "befores": [{"name": "url", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174348}
\ No newline at end of file
{"uuid": "7c743b57-958f-4458-b56e-186ba147045b", "befores": [{"name": "sql", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174924}
\ No newline at end of file
{"uuid": "ea157138-e25d-4d15-a14b-9f4dc4a5b299", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174568, "stop": 1730880174568}], "start": 1730880174568, "stop": 1730880174592}
\ No newline at end of file
{"uuid": "7c2d42b2-6b5d-4eda-9cc9-8f0bf7cd823a", "befores": [{"name": "case", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172894}
\ No newline at end of file
{"uuid": "6a7169d5-60d1-4cda-983c-a56546c887ab", "befores": [{"name": "url", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174563}
\ No newline at end of file
{"uuid": "55873c9f-efef-483f-b4a2-601fcb4232fb", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175007}
\ No newline at end of file
{"uuid": "db11dc10-ad24-4c9d-9528-ad3e2b40d9b4", "befores": [{"name": "mime", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175009}
\ No newline at end of file
{"uuid": "a68d276d-a09f-4e6b-812b-31bbf2fc63c2", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174760}
\ No newline at end of file
{"uuid": "8e1c6105-bdb1-4c59-a744-84ed2ccd8e13", "befores": [{"name": "mime", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174255}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "40f4132e-27a0-4406-9807-e56ab99a5ab1", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174102}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "47fdc8fd-3e68-467b-8721-67ceb88b92e5", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174411}
\ No newline at end of file
{"uuid": "587fa908-42de-4156-adf4-7e724bdf45d0", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174345}
\ No newline at end of file
{"uuid": "f83e762e-85a8-4554-9903-1484a62f55e3", "befores": [{"name": "case", "status": "passed", "start": 1730880173631, "stop": 1730880173631}], "start": 1730880173631, "stop": 1730880173667}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'ids': '1854071230748532736'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "0b3943a0-4ec7-4962-8400-1ba039611c37", "befores": [{"name": "case", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174861}
\ No newline at end of file
{"uuid": "f5a6529c-035d-41b3-985c-adf9de83d57c", "befores": [{"name": "mime", "status": "passed", "start": 1730880173983, "stop": 1730880173983}], "start": 1730880173983, "stop": 1730880174022}
\ No newline at end of file
{"uuid": "dbcb95c4-f0fd-43bc-9869-edf7255a6998", "befores": [{"name": "expect", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174761}
\ No newline at end of file
{"uuid": "cbed6f96-bd96-40ed-b684-2fd8583e6911", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174411}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:testAddOrg,期望数据为:{'state': True, 'message': '删除组织成功!'}, 服务器返回的数据为:{"state":true,"message":"部分删除成功,其中编码为【testAddOrg】的组织不存在;","value":"","code":200}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854071228097732608"}
\ No newline at end of file
{"uuid": "3b17f19a-3c19-4dcb-b17d-4b8267d187f1", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174140}
\ No newline at end of file
{"uuid": "02f02dfc-2c84-4739-bbea-19e9a464070a", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880172899, "stop": 1730880172899}], "start": 1730880172899, "stop": 1730880173147}
\ No newline at end of file
{"uuid": "8981d497-3644-4cfb-a180-650d86ebdbb8", "befores": [{"name": "mime", "status": "passed", "start": 1730880174031, "stop": 1730880174031}], "start": 1730880174030, "stop": 1730880174068}
\ No newline at end of file
{"uuid": "35ba4634-bb6e-4475-996d-45bc8ebb0339", "befores": [{"name": "method", "status": "passed", "start": 1730880174110, "stop": 1730880174111}], "start": 1730880174110, "stop": 1730880174144}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjY0MDEsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
{"uuid": "1c9fbdb7-d629-4f21-b57d-9e38360943a5", "befores": [{"name": "url", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174514}
\ No newline at end of file
post http://36.139.193.99:8088/api/user/v1/user/addUser json {'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1} {'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200} delete from uc_user where ACCOUNT_="testAddUser"; delete None
{"uuid": "2b028e07-83a7-432b-af9a-4ac33b212a8a", "befores": [{"name": "expect", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174177}
\ No newline at end of file
{"uuid": "eb77ce4a-10ed-4d0a-ad54-5eed66bf778e", "befores": [{"name": "case", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174832}
\ No newline at end of file
{"name": "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case7-expect7-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]", "status": "passed", "attachments": [{"name": "log", "source": "9a185007-9da1-4305-bedc-1c66fd239149-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "cf85bbc8-aac2-435b-9e12-55f8899d4de3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case", "value": "{'ids': '需要更新'}"}, {"name": "expect", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql", "value": "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "sqlType", "value": "'select'"}, {"name": "updateKey", "value": "'ids'"}], "start": 1730880174935, "stop": 1730880174979, "uuid": "260069a7-5e6e-446d-824d-c35048ff6585", "historyId": "90f4e8eb194fe89ccba17750d9cd38a1", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "c850b818-9698-4692-b86c-45dff3591295", "befores": [{"name": "method", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174800}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case8-expect8-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "3439c5f6-a439-4e48-940c-bdf933d5296c-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "8e8c461b-fa84-41c7-bede-73bb8b946a7a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174148, "stop": 1730880174174, "uuid": "cac09e5f-57fd-4a5c-87bb-40093e1f751c", "historyId": "87b34b9ddf3c436bff3c3b67a3e25341", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "4eb4a3ba-b32e-490c-ac68-33f33b8745b0", "befores": [{"name": "method", "status": "passed", "start": 1730880174702, "stop": 1730880174702}], "start": 1730880174702, "stop": 1730880174763}
\ No newline at end of file
{"uuid": "2f5bb8f5-5799-4ce8-b5d4-fadba59b50f3", "befores": [{"name": "mime", "status": "passed", "start": 1730880173631, "stop": 1730880173631}], "start": 1730880173630, "stop": 1730880173667}
\ No newline at end of file
{"uuid": "b4a78196-126f-4b24-a61f-23082156fc1a", "befores": [{"name": "sql", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174412}
\ No newline at end of file
{"uuid": "9c5de74f-25fd-4143-9d5c-b2e2ed8e3ea3", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174175}
\ No newline at end of file
{"uuid": "1dac844b-4fc8-42a4-b7b3-0d7e229f3ad5", "befores": [{"name": "sql", "status": "passed", "start": 1730880173631, "stop": 1730880173631}], "start": 1730880173631, "stop": 1730880173666}
\ No newline at end of file
{"uuid": "facddfa3-9e94-42ca-93b9-99b67b8b5c26", "befores": [{"name": "mime", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174833}
\ No newline at end of file
{"uuid": "94bfb194-7d26-48d6-9423-3454166e07cc", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880173984, "stop": 1730880173984}], "start": 1730880173984, "stop": 1730880174018}
\ No newline at end of file
{"uuid": "479d4ba3-9d43-4ee3-b0b6-7310a0e34b57", "befores": [{"name": "method", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174515}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071230261993472"}
\ No newline at end of file
{"uuid": "fbbbd050-2b03-4efa-b199-fe185795bda8", "befores": [{"name": "mime", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174762}
\ No newline at end of file
{"uuid": "282471d7-6264-4954-b075-b2728afcf27d", "befores": [{"name": "url", "status": "passed", "start": 1730880174418, "stop": 1730880174418}], "start": 1730880174418, "stop": 1730880174442}
\ No newline at end of file
{"uuid": "444cf9ee-b6db-4176-a339-f3280b39bfea", "befores": [{"name": "mime", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174799}
\ No newline at end of file
{"uuid": "05ac5013-c7c1-4afd-b83c-95ba7c842897", "befores": [{"name": "sql", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174513}
\ No newline at end of file
{"uuid": "d0508162-88f3-4ede-973c-d235bb5a1834", "befores": [{"name": "mime", "status": "passed", "start": 1730880172899, "stop": 1730880172899}], "start": 1730880172899, "stop": 1730880173404}
\ No newline at end of file
{"uuid": "362710b3-ff9b-4f67-b9ee-f8b5540ff02d", "befores": [{"name": "method", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174985}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': ''} {'state': False, 'message': '账户错误或该租户未启用'} None None None
post http://36.139.193.99:8088/api/org/v1/org/deleteOrg x-www-form-urlencoded testAddOrg {'state': True, 'message': '删除组织成功!'} None None None
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case7-expect7-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "c5559674-5ba0-4cb8-bf97-9e306c4b3dc2-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "50513260-ad06-4b71-9468-0b5df345a3d1-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174111, "stop": 1730880174138, "uuid": "3dc6902f-4c72-4583-ba85-ab41771caa50", "historyId": "1a9f428371c0dd5f957d2f7cc3dfdc3e", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "89dd1afb-bfc3-4d0d-8e6e-424173daa69d", "befores": [{"name": "mime", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174562}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case0-expect0-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "27b44503-824b-4f74-8f62-0b22e17aa609-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "06591f85-6764-4ae7-9af3-9e6fe59c4042-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect", "value": "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880172860, "stop": 1730880172890, "uuid": "b87b6c39-18e9-44d7-9931-9b5b3b2e4d05", "historyId": "9aa402c222208be60ed8f701981570fc", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "801df17f-11ad-438a-93b9-d2760347e57d", "befores": [{"name": "sql", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174831}
\ No newline at end of file
{"uuid": "752d84dc-6090-4088-adda-3580967a5d14", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174512}
\ No newline at end of file
{"uuid": "85faf5c6-a290-492b-9408-c9029b9bb72e", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174920}
\ No newline at end of file
{"uuid": "56fffe45-e8e1-428b-a902-6938a70531da", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174031, "stop": 1730880174031}], "start": 1730880174031, "stop": 1730880174066}
\ No newline at end of file
{"uuid": "5efb83a8-4719-449d-9383-319280728832", "befores": [{"name": "method", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174219}
\ No newline at end of file
{"uuid": "b76523cc-36d0-409a-abe2-c3553f787551", "befores": [{"name": "sql", "status": "passed", "start": 1730880174031, "stop": 1730880174031}], "start": 1730880174031, "stop": 1730880174066}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case4-expect4-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C2AB0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C2AB0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "d7da5cbc-ed31-4454-9d1a-d9aa5dde7304-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "8398fecb-ac02-40b6-b6ac-b4cc939a37db-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880173984, "stop": 1730880174011, "uuid": "297f28eb-84dd-444c-b3be-36c4f3a0e832", "historyId": "bee90e459d05c3bcf4593313ea9319ea", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "a3e08f30-ac26-4675-bfcf-d18b225944c3", "befores": [{"name": "case", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174254}
\ No newline at end of file
put http://36.139.193.99:8088/api/demension/v1/dem/updateDem application/json {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'} {'state': True, 'message': '更新维度成功'} None None None
{"uuid": "39d0c5f7-8fcf-48f5-9675-775c7ef32934", "befores": [{"name": "url", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174876}
\ No newline at end of file
{"uuid": "6052cf18-ab6b-445f-966b-2ae6ca626cce", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880173984, "stop": 1730880173984}], "start": 1730880173984, "stop": 1730880174019}
\ No newline at end of file
{"uuid": "553d4c99-ea29-4a1d-8935-84c1c2f9cb6c", "children": ["b87b6c39-18e9-44d7-9931-9b5b3b2e4d05", "5de08ef4-7164-4241-a404-2940334ee38b", "51585245-fd6e-4b50-9648-fe403acfecfd", "1e8a7324-7313-40d1-b86b-93f797ea78c9", "297f28eb-84dd-444c-b3be-36c4f3a0e832", "51773a9d-7093-49bc-8347-a57e026f93a4", "2275303d-95fb-49cc-9f2a-c35608949214", "3dc6902f-4c72-4583-ba85-ab41771caa50", "cac09e5f-57fd-4a5c-87bb-40093e1f751c", "5e923dc7-557f-45bb-9b9d-3e49934dd90c", "31bbe81d-d04d-451c-9c7c-064e39dea4a9", "373b5a8f-eb3b-405f-adc3-85d7fe5befb3", "3c3670df-91c9-4f25-a9ef-768c58183c0b", "2f544d2e-9a13-4aa0-9efd-5f881c21fd71", "b26b723d-336a-45c5-914e-96a8d3c5d5e4", "570e2749-ea43-4bae-b4dd-4ca41d5de2bf", "9a17c177-5b7c-4ea7-afff-e34854db9b6c", "bc9dfb2c-a902-4b7a-85ef-e2affe7875c6", "bdf745cd-c991-4f12-b707-83750cdacfc8", "985fad23-b259-481f-aa09-f3c3a4434282"], "befores": [{"name": "req_fix", "status": "passed", "start": 1730880172384, "stop": 1730880172858}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1730880175011, "stop": 1730880175011}], "start": 1730880172384, "stop": 1730880175011}
\ No newline at end of file
{"uuid": "6f4a8d43-6089-422e-a33b-31a23370118d", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174176}
\ No newline at end of file
{"uuid": "ee644e3a-c280-42aa-bc1a-5c5d2776ab5b", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174874}
\ No newline at end of file
{"uuid": "77b38234-620c-4254-942d-dea804484908", "befores": [{"name": "sql", "status": "passed", "start": 1730880173983, "stop": 1730880173984}], "start": 1730880173983, "stop": 1730880174020}
\ No newline at end of file
{"uuid": "dde6f711-3a5a-48d4-91cc-284b77763a25", "befores": [{"name": "expect", "status": "passed", "start": 1730880173983, "stop": 1730880173983}], "start": 1730880173983, "stop": 1730880174021}
\ No newline at end of file
{"uuid": "ec8c47d7-93a1-407e-9d74-a193408d5f3d", "befores": [{"name": "mime", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174876}
\ No newline at end of file
{"uuid": "67fdd651-3d82-44c6-8f4d-44ed216ee13a", "befores": [{"name": "url", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174862}
\ No newline at end of file
{"uuid": "69b2d8ec-0232-4f5f-a860-5500b30c7667", "befores": [{"name": "mime", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173513}
\ No newline at end of file
{"name": "test_bpm[Post-http://36.139.193.99:8088/auth-application/json-case6-expect6-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "cf959ae1-8829-4b4e-a28e-7fda3c414796-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "af62d7bb-f7d4-40c0-a8b3-f606dafb9299-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'Post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174073, "stop": 1730880174102, "uuid": "2275303d-95fb-49cc-9f2a-c35608949214", "historyId": "721e17be3f6f7c87aeccf44ccc2f7340", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "9a6f6699-a36d-4741-8927-fdefbe236f6e", "befores": [{"name": "case", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174561}
\ No newline at end of file
{"uuid": "184c4670-14d8-4585-8e15-3741ec8790d4", "befores": [{"name": "method", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174386}
\ No newline at end of file
{"name": "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case2-expect2-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64A240>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '更新维度成功!' == '更新维度成功'\nE \nE - 更新维度成功\nE + 更新维度成功!\nE ? +\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64A240>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "22b0004a-80e2-4e17-a2d7-e753e781778c-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "73c7974a-90bd-49af-b554-6b9dee445c76-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"}, {"name": "expect", "value": "{'state': True, 'message': '更新维度成功'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174766, "stop": 1730880174789, "uuid": "a4e758a3-a3dd-414a-9eb6-9cfe3fe6cff6", "historyId": "e0d7781c4d1796150098245ba425b28e", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "5e615fe4-1034-4c7f-aab7-d55439b70796", "befores": [{"name": "sql", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174551}
\ No newline at end of file
{"uuid": "36cae1c0-9ed0-463f-b2ba-830f3f20bb4b", "befores": [{"name": "method", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174414}
\ No newline at end of file
{"uuid": "9f64977f-7c66-4afe-877f-089210c68454", "befores": [{"name": "expect", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175008}
\ No newline at end of file
{"uuid": "537d0940-33e8-4423-9df1-792e4557e032", "befores": [{"name": "case", "status": "passed", "start": 1730880172899, "stop": 1730880172899}], "start": 1730880172899, "stop": 1730880173403}
\ No newline at end of file
{"uuid": "17bc7ec3-a8c7-455c-85e6-60199e5283d8", "befores": [{"name": "case", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174215}
\ No newline at end of file
{"uuid": "0468f9b0-d025-4e6f-a24a-fba76774d340", "befores": [{"name": "sql", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174384}
\ No newline at end of file
{"uuid": "dbe61873-71da-4159-8b75-7db3a31d6dbc", "befores": [{"name": "mime", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174926}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854071231977463808"}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "f395124d-505a-4582-a769-46e1a70e5228", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174511}
\ No newline at end of file
{"uuid": "1668ad06-5175-47b1-8c8d-7f79844ba386", "befores": [{"name": "url", "status": "passed", "start": 1730880173630, "stop": 1730880173630}], "start": 1730880173630, "stop": 1730880173668}
\ No newline at end of file
{"uuid": "c951e084-0edc-4c78-814a-3dcb3210a08b", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174139}
\ No newline at end of file
{"uuid": "67b90100-84e3-4cec-8776-b890ecb9256e", "befores": [{"name": "case", "status": "passed", "start": 1730880174031, "stop": 1730880174031}], "start": 1730880174031, "stop": 1730880174068}
\ No newline at end of file
{"uuid": "3390fdeb-4a15-4df7-af63-f6e5fba40883", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174759}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:testAddOrg,期望数据为:{'state': True, 'message': '删除组织成功!'}, 服务器返回的数据为:{"state":true,"message":"部分删除成功,其中编码为【testAddOrg】的组织不存在;","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/org/addOrg json {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'} {'state': True, 'message': '添加组织成功'} {'delete': 'delete from uc_org where CODE_="testAddOrg";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";'} select|delete demId
{"uuid": "cc1cd294-3028-4c4b-aed7-ce18bebac6fe", "befores": [{"name": "mime", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174385}
\ No newline at end of file
{"uuid": "ac598448-7dc7-4eb3-b7c8-d4bb9167eb2e", "befores": [{"name": "method", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174877}
\ No newline at end of file
{"uuid": "9e9e84b5-af27-408c-9632-9eedcce236f0", "befores": [{"name": "case", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174413}
\ No newline at end of file
{"uuid": "1ad3af97-847d-46dc-bb74-dd885f99f414", "befores": [{"name": "expect", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174860}
\ No newline at end of file
{"uuid": "a60a1ebb-afc2-4fdb-b176-80fc7a15a1ec", "befores": [{"name": "expect", "status": "passed", "start": 1730880174656, "stop": 1730880174656}], "start": 1730880174656, "stop": 1730880174698}
\ No newline at end of file
{"uuid": "f9e38120-3e0e-4cf9-a3dd-42eb43dcfd71", "befores": [{"name": "case", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174347}
\ No newline at end of file
{"uuid": "683c1a89-7c12-4e83-adf4-aebd2748cdf9", "befores": [{"name": "method", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174256}
\ No newline at end of file
{"uuid": "7c8a8a3e-4c26-4870-855e-d1eb93f0e213", "befores": [{"name": "case", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173513}
\ No newline at end of file
{"uuid": "903a501a-8814-452a-b172-3e8504536a3c", "befores": [{"name": "expect", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174925}
\ No newline at end of file
{"uuid": "4050f498-9620-4f38-8076-86fd78946bc8", "befores": [{"name": "expect", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174875}
\ No newline at end of file
{"uuid": "9c43fcc5-73e4-4923-8ba1-158af2fe3063", "befores": [{"name": "expect", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174798}
\ No newline at end of file
{"uuid": "a4150125-1806-4bb7-918e-ef92d54780b7", "befores": [{"name": "method", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172895}
\ No newline at end of file
{"uuid": "00291f70-be9f-4903-9543-7ba281d52396", "befores": [{"name": "expect", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174983}
\ No newline at end of file
{"uuid": "5e43355c-46d7-4a05-8072-2fb5029f4766", "befores": [{"name": "url", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174927}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "6ef79a47-1103-4528-a3fb-4651f9118977", "befores": [{"name": "sql", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175007}
\ No newline at end of file
{"uuid": "4f67e4dc-ba41-476f-9e6c-8fb99ab6bf5f", "befores": [{"name": "mime", "status": "passed", "start": 1730880174418, "stop": 1730880174418}], "start": 1730880174418, "stop": 1730880174441}
\ No newline at end of file
{"uuid": "eeb1bf1a-23f0-4078-b2a1-3af1ec904ce4", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880172899, "stop": 1730880172899}], "start": 1730880172899, "stop": 1730880173146}
\ No newline at end of file
{"uuid": "abcbc8a9-9163-4d59-a32b-586193b81bdf", "befores": [{"name": "expect", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174412}
\ No newline at end of file
post http://36.139.193.99:8088/api/user/v1/user/addUser json {'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1} {'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200} delete from uc_user where ACCOUNT_="testAddUser"; delete None
{"uuid": "3f092bb8-7e58-46b9-b75b-cb3013fa6ee5", "befores": [{"name": "case", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174875}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams query|json {'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]} {'state': True, 'message': '保存组织参数成功!'} None None None
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case5-expect5-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C29C0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C29C0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "6c21d1e4-66c3-4251-b463-218e157a3d5d-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "3978e41a-5199-41ab-8347-75980f1310d1-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'admin', 'password': ''}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174031, "stop": 1730880174058, "uuid": "51773a9d-7093-49bc-8347-a57e026f93a4", "historyId": "0abe3de2b798f5d0e677c84f1c47fc4c", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "1c32c430-edaa-4cfd-8dae-736f29dbedda", "befores": [{"name": "method", "status": "passed", "start": 1730880174656, "stop": 1730880174656}], "start": 1730880174656, "stop": 1730880174700}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854071229771259904"}
\ No newline at end of file
{"uuid": "aa3dd5b2-06c9-4787-8fca-ca8632b389e2", "children": ["ed98d6ae-e4ed-48d8-b292-06b8b3d31a8d", "ba1dfcbf-28fb-4fca-90d7-9ea90c19349d", "a4e758a3-a3dd-414a-9eb6-9cfe3fe6cff6", "2496b612-0d8e-41ea-b1cf-41925a51f53d", "c48a5843-79fb-4eea-b428-b5c10687eab3", "7af7cd59-85f5-4098-8598-9613123f769c", "4aea7ecd-d6a6-4a82-b6b5-c7f0b856077d", "260069a7-5e6e-446d-824d-c35048ff6585", "9392760a-c02c-4ac8-be87-457c5cb372ea"], "befores": [{"name": "req_fix", "status": "passed", "start": 1730880174598, "stop": 1730880174656}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1730880175010, "stop": 1730880175010}], "start": 1730880174598, "stop": 1730880175010}
\ No newline at end of file
{"uuid": "bc4aeb87-da62-4d0e-bd64-ae7a838573b6", "befores": [{"name": "method", "status": "passed", "start": 1730880174259, "stop": 1730880174260}], "start": 1730880174259, "stop": 1730880174305}
\ No newline at end of file
{"name": "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/updateDem-application/json-case13-expect13-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C1989E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '更新维度成功!' == '更新维度成功'\nE \nE - 更新维度成功\nE + 更新维度成功!\nE ? +\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C1989E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'\nmime = 'application/json'\ncase = {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}\nexpect = {'message': '更新维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "e222e055-5e67-46cb-b8d3-6a28daf288c9-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "41efb61a-2a6c-4bd0-a7ab-67ad665ed034-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"}, {"name": "expect", "value": "{'state': True, 'message': '更新维度成功'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174352, "stop": 1730880174376, "uuid": "2f544d2e-9a13-4aa0-9efd-5f881c21fd71", "historyId": "93472a8d53ed5d101e84e876c38ae29b", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "61721473-a6d9-490c-9231-98ab727eb49e", "befores": [{"name": "mime", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174348}
\ No newline at end of file
{"uuid": "a0c44e6f-4007-4b23-bd8f-92080893b254", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172891}
\ No newline at end of file
{"uuid": "503d451c-f56f-4b2d-bc21-245e8c9ef8a0", "befores": [{"name": "url", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174256}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case5-expect5-None-None-None]", "status": "broken", "statusDetails": {"message": "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法", "trace": "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649D60>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nmime = 'query|json'\ncase = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nexpect = {'message': '保存组织参数成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n> res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n\ntest_\\test_zf\\test_bbb.py:15: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nreq_method = 'post'\nreq_url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nreq_mime = 'query|json'\nreq_case = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nsql_type = None, sql_data = None, update_key = None\n\n def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n # 使用DB类对象,执行删除sql语句\n self.db.delete(sql_data)\n \n # 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中\n elif sql_type == \"select\":\n # 使用DB类对象,执行查询sql语句,并获取查询结果\n select_res = self.db.select(sql_data)\n # 将查询结果更新到用例数据中\n req_case[update_key] = select_res\n # print(\"用例数据:\", req_case)\n # print(\"更新的key:\", update_key)\n # print(\"查询结果:\", select_res)\n # print(\"用例数据更新之后:\", req_case)\n \n # 删除数据完成之后 或者 用例数据更新为查询结果之后 在发送请求\n # 判断不同的媒体类型使用不用的关键字传参\n \n # 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参\n if req_mime == \"application/x-www-form-urlencoded\" or req_mime == 'x-www-form-urlencoded' or req_mime == \"form\":\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, data=req_case)\n \n # 判断请求的媒体类型的值是否为application/json或者为json使用json传参\n elif req_mime == \"application/json\" or req_mime == 'json':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, json=req_case)\n \n # 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参\n elif req_mime == \"multipart/form-data\" or req_mime == 'form-data':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, files=req_case)\n \n # 判断请求的媒体类型的值是否为query使用params传参\n elif req_mime == \"query\":\n return self.bpm_session.request(method=req_method, url=req_url, params=req_case)\n \n # 判断请求的媒体类型的值是否为None, 表示没有传参\n elif req_mime is None:\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url)\n \n else:\n> raise ValueError(\"传入的媒体类型的值错误!!!,可以继承该类,复写该方法\")\nE ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法\n\n..\\api_1104\\re_\\re_method.py:59: ValueError"}, "attachments": [{"name": "stdout", "source": "aacdb923-def6-45be-b02b-56d8d12afb77-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case", "value": "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"}, {"name": "expect", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174866, "stop": 1730880174867, "uuid": "7af7cd59-85f5-4098-8598-9613123f769c", "historyId": "f9bb821f1f218e87d39ab0e105cf5ce9", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1854071233730682880"}
\ No newline at end of file
put http://36.139.193.99:8088/api/demension/v1/dem/updateDem application/json {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'} {'state': True, 'message': '更新维度成功'} None None None
{"uuid": "30e2e064-9295-4d05-bd0b-3c4150237b76", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880173631, "stop": 1730880173631}], "start": 1730880173631, "stop": 1730880173665}
\ No newline at end of file
{"name": "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case8-expect8-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649B20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649B20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "71c66cfb-4247-4176-b8b2-49569950ab25-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "b39b3f50-022f-4879-8996-b7fdb9d9a616-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case", "value": "{'ids': ''}"}, {"name": "expect", "value": "{'state': False, 'message': '维度id不能为空!'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174988, "stop": 1730880175000, "uuid": "9392760a-c02c-4ac8-be87-457c5cb372ea", "historyId": "2499a6b1c7fcacceebbe7b51cc8b523a", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "ac93e60e-03a6-4917-85e0-30e554b6a0f1", "befores": [{"name": "sql", "status": "passed", "start": 1730880174568, "stop": 1730880174568}], "start": 1730880174568, "stop": 1730880174593}
\ No newline at end of file
{"uuid": "09d78a1a-5e5e-4778-944c-1ce99f6587cd", "befores": [{"name": "case", "status": "passed", "start": 1730880174418, "stop": 1730880174418}], "start": 1730880174418, "stop": 1730880174440}
\ No newline at end of file
{"uuid": "f284cbcb-dd6c-442b-8215-0e9e2225d63c", "befores": [{"name": "expect", "status": "passed", "start": 1730880172899, "stop": 1730880172899}], "start": 1730880172899, "stop": 1730880173149}
\ No newline at end of file
{"uuid": "4a57664c-6448-4605-8d7d-b74ae1e72f64", "befores": [{"name": "method", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174862}
\ No newline at end of file
get http://36.139.193.99:8088/refresh None None {'loginStatus': True} None None None
{"name": "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case6-expect6-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]", "status": "passed", "attachments": [{"name": "log", "source": "234ffdb6-020f-47d7-9b1e-10faa6edb408-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "29a15388-8a94-4afb-a0e2-8531f5c6c6c3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/user/v1/user/addUser'"}, {"name": "mime", "value": "'json'"}, {"name": "case", "value": "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"}, {"name": "expect", "value": "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"}, {"name": "sql", "value": "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"}, {"name": "sqlType", "value": "'delete'"}, {"name": "updateKey", "value": "None"}], "start": 1730880174881, "stop": 1730880174920, "uuid": "4aea7ecd-d6a6-4a82-b6b5-c7f0b856077d", "historyId": "86a7ab9cae3089908addd26d6b786b08", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "d0cef60e-bcef-4695-85bf-772842124a70", "befores": [{"name": "url", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174762}
\ No newline at end of file
{"uuid": "0cc4a8cb-3af6-4221-9a70-c23c63c1bfb0", "befores": [{"name": "url", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174985}
\ No newline at end of file
{"uuid": "f6abec2b-d696-4685-b9c4-7307e2423ba4", "befores": [{"name": "method", "status": "passed", "start": 1730880173630, "stop": 1730880173630}], "start": 1730880173630, "stop": 1730880173668}
\ No newline at end of file
{"uuid": "a3b298a8-4d78-4842-b370-61fb6204cd07", "befores": [{"name": "case", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175008}
\ No newline at end of file
{"uuid": "9a8355ea-e7ba-4b4a-8ed2-8627b4ed30a2", "befores": [{"name": "mime", "status": "passed", "start": 1730880174656, "stop": 1730880174656}], "start": 1730880174656, "stop": 1730880174699}
\ No newline at end of file
{"uuid": "c2ecdafc-413d-4c18-b80b-127e7426e3c0", "befores": [{"name": "method", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174928}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "f29322ef-161b-429c-b38d-30874ba14e3a", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174795}
\ No newline at end of file
{"uuid": "a6f5461b-6eb6-4946-949a-34a6809161a8", "befores": [{"name": "case", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174142}
\ No newline at end of file
{"uuid": "9b52e951-4810-4791-a7b5-261bb317f5f4", "befores": [{"name": "sql", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173511}
\ No newline at end of file
{"uuid": "0b600e03-0119-41a5-8fbf-9938ed163bda", "befores": [{"name": "sql", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174982}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "87fe42a4-4400-4e14-8d74-d52da1882c42", "befores": [{"name": "url", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173514}
\ No newline at end of file
{"uuid": "94151df9-ced9-4803-9100-9aacffea1c0c", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174979}
\ No newline at end of file
{"uuid": "7a0531d3-e0cd-4228-9c6e-e7ec9f9a9163", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173509}
\ No newline at end of file
{"uuid": "f1a7e450-682c-4fda-b4e7-57bfced93798", "befores": [{"name": "url", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174800}
\ No newline at end of file
{"uuid": "3a9a4409-caa9-48bd-9805-152967f2013c", "befores": [{"name": "method", "status": "passed", "start": 1730880173983, "stop": 1730880173983}], "start": 1730880173983, "stop": 1730880174024}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case2-expect2-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C163290>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '解密密码异常,请检查RSA公钥和私钥配置' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 解密密码异常,请检查RSA公钥和私钥配置\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C163290>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "b02edd60-c216-44b2-bb65-69f9c867e21c-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "968b15c7-2196-4ddd-9ab5-2212abda32a7-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880173409, "stop": 1730880173502, "uuid": "51585245-fd6e-4b50-9648-fe403acfecfd", "historyId": "6b8d09588d70a67f2de4eaa0afef71bc", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams-query|json-case16-expect16-None-None-None]", "status": "broken", "statusDetails": {"message": "ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B313440>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nmime = 'query|json'\ncase = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nexpect = {'message': '保存组织参数成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n> res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n\ntest_\\test_gy\\test_bbb.py:15: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nreq_method = 'post'\nreq_url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'\nreq_mime = 'query|json'\nreq_case = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}\nsql_type = None, sql_data = None, update_key = None\n\n def request_all(self, req_method, req_url, req_mime=None, req_case=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n # 使用DB类对象,执行删除sql语句\n self.db.delete(sql_data)\n \n # 判断sql语句类型是否为select,如果是,需要执行查询sql语句,并获取查询的结果,将查询的结果更新到用例数据中\n elif sql_type == \"select\":\n # 使用DB类对象,执行查询sql语句,并获取查询结果\n select_res = self.db.select(sql_data)\n # 将查询结果更新到用例数据中\n req_case[update_key] = select_res\n # print(\"用例数据:\", req_case)\n # print(\"更新的key:\", update_key)\n # print(\"查询结果:\", select_res)\n # print(\"用例数据更新之后:\", req_case)\n \n # 删除数据完成之后 或者 用例数据更新为查询结果之后 在发送请求\n # 判断不同的媒体类型使用不用的关键字传参\n \n # 判断请求的媒体类型的值是否为application/x-www-form-urlencoded或者为x-www-form-urlencoded、form 使用data传参\n if req_mime == \"application/x-www-form-urlencoded\" or req_mime == 'x-www-form-urlencoded' or req_mime == \"form\":\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, data=req_case)\n \n # 判断请求的媒体类型的值是否为application/json或者为json使用json传参\n elif req_mime == \"application/json\" or req_mime == 'json':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, json=req_case)\n \n # 判断请求的媒体类型的值是否为multipart/form-data或者为form-data使用files传参\n elif req_mime == \"multipart/form-data\" or req_mime == 'form-data':\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url, files=req_case)\n \n # 判断请求的媒体类型的值是否为query使用params传参\n elif req_mime == \"query\":\n return self.bpm_session.request(method=req_method, url=req_url, params=req_case)\n \n # 判断请求的媒体类型的值是否为None, 表示没有传参\n elif req_mime is None:\n # 使用Session对象发送请求,并返回服务器响应的结果\n return self.bpm_session.request(method=req_method, url=req_url)\n \n else:\n> raise ValueError(\"传入的媒体类型的值错误!!!,可以继承该类,复写该方法\")\nE ValueError: 传入的媒体类型的值错误!!!,可以继承该类,复写该方法\n\n..\\api_1104\\re_\\re_method.py:59: ValueError"}, "attachments": [{"name": "stdout", "source": "68f292b8-39dc-4000-8a65-a7d2eacdc9be-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case", "value": "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"}, {"name": "expect", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174446, "stop": 1730880174446, "uuid": "9a17c177-5b7c-4ea7-afff-e34854db9b6c", "historyId": "31e353a9d6614953bb72ca1e8924a3ca", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "144dce51-a7a8-46a2-bf32-a00333772dd5", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174551}
\ No newline at end of file
{"uuid": "48af9d32-74a8-4b3b-ae45-2b6d0e3ae253", "befores": [{"name": "expect", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174384}
\ No newline at end of file
{"uuid": "13483785-0473-4736-93ed-e402c4c67405", "befores": [{"name": "url", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172895}
\ No newline at end of file
{"uuid": "8dde1f2c-a719-4887-bbbf-df95950c34b8", "befores": [{"name": "method", "status": "passed", "start": 1730880174567, "stop": 1730880174567}], "start": 1730880174567, "stop": 1730880174595}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/demension/v1/dem/addDem json {'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'} {'state': True, 'message': '添加维度成功!'} DELETE FROM uc_demension WHERE CODE_="testAddDem"; delete None
post http://36.139.193.99:8088/auth application/json {'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "bc50d902-7617-4616-9fc6-12b45b7464a5", "befores": [{"name": "method", "status": "passed", "start": 1730880174030, "stop": 1730880174030}], "start": 1730880174030, "stop": 1730880174069}
\ No newline at end of file
{"uuid": "1fdbd4ab-166c-41e8-a0be-e59ad9ad400a", "befores": [{"name": "mime", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174178}
\ No newline at end of file
{"uuid": "38c99b3f-0e23-4a25-a3be-7613d32d9b34", "befores": [{"name": "expect", "status": "passed", "start": 1730880174031, "stop": 1730880174031}], "start": 1730880174031, "stop": 1730880174067}
\ No newline at end of file
put http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem query {'code': 'testAddDem'} {'state': True, 'message': '设置默认维度成功'} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功'}, 服务器返回的数据为:{"state":false,"message":"添加组织失败,组织编码[testAddOrg]已存在!","value":"保存失败","code":200}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case0-expect0-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]", "status": "passed", "attachments": [{"name": "log", "source": "1c609683-d63d-4fec-a907-e9061ccedd41-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "8d7993d3-664e-4d1c-8970-9c6b91fce6e3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'json'"}, {"name": "case", "value": "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"}, {"name": "expect", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql", "value": "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "sqlType", "value": "'delete'"}, {"name": "updateKey", "value": "None"}], "start": 1730880174658, "stop": 1730880174695, "uuid": "ed98d6ae-e4ed-48d8-b292-06b8b3d31a8d", "historyId": "6632b932debab6910458efba5e671e82", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "822e7f29-87ed-40f9-a52a-6ab8a0c0dc65", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174830}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case9-expect9-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "f0db4179-36ce-4b04-9472-f90a5ea5b1ea-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "1e4d51c0-5919-4806-8fc7-b18c0bd9b047-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174184, "stop": 1730880174212, "uuid": "5e923dc7-557f-45bb-9b9d-3e49934dd90c", "historyId": "491e5a5f52dc86ce26387925709034d5", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/org/deleteOrg x-www-form-urlencoded testAddOrg {'state': True, 'message': '删除组织成功!'} None None None
{"uuid": "15963c52-3b42-448e-b7a2-3941d40bb04d", "befores": [{"name": "sql", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174346}
\ No newline at end of file
{"uuid": "af6d54c2-76e1-489f-a153-68cf8de04ce1", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174658, "stop": 1730880174658}], "start": 1730880174656, "stop": 1730880174697}
\ No newline at end of file
{"uuid": "310305ad-17de-4c6c-b248-3675a45ba3aa", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174454}
\ No newline at end of file
{"uuid": "103d2794-03cc-436f-9dc5-9924b48ac83b", "befores": [{"name": "method", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174457}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "023b8297-0ab7-42cc-af01-6b047e10b29b", "befores": [{"name": "expect", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174141}
\ No newline at end of file
{"uuid": "75d51776-1f3b-412c-a609-ea0a2e24ea8f", "befores": [{"name": "case", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174456}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'ids': '1854071232405282816'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":true,"message":"删除维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "851d582b-19c3-472c-9a33-fdfe54eb0df1", "befores": [{"name": "expect", "status": "passed", "start": 1730880174418, "stop": 1730880174418}], "start": 1730880174418, "stop": 1730880174440}
\ No newline at end of file
{"uuid": "f0716fff-e61e-4591-aba7-6d44c966c30c", "befores": [{"name": "expect", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174513}
\ No newline at end of file
{"uuid": "790714f1-c7b8-484a-bbcb-f3c16c6c181d", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174873}
\ No newline at end of file
{"uuid": "553ad1e3-7044-4298-a22d-23dcf94a495b", "befores": [{"name": "url", "status": "passed", "start": 1730880173983, "stop": 1730880173983}], "start": 1730880173983, "stop": 1730880174023}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/demension/v1/dem/addDem-json-case11-expect11-DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";-delete-None]", "status": "passed", "attachments": [{"name": "log", "source": "8d3c06e1-5f57-4d05-8971-e3d48a5ef7b3-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "e3758154-1c8f-4072-8e0c-a3e71a4b367d-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'json'"}, {"name": "case", "value": "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"}, {"name": "expect", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql", "value": "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "sqlType", "value": "'delete'"}, {"name": "updateKey", "value": "None"}], "start": 1730880174260, "stop": 1730880174300, "uuid": "373b5a8f-eb3b-405f-adc3-85d7fe5befb3", "historyId": "38b82b7bd47144ee565175a9baba9b2c", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "d9e6b0ee-55b4-47df-a269-34b75f93b66a", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174658, "stop": 1730880174658}], "start": 1730880174658, "stop": 1730880174696}
\ No newline at end of file
{"uuid": "5de0b256-2eae-497b-b901-804173772efe", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174031, "stop": 1730880174031}], "start": 1730880174031, "stop": 1730880174065}
\ No newline at end of file
{"uuid": "85e2bb28-7cd0-46d4-a8d7-b3effdb6ed1d", "befores": [{"name": "expect", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174302}
\ No newline at end of file
{"uuid": "3e0b6313-41ee-45de-8786-0930cc5fb6d0", "befores": [{"name": "case", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174761}
\ No newline at end of file
{"uuid": "31f89ff0-aa42-4932-b760-cc14940a6a50", "befores": [{"name": "expect", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174254}
\ No newline at end of file
{"uuid": "eff7c962-f3fe-4dab-8455-4c4d12338c1c", "befores": [{"name": "mime", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174216}
\ No newline at end of file
{"uuid": "f0bfd263-a44e-4bfb-800c-f2c9b99ae74a", "befores": [{"name": "mime", "status": "passed", "start": 1730880174567, "stop": 1730880174567}], "start": 1730880174567, "stop": 1730880174594}
\ No newline at end of file
{"uuid": "f31a2611-4e4f-4960-8dd6-de69c567951a", "befores": [{"name": "sql", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174104}
\ No newline at end of file
{"uuid": "fef57928-f1df-4e7a-882c-10876b7b4bf2", "befores": [{"name": "url", "status": "passed", "start": 1730880174030, "stop": 1730880174030}], "start": 1730880174030, "stop": 1730880174068}
\ No newline at end of file
post http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams query|json {'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]} {'state': True, 'message': '保存组织参数成功!'} None None None
{"uuid": "7a7edef3-e599-4861-8bed-1f26b6460e33", "befores": [{"name": "sql", "status": "passed", "start": 1730880174418, "stop": 1730880174418}], "start": 1730880174418, "stop": 1730880174439}
\ No newline at end of file
{"uuid": "426521bb-4b28-48c4-8b91-5244b6481d74", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175006}
\ No newline at end of file
{"uuid": "3666d3ff-1ed4-4457-811d-8e0bb6e631c7", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880173408, "stop": 1730880173408}], "start": 1730880173408, "stop": 1730880173510}
\ No newline at end of file
{"uuid": "183fc4ec-9498-4114-9b8f-5f76333f25c6", "befores": [{"name": "case", "status": "passed", "start": 1730880173983, "stop": 1730880173983}], "start": 1730880173983, "stop": 1730880174021}
\ No newline at end of file
{"uuid": "3338fdae-bb25-428a-8112-70f8a8014cb3", "befores": [{"name": "method", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175010}
\ No newline at end of file
{"uuid": "997614f6-13ba-403e-ba82-e146f7f185a2", "befores": [{"name": "method", "status": "passed", "start": 1730880174418, "stop": 1730880174418}], "start": 1730880174418, "stop": 1730880174442}
\ No newline at end of file
Post http://36.139.193.99:8088/auth application/json {'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='} {'state': False, 'message': '账户错误或该租户未启用'} None None None
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1854071227439226880"}
\ No newline at end of file
{"uuid": "a72c96db-4eff-4e68-9196-3cd8dfbf2099", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174419, "stop": 1730880174419}], "start": 1730880174418, "stop": 1730880174439}
\ No newline at end of file
{"uuid": "87f5858a-183f-4092-adf4-90c519aaccb8", "befores": [{"name": "sql", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174176}
\ No newline at end of file
DELETE http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds query {'ids': ''} {'state': False, 'message': '维度id不能为空!'} None None None
{"uuid": "423e25ea-c489-40d6-8139-cd2270e4bf37", "befores": [{"name": "url", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174217}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功'}, 服务器返回的数据为:{"state":false,"message":"添加组织失败,组织编码[testAddOrg]已存在!","value":"保存失败","code":200}
\ No newline at end of file
{"uuid": "0bd048d9-cdc5-48f4-939f-478a46bfc22b", "befores": [{"name": "method", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174180}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect15-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA78791430>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '部分删除成功,其中编码为...ddOrg】的组织不存在;' == '删除组织成功!'\nE \nE - 删除组织成功!\nE + 部分删除成功,其中编码为【testAddOrg】的组织不存在;\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA78791430>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "5371918b-e2dc-4ee8-a8dd-aa7b26d870f6-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "39839845-b12e-4f7a-a55b-4623e129b9c0-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'x-www-form-urlencoded'"}, {"name": "case", "value": "'testAddOrg'"}, {"name": "expect", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174419, "stop": 1730880174432, "uuid": "570e2749-ea43-4bae-b4dd-4ca41d5de2bf", "historyId": "938a659267871173cccf636000e15b41", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "c676d8a0-d38d-4a66-9d7e-225e4406b525", "befores": [{"name": "url", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174834}
\ No newline at end of file
{"name": "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds-query-case18-expect18-SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";-select-ids]", "status": "passed", "attachments": [{"name": "log", "source": "2136583e-f584-436a-adb4-e551f42f27e5-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "baf39e18-60c7-4e19-b842-db8bd6e65c90-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case", "value": "{'ids': '需要更新'}"}, {"name": "expect", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql", "value": "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "sqlType", "value": "'select'"}, {"name": "updateKey", "value": "'ids'"}], "start": 1730880174519, "stop": 1730880174550, "uuid": "bdf745cd-c991-4f12-b707-83750cdacfc8", "historyId": "a1621bca7dd27d892a98f6fd8db72fbf", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case14-expect14-sql14-select|delete-demId]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C198E30>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000002AA7C734F80>('state')\nE + where <built-in method get of dict object at 0x000002AA7C734F80> = {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'}.get\nE + where {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C198E30>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "b45f0394-4808-49d1-aba0-57a75d7b78da-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "bbb44cdb-93ed-4908-aa52-5668fb81b7c6-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'json'"}, {"name": "case", "value": "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect", "value": "{'state': True, 'message': '添加组织成功'}"}, {"name": "sql", "value": "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"}, {"name": "sqlType", "value": "'select|delete'"}, {"name": "updateKey", "value": "'demId'"}], "start": 1730880174390, "stop": 1730880174404, "uuid": "b26b723d-336a-45c5-914e-96a8d3c5d5e4", "historyId": "7b46467d480085a8ad70342b6f1e9bc7", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "3a4d5385-8fbc-49a6-87cb-402c4b2c4b41", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174831}
\ No newline at end of file
{"uuid": "d36c8bd5-3858-44c3-8838-b2f4929fd739", "befores": [{"name": "sql", "status": "passed", "start": 1730880174224, "stop": 1730880174224}], "start": 1730880174224, "stop": 1730880174253}
\ No newline at end of file
{"uuid": "990ab5cf-b16e-45f2-8429-aaf5aa1fe5ac", "befores": [{"name": "sql", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174455}
\ No newline at end of file
{"uuid": "bd87b7fc-9236-40e6-bca8-eebc6368a2f3", "befores": [{"name": "url", "status": "passed", "start": 1730880172898, "stop": 1730880172898}], "start": 1730880172898, "stop": 1730880173404}
\ No newline at end of file
DELETE http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds query {'ids': '需要更新'} {'state': True, 'message': '删除维度成功!'} SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem"; select ids
post http://36.139.193.99:8088/api/org/v1/org/addOrg json {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'} {'state': True, 'message': '添加组织成功'} {'delete': 'delete from uc_org where CODE_="testAddOrg";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";'} select|delete demId
{"uuid": "df905e78-5682-46ea-83d5-0bf5ab917724", "befores": [{"name": "url", "status": "passed", "start": 1730880174567, "stop": 1730880174567}], "start": 1730880174567, "stop": 1730880174595}
\ No newline at end of file
{"uuid": "fd7ffdc3-859a-4b09-b9a2-f3d743d7ab05", "befores": [{"name": "method", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174107}
\ No newline at end of file
{"uuid": "57d8feac-c61e-4641-b912-139d3c5688b9", "befores": [{"name": "expect", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174455}
\ No newline at end of file
{"uuid": "da7b8ac4-53a9-4375-a261-4762b3069107", "befores": [{"name": "mime", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174304}
\ No newline at end of file
{"uuid": "a7362fc4-4539-4e24-9fdb-fd481bdbe4d4", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174859}
\ No newline at end of file
{"name": "test_bpm[put-http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem-query-case12-expect12-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C249B50>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '设置默认维度成功!' == '设置默认维度成功'\nE \nE - 设置默认维度成功\nE + 设置默认维度成功!\nE ? +\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C249B50>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'put', url = 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'\nmime = 'query', case = {'code': 'testAddDem'}\nexpect = {'message': '设置默认维度成功', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "fae0f183-45e7-4351-acce-6cd9e793c37d-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "9088ce18-06cd-489f-b4ff-b188c2097a16-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"}, {"name": "mime", "value": "'query'"}, {"name": "case", "value": "{'code': 'testAddDem'}"}, {"name": "expect", "value": "{'state': True, 'message': '设置默认维度成功'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174309, "stop": 1730880174337, "uuid": "3c3670df-91c9-4f25-a9ef-768c58183c0b", "historyId": "3f6c0d87b134af87e062cf3d98246f96", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
DELETE http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds query {'ids': ''} {'state': False, 'message': '维度id不能为空!'} None None None
{"uuid": "9d36efaf-b47d-4a98-9cc4-ee7d3fc38229", "befores": [{"name": "expect", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174832}
\ No newline at end of file
{"uuid": "5ebb4d55-dfe9-4f95-b342-a6fc2cc3b3b1", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174213}
\ No newline at end of file
{"uuid": "713a4040-933d-4864-b85e-9f26dcdf2c12", "befores": [{"name": "url", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174457}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071230110998528"}
\ No newline at end of file
{"uuid": "192cceb8-68e0-498e-b071-f1ff39a5cbf3", "befores": [{"name": "expect", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172893}
\ No newline at end of file
{"uuid": "9b61003c-49ce-45ec-9b24-9f0f52b8dbe2", "befores": [{"name": "case", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174106}
\ No newline at end of file
{"uuid": "097dd8a6-c094-4149-8db2-3f62430f0e55", "befores": [{"name": "mime", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174514}
\ No newline at end of file
{"uuid": "2a3ee75d-2a0f-46ac-a621-4c6c3910ca60", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174858}
\ No newline at end of file
{"uuid": "d7431c11-32f5-4bb4-b2c4-7d6dae239b0d", "befores": [{"name": "method", "status": "passed", "start": 1730880172898, "stop": 1730880172898}], "start": 1730880172898, "stop": 1730880173405}
\ No newline at end of file
{"uuid": "39e33272-c0fa-4d5b-8bff-0aa9a8b4f15f", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174183, "stop": 1730880174183}], "start": 1730880174183, "stop": 1730880174213}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/addOrg-json-case3-expect3-sql3-select|delete-demId]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B980>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000002AA7C75C640>('state')\nE + where <built-in method get of dict object at 0x000002AA7C75C640> = {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'}.get\nE + where {'code': 200, 'message': '添加组织失败,组织编码[testAddOrg]已存在!', 'state': False, 'value': '保存失败'} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C64B980>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/addOrg', mime = 'json'\ncase = {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', ...}\nexpect = {'message': '添加组织成功', 'state': True}\nsql = {'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}\nsqlType = 'select|delete', updateKey = 'demId'\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "90b6d9f9-54c7-44f4-bbd4-135470ae5bed-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "5398920c-f602-40be-9d84-ba5f7b538b18-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'json'"}, {"name": "case", "value": "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect", "value": "{'state': True, 'message': '添加组织成功'}"}, {"name": "sql", "value": "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"}, {"name": "sqlType", "value": "'select|delete'"}, {"name": "updateKey", "value": "'demId'"}], "start": 1730880174804, "stop": 1730880174820, "uuid": "2496b612-0d8e-41ea-b1cf-41925a51f53d", "historyId": "240b5b536fa5a7370c7a876b96ee7742", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "ba96c1e2-5a5c-4307-ab81-48756e771ed8", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172891}
\ No newline at end of file
DELETE http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds query {'ids': '需要更新'} {'state': True, 'message': '删除维度成功!'} SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem"; select ids
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071229951614976"}
\ No newline at end of file
post http://36.139.193.99:8088/auth application/json {'username': 'admin', 'password': '1'} {'state': False, 'message': '账户错误或该租户未启用'} None None None
{"uuid": "d7c0ce6b-3f20-46a2-a23e-2a1fb907cf2e", "befores": [{"name": "mime", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174413}
\ No newline at end of file
{"uuid": "7dd0b30e-6fd1-4d02-a852-6d830a97f7bd", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174797}
\ No newline at end of file
{"uuid": "e5d58769-e7d8-44f3-a032-168c7c1c860f", "befores": [{"name": "method", "status": "passed", "start": 1730880174804, "stop": 1730880174804}], "start": 1730880174804, "stop": 1730880174834}
\ No newline at end of file
{"uuid": "79bc2377-c77c-4ba4-9553-4d564f85e00a", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174383}
\ No newline at end of file
{"uuid": "0c4939b1-1630-42ff-a429-d15a1102b11c", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174453}
\ No newline at end of file
{"uuid": "89fab6af-38b9-4eb0-b0c4-54ffb5a75015", "befores": [{"name": "case", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174983}
\ No newline at end of file
{"uuid": "d199c4af-2b5b-40e3-878f-ea04e5654d86", "befores": [{"name": "case", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174798}
\ No newline at end of file
{"uuid": "c60a1255-72c3-4136-9c24-3198e877325c", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174981}
\ No newline at end of file
{"uuid": "d07d5749-0967-43bd-9681-12408bc404b5", "befores": [{"name": "url", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174179}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1854071229578321920"}
\ No newline at end of file
{"uuid": "9e6e7d39-a739-4f89-8a84-0117df475ef0", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174301}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/org/v1/org/deleteOrg-x-www-form-urlencoded-testAddOrg-expect4-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649E20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '部分删除成功,其中编码为...ddOrg】的组织不存在;' == '删除组织成功!'\nE \nE - 删除组织成功!\nE + 部分删除成功,其中编码为【testAddOrg】的组织不存在;\n\ntest_\\test_zf\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_zf.test_bbb.TestBPM object at 0x000002AA7C649E20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7C5F4230>\nmethod = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'\nmime = 'x-www-form-urlencoded', case = 'testAddOrg'\nexpect = {'message': '删除组织成功!', 'state': True}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_zf\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "22799a0f-b510-4cf4-8616-51884f5eab9d-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "920941a6-fd86-4074-91bb-1e462a1ac06b-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'x-www-form-urlencoded'"}, {"name": "case", "value": "'testAddOrg'"}, {"name": "expect", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174838, "stop": 1730880174852, "uuid": "c48a5843-79fb-4eea-b428-b5c10687eab3", "historyId": "141aefa230f0d6f949b1cdfbcd3350f6", "testCaseId": "9d76442e6d90e4ee1ad038f30076cf11", "fullName": "test_.test_zf.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_zf"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_zf.test_bbb"}]}
\ No newline at end of file
{"uuid": "3f0d3107-d0f9-4b12-ba3f-64554b9f59ec", "befores": [{"name": "url", "status": "passed", "start": 1730880174988, "stop": 1730880174988}], "start": 1730880174988, "stop": 1730880175009}
\ No newline at end of file
{"uuid": "c557d4d9-033d-4f4b-a221-f0419ee67328", "befores": [{"name": "mime", "status": "passed", "start": 1730880172858, "stop": 1730880172858}], "start": 1730880172858, "stop": 1730880172894}
\ No newline at end of file
{"uuid": "ff5950b8-24ed-41e9-bbce-0758de7f9918", "befores": [{"name": "sql", "status": "passed", "start": 1730880174703, "stop": 1730880174703}], "start": 1730880174703, "stop": 1730880174760}
\ No newline at end of file
{"uuid": "c676ec17-c7e3-463c-8257-5e4216e3a1e7", "befores": [{"name": "sql", "status": "passed", "start": 1730880174837, "stop": 1730880174837}], "start": 1730880174837, "stop": 1730880174860}
\ No newline at end of file
{"uuid": "d5b10f2c-3c7d-4280-8aa9-8a338efb1b0e", "befores": [{"name": "url", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174143}
\ No newline at end of file
{"uuid": "706f7da9-d7c7-4f7b-ab7f-ae979e4b1cc5", "befores": [{"name": "case", "status": "passed", "start": 1730880174567, "stop": 1730880174567}], "start": 1730880174567, "stop": 1730880174594}
\ No newline at end of file
{"uuid": "9e789623-c021-452d-80b6-3fc8677cd236", "befores": [{"name": "case", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174925}
\ No newline at end of file
{"uuid": "df06e8e1-7a98-4e2b-bf40-381aea251d5a", "befores": [{"name": "method", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174563}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzA5NjY0MDEsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
post http://36.139.193.99:8088/api/demension/v1/dem/addDem json {'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'} {'state': True, 'message': '添加维度成功!'} DELETE FROM uc_demension WHERE CODE_="testAddDem"; delete None
{"uuid": "ff3dd64e-d269-4b83-963b-c4b77d433f76", "befores": [{"name": "sql", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174141}
\ No newline at end of file
{"uuid": "1aba5848-f8fe-4cef-85ea-6bff11b49d5a", "befores": [{"name": "case", "status": "passed", "start": 1730880174656, "stop": 1730880174656}], "start": 1730880174656, "stop": 1730880174698}
\ No newline at end of file
{"uuid": "fa14b2e4-3263-47ac-87b7-cde71faf7975", "befores": [{"name": "expect", "status": "passed", "start": 1730880174518, "stop": 1730880174518}], "start": 1730880174518, "stop": 1730880174552}
\ No newline at end of file
{"uuid": "c95ed430-14d4-4a01-81dd-6e8e69ff23f0", "befores": [{"name": "url", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174305}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case3-expect3-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C06E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '1', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5C06E0>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': '1', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "241591a9-ad58-4e1c-87f6-619764bccaa4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "d0705d3e-b6f0-4da4-8273-76eb3316df4c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'admin', 'password': '1'}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880173631, "stop": 1730880173657, "uuid": "1e8a7324-7313-40d1-b86b-93f797ea78c9", "historyId": "e364bf2b17e5077689db45f2f4c35dc2", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "4f842411-1f15-4112-874a-45c643e195ad", "befores": [{"name": "case", "status": "passed", "start": 1730880174460, "stop": 1730880174460}], "start": 1730880174460, "stop": 1730880174513}
\ No newline at end of file
{"uuid": "255668ef-5f9c-408a-806c-ba2c6e72fa5c", "befores": [{"name": "mime", "status": "passed", "start": 1730880174111, "stop": 1730880174111}], "start": 1730880174111, "stop": 1730880174143}
\ No newline at end of file
{"uuid": "576b534b-6c8b-4127-915f-80dd91ab67b6", "befores": [{"name": "url", "status": "passed", "start": 1730880174656, "stop": 1730880174656}], "start": 1730880174656, "stop": 1730880174699}
\ No newline at end of file
{"uuid": "6037daee-85fc-4418-a49c-288c9d197461", "befores": [{"name": "sql", "status": "passed", "start": 1730880174766, "stop": 1730880174766}], "start": 1730880174766, "stop": 1730880174797}
\ No newline at end of file
{"uuid": "4f604bef-ca68-4639-8a20-5ea4fb77094f", "befores": [{"name": "expect", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174346}
\ No newline at end of file
{"uuid": "9c0f1ab0-bf38-447d-b5c3-f895907d9cc2", "children": ["b87b6c39-18e9-44d7-9931-9b5b3b2e4d05", "5de08ef4-7164-4241-a404-2940334ee38b", "51585245-fd6e-4b50-9648-fe403acfecfd", "1e8a7324-7313-40d1-b86b-93f797ea78c9", "297f28eb-84dd-444c-b3be-36c4f3a0e832", "51773a9d-7093-49bc-8347-a57e026f93a4", "2275303d-95fb-49cc-9f2a-c35608949214", "3dc6902f-4c72-4583-ba85-ab41771caa50", "cac09e5f-57fd-4a5c-87bb-40093e1f751c", "5e923dc7-557f-45bb-9b9d-3e49934dd90c", "31bbe81d-d04d-451c-9c7c-064e39dea4a9", "373b5a8f-eb3b-405f-adc3-85d7fe5befb3", "3c3670df-91c9-4f25-a9ef-768c58183c0b", "2f544d2e-9a13-4aa0-9efd-5f881c21fd71", "b26b723d-336a-45c5-914e-96a8d3c5d5e4", "570e2749-ea43-4bae-b4dd-4ca41d5de2bf", "9a17c177-5b7c-4ea7-afff-e34854db9b6c", "bc9dfb2c-a902-4b7a-85ef-e2affe7875c6", "bdf745cd-c991-4f12-b707-83750cdacfc8", "985fad23-b259-481f-aa09-f3c3a4434282", "ed98d6ae-e4ed-48d8-b292-06b8b3d31a8d", "ba1dfcbf-28fb-4fca-90d7-9ea90c19349d", "a4e758a3-a3dd-414a-9eb6-9cfe3fe6cff6", "2496b612-0d8e-41ea-b1cf-41925a51f53d", "c48a5843-79fb-4eea-b428-b5c10687eab3", "7af7cd59-85f5-4098-8598-9613123f769c", "4aea7ecd-d6a6-4a82-b6b5-c7f0b856077d", "260069a7-5e6e-446d-824d-c35048ff6585", "9392760a-c02c-4ac8-be87-457c5cb372ea"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1730880170619, "stop": 1730880172384}], "start": 1730880170619, "stop": 1730880175012}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/auth-application/json-case1-expect1-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5EF470>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000002AA7C63D600>('state')\nE + where <built-in method get of dict object at 0x000002AA7C63D600> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...EsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...EsImlhdCI6MTczMDg4MDAwMX0.Awr7lqOiGG9jLIvwRtfi-1kFKNK17zN42KhKk4ejf-mcpTPkQbElCvsJ7N-uPfMXdP7Lb6W844MCr1RZdsjSMg', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7C5EF470>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect = {'message': '账户错误或该租户未启用', 'state': False}, sql = None, sqlType = None\nupdateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "e1ec481f-693b-4f9c-8869-b70d54ab9ea4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "7d1d1e4a-762e-4f03-9825-a94f15672da4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}"}, {"name": "expect", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880172900, "stop": 1730880172928, "uuid": "5de08ef4-7164-4241-a404-2940334ee38b", "historyId": "9764a99d1500f41252331a53d78b9275", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"name": "test_bpm[DELETE-http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds-query-case19-expect19-None-None-None]", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败", "trace": "self = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B312D20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n> assert res.json().get(key) == expect[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_\\test_gy\\test_bbb.py:19: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <api_1105.test_.test_gy.test_bbb.TestBPM object at 0x000002AA7B312D20>\nreq_fix = <api_1104.re_.re_method.RequestsMethod object at 0x000002AA7AC44DD0>\nmethod = 'DELETE'\nurl = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query'\ncase = {'ids': ''}, expect = {'message': '维度id不能为空!', 'state': False}, sql = None\nsqlType = None, updateKey = None\n\n @pytest.mark.parametrize(\"method, url, mime, case, expect, sql, sqlType, updateKey\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):\n print(method, url, mime, case, expect, sql, sqlType, updateKey)\n \n res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)\n # 断言\n try:\n for key in expect.keys():\n assert res.json().get(key) == expect[key]\n except AssertionError:\n log.error(f\"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(\"断言失败\")\nE AssertionError: 断言失败\n\ntest_\\test_gy\\test_bbb.py:22: AssertionError"}, "attachments": [{"name": "log", "source": "503b9074-fdd5-4001-a99c-ce92f2e12211-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "c2fe3340-0f7d-453e-a8e2-9171b79ccd52-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case", "value": "{'ids': ''}"}, {"name": "expect", "value": "{'state': False, 'message': '维度id不能为空!'}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174568, "stop": 1730880174584, "uuid": "985fad23-b259-481f-aa09-f3c3a4434282", "historyId": "383b79733551d588e4f71c41ce018763", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "6d69e3b6-506a-43aa-ac18-7a3fb0f3a0fe", "befores": [{"name": "mime", "status": "passed", "start": 1730880174445, "stop": 1730880174445}], "start": 1730880174445, "stop": 1730880174456}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1854071230421377024"}
\ No newline at end of file
{"name": "test_bpm[post-http://36.139.193.99:8088/api/user/v1/user/addUser-json-case17-expect17-delete from uc_user where ACCOUNT_=\"testAddUser\";-delete-None]", "status": "passed", "attachments": [{"name": "log", "source": "fd243e52-247e-40ab-ba2c-094a696a6890-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "68407833-f16e-46df-8569-92540a88fb07-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/user/v1/user/addUser'"}, {"name": "mime", "value": "'json'"}, {"name": "case", "value": "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"}, {"name": "expect", "value": "{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}"}, {"name": "sql", "value": "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"}, {"name": "sqlType", "value": "'delete'"}, {"name": "updateKey", "value": "None"}], "start": 1730880174461, "stop": 1730880174511, "uuid": "bc9dfb2c-a902-4b7a-85ef-e2affe7875c6", "historyId": "f3f8f356daa76f6c375727b1feed8984", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
put http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem query {'code': 'testAddDem'} {'state': True, 'message': '设置默认维度成功'} None None None
{"uuid": "bf6aa9ec-ea8a-4e99-9fff-1bac22bf2b0d", "befores": [{"name": "mime", "status": "passed", "start": 1730880174934, "stop": 1730880174934}], "start": 1730880174934, "stop": 1730880174984}
\ No newline at end of file
{"uuid": "8f20dc0f-371c-46c0-bae9-cf318337eb7d", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174881, "stop": 1730880174881}], "start": 1730880174881, "stop": 1730880174923}
\ No newline at end of file
{"uuid": "21b3563c-4df7-4fc8-a9c8-b14eb6490866", "befores": [{"name": "case", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174304}
\ No newline at end of file
{"uuid": "a252eb9d-bfe9-4f3f-8cbe-9c28b5b516ca", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174308, "stop": 1730880174308}], "start": 1730880174308, "stop": 1730880174345}
\ No newline at end of file
{"uuid": "72193b3d-eb0e-4a85-ac8f-20718562109f", "befores": [{"name": "url", "status": "passed", "start": 1730880174073, "stop": 1730880174073}], "start": 1730880174073, "stop": 1730880174107}
\ No newline at end of file
ERROR  张三:test_bbb.py:21 断言失败,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "767009c4-afca-4893-82c0-6014288b77c7", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174568, "stop": 1730880174568}], "start": 1730880174568, "stop": 1730880174592}
\ No newline at end of file
{"uuid": "d7f92ba0-9f4c-4196-925a-14abe89f43f9", "befores": [{"name": "case", "status": "passed", "start": 1730880174147, "stop": 1730880174147}], "start": 1730880174147, "stop": 1730880174178}
\ No newline at end of file
{"uuid": "a7bc7a09-5f82-4fff-8d98-707c062714f6", "befores": [{"name": "url", "status": "passed", "start": 1730880174389, "stop": 1730880174389}], "start": 1730880174389, "stop": 1730880174414}
\ No newline at end of file
INFO  张三:test_bbb.py:24 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!', 'value': '', 'code': 200}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
{"name": "test_bpm[get-http://36.139.193.99:8088/refresh-None-None-expect10-None-None-None]", "status": "passed", "attachments": [{"name": "log", "source": "088df8ef-d528-45b6-b945-54087c208a1c-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "77e9e1d2-ad05-495b-b3b1-a040f5bcf577-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://36.139.193.99:8088/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case", "value": "None"}, {"name": "expect", "value": "{'loginStatus': True}"}, {"name": "sql", "value": "None"}, {"name": "sqlType", "value": "None"}, {"name": "updateKey", "value": "None"}], "start": 1730880174225, "stop": 1730880174251, "uuid": "31bbe81d-d04d-451c-9c7c-064e39dea4a9", "historyId": "a738918aa4e608fe5afc144f7e1b2ecb", "testCaseId": "7ae8bccca43c785dec525d04258bd3c0", "fullName": "test_.test_gy.test_bbb.TestBPM#test_bpm", "labels": [{"name": "parentSuite", "value": "test_.test_gy"}, {"name": "suite", "value": "test_bbb"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-2896RJV"}, {"name": "thread", "value": "20532-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_.test_gy.test_bbb"}]}
\ No newline at end of file
{"uuid": "2048c89f-29fd-4e81-a9ed-6921de4dfb27", "befores": [{"name": "sqlType", "status": "passed", "start": 1730880174260, "stop": 1730880174260}], "start": 1730880174260, "stop": 1730880174301}
\ No newline at end of file
{"uuid": "a916e488-3d1b-4acc-aaaf-9ceb232dd170", "befores": [{"name": "expect", "status": "passed", "start": 1730880174568, "stop": 1730880174568}], "start": 1730880174568, "stop": 1730880174593}
\ No newline at end of file
{"uuid": "c6a33fcd-839c-4bea-98d1-f30478691349", "befores": [{"name": "sql", "status": "passed", "start": 1730880174866, "stop": 1730880174866}], "start": 1730880174866, "stop": 1730880174875}
\ No newline at end of file
{"uuid": "943c4d42-4697-4609-98a5-73dd93ae72e8", "befores": [{"name": "updateKey", "status": "passed", "start": 1730880174352, "stop": 1730880174352}], "start": 1730880174352, "stop": 1730880174382}
\ No newline at end of file
# USERNAME的值一定是用户数据配置层目录的名称
USERNAME = 'gy_data'
\ No newline at end of file
import pytest
from api_1104.re_.re_method import RequestsMethod
@pytest.fixture(scope="session")
def req_fix():
req = RequestsMethod()
yield req
\ No newline at end of file
import pytest
from api_1105 import log
from api_1105.common_.l_excel import ReadExcel
from api_1105.test_.test_gy import USERNAME
class TestBPM:
@pytest.mark.parametrize("method, url, mime, case, expect, sql, sqlType, updateKey", ReadExcel(USERNAME).get_data())
def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):
print(method, url, mime, case, expect, sql, sqlType, updateKey)
res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)
# 断言
try:
for key in expect.keys():
assert res.json().get(key) == expect[key]
except AssertionError:
log.error(f"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}")
raise AssertionError("断言失败")
else:
log.info(f"断言成功,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}")
\ No newline at end of file
# USERNAME的值一定是用户数据配置层目录的名称
USERNAME = 'zf_data'
\ No newline at end of file
import pytest
from api_1104.re_.re_method import RequestsMethod
@pytest.fixture(scope="session")
def req_fix():
req = RequestsMethod()
yield req
\ No newline at end of file
import pytest
from api_1105 import log
from api_1105.common_.l_excel import ReadExcel
from api_1105.test_.test_zf import USERNAME
class TestBPM:
@pytest.mark.parametrize("method, url, mime, case, expect, sql, sqlType, updateKey", ReadExcel(USERNAME).get_data())
def test_bpm(self, req_fix, method, url, mime, case, expect, sql, sqlType, updateKey):
print(method, url, mime, case, expect, sql, sqlType, updateKey)
res = req_fix.request_all(req_method=method, req_url=url, req_mime=mime, req_case=case, sql_type=sqlType, sql_data=sql, update_key=updateKey)
# 断言
try:
for key in expect.keys():
assert res.json().get(key) == expect[key]
except AssertionError:
log.error(f"断言失败,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}")
raise AssertionError("断言失败")
else:
log.info(f"断言成功,用例数据为:{case},期望数据为:{expect}, 服务器返回的数据为:{res.text}")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment