Commit 440f41b5 by hehe

“接口自动化框架”

parents
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/8/7 10:36
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/8/7 10:37
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: conftest.py
# Author: xxxxxxx
# Datetime: 2023/8/5 11:02
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import pytest
from homewoke.接口pytest框架.common.read_db import DB
from homewoke.接口pytest框架.requests_method.requests_method import RequestsMethod
@pytest.fixture(scope="session")
def my_rep():
rep = RequestsMethod()
yield rep
@pytest.fixture(scope="session")
def db_fix():
db = DB()
yield db
db.close_mysql()
def pytest_collection_modifyitems(items):
# item表示每个测试用例,解决用例名称中文显示问题
for item in items:
item.name = item.name.encode("utf-8").decode("unicode-escape")
item._nodeid = item._nodeid.encode("utf-8").decode("unicode-escape")
[pytest]
[pytest]
;开启日志
log_cli=true
;设置日志的级别,如果不设置级别的话,可以设置为NOTSET,如果要设置级别,级别可以有debug,info,warning,error,致命
log_level=NOTSET
;设置日志显示的信息格式
log_format=%(levelname)s--%(asctime)s--%(message)s
;设置日志中时间显示的格式
log_date_format=%Y-%m-%d %H:%M:%S
;每个py文件运行的时候追加的命令
;addopts=-vs
;设置日志保存的文件
log_file=../report/log/bpm_test.log
;设置日志保存在文件中的级别
log_file_level=error
;设置日志在文件中的信息格式
log_file_format=%(levelname)s--%(asctime)s--%(message)s
;设置文件日志中时间显示的格式
log_file_date_format=%Y-%m-%d %H:%M:%S
\ No newline at end of file
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: test_bpm.py
# Author: xxxxxxx
# Datetime: 2023/8/5 10:51
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import logging
import allure
import pytest
from homewoke.接口pytest框架.common.read_excel import ReadExcel
class TestBPM:
@allure.epic("BPM系统")
@pytest.mark.parametrize("module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, "
"sql_sentence, update_key, i", ReadExcel().get_data())
def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data,
sql_type, sql_sentence, update_key, i):
allure.dynamic.feature(module)
allure.dynamic.story(interface)
allure.dynamic.title(title)
allure.dynamic.severity(level)
print(module, interface, title, level, method, url, mime, case_data, expect_data,
sql_type, sql_sentence, update_key, i)
read_excel = ReadExcel()
datas = read_excel.get_data()
if sql_type == "delete":
db_fix.delete(sql_sentence)
elif sql_type == "select":
select_result = db_fix.select(sql_sentence)
case_data[update_key] = select_result
elif sql_type == "select|delete" or sql_type == "delete|select":
# 添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中,
# 字典的格式为:{"delete":"删除sql语句",
# "select":"查询sql语句"}
db_fix.delete(sql_sentence["delete"])
select_result = db_fix.select(sql_sentence["select"])
case_data[update_key] = select_result
result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)
print("Excel中写的数据", module, interface, title, level, method, url, mime, case_data, expect_data, sql_type,
sql_sentence, update_key, i)
print("*"*100)
print("服务器返回的数据", result.json())
for i in datas:
try:
for key in expect_data.keys():
assert expect_data[key] == result.json().get(key)
except:
print("断言失败")
logging.error("断言失败, 模块名称为:{},接口名称为:{},用例标题:{},用例为:{},期望结果为:{},服务器返回数据为:{}".format(module, interface, title, str(case_data), str(expect_data), result.text))
read_excel.write_result("断言失败", i[-1])
raise AssertionError("断言失败")
else:
print("断言成功")
read_excel.write_result("断言成功", i[-1])
if __name__ == '__main__':
pytest.main()
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: read_db.py
# Author: xxxxxxx
# Datetime: 2023/8/5 9:55
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import pymysql
from homewoke.接口pytest框架.common.read_ini import ReadIni
from homewoke.接口pytest框架.file_data.settings import *
class DB:
def __init__(self):
read_ini = ReadIni()
self.conn = pymysql.connect(host=read_ini.get_sql_connect_message(HOST),
port=int(read_ini.get_sql_connect_message(PORT)),
user=read_ini.get_sql_connect_message(USER),
password=read_ini.get_sql_connect_message(PASSWORD),
database=read_ini.get_sql_connect_message(DATABASE),
charset="utf8")
self.cursor = self.conn.cursor()
def close_mysql(self):
self.cursor.close()
self.conn.close()
def delete(self, sql_sentence):
self.cursor.execute(sql_sentence)
self.conn.commit()
def select(self,sql_sentence):
self.cursor.execute(sql_sentence)
select_result = self.cursor.fetchall()
print(select_result)
if select_result:
return select_result[0][0]
if __name__ == '__main__':
db = DB()
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: read_excel.py
# Author: xxxxxxx
# Datetime: 2023/8/2 20:25
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import openpyxl
from homewoke.接口pytest框架.file_data.settings import *
from homewoke.接口自动化框架_登录_添加维度.common.read_ini import ReadIni
from homewoke.接口自动化框架_登录_添加维度.common.read_json import read_json
class ReadExcel:
def __init__(self):
# 获取所有的json文件的路径, 使用ReadIni对象调用get_file_path获取文件的路径
self.read_ini = ReadIni()
case_data_path = self.read_ini.get_file_path("case")
expect_data_path = self.read_ini.get_file_path("expect")
sql_data_path = self.read_ini.get_file_path("sql")
# 调用read_json函数读取所有的json文件
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
self.excel_path = self.read_ini.get_file_path("excel")
self.wb = openpyxl.load_workbook(self.excel_path)
table_name = self.read_ini.get_table_name("table")
self.ws = self.wb[table_name]
# 将WS中的单元格数据设置为私有属性可以用关键字参数传参
def __get_cell_value(self, column: str, row: int) -> str:
value = self.ws[str(column)+str(row)].value
if value is None:
return None
elif value.strip():
return value.strip()
def module_name(self, row):
return self.__get_cell_value(MODULE, row)
def interface_name(self,row):
return self.__get_cell_value(API, row)
def case_title(self, row):
return self.__get_cell_value(TITLE, row)
def case_level(self, row):
return self.__get_cell_value(LEVEL, row)
def case_method(self, row):
return self.__get_cell_value(PATH, row)
def case_url(self,row):
host = self.read_ini.get_host(TEST_IP)
path = self.__get_cell_value(METHOD, row)
return host + path
def case_mime(self,row):
value = self.__get_cell_value(MIME, row)
if value:
return value.lower()
def case_data(self,row):
case_data_key = self.__get_cell_value(CASEDATA , row)
if case_data_key:
module_name = self.module_name(row)
interface_name = self.interface_name(row)
return self.case_data_dict[module_name][interface_name][case_data_key]
def expect_data(self, row):
expect_data_key = self.__get_cell_value(EXPECTDATA, row)
if expect_data_key:
module_name = self.module_name(row)
interface_name = self.interface_name(row)
return self.expect_data_dict[module_name][interface_name][expect_data_key]
def sql_type(self,row):
value = self.__get_cell_value(SQLTYPE, row)
if value:
return value.lower()
def sql_sentence(self,row):
sql_data_key = self.__get_cell_value(SQLSENTENCE, row)
if sql_data_key:
module_name = self.module_name(row)
interface_name = self.interface_name(row)
return self.sql_data_dict[module_name][interface_name][sql_data_key]
def update_key(self,row):
update_key_value = self.__get_cell_value(UPDATEKEY, row)
if update_key_value:
return update_key_value
def get_data(self):
list_data= []
for i in range(2,self.ws.max_row +1):
module = self.module_name(i)
interface = self.interface_name(i)
title = self.case_title(i)
level = self.case_level(i)
method = self.case_method(i)
url = self.case_url(i)
mime = self.case_mime(i)
case_data = self.case_data(i)
expect_data = self.expect_data(i)
sql_type = self.sql_type(i)
sql_sentence = self.sql_sentence(i)
update_key = self.update_key(i)
list_data.append([module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i])
print([method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i])
print(type(i))
else:
return list_data
def write_result(self, result, row):
self.ws[RESULT+str(row)].value = result
self.wb.save(self.excel_path)
if __name__ == '__main__':
read_excel = ReadExcel()
read_excel.get_data()
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: read_ini.py
# Author: xxxxxxx
# Datetime: 2023/8/2 19:24
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import configparser
import os
from homewoke.接口pytest框架.file_data.settings import *
class ReadIni:
def __init__(self):
self.data_config_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "file_data")
print(self.data_config_path)
ini_path = os.path.join(self.data_config_path, "config.ini")
self.conf = configparser.ConfigParser()
self.conf.read(ini_path, encoding="utf-8")
print(self.conf)
def get_file_path(self, key):
file_name = self.conf.get("file", key).strip()
print(file_name)
return os.path.join(self.data_config_path, file_name)
def get_host(self, key):
return self.conf.get(TEST_IP, key).strip()
def get_table_name(self, key):
return self.conf.get(TABLE, key).strip()
def get_sql_connect_message(self, key):
return self.conf.get(SQL,key).strip()
if __name__ == '__main__':
read_ini = ReadIni()
print(read_ini.get_file_path(EXCEL))
#D:\pythonProject1\homewoke\接口pytest框架\file_data\用例.xlsx
# D:\pythonProject1\homewoke\接口pytest框架\file_data\用例.xlsx
print(read_ini.get_host(TEST_IP))
print(read_ini.get_table_name(TABLE))
print(read_ini.get_sql_connect_message(HOST))
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: read_json.py
# Author: xxxxxxx
# Datetime: 2023/8/2 20:18
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import json
def read_json(filename):
with open(filename, mode="r", encoding="utf-8") as fp:
return json.loads(fp.read())
if __name__ == '__main__':
print(read_json(r"D:\pythonProject1\homewoke\requests接口自动化框架—登录-添加维度\1file_data\case_data.json"))
print(read_json(r"D:\pythonProject1\homewoke\requests接口自动化框架—登录-添加维度\1file_data\expect_data.json"))
\ No newline at end of file
{
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"password": "MTIzNDU2",
"username": "admin"
},
"LoginFailUsernameIsNone": {
"password": "MTIzNDU2",
"username": ""
},
"LoginFailUsernameIsLong": {
"password": "MTIzNDU2",
"username": "adminadminadminadminadminadmin"
},
"LoginFailUsernameIsShort": {
"password": "MTIzNDU2",
"username": "a"
},
"LoginFailUsernameIsSpecialChar": {
"password": "MTIzNDU2",
"username": "▂▃▄▅▆▇█"
},
"LoginFailUsernameIsError": {
"password": "MTIzNDU2",
"username": "tom"
},
"LoginFailPWDIsNone": {
"password": "",
"username": "admin"
},
"LoginFailPWDIsLong": {
"password": "MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2",
"username": "admin"
},
"LoginFailPWDIsShort": {
"password": "M",
"username": "admin"
},
"LoginFailPWDIsSpecial": {
"password": "▂▃▄▅▆▇█",
"username": "admin"
},
"LoginFailPWDIsError": {
"password": "2",
"username": "admin"
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"code": "tom",
"description": "gogo",
"isDefault": 0,
"name": "子维度"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess":{"ids": "不知道"}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"code": "rich",
"demId": "不知道",
"exceedLimitNum": 0,
"grade": "",
"limitNum": 0,
"name": "组织",
"nowNum": 0,
"orderNo": 0,
"parentId": "0"
}
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"query": {
"orgCode": "rich"
},
"body": [
{
"alias": "sz",
"value": 0
},
{
"alias": "zy",
"value": "math"
},
{
"alias": "rq",
"value": "2023-08-04T16:00:00.000Z"
},
{
"alias": "ah",
"value": "lq"
},
{
"alias": "yyyy",
"value": "越高越好"
},
{
"alias": "xb",
"value": "2"
}
]
}
},
"删除组织": {
"DeleteOrgSuccess": "rich"
}
}
}
[file]
[file]
excel=用例.xlsx
case=case_data.json
expect=expect_data.json
sql=sql.json
[host]
test_bpm=http://120.46.172.186:8080
[table_name]
table=bpm接口
[sql]
host=120.46.172.186
port=3306
user=root
password=root@2023
database=eipsaas
\ No newline at end of file
{
{
"认证接口": {
"登录系统": {
"LoginSuccess": {
"username": "超级管理员",
"account": "admin"
},
"LoginFailUsernameIsNone": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailUsernameIsLong": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailUsernameIsShort": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailUsernameIsSpecialChar": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailUsernameIsError": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailPWDIsNone": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailPWDIsLong": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailPWDIsShort": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailPWDIsSpecial": {
"state": false,
"message": "账号或密码错误"
},
"LoginFailPWDIsError": {
"state": false,
"message": "账号或密码错误"
}
},
"刷新token": {
"RefreshSuccess": {
"loginStatus":true
}
}
},
"维度管理": {
"添加维度": {
"AddDemSuccess": {
"state": true,
"message": "添加维度成功!"
}
},
"根据维度编码删除维度": {
"DeleteDemSuccess": {
"state": true,
"message": "删除维度成功!"
}
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"state": true,
"message": "添加组织成功!"
}
},
"保存组织参数": {
"SaveOrgParamSuccess": {
"state": true,
"message": "保存组织参数成功!"
}
},
"删除组织": {
"DeleteOrgSuccess": {
"state": true,
"message": "删除组织成功!"
}
}
}
}
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: settings.py
# Author: xxxxxxx
# Datetime: 2023/8/7 18:54
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
"""excel列号的配置文件"""
MODULE= "b"
API = "C"
TITLE = "D"
LEVEL = "E"
PATH = "F"
METHOD = "G"
MIME = "H"
CASEDATA = "I"
EXPECTDATA = "J"
SQLTYPE = "K"
SQLSENTENCE = "L"
UPDATEKEY= "m"
RESULT = "n"
"配置ini文件file节点的key"
EXCEL = "excel"
CASE = "case"
EXCEPT = "except"
SQL="sql"
"""配置host节点下的key"""
TEST_IP = "test_bpm"
"""配置table_name节点下的key"""
TABLE = "table"
"""配置sql节点下的key"""
HOST = "host"
PORT= "port"
USER= "user"
PASSWORD= "password"
DATABASE = "database"
{
{
"维度管理": {
"添加维度": {
"AddDemSuccess": "DELETE FROM uc_demension WHERE `CODE_`=\"tom\";"
},
"根据维度编码删除维度": {
"DeleteDemSuccess": "SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";"
}
},
"组织管理": {
"添加组织": {
"AddOrgSuccess": {
"select": "SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";",
"delete": "DELETE FROM uc_org WHERE `CODE_`=\"rich\";"
}
}
}
}
\ No newline at end of file
{"uuid": "9c9491e1-7890-47c5-a8a7-4f48f1aec909", "befores": [{"name": "title", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "9c9491e1-7890-47c5-a8a7-4f48f1aec909", "befores": [{"name": "title", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"uuid": "8827d822-fcdd-4633-8d66-fef9c703eba9", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "8827d822-fcdd-4633-8d66-fef9c703eba9", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "8346812f-1ba0-4b89-9cca-898f39d12dce", "befores": [{"name": "module", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "8346812f-1ba0-4b89-9cca-898f39d12dce", "befores": [{"name": "module", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "7966f3a2-f7bf-48e2-b1fb-9496cc3cde8a", "befores": [{"name": "url", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "7966f3a2-f7bf-48e2-b1fb-9496cc3cde8a", "befores": [{"name": "url", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "bd768060-6376-4603-adc0-74dc56215842", "befores": [{"name": "method", "status": "passed", "start": 1691408664024, "stop": 1691408664025}], "start": 1691408664024, "stop": 1691408664103}
{"uuid": "bd768060-6376-4603-adc0-74dc56215842", "befores": [{"name": "method", "status": "passed", "start": 1691408664024, "stop": 1691408664025}], "start": 1691408664024, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "e3169df5-3b45-468e-a2ed-d4cb1b4c28fb", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664432}
{"uuid": "e3169df5-3b45-468e-a2ed-d4cb1b4c28fb", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664432}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'} {'state': False, 'message': '账号或密码错误'} None None None 4
Excel中写的数据 认证接口 登录系统 反向用例-用户名过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'} {'state': False, 'message': '账号或密码错误'} None None None 4
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516438932865024'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516438932865024"}
断言成功
{"uuid": "145bfeb0-1494-4f5d-9097-9655262b0d9c", "befores": [{"name": "method", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "145bfeb0-1494-4f5d-9097-9655262b0d9c", "befores": [{"name": "method", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "d865486c-da79-4320-bee2-85c07888815b", "befores": [{"name": "level", "status": "passed", "start": 1691408664024, "stop": 1691408664024}], "start": 1691408664024, "stop": 1691408664103}
{"uuid": "d865486c-da79-4320-bee2-85c07888815b", "befores": [{"name": "level", "status": "passed", "start": 1691408664024, "stop": 1691408664024}], "start": 1691408664024, "stop": 1691408664103}
\ No newline at end of file
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.address` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.automotive`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.automotive` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.bank`.
DEBUG--2023-08-07 19:44:22--Specified locale `en_US` is not available for provider `faker.providers.bank`. Locale reset to `en_GB` for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.barcode`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.barcode` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.color`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.color` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.company`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.company` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.credit_card`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.credit_card` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.currency`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.currency` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.date_time`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.date_time` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.emoji` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.file` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.geo`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.geo` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.internet`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.internet` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.isbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.job`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.job` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.lorem`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.lorem` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.misc`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.misc` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.passport`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.passport` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.person`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.person` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.phone_number`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.phone_number` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.profile` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.python` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.sbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.ssn`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.ssn` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.user_agent` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:23--Starting new HTTP connection (1): 120.46.172.186:8080
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "d9820d80-7394-4ac7-b41c-36d1b40d7090", "befores": [{"name": "mime", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "d9820d80-7394-4ac7-b41c-36d1b40d7090", "befores": [{"name": "mime", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "317def16-4082-4f74-9831-67f5ee3e768e", "befores": [{"name": "url", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "317def16-4082-4f74-9831-67f5ee3e768e", "befores": [{"name": "url", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"name": "反向用例-用户名过长", "status": "passed", "attachments": [{"name": "log", "source": "dfba1ad6-098c-4914-bfd0-4d169d1c21dd-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "03cc015f-8972-4b37-9f60-e3aab3fde4ee-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "4"}], "start": 1691408663455, "stop": 1691408663548, "uuid": "a9eefe44-15d6-4b33-8811-9454dedab92f", "historyId": "88d8751bd498f159d23da3e6cba67ee8", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-用户名过长", "status": "passed", "attachments": [{"name": "log", "source": "dfba1ad6-098c-4914-bfd0-4d169d1c21dd-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "03cc015f-8972-4b37-9f60-e3aab3fde4ee-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "4"}], "start": 1691408663455, "stop": 1691408663548, "uuid": "a9eefe44-15d6-4b33-8811-9454dedab92f", "historyId": "88d8751bd498f159d23da3e6cba67ee8", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "024d64d3-51e7-46e9-ad90-1d94fe1fe79f", "befores": [{"name": "i", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "024d64d3-51e7-46e9-ad90-1d94fe1fe79f", "befores": [{"name": "i", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "0c5c6090-f8f1-4b83-ac05-4884e7b5cb47", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "0c5c6090-f8f1-4b83-ac05-4884e7b5cb47", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "a7ca34d8-1cc3-414e-87c2-12ccca796105", "befores": [{"name": "url", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "a7ca34d8-1cc3-414e-87c2-12ccca796105", "befores": [{"name": "url", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "c9211e0b-e236-491c-a902-79624a906c9e", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "c9211e0b-e236-491c-a902-79624a906c9e", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "8f9a0bfe-1ce5-4dff-97cc-53ffa1749215", "befores": [{"name": "title", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "8f9a0bfe-1ce5-4dff-97cc-53ffa1749215", "befores": [{"name": "title", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "08eb9a5e-c9cf-41c8-b8c9-ccba58e1b9f5", "befores": [{"name": "update_key", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "08eb9a5e-c9cf-41c8-b8c9-ccba58e1b9f5", "befores": [{"name": "update_key", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "d5342d1f-8730-4789-a1dd-de28de3a91f1", "befores": [{"name": "mime", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "d5342d1f-8730-4789-a1dd-de28de3a91f1", "befores": [{"name": "mime", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "1cc68edb-11d3-4889-b73f-e2fa9f1d76c6", "befores": [{"name": "url", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "1cc68edb-11d3-4889-b73f-e2fa9f1d76c6", "befores": [{"name": "url", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "79884bcd-aa90-4937-80a9-a2944107298b", "befores": [{"name": "interface", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "79884bcd-aa90-4937-80a9-a2944107298b", "befores": [{"name": "interface", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "8b8d0382-db80-4c64-8ac5-11eedc465107", "befores": [{"name": "url", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "8b8d0382-db80-4c64-8ac5-11eedc465107", "befores": [{"name": "url", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "9a5bfaff-a520-4bdf-9657-7ac9d48d66b4", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "9a5bfaff-a520-4bdf-9657-7ac9d48d66b4", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "99e52edb-fe20-4e91-86e1-170777882c11", "befores": [{"name": "method", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "99e52edb-fe20-4e91-86e1-170777882c11", "befores": [{"name": "method", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "cb5d66a6-c497-40af-bf7b-caf2bc633f57", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "cb5d66a6-c497-40af-bf7b-caf2bc633f57", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "ddcaf90f-6e49-4c05-b14c-d1ed1838b6e7", "befores": [{"name": "i", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
{"uuid": "ddcaf90f-6e49-4c05-b14c-d1ed1838b6e7", "befores": [{"name": "i", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
\ No newline at end of file
{"uuid": "0e42e51e-bb7c-4afd-b976-4c44167b5ef3", "befores": [{"name": "module", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "0e42e51e-bb7c-4afd-b976-4c44167b5ef3", "befores": [{"name": "module", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "5b0c8c6c-8919-4cae-9c50-1cf95d26a86d", "befores": [{"name": "mime", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "5b0c8c6c-8919-4cae-9c50-1cf95d26a86d", "befores": [{"name": "mime", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "f6b91026-122a-4cef-905e-6d6730fa75b9", "befores": [{"name": "mime", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "f6b91026-122a-4cef-905e-6d6730fa75b9", "befores": [{"name": "mime", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "88388cd4-57b8-4da9-949e-a375e3834598", "befores": [{"name": "level", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "88388cd4-57b8-4da9-949e-a375e3834598", "befores": [{"name": "level", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "11784246-3d34-420c-8175-77ede003eca0", "befores": [{"name": "level", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "11784246-3d34-420c-8175-77ede003eca0", "befores": [{"name": "level", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "bec622ef-83c7-4005-8427-1b1ed462ccbe-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "556e8f0b-49c7-4544-a81b-43e8cc0f22cc-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "interface", "value": "'添加维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_sentence", "value": "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "14"}], "start": 1691408669868, "stop": 1691408670057, "uuid": "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "historyId": "fe0ac3b66d3f04a6eaff10670c0093f0", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "bec622ef-83c7-4005-8427-1b1ed462ccbe-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "556e8f0b-49c7-4544-a81b-43e8cc0f22cc-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "interface", "value": "'添加维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_sentence", "value": "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "14"}], "start": 1691408669868, "stop": 1691408670057, "uuid": "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "historyId": "fe0ac3b66d3f04a6eaff10670c0093f0", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "928460fc-3c15-4ba2-92d0-e8639c2aba0a", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "928460fc-3c15-4ba2-92d0-e8639c2aba0a", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "e46870c9-fcf5-422c-882a-679fb7895363", "befores": [{"name": "interface", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "e46870c9-fcf5-422c-882a-679fb7895363", "befores": [{"name": "interface", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "b2a12197-a171-4a61-9cfa-b03a0138b670", "befores": [{"name": "method", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "b2a12197-a171-4a61-9cfa-b03a0138b670", "befores": [{"name": "method", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "a164a6ab-3f80-41b3-994d-53eab9c9b03f", "befores": [{"name": "interface", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "a164a6ab-3f80-41b3-994d-53eab9c9b03f", "befores": [{"name": "interface", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "367d5635-6897-4cbd-92fb-71fb3ba71029", "befores": [{"name": "url", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "367d5635-6897-4cbd-92fb-71fb3ba71029", "befores": [{"name": "url", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "b173af16-6cfc-4a0e-ac45-b593a14873a5", "befores": [{"name": "i", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "b173af16-6cfc-4a0e-ac45-b593a14873a5", "befores": [{"name": "i", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "eb3d8d55-7271-4a1c-8f21-6fd837e8ae53", "befores": [{"name": "method", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "eb3d8d55-7271-4a1c-8f21-6fd837e8ae53", "befores": [{"name": "method", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"uuid": "92af698e-7fbd-4a3a-bd84-7e569c79c392", "befores": [{"name": "interface", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "92af698e-7fbd-4a3a-bd84-7e569c79c392", "befores": [{"name": "interface", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "d61a2fb8-cf67-4cd8-9993-1f3c5abaf1c6", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "d61a2fb8-cf67-4cd8-9993-1f3c5abaf1c6", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "025ca230-0904-493d-9870-26c14460b078", "befores": [{"name": "module", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663892}
{"uuid": "025ca230-0904-493d-9870-26c14460b078", "befores": [{"name": "module", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663892}
\ No newline at end of file
{"uuid": "864adf0f-20b6-4a81-9101-d76ecd6344be", "befores": [{"name": "method", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "864adf0f-20b6-4a81-9101-d76ecd6344be", "befores": [{"name": "method", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "5b706c25-ced3-42b4-8115-8405b445ab79", "befores": [{"name": "url", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "5b706c25-ced3-42b4-8115-8405b445ab79", "befores": [{"name": "url", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "14db6490-fbba-4372-9bb9-f7b60400d500", "befores": [{"name": "level", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "14db6490-fbba-4372-9bb9-f7b60400d500", "befores": [{"name": "level", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "da46789f-0ea1-4a7d-9f96-b0ee9ad6bd1a", "befores": [{"name": "method", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "da46789f-0ea1-4a7d-9f96-b0ee9ad6bd1a", "befores": [{"name": "method", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "c4190db2-e846-4408-bea3-88d175b35928", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
{"uuid": "c4190db2-e846-4408-bea3-88d175b35928", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
\ No newline at end of file
(('1688516466208423936',),)
(('1688516466208423936',),)
Excel中写的数据 维度管理 根据维度编码删除维度 正向用例 高 DELETE http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds query {'ids': '1688516466208423936'} {'state': True, 'message': '删除维度成功!'} select SELECT ID_ FROM uc_demension WHERE `CODE_`="tom"; ids 18
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '删除维度成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"删除维度成功!","value":""}
断言成功
{"uuid": "7ca73e79-1310-4eef-91ae-f772ac4d6c8a", "befores": [{"name": "title", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "7ca73e79-1310-4eef-91ae-f772ac4d6c8a", "befores": [{"name": "title", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "2a054421-58f2-4026-b568-4663c1ca681a", "befores": [{"name": "title", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "2a054421-58f2-4026-b568-4663c1ca681a", "befores": [{"name": "title", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "d3d21499-8141-4740-854d-d3d58332fbc1", "befores": [{"name": "method", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "d3d21499-8141-4740-854d-d3d58332fbc1", "befores": [{"name": "method", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "57797ce3-a165-48b1-ac56-d99bd9895987", "befores": [{"name": "method", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "57797ce3-a165-48b1-ac56-d99bd9895987", "befores": [{"name": "method", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"name": "反向用例-用户名为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "6738da8e-adff-427c-86ef-a034b8cb5b98-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "53e609e1-2643-4790-a1a9-13b66bcca26a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "6"}], "start": 1691408663673, "stop": 1691408663767, "uuid": "1b683ec4-0afd-4753-9097-676855ebb309", "historyId": "3712c017303438bf9df404feae03826b", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-用户名为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "6738da8e-adff-427c-86ef-a034b8cb5b98-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "53e609e1-2643-4790-a1a9-13b66bcca26a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "6"}], "start": 1691408663673, "stop": 1691408663767, "uuid": "1b683ec4-0afd-4753-9097-676855ebb309", "historyId": "3712c017303438bf9df404feae03826b", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "ca7ea6cc-aea6-4bc6-b7f6-2d47ad607049", "befores": [{"name": "interface", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "ca7ea6cc-aea6-4bc6-b7f6-2d47ad607049", "befores": [{"name": "interface", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "29bf41f2-c813-4421-8d4a-ea52ea327b10", "befores": [{"name": "module", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664228}
{"uuid": "29bf41f2-c813-4421-8d4a-ea52ea327b10", "befores": [{"name": "module", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664228}
\ No newline at end of file
{"uuid": "0844317a-c3ca-477e-8f03-92311fae8b42", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "0844317a-c3ca-477e-8f03-92311fae8b42", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "14e75249-a9bc-4c82-8880-8d50db581cca", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
{"uuid": "14e75249-a9bc-4c82-8880-8d50db581cca", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
\ No newline at end of file
{"uuid": "0d31cba2-89b5-47e3-80c1-b5b1398e8e0e", "befores": [{"name": "mime", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "0d31cba2-89b5-47e3-80c1-b5b1398e8e0e", "befores": [{"name": "mime", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"uuid": "211ab944-7eb7-47e0-ad62-b0208d6a0e40", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "211ab944-7eb7-47e0-ad62-b0208d6a0e40", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "93e5dd24-3e0f-4fae-9f70-8dd6ca789a7d", "befores": [{"name": "module", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "93e5dd24-3e0f-4fae-9f70-8dd6ca789a7d", "befores": [{"name": "module", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408664457, "stop": 1691408664457, "uuid": "1e3898c7-9027-4441-a934-03779390ae75", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408664457, "stop": 1691408664457, "uuid": "1e3898c7-9027-4441-a934-03779390ae75", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "0a924c97-9c28-4a7c-ab1c-8a3981a9bcdd", "befores": [{"name": "interface", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667801}
{"uuid": "0a924c97-9c28-4a7c-ab1c-8a3981a9bcdd", "befores": [{"name": "interface", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667801}
\ No newline at end of file
{"uuid": "48b44259-778a-4b21-bd2b-a363b80117a8", "befores": [{"name": "url", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "48b44259-778a-4b21-bd2b-a363b80117a8", "befores": [{"name": "url", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "fddde696-c675-4cbe-af25-9605f07b0fcf", "befores": [{"name": "level", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "fddde696-c675-4cbe-af25-9605f07b0fcf", "befores": [{"name": "level", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "bbabd294-8360-4bfe-a112-8f46faea1b99", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "bbabd294-8360-4bfe-a112-8f46faea1b99", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "505604e7-6f53-4116-9515-1449b2ef3f36", "befores": [{"name": "module", "status": "passed", "start": 1691408664023, "stop": 1691408664023}], "start": 1691408664023, "stop": 1691408664118}
{"uuid": "505604e7-6f53-4116-9515-1449b2ef3f36", "befores": [{"name": "module", "status": "passed", "start": 1691408664023, "stop": 1691408664023}], "start": 1691408664023, "stop": 1691408664118}
\ No newline at end of file
{"uuid": "ecef6225-27f3-4523-b33d-65ad9673994f", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
{"uuid": "ecef6225-27f3-4523-b33d-65ad9673994f", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
\ No newline at end of file
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "478b3b54-e4f0-42c4-a4df-9fc784f96d14", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "478b3b54-e4f0-42c4-a4df-9fc784f96d14", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "6caf5cda-0429-4753-baab-2b5cbea4ba37", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "6caf5cda-0429-4753-baab-2b5cbea4ba37", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "c411248d-4305-440b-ab53-69fac02efd3d", "befores": [{"name": "interface", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663455}
{"uuid": "c411248d-4305-440b-ab53-69fac02efd3d", "befores": [{"name": "interface", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663455}
\ No newline at end of file
{"uuid": "4cf9007b-1c73-4209-bd85-776404ac0b15", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "4cf9007b-1c73-4209-bd85-776404ac0b15", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "494f16a3-96d3-429a-9715-fd73c80aed5d", "befores": [{"name": "interface", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "494f16a3-96d3-429a-9715-fd73c80aed5d", "befores": [{"name": "interface", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "c212b5da-9e3f-4e14-afd5-948f805071db", "befores": [{"name": "interface", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "c212b5da-9e3f-4e14-afd5-948f805071db", "befores": [{"name": "interface", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "d5800c4e-6e6a-4fd6-89ad-17c37cffadfa", "befores": [{"name": "case_data", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
{"uuid": "d5800c4e-6e6a-4fd6-89ad-17c37cffadfa", "befores": [{"name": "case_data", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
\ No newline at end of file
{"uuid": "3e33fe8a-179a-42a4-b06b-3acc15a728b9", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "3e33fe8a-179a-42a4-b06b-3acc15a728b9", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "0fc1e8ba-fcac-489c-bec9-b0a2f0cc88d2", "befores": [{"name": "level", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "0fc1e8ba-fcac-489c-bec9-b0a2f0cc88d2", "befores": [{"name": "level", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "5ca81a2c-a4c2-4e6c-a015-84d69ec9a7c9", "befores": [{"name": "mime", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "5ca81a2c-a4c2-4e6c-a015-84d69ec9a7c9", "befores": [{"name": "mime", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "2f9d300a-4d5a-43e2-920e-3fc5c67a49fd", "befores": [{"name": "i", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "2f9d300a-4d5a-43e2-920e-3fc5c67a49fd", "befores": [{"name": "i", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "c9562500-e9a5-4bf3-be48-4acdd5f96aac", "befores": [{"name": "update_key", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "c9562500-e9a5-4bf3-be48-4acdd5f96aac", "befores": [{"name": "update_key", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "fad9a6f6-b59c-47cb-95c8-651df3752fac", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "fad9a6f6-b59c-47cb-95c8-651df3752fac", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "50bbe5ed-1968-4252-beac-95746c33a70f", "befores": [{"name": "module", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "50bbe5ed-1968-4252-beac-95746c33a70f", "befores": [{"name": "module", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"uuid": "429eee2d-ba12-4d11-9672-0aace1fab9cd", "befores": [{"name": "case_data", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "429eee2d-ba12-4d11-9672-0aace1fab9cd", "befores": [{"name": "case_data", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "ccae2c2b-1a49-4c35-8dde-a0ec786ded0e", "befores": [{"name": "mime", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "ccae2c2b-1a49-4c35-8dde-a0ec786ded0e", "befores": [{"name": "mime", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "d42db796-cf30-4b55-939a-ad7957cb6729", "befores": [{"name": "case_data", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "d42db796-cf30-4b55-939a-ad7957cb6729", "befores": [{"name": "case_data", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "7c0fe74b-ff6d-4202-a5e4-5cf4ff788258", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "7c0fe74b-ff6d-4202-a5e4-5cf4ff788258", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "7fd1ae7e-91d1-4c18-a163-8d4019e9dc90", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "7fd1ae7e-91d1-4c18-a163-8d4019e9dc90", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"name": "反向用例-密码过短", "status": "passed", "attachments": [{"name": "log", "source": "328a439f-6ba0-49ce-bdd2-51a55b27eadf-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "e75a84de-c656-4ea3-98dc-412417fbaa2f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'M', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "10"}], "start": 1691408664118, "stop": 1691408664212, "uuid": "59c0c553-f29b-4c55-8492-c649d82fa17f", "historyId": "f70e22fd9c549907809971593921aaca", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-密码过短", "status": "passed", "attachments": [{"name": "log", "source": "328a439f-6ba0-49ce-bdd2-51a55b27eadf-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "e75a84de-c656-4ea3-98dc-412417fbaa2f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'M', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "10"}], "start": 1691408664118, "stop": 1691408664212, "uuid": "59c0c553-f29b-4c55-8492-c649d82fa17f", "historyId": "f70e22fd9c549907809971593921aaca", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码为空 中 post http://120.46.172.186:8080/auth application/json {'password': '', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 8
Excel中写的数据 认证接口 登录系统 反向用例-密码为空 中 post http://120.46.172.186:8080/auth application/json {'password': '', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 8
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516440807718912'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516440807718912"}
断言成功
{"uuid": "7ef71bf0-7b54-485b-bd30-3225b9fc118e", "befores": [{"name": "module", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666767}
{"uuid": "7ef71bf0-7b54-485b-bd30-3225b9fc118e", "befores": [{"name": "module", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666767}
\ No newline at end of file
{"uuid": "9a981b99-96d8-4d7a-9ed4-38d4397a8ab9", "befores": [{"name": "method", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "9a981b99-96d8-4d7a-9ed4-38d4397a8ab9", "befores": [{"name": "method", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "0a6a6bec-f32d-4146-b1f7-9d94d5cb6934", "befores": [{"name": "module", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663455}
{"uuid": "0a6a6bec-f32d-4146-b1f7-9d94d5cb6934", "befores": [{"name": "module", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663455}
\ No newline at end of file
{"uuid": "712d7520-edfd-4f3a-b647-310c3a10b4c9", "befores": [{"name": "module", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "712d7520-edfd-4f3a-b647-310c3a10b4c9", "befores": [{"name": "module", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "839af4fd-52fe-4982-8539-e661c503647f", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "839af4fd-52fe-4982-8539-e661c503647f", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "47400b26-4d4f-4b82-b9cd-c2e99d286a64", "befores": [{"name": "level", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "47400b26-4d4f-4b82-b9cd-c2e99d286a64", "befores": [{"name": "level", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "fb1350e1-29cc-40a8-9897-dff350be4e7d", "befores": [{"name": "interface", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "fb1350e1-29cc-40a8-9897-dff350be4e7d", "befores": [{"name": "interface", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "d4f3000c-f0ca-4111-ba63-64bb40c7eca7", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "d4f3000c-f0ca-4111-ba63-64bb40c7eca7", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "96c7473b-b9a4-40ae-899b-65a8384c56e9", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "96c7473b-b9a4-40ae-899b-65a8384c56e9", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "7bd1b48c-aaa0-4ea7-b579-b1ac787ad36c", "befores": [{"name": "title", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "7bd1b48c-aaa0-4ea7-b579-b1ac787ad36c", "befores": [{"name": "title", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'tom'} {'state': False, 'message': '账号或密码错误'} None None None 7
Excel中写的数据 认证接口 登录系统 反向用例-用户名输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'tom'} {'state': False, 'message': '账号或密码错误'} None None None 7
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516440308596736'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516440308596736"}
断言成功
{"uuid": "a7ed917b-b99e-43af-9727-60f6dc2c9466", "befores": [{"name": "i", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "a7ed917b-b99e-43af-9727-60f6dc2c9466", "befores": [{"name": "i", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "ffe0bbaf-855a-4c88-ad0f-482dccb42223", "befores": [{"name": "url", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "ffe0bbaf-855a-4c88-ad0f-482dccb42223", "befores": [{"name": "url", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"name": "反向用例-密码输入错误", "status": "passed", "attachments": [{"name": "log", "source": "2e94b204-f0ee-4f15-bb40-b6256d5384ac-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "5751c503-cda9-40f3-9825-2ffff18e1bec-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码输入错误'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "12"}], "start": 1691408664337, "stop": 1691408664432, "uuid": "5f9f7a08-ee5e-4e3c-939e-174399836900", "historyId": "d634f4f33827f3335e870f7eb298cbf3", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-密码输入错误", "status": "passed", "attachments": [{"name": "log", "source": "2e94b204-f0ee-4f15-bb40-b6256d5384ac-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "5751c503-cda9-40f3-9825-2ffff18e1bec-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码输入错误'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "12"}], "start": 1691408664337, "stop": 1691408664432, "uuid": "5f9f7a08-ee5e-4e3c-939e-174399836900", "historyId": "d634f4f33827f3335e870f7eb298cbf3", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "e733e8bf-e717-4127-8ec7-7cf4318d1fea-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "27d683c2-54e9-41fc-b28f-afe4316c0e95-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "interface", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '不知道'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_sentence", "value": "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'"}, {"name": "update_key", "value": "'ids'"}, {"name": "i", "value": "18"}], "start": 1691408670439, "stop": 1691408670532, "uuid": "d31ee03d-5d19-4251-a186-310baa97e04f", "historyId": "4bea7f4ef1c70b8a784f2b8e23bf02eb", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码删除维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "e733e8bf-e717-4127-8ec7-7cf4318d1fea-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "27d683c2-54e9-41fc-b28f-afe4316c0e95-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'维度管理'"}, {"name": "interface", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '不知道'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_sentence", "value": "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'"}, {"name": "update_key", "value": "'ids'"}, {"name": "i", "value": "18"}], "start": 1691408670439, "stop": 1691408670532, "uuid": "d31ee03d-5d19-4251-a186-310baa97e04f", "historyId": "4bea7f4ef1c70b8a784f2b8e23bf02eb", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码删除维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "b6c31ce2-62a2-4937-9eb6-7154472a8602", "befores": [{"name": "title", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "b6c31ce2-62a2-4937-9eb6-7154472a8602", "befores": [{"name": "title", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'} {'state': False, 'message': '账号或密码错误'} None None None 6
Excel中写的数据 认证接口 登录系统 反向用例-用户名为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'} {'state': False, 'message': '账号或密码错误'} None None None 6
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516439834640384'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516439834640384"}
断言成功
Excel中写的数据 维度管理 添加维度 正向用例 高 post http://120.46.172.186:8080/api/demension/v1/dem/addDem application/json {'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'} {'state': True, 'message': '添加维度成功!'} delete DELETE FROM uc_demension WHERE `CODE_`="tom"; None 14
Excel中写的数据 维度管理 添加维度 正向用例 高 post http://120.46.172.186:8080/api/demension/v1/dem/addDem application/json {'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'} {'state': True, 'message': '添加维度成功!'} delete DELETE FROM uc_demension WHERE `CODE_`="tom"; None 14
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '添加维度成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"添加维度成功!","value":""}
断言成功
{"name": "反向用例-用户名为空", "status": "passed", "attachments": [{"name": "log", "source": "84cb0ce7-f941-4743-9632-ac9b6593213a-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "f4bb763e-6e5d-4b3f-b15b-ca20248911d5-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "3"}], "start": 1691408663382, "stop": 1691408663439, "uuid": "e185c60e-d38d-4619-9606-563b004407fd", "historyId": "c5645e76e92863278eb36a41387f30bf", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-用户名为空", "status": "passed", "attachments": [{"name": "log", "source": "84cb0ce7-f941-4743-9632-ac9b6593213a-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "f4bb763e-6e5d-4b3f-b15b-ca20248911d5-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "3"}], "start": 1691408663382, "stop": 1691408663439, "uuid": "e185c60e-d38d-4619-9606-563b004407fd", "historyId": "c5645e76e92863278eb36a41387f30bf", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "afe4b3bc-e1ec-4daf-a7a7-0e84bb598524", "befores": [{"name": "title", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "afe4b3bc-e1ec-4daf-a7a7-0e84bb598524", "befores": [{"name": "title", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "0157d75e-98a0-4083-8d56-020394b4cd80", "befores": [{"name": "i", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "0157d75e-98a0-4083-8d56-020394b4cd80", "befores": [{"name": "i", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "2b712f05-c12a-43ef-997d-2ef7220f37a0", "befores": [{"name": "mime", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "2b712f05-c12a-43ef-997d-2ef7220f37a0", "befores": [{"name": "mime", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': '2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 12
Excel中写的数据 认证接口 登录系统 反向用例-密码输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': '2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 12
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516442632241152'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516442632241152"}
断言成功
{"uuid": "dfc21348-ecbf-437d-aa3a-92eb093a79df", "befores": [{"name": "mime", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "dfc21348-ecbf-437d-aa3a-92eb093a79df", "befores": [{"name": "mime", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "f1461585-6f43-445f-aeb5-825a0270f472-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "bf825f38-4b1e-4a08-bc9e-8ee3b1316bfc-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "interface", "value": "'删除组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'text/plain'"}, {"name": "case_data", "value": "'rich'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "17"}], "start": 1691408670361, "stop": 1691408670423, "uuid": "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "historyId": "0d3e2f4af324edd6038bbf773981293d", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "删除组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "f1461585-6f43-445f-aeb5-825a0270f472-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "bf825f38-4b1e-4a08-bc9e-8ee3b1316bfc-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "interface", "value": "'删除组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'text/plain'"}, {"name": "case_data", "value": "'rich'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "17"}], "start": 1691408670361, "stop": 1691408670423, "uuid": "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "historyId": "0d3e2f4af324edd6038bbf773981293d", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "删除组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "1c6b60db-12b6-4a59-aff4-79156e199e95", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "1c6b60db-12b6-4a59-aff4-79156e199e95", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "cb65e954-304e-4ca4-b471-de41a7bc1701", "befores": [{"name": "level", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "cb65e954-304e-4ca4-b471-de41a7bc1701", "befores": [{"name": "level", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "99f4d4cc-bf42-4d5e-8414-87e6d5d789e0", "befores": [{"name": "module", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "99f4d4cc-bf42-4d5e-8414-87e6d5d789e0", "befores": [{"name": "module", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"name": "反向用例-用户名输入错误", "status": "passed", "attachments": [{"name": "log", "source": "bde2c064-39b6-430d-ae8e-c0743590efaf-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "4fc024da-5adb-420b-864a-58feafa834fa-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名输入错误'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'tom'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "7"}], "start": 1691408663783, "stop": 1691408663876, "uuid": "4e8cdbab-584f-4497-bd20-60d7f25446df", "historyId": "5ec1e2259c4ca803e07b6568628245a6", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-用户名输入错误", "status": "passed", "attachments": [{"name": "log", "source": "bde2c064-39b6-430d-ae8e-c0743590efaf-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "4fc024da-5adb-420b-864a-58feafa834fa-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名输入错误'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'tom'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "7"}], "start": 1691408663783, "stop": 1691408663876, "uuid": "4e8cdbab-584f-4497-bd20-60d7f25446df", "historyId": "5ec1e2259c4ca803e07b6568628245a6", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "b003fb41-6b35-4ed2-ae91-5b753c16caed", "befores": [{"name": "url", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "b003fb41-6b35-4ed2-ae91-5b753c16caed", "befores": [{"name": "url", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "3a67c387-2bd5-470d-afb7-543cfae3bd77", "befores": [{"name": "i", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "3a67c387-2bd5-470d-afb7-543cfae3bd77", "befores": [{"name": "i", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "8e05f64d-8875-408c-9e97-cd37b25b632e", "befores": [{"name": "mime", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "8e05f64d-8875-408c-9e97-cd37b25b632e", "befores": [{"name": "mime", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "27cedbe9-8dc4-44f2-9b28-15b7e2a46c21", "befores": [{"name": "mime", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "27cedbe9-8dc4-44f2-9b28-15b7e2a46c21", "befores": [{"name": "mime", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "f8f4520d-0fcb-4e50-bea2-20d6acca449b", "befores": [{"name": "title", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "f8f4520d-0fcb-4e50-bea2-20d6acca449b", "befores": [{"name": "title", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "6df2ffb0-94be-4da7-9563-8424ab7b89f2", "befores": [{"name": "mime", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "6df2ffb0-94be-4da7-9563-8424ab7b89f2", "befores": [{"name": "mime", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "8de28161-fd7f-4c29-88bb-645f8251900b", "befores": [{"name": "i", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "8de28161-fd7f-4c29-88bb-645f8251900b", "befores": [{"name": "i", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408667770, "stop": 1691408667770, "uuid": "4e5dcd78-1e85-432a-b13a-15a2adc88180", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408667770, "stop": 1691408667770, "uuid": "4e5dcd78-1e85-432a-b13a-15a2adc88180", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "1e99b570-c62d-4898-b1cb-ea825452ed41", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "1e99b570-c62d-4898-b1cb-ea825452ed41", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "a04168f9-dff2-4f8a-a9e2-327301804530", "befores": [{"name": "module", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663564}
{"uuid": "a04168f9-dff2-4f8a-a9e2-327301804530", "befores": [{"name": "module", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663564}
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "7ff0618c-05dc-4be7-851a-07f4e37611a5", "befores": [{"name": "level", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "7ff0618c-05dc-4be7-851a-07f4e37611a5", "befores": [{"name": "level", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"uuid": "49aa273f-2944-4af1-85dd-f80dcacbffd0", "befores": [{"name": "case_data", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "49aa273f-2944-4af1-85dd-f80dcacbffd0", "befores": [{"name": "case_data", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "56b0ca16-8f99-4361-a253-a3aba1dc0b21", "befores": [{"name": "url", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "56b0ca16-8f99-4361-a253-a3aba1dc0b21", "befores": [{"name": "url", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "8f5394eb-64ed-42ed-b0cc-d549b8ac14a3", "befores": [{"name": "i", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "8f5394eb-64ed-42ed-b0cc-d549b8ac14a3", "befores": [{"name": "i", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "af4de955-be3b-4122-ba54-680b158f9fea", "befores": [{"name": "level", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "af4de955-be3b-4122-ba54-680b158f9fea", "befores": [{"name": "level", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "ea05c968-2e13-49fd-940e-8e89400c6d35", "befores": [{"name": "level", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "ea05c968-2e13-49fd-940e-8e89400c6d35", "befores": [{"name": "level", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "ad1d12e7-b2b2-470b-a494-1bcf1e45bd72", "befores": [{"name": "i", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "ad1d12e7-b2b2-470b-a494-1bcf1e45bd72", "befores": [{"name": "i", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "02ad710c-76f2-4acc-b151-a10aed987a5c", "befores": [{"name": "interface", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "02ad710c-76f2-4acc-b151-a10aed987a5c", "befores": [{"name": "interface", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "3ac6d0e1-386c-4730-af0c-c667203fd917", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "3ac6d0e1-386c-4730-af0c-c667203fd917", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "31a91f22-d904-438a-a7a1-d1f3de74569f", "befores": [{"name": "title", "status": "passed", "start": 1691408664023, "stop": 1691408664024}], "start": 1691408664023, "stop": 1691408664103}
{"uuid": "31a91f22-d904-438a-a7a1-d1f3de74569f", "befores": [{"name": "title", "status": "passed", "start": 1691408664023, "stop": 1691408664024}], "start": 1691408664023, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "d27c5c57-9c60-4f2d-b737-0b37dcda0509", "befores": [{"name": "title", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "d27c5c57-9c60-4f2d-b737-0b37dcda0509", "befores": [{"name": "title", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "c7362573-f1c7-411b-af26-4fe04916a909", "befores": [{"name": "method", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "c7362573-f1c7-411b-af26-4fe04916a909", "befores": [{"name": "method", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "b5a83ba3-54ed-4e13-a137-dbf58cdd1c84", "befores": [{"name": "module", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "b5a83ba3-54ed-4e13-a137-dbf58cdd1c84", "befores": [{"name": "module", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "9b3b49bb-dc7f-4e45-95c5-82174de6310b", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "9b3b49bb-dc7f-4e45-95c5-82174de6310b", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "38406a09-2a52-480f-96c9-f0c7f76f79bd", "befores": [{"name": "level", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "38406a09-2a52-480f-96c9-f0c7f76f79bd", "befores": [{"name": "level", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/orgParam/saveOrgParams?orgCode=rich HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/orgParam/saveOrgParams?orgCode=rich HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "b560fbea-8638-4d19-a344-70969db20003", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "b560fbea-8638-4d19-a344-70969db20003", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "fa9e7d54-5d01-4b7e-8c50-f920377c1683", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "fa9e7d54-5d01-4b7e-8c50-f920377c1683", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "bd39cb38-44f8-40c2-a6a7-64fc69e93c4b", "befores": [{"name": "url", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "bd39cb38-44f8-40c2-a6a7-64fc69e93c4b", "befores": [{"name": "url", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "7a9d65f5-387e-4c29-9c4b-2ee5e74cdb36", "befores": [{"name": "method", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "7a9d65f5-387e-4c29-9c4b-2ee5e74cdb36", "befores": [{"name": "method", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "9d0d66f0-26b4-44f1-8b08-e9eeb0fe25de", "befores": [{"name": "i", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "9d0d66f0-26b4-44f1-8b08-e9eeb0fe25de", "befores": [{"name": "i", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "64bdfc6a-496f-406b-a73b-3f124fd6d3f2", "befores": [{"name": "method", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "64bdfc6a-496f-406b-a73b-3f124fd6d3f2", "befores": [{"name": "method", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "6087eb97-ddb4-45ac-9b4d-d68f183f60f2", "befores": [{"name": "mime", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "6087eb97-ddb4-45ac-9b4d-d68f183f60f2", "befores": [{"name": "mime", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "9384ebc9-4f31-44fb-aabc-ee90283bd232", "befores": [{"name": "level", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "9384ebc9-4f31-44fb-aabc-ee90283bd232", "befores": [{"name": "level", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "7d5d17d6-5c25-4bc8-83c2-6038962c0521", "befores": [{"name": "interface", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "7d5d17d6-5c25-4bc8-83c2-6038962c0521", "befores": [{"name": "interface", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "bdaec896-74f3-4add-b268-b3f4d7f716cf", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "bdaec896-74f3-4add-b268-b3f4d7f716cf", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "3a76dd3a-21e3-4386-870b-0553c4a3ea18", "befores": [{"name": "module", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "3a76dd3a-21e3-4386-870b-0553c4a3ea18", "befores": [{"name": "module", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "d81d3bb4-51b9-4bdd-aa41-033a516bf9d1", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "d81d3bb4-51b9-4bdd-aa41-033a516bf9d1", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "d714d61c-097a-4d4f-b192-4f23b4e1eefd", "befores": [{"name": "title", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664228}
{"uuid": "d714d61c-097a-4d4f-b192-4f23b4e1eefd", "befores": [{"name": "title", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664228}
\ No newline at end of file
{"uuid": "18010af3-e5d4-42b2-930b-99efb601fd58", "befores": [{"name": "method", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "18010af3-e5d4-42b2-930b-99efb601fd58", "befores": [{"name": "method", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "ad74bda1-24c7-41d0-8f11-dfe02bb77917", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "ad74bda1-24c7-41d0-8f11-dfe02bb77917", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "e69fdfd7-33bb-4657-ad65-5fb7e4cb2702", "befores": [{"name": "method", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "e69fdfd7-33bb-4657-ad65-5fb7e4cb2702", "befores": [{"name": "method", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "d85e79e5-cc76-410c-9f9d-958a20011ba9", "befores": [{"name": "i", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
{"uuid": "d85e79e5-cc76-410c-9f9d-958a20011ba9", "befores": [{"name": "i", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
\ No newline at end of file
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "473f33ba-0e11-4a7e-8c41-03f1b7c29181", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "473f33ba-0e11-4a7e-8c41-03f1b7c29181", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "cfc77091-15c5-4db0-8307-58b7de4abdea", "befores": [{"name": "mime", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "cfc77091-15c5-4db0-8307-58b7de4abdea", "befores": [{"name": "mime", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "5ace3994-d903-4719-890f-41f72e9d9d51", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "5ace3994-d903-4719-890f-41f72e9d9d51", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "5926349f-deb9-4610-8336-a44c1e3a5968", "befores": [{"name": "interface", "status": "passed", "start": 1691408664023, "stop": 1691408664023}], "start": 1691408664023, "stop": 1691408664118}
{"uuid": "5926349f-deb9-4610-8336-a44c1e3a5968", "befores": [{"name": "interface", "status": "passed", "start": 1691408664023, "stop": 1691408664023}], "start": 1691408664023, "stop": 1691408664118}
\ No newline at end of file
{"uuid": "c314f58c-3752-4029-b75a-977ec295e517", "befores": [{"name": "module", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "c314f58c-3752-4029-b75a-977ec295e517", "befores": [{"name": "module", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "650a4ab4-42a4-4052-8adb-5f14bef1635d", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "650a4ab4-42a4-4052-8adb-5f14bef1635d", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "8c44c3ee-350e-49ae-be8d-4bc99845ac35", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "8c44c3ee-350e-49ae-be8d-4bc99845ac35", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
(('1688516466208423936',),)
(('1688516466208423936',),)
Excel中写的数据 组织管理 添加组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/addOrg application/json {'code': 'rich', 'demId': '1688516466208423936', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'} {'state': True, 'message': '添加组织成功!'} delete|select {'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`="tom";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`="rich";'} demId 15
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '添加组织成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"添加组织成功!","value":""}
断言成功
{"uuid": "85754281-33c2-4f0e-8eed-baecd67d2ab0", "befores": [{"name": "title", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "85754281-33c2-4f0e-8eed-baecd67d2ab0", "befores": [{"name": "title", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
Excel中写的数据 组织管理 保存组织参数 正向用例 高 post http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams application/json|query {'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]} {'state': True, 'message': '保存组织参数成功!'} None None None 16
Excel中写的数据 组织管理 保存组织参数 正向用例 高 post http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams application/json|query {'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]} {'state': True, 'message': '保存组织参数成功!'} None None None 16
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '保存组织参数成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"保存组织参数成功!","value":""}
断言成功
{"uuid": "1bbaa3fb-d1f0-4abe-b09a-3753c3b1ead4", "befores": [{"name": "level", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "1bbaa3fb-d1f0-4abe-b09a-3753c3b1ead4", "befores": [{"name": "level", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "32fb156f-0740-4beb-9fbc-581fafffc964", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664432}
{"uuid": "32fb156f-0740-4beb-9fbc-581fafffc964", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664432}
\ No newline at end of file
{"uuid": "3ecb45f9-883f-47e9-a52b-a10a50e66405", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
{"uuid": "3ecb45f9-883f-47e9-a52b-a10a50e66405", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
\ No newline at end of file
{"uuid": "cb0ebe82-3c37-4945-acc6-c2e5e296c421", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "cb0ebe82-3c37-4945-acc6-c2e5e296c421", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "f3c5790c-bacc-4bc4-9962-c71c578185f1", "children": ["9d6f064a-1fc4-4391-8b85-b59973c77b09", "e185c60e-d38d-4619-9606-563b004407fd", "a9eefe44-15d6-4b33-8811-9454dedab92f", "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "1b683ec4-0afd-4753-9097-676855ebb309", "4e8cdbab-584f-4497-bd20-60d7f25446df", "44fec60d-ede0-4f5a-a760-24735151dc52", "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "59c0c553-f29b-4c55-8492-c649d82fa17f", "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "5f9f7a08-ee5e-4e3c-939e-174399836900", "1e3898c7-9027-4441-a934-03779390ae75", "53db9b89-3b2b-42f6-8882-6502140d79ac", "4c383baa-bcf7-44df-8200-252959d51942", "4e5dcd78-1e85-432a-b13a-15a2adc88180", "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "7cec9e85-8ca8-47c7-b459-18aac62696c4", "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "d31ee03d-5d19-4251-a186-310baa97e04f"], "befores": [{"name": "db_fix", "status": "passed", "start": 1691408662994, "stop": 1691408663199}], "afters": [{"name": "db_fix::0", "status": "passed", "start": 1691408670532, "stop": 1691408670532}], "start": 1691408662994, "stop": 1691408670532}
{"uuid": "f3c5790c-bacc-4bc4-9962-c71c578185f1", "children": ["9d6f064a-1fc4-4391-8b85-b59973c77b09", "e185c60e-d38d-4619-9606-563b004407fd", "a9eefe44-15d6-4b33-8811-9454dedab92f", "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "1b683ec4-0afd-4753-9097-676855ebb309", "4e8cdbab-584f-4497-bd20-60d7f25446df", "44fec60d-ede0-4f5a-a760-24735151dc52", "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "59c0c553-f29b-4c55-8492-c649d82fa17f", "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "5f9f7a08-ee5e-4e3c-939e-174399836900", "1e3898c7-9027-4441-a934-03779390ae75", "53db9b89-3b2b-42f6-8882-6502140d79ac", "4c383baa-bcf7-44df-8200-252959d51942", "4e5dcd78-1e85-432a-b13a-15a2adc88180", "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "7cec9e85-8ca8-47c7-b459-18aac62696c4", "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "d31ee03d-5d19-4251-a186-310baa97e04f"], "befores": [{"name": "db_fix", "status": "passed", "start": 1691408662994, "stop": 1691408663199}], "afters": [{"name": "db_fix::0", "status": "passed", "start": 1691408670532, "stop": 1691408670532}], "start": 1691408662994, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "6c1054a8-d3b3-4364-95c3-acd988a007b0", "befores": [{"name": "url", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "6c1054a8-d3b3-4364-95c3-acd988a007b0", "befores": [{"name": "url", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "89e61211-ea9e-4267-a128-e9ddf87ccc24", "befores": [{"name": "i", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "89e61211-ea9e-4267-a128-e9ddf87ccc24", "befores": [{"name": "i", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "84dbf185-8ef6-4246-825e-0479e6161c57", "befores": [{"name": "update_key", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "84dbf185-8ef6-4246-825e-0479e6161c57", "befores": [{"name": "update_key", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "67b652b6-c0a8-47c3-95fd-376e1ad04924", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "67b652b6-c0a8-47c3-95fd-376e1ad04924", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "5bf59c11-f9c9-49d8-b0a2-23f28434257c", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "5bf59c11-f9c9-49d8-b0a2-23f28434257c", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "e0bf5056-b867-49d3-9954-dd3c40243f99", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "e0bf5056-b867-49d3-9954-dd3c40243f99", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "991441a6-65d0-4eb0-bd9b-c421ecd04631", "befores": [{"name": "url", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "991441a6-65d0-4eb0-bd9b-c421ecd04631", "befores": [{"name": "url", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "7a1cd1ce-582a-4cf5-b5fb-39a73ed55d85", "befores": [{"name": "method", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "7a1cd1ce-582a-4cf5-b5fb-39a73ed55d85", "befores": [{"name": "method", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "03b9c73b-8bfd-4c50-aa91-4172248f322c", "befores": [{"name": "update_key", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
{"uuid": "03b9c73b-8bfd-4c50-aa91-4172248f322c", "befores": [{"name": "update_key", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
\ No newline at end of file
{"uuid": "e772becc-11f6-4694-8261-fbf483ad7d09", "befores": [{"name": "interface", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "e772becc-11f6-4694-8261-fbf483ad7d09", "befores": [{"name": "interface", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "0fcadfd7-fee3-4104-8478-5d8d47afac44", "befores": [{"name": "mime", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "0fcadfd7-fee3-4104-8478-5d8d47afac44", "befores": [{"name": "mime", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "75b78969-40aa-4716-83fc-774dd21b624c", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "75b78969-40aa-4716-83fc-774dd21b624c", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "a3ed3b6c-c9e2-4ac3-89d6-aed6be617773", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "a3ed3b6c-c9e2-4ac3-89d6-aed6be617773", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "33f85802-20f4-4e86-8c51-cd10f858c39b", "befores": [{"name": "title", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663564}
{"uuid": "33f85802-20f4-4e86-8c51-cd10f858c39b", "befores": [{"name": "title", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663564}
\ No newline at end of file
{"uuid": "2b404d79-675d-470a-9181-b125d5b1bb04", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408663990}
{"uuid": "2b404d79-675d-470a-9181-b125d5b1bb04", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408663990}
\ No newline at end of file
{"uuid": "585379a4-724a-4d2a-97c7-51b0a3252786", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "585379a4-724a-4d2a-97c7-51b0a3252786", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "0fbe12cf-633d-454e-a978-ba70cee5b2df", "children": ["9d6f064a-1fc4-4391-8b85-b59973c77b09", "e185c60e-d38d-4619-9606-563b004407fd", "a9eefe44-15d6-4b33-8811-9454dedab92f", "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "1b683ec4-0afd-4753-9097-676855ebb309", "4e8cdbab-584f-4497-bd20-60d7f25446df", "44fec60d-ede0-4f5a-a760-24735151dc52", "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "59c0c553-f29b-4c55-8492-c649d82fa17f", "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "5f9f7a08-ee5e-4e3c-939e-174399836900", "1e3898c7-9027-4441-a934-03779390ae75", "53db9b89-3b2b-42f6-8882-6502140d79ac", "4c383baa-bcf7-44df-8200-252959d51942", "4e5dcd78-1e85-432a-b13a-15a2adc88180", "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "7cec9e85-8ca8-47c7-b459-18aac62696c4", "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "d31ee03d-5d19-4251-a186-310baa97e04f"], "befores": [{"name": "my_rep", "status": "passed", "start": 1691408663199, "stop": 1691408663308}], "afters": [{"name": "my_rep::0", "status": "passed", "start": 1691408670532, "stop": 1691408670532}], "start": 1691408663199, "stop": 1691408670532}
{"uuid": "0fbe12cf-633d-454e-a978-ba70cee5b2df", "children": ["9d6f064a-1fc4-4391-8b85-b59973c77b09", "e185c60e-d38d-4619-9606-563b004407fd", "a9eefe44-15d6-4b33-8811-9454dedab92f", "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "1b683ec4-0afd-4753-9097-676855ebb309", "4e8cdbab-584f-4497-bd20-60d7f25446df", "44fec60d-ede0-4f5a-a760-24735151dc52", "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "59c0c553-f29b-4c55-8492-c649d82fa17f", "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "5f9f7a08-ee5e-4e3c-939e-174399836900", "1e3898c7-9027-4441-a934-03779390ae75", "53db9b89-3b2b-42f6-8882-6502140d79ac", "4c383baa-bcf7-44df-8200-252959d51942", "4e5dcd78-1e85-432a-b13a-15a2adc88180", "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "7cec9e85-8ca8-47c7-b459-18aac62696c4", "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "d31ee03d-5d19-4251-a186-310baa97e04f"], "befores": [{"name": "my_rep", "status": "passed", "start": 1691408663199, "stop": 1691408663308}], "afters": [{"name": "my_rep::0", "status": "passed", "start": 1691408670532, "stop": 1691408670532}], "start": 1691408663199, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "6120814a-a11b-4351-8121-8638911460fd", "befores": [{"name": "interface", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
{"uuid": "6120814a-a11b-4351-8121-8638911460fd", "befores": [{"name": "interface", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669868}
\ No newline at end of file
{"uuid": "9a528895-b94c-43bd-aad6-7d02842b2ba7", "befores": [{"name": "mime", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "9a528895-b94c-43bd-aad6-7d02842b2ba7", "befores": [{"name": "mime", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "bfa24ea7-6aaf-441e-92fe-e1c5b95b7dee", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "bfa24ea7-6aaf-441e-92fe-e1c5b95b7dee", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "c510a446-6247-40fb-a1f2-c86e0cb6dbeb", "befores": [{"name": "level", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "c510a446-6247-40fb-a1f2-c86e0cb6dbeb", "befores": [{"name": "level", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "2d38a704-1612-42a3-9c61-4b66c839af6d", "befores": [{"name": "module", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "2d38a704-1612-42a3-9c61-4b66c839af6d", "befores": [{"name": "module", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "ef9a6829-cd13-4121-a343-b85e4b4a8bbe", "befores": [{"name": "url", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "ef9a6829-cd13-4121-a343-b85e4b4a8bbe", "befores": [{"name": "url", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "26fed7ee-7ca2-4a81-a0cb-dca271d6892e", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "26fed7ee-7ca2-4a81-a0cb-dca271d6892e", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "15b20a1c-fd9b-448a-ad67-003a71fa36fc", "befores": [{"name": "title", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "15b20a1c-fd9b-448a-ad67-003a71fa36fc", "befores": [{"name": "title", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "62392c83-e33f-483e-86e4-1a7aedd6e133", "befores": [{"name": "title", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "62392c83-e33f-483e-86e4-1a7aedd6e133", "befores": [{"name": "title", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "cef25722-f2ad-4237-b7ca-253515400321", "befores": [{"name": "i", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "cef25722-f2ad-4237-b7ca-253515400321", "befores": [{"name": "i", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "b12f6b3b-3da0-41ac-9eba-b6a1a4379e22", "befores": [{"name": "title", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "b12f6b3b-3da0-41ac-9eba-b6a1a4379e22", "befores": [{"name": "title", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "366c2251-4169-40ea-ba1a-b14677ab4b3c", "befores": [{"name": "url", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "366c2251-4169-40ea-ba1a-b14677ab4b3c", "befores": [{"name": "url", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "83751c77-a996-4d8a-89fb-14fc28b80a95", "befores": [{"name": "module", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "83751c77-a996-4d8a-89fb-14fc28b80a95", "befores": [{"name": "module", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "aaef1321-843c-473e-ac11-9dc03ff28473", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "aaef1321-843c-473e-ac11-9dc03ff28473", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "eeed6a2d-9e1f-4ddf-9b8d-e23bbe3c968e", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "eeed6a2d-9e1f-4ddf-9b8d-e23bbe3c968e", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "abb048f8-8a6c-493b-b50f-2b13818c3594", "befores": [{"name": "level", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "abb048f8-8a6c-493b-b50f-2b13818c3594", "befores": [{"name": "level", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 9
Excel中写的数据 认证接口 登录系统 反向用例-密码过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 9
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516441294258176'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516441294258176"}
断言成功
{"uuid": "16c52bf6-141f-4cf1-b61b-a9cb63ca316b", "befores": [{"name": "interface", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664228}
{"uuid": "16c52bf6-141f-4cf1-b61b-a9cb63ca316b", "befores": [{"name": "interface", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664228}
\ No newline at end of file
{"uuid": "5d58f64f-8a55-4dbe-86d8-6db6cd90f557", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "5d58f64f-8a55-4dbe-86d8-6db6cd90f557", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "89a28387-f53e-4da2-ac7a-26859e565ce7", "befores": [{"name": "url", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "89a28387-f53e-4da2-ac7a-26859e565ce7", "befores": [{"name": "url", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "e8047203-a91c-4bbb-928b-ef9c62ec2cc9", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "e8047203-a91c-4bbb-928b-ef9c62ec2cc9", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "ce73e17b-d9eb-44b3-8697-1201e4019a74", "befores": [{"name": "url", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "ce73e17b-d9eb-44b3-8697-1201e4019a74", "befores": [{"name": "url", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "bcda448b-6a66-46fb-822b-e5fcf5341c8d", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "bcda448b-6a66-46fb-822b-e5fcf5341c8d", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "1e7e2532-e8ac-4206-a362-d683a70ba868", "befores": [{"name": "module", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667801}
{"uuid": "1e7e2532-e8ac-4206-a362-d683a70ba868", "befores": [{"name": "module", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667801}
\ No newline at end of file
{"uuid": "7537393e-4780-4397-83bb-7bcbc3e4ac8d", "befores": [{"name": "title", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667801}
{"uuid": "7537393e-4780-4397-83bb-7bcbc3e4ac8d", "befores": [{"name": "title", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667801}
\ No newline at end of file
{"uuid": "0ff6d243-2c05-4aa5-839c-8db5f1be847d", "befores": [{"name": "i", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "0ff6d243-2c05-4aa5-839c-8db5f1be847d", "befores": [{"name": "i", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "19c69191-9401-464d-8972-2c8dc211cf18", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "19c69191-9401-464d-8972-2c8dc211cf18", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "371695a0-2df2-49b4-bff5-dfa13682a0e1", "befores": [{"name": "i", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408663990}
{"uuid": "371695a0-2df2-49b4-bff5-dfa13682a0e1", "befores": [{"name": "i", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408663990}
\ No newline at end of file
{"uuid": "558d34f1-c191-44b7-9f61-bdb2d5bc9d18", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "558d34f1-c191-44b7-9f61-bdb2d5bc9d18", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "54838923-d6e2-4427-8172-2005ba59ed74", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "54838923-d6e2-4427-8172-2005ba59ed74", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "079fab3b-8c79-4009-ad2b-ad60247ca90a", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "079fab3b-8c79-4009-ad2b-ad60247ca90a", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "2f0f7d44-c93b-433e-ab78-25dd696a998d", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "2f0f7d44-c93b-433e-ab78-25dd696a998d", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "cc1c3111-a93b-4966-acca-ed907221c98c", "befores": [{"name": "title", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "cc1c3111-a93b-4966-acca-ed907221c98c", "befores": [{"name": "title", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "8a7bb449-93ce-4223-b67b-ac5e5e5a15cf", "befores": [{"name": "interface", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "8a7bb449-93ce-4223-b67b-ac5e5e5a15cf", "befores": [{"name": "interface", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "1436ca36-dd2d-4285-bdb9-103438703c92", "befores": [{"name": "method", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "1436ca36-dd2d-4285-bdb9-103438703c92", "befores": [{"name": "method", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "bf624194-d084-4946-8ec5-2efb6a4e6dd2", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "bf624194-d084-4946-8ec5-2efb6a4e6dd2", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "3a3bf5ff-ecaa-44dc-a30d-69be80a20052", "befores": [{"name": "interface", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "3a3bf5ff-ecaa-44dc-a30d-69be80a20052", "befores": [{"name": "interface", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "dc37d707-6822-406d-bdeb-0b2a106de848", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "dc37d707-6822-406d-bdeb-0b2a106de848", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "7c6ad337-df9a-4b61-af21-cf7654b909d9", "befores": [{"name": "i", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "7c6ad337-df9a-4b61-af21-cf7654b909d9", "befores": [{"name": "i", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "618d0ab4-a5b3-4337-a7e1-210cedfde145", "befores": [{"name": "update_key", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "618d0ab4-a5b3-4337-a7e1-210cedfde145", "befores": [{"name": "update_key", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "1220da33-ec7a-4bce-8943-c0bd6a78b30d", "befores": [{"name": "url", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "1220da33-ec7a-4bce-8943-c0bd6a78b30d", "befores": [{"name": "url", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "b87999b1-36bb-4a45-87d0-e650bab76152", "befores": [{"name": "module", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "b87999b1-36bb-4a45-87d0-e650bab76152", "befores": [{"name": "module", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "6750387c-8b1f-4df0-97a7-0b8c31b48e6e", "befores": [{"name": "i", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "6750387c-8b1f-4df0-97a7-0b8c31b48e6e", "befores": [{"name": "i", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "aa7afb5d-0e50-4394-a60e-6b1269847add", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "aa7afb5d-0e50-4394-a60e-6b1269847add", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "6c82e72b-a921-49e3-a508-75a23b6aa708", "befores": [{"name": "level", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "6c82e72b-a921-49e3-a508-75a23b6aa708", "befores": [{"name": "level", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "f709ec9f-d0bc-4687-814e-9a239eb84679", "befores": [{"name": "level", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "f709ec9f-d0bc-4687-814e-9a239eb84679", "befores": [{"name": "level", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"uuid": "06fcd905-9962-41a6-b941-6609ca512527", "befores": [{"name": "url", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "06fcd905-9962-41a6-b941-6609ca512527", "befores": [{"name": "url", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"uuid": "5da9262f-a637-4a3a-8fa3-7cfa4b78859a", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "5da9262f-a637-4a3a-8fa3-7cfa4b78859a", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
D:\pythonProject1\homewoke\接口pytest框架\file_data
D:\pythonProject1\homewoke\接口pytest框架\file_data
<configparser.ConfigParser object at 0x00000267699218D0>
D:\pythonProject1\homewoke\接口pytest框架\file_data
<configparser.ConfigParser object at 0x0000026761F74490>
Excel中写的数据 认证接口 登录系统 正向用例 高 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'admin'} {'username': '超级管理员', 'account': 'admin'} None None None 2
****************************************************************************************************
服务器返回的数据 {'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0OTUwNjQsImlhdCI6MTY5MTQwODY2NH0._jxbb0Th61sAEKYgFIq-XIk6iFcFAP6kJ20dbgjMI62F9l7hnWR6cd7dyz5sziBL6LKgUh4kprm_182-OubZLg', 'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True, 'userAttrs': {'tenantId': '-1'}}
服务器返回的数据 {"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0OTUwNjQsImlhdCI6MTY5MTQwODY2NH0._jxbb0Th61sAEKYgFIq-XIk6iFcFAP6kJ20dbgjMI62F9l7hnWR6cd7dyz5sziBL6LKgUh4kprm_182-OubZLg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
断言成功
{"uuid": "0c8bb1c6-40e2-410d-8a6f-88a01595147e", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "0c8bb1c6-40e2-410d-8a6f-88a01595147e", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "b8fb38dd-8f91-4088-b00e-3d13a8b7ddcc", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "b8fb38dd-8f91-4088-b00e-3d13a8b7ddcc", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
DEBUG--2023-08-07 19:44:29--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:29--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/demension/v1/dem/addDem HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "fc64db61-8cdc-4897-9afc-11b2f007af29", "befores": [{"name": "title", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "fc64db61-8cdc-4897-9afc-11b2f007af29", "befores": [{"name": "title", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
Excel中写的数据 组织管理 删除组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/deleteOrg text/plain rich {'state': True, 'message': '删除组织成功!'} None None None 17
Excel中写的数据 组织管理 删除组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/deleteOrg text/plain rich {'state': True, 'message': '删除组织成功!'} None None None 17
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '删除组织成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"删除组织成功!","value":""}
断言成功
{"uuid": "e7f139df-9123-4b05-8d80-f04a20e85b69", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
{"uuid": "e7f139df-9123-4b05-8d80-f04a20e85b69", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663767}
\ No newline at end of file
{"uuid": "33d53d2e-1b8d-4779-8027-c7290f11e8d4", "befores": [{"name": "method", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "33d53d2e-1b8d-4779-8027-c7290f11e8d4", "befores": [{"name": "method", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "ee62f55e-889d-433f-9361-deb6a90c85d1", "befores": [{"name": "title", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "ee62f55e-889d-433f-9361-deb6a90c85d1", "befores": [{"name": "title", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "71a037a9-2fe2-49df-9c1c-1468a8b88458-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "84d10432-ede4-475e-bcaa-f3cd0f01f6e7-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "interface", "value": "'保存组织参数'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'application/json|query'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "16"}], "start": 1691408670267, "stop": 1691408670330, "uuid": "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "historyId": "38a9d8efb55e428ad14d577834feffc2", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "保存组织参数"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "71a037a9-2fe2-49df-9c1c-1468a8b88458-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "84d10432-ede4-475e-bcaa-f3cd0f01f6e7-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "interface", "value": "'保存组织参数'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'application/json|query'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "16"}], "start": 1691408670267, "stop": 1691408670330, "uuid": "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "historyId": "38a9d8efb55e428ad14d577834feffc2", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "保存组织参数"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"name": "反向用例-用户名过短", "status": "passed", "attachments": [{"name": "log", "source": "8d78b355-335c-48d1-97f7-ffdd51b7a1e5-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "da83a9b7-7a15-4929-a348-83dd0ba21a81-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'a'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "5"}], "start": 1691408663564, "stop": 1691408663658, "uuid": "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "historyId": "bd0f4c705255cb52910d9996996befe4", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-用户名过短", "status": "passed", "attachments": [{"name": "log", "source": "8d78b355-335c-48d1-97f7-ffdd51b7a1e5-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "da83a9b7-7a15-4929-a348-83dd0ba21a81-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'a'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "5"}], "start": 1691408663564, "stop": 1691408663658, "uuid": "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "historyId": "bd0f4c705255cb52910d9996996befe4", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "6e0cbbf2-a2c3-4c88-8a57-b1bf78286e0c", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "6e0cbbf2-a2c3-4c88-8a57-b1bf78286e0c", "befores": [{"name": "update_key", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "439b0938-c932-41fa-be05-7156029ab714", "befores": [{"name": "method", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "439b0938-c932-41fa-be05-7156029ab714", "befores": [{"name": "method", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "e6085c2b-7215-42cd-8abb-6cb2fa1e2bff", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "e6085c2b-7215-42cd-8abb-6cb2fa1e2bff", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "01005f06-9fc7-4bca-b899-7dcba28860ef", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "01005f06-9fc7-4bca-b899-7dcba28860ef", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "bbe1d689-4d0f-4ed9-a476-a8fa24226c67", "befores": [{"name": "interface", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663564}
{"uuid": "bbe1d689-4d0f-4ed9-a476-a8fa24226c67", "befores": [{"name": "interface", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663564}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408666736, "stop": 1691408666736, "uuid": "4c383baa-bcf7-44df-8200-252959d51942", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408666736, "stop": 1691408666736, "uuid": "4c383baa-bcf7-44df-8200-252959d51942", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "aeffd1cb-f8cb-4e65-bd06-176916ec3c8f", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "aeffd1cb-f8cb-4e65-bd06-176916ec3c8f", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "13f3eea3-0379-448a-8575-8c7315b4ba71", "befores": [{"name": "method", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "13f3eea3-0379-448a-8575-8c7315b4ba71", "befores": [{"name": "method", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "cee29bfd-e899-49ea-9ce1-352cb9e68e26", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "cee29bfd-e899-49ea-9ce1-352cb9e68e26", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "749c1608-b69a-4b82-9bef-1e516b09f822", "befores": [{"name": "url", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "749c1608-b69a-4b82-9bef-1e516b09f822", "befores": [{"name": "url", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "b4a22da1-3f2b-4f4d-9a62-6ad88dcae0b3", "befores": [{"name": "title", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "b4a22da1-3f2b-4f4d-9a62-6ad88dcae0b3", "befores": [{"name": "title", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "060dc026-5fb7-4b9b-a1e0-a4e11e781192-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "bde69ea0-1268-4c6f-b06c-7fb412eebdb3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "2"}], "start": 1691408663308, "stop": 1691408663371, "uuid": "9d6f064a-1fc4-4391-8b85-b59973c77b09", "historyId": "613cddee6f6a9c7ba120046fb3ac0dbe", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "060dc026-5fb7-4b9b-a1e0-a4e11e781192-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "bde69ea0-1268-4c6f-b06c-7fb412eebdb3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "2"}], "start": 1691408663308, "stop": 1691408663371, "uuid": "9d6f064a-1fc4-4391-8b85-b59973c77b09", "historyId": "613cddee6f6a9c7ba120046fb3ac0dbe", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "4e95e3cc-c65e-4718-b812-f0d6a3143915", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "4e95e3cc-c65e-4718-b812-f0d6a3143915", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "393680ba-e806-4fdf-a6b1-50943455f388", "befores": [{"name": "level", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "393680ba-e806-4fdf-a6b1-50943455f388", "befores": [{"name": "level", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "7994ac5a-2ecb-4681-b05b-c239e80973e2", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "7994ac5a-2ecb-4681-b05b-c239e80973e2", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "f474d7c8-8f62-490f-b17e-a40a3ee381a5", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "f474d7c8-8f62-490f-b17e-a40a3ee381a5", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "863707de-f0b7-455b-b6ab-a04d0c11757b", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "863707de-f0b7-455b-b6ab-a04d0c11757b", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "d3c44308-3cf1-4ca6-970f-3c79487dc40c", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
{"uuid": "d3c44308-3cf1-4ca6-970f-3c79487dc40c", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663382}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408669853, "stop": 1691408669853, "uuid": "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408669853, "stop": 1691408669853, "uuid": "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"name": "反向用例-密码过长", "status": "passed", "attachments": [{"name": "log", "source": "7ce87ba0-b344-410d-ab27-d72b8fd5b274-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "a645c474-2db7-4873-a23d-b93f4b26851c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "9"}], "start": 1691408664025, "stop": 1691408664103, "uuid": "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "historyId": "aa71e62268fb93f89b8b143b1ef298ac", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-密码过长", "status": "passed", "attachments": [{"name": "log", "source": "7ce87ba0-b344-410d-ab27-d72b8fd5b274-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "a645c474-2db7-4873-a23d-b93f4b26851c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "9"}], "start": 1691408664025, "stop": 1691408664103, "uuid": "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "historyId": "aa71e62268fb93f89b8b143b1ef298ac", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "c3feed8a-79d4-4923-9c81-9564c9aecea4", "befores": [{"name": "level", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "c3feed8a-79d4-4923-9c81-9564c9aecea4", "befores": [{"name": "level", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "26f90018-dcce-48f3-be80-e405ffc26c40", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
{"uuid": "26f90018-dcce-48f3-be80-e405ffc26c40", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664118, "stop": 1691408664118}], "start": 1691408664118, "stop": 1691408664212}
\ No newline at end of file
{"uuid": "96cf652a-05bb-40f0-a313-429c2b21eb69", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "96cf652a-05bb-40f0-a313-429c2b21eb69", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "ef15e7b3-8f5a-4c6a-8fb6-dee493f3a40c", "befores": [{"name": "mime", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "ef15e7b3-8f5a-4c6a-8fb6-dee493f3a40c", "befores": [{"name": "mime", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "c84866d4-a477-4398-8918-e5da8d37e54e", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "c84866d4-a477-4398-8918-e5da8d37e54e", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "05c6ab58-57c0-429d-a16c-7e08e76d1b4e", "befores": [{"name": "i", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664432}
{"uuid": "05c6ab58-57c0-429d-a16c-7e08e76d1b4e", "befores": [{"name": "i", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664432}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "e94bea43-6d2a-415f-b49e-75bade130687-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "845236b6-9d89-41cf-a835-1682f44b4495-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "interface", "value": "'添加组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'delete|select'"}, {"name": "sql_sentence", "value": "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}"}, {"name": "update_key", "value": "'demId'"}, {"name": "i", "value": "15"}], "start": 1691408670076, "stop": 1691408670251, "uuid": "7cec9e85-8ca8-47c7-b459-18aac62696c4", "historyId": "5c60420a1cad41f75e3a5cd26ac36a70", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "e94bea43-6d2a-415f-b49e-75bade130687-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "845236b6-9d89-41cf-a835-1682f44b4495-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'组织管理'"}, {"name": "interface", "value": "'添加组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'delete|select'"}, {"name": "sql_sentence", "value": "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}"}, {"name": "update_key", "value": "'demId'"}, {"name": "i", "value": "15"}], "start": 1691408670076, "stop": 1691408670251, "uuid": "7cec9e85-8ca8-47c7-b459-18aac62696c4", "historyId": "5c60420a1cad41f75e3a5cd26ac36a70", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "87f1f09d-fa91-4022-8ec8-391fc9646bd3", "befores": [{"name": "i", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "87f1f09d-fa91-4022-8ec8-391fc9646bd3", "befores": [{"name": "i", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "0bf2850f-9c9a-4528-bcdd-636150968bfc", "befores": [{"name": "mime", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "0bf2850f-9c9a-4528-bcdd-636150968bfc", "befores": [{"name": "mime", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'a'} {'state': False, 'message': '账号或密码错误'} None None None 5
Excel中写的数据 认证接口 登录系统 反向用例-用户名过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'a'} {'state': False, 'message': '账号或密码错误'} None None None 5
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516439390044160'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516439390044160"}
断言成功
{"uuid": "d2aea148-a654-4df8-9f1e-c232d68a7a5f", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "d2aea148-a654-4df8-9f1e-c232d68a7a5f", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408668803, "stop": 1691408668803, "uuid": "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408668803, "stop": 1691408668803, "uuid": "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "10979b73-e96a-4eee-b250-96849eeb90a5", "befores": [{"name": "level", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "10979b73-e96a-4eee-b250-96849eeb90a5", "befores": [{"name": "level", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "720e2a60-6000-4342-a09a-1cf68fd55a05", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "720e2a60-6000-4342-a09a-1cf68fd55a05", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "c61760e3-05ae-4e85-957a-2ebbd3c03d84", "befores": [{"name": "mime", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "c61760e3-05ae-4e85-957a-2ebbd3c03d84", "befores": [{"name": "mime", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "84029976-64cb-470d-a804-981e0c47d31d", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
{"uuid": "84029976-64cb-470d-a804-981e0c47d31d", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408670439, "stop": 1691408670439}], "start": 1691408670439, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "fb84f8bc-6f01-4ae6-bb33-daf024090ef5", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
{"uuid": "fb84f8bc-6f01-4ae6-bb33-daf024090ef5", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408663783, "stop": 1691408663783}], "start": 1691408663783, "stop": 1691408663876}
\ No newline at end of file
{"uuid": "3f4eff2e-5781-44fa-972b-301d68816b89", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
{"uuid": "3f4eff2e-5781-44fa-972b-301d68816b89", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408669853, "stop": 1691408669853}], "start": 1691408669853, "stop": 1691408669853}
\ No newline at end of file
{"uuid": "05f1916d-20cd-4b7e-b6d8-32e5feffee84", "befores": [{"name": "mime", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "05f1916d-20cd-4b7e-b6d8-32e5feffee84", "befores": [{"name": "mime", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
{"uuid": "3d4b606d-836b-4d21-b1f3-9b3f56e35a8a", "befores": [{"name": "case_data", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "3d4b606d-836b-4d21-b1f3-9b3f56e35a8a", "befores": [{"name": "case_data", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "93d60b8d-e8fe-489d-be36-351b6cbb1a26", "befores": [{"name": "i", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "93d60b8d-e8fe-489d-be36-351b6cbb1a26", "befores": [{"name": "i", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "f7c464f1-30c1-48bd-970f-fdf48bf332ce", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "f7c464f1-30c1-48bd-970f-fdf48bf332ce", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "b449e729-8c85-4536-b4b0-cdf1f3dc8118", "befores": [{"name": "method", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "b449e729-8c85-4536-b4b0-cdf1f3dc8118", "befores": [{"name": "method", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "21a67283-09b4-4d13-9dd4-e0e3af49dffc", "befores": [{"name": "url", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "21a67283-09b4-4d13-9dd4-e0e3af49dffc", "befores": [{"name": "url", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "46eae428-8f63-4889-b1fe-429094b0f883", "befores": [{"name": "module", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663783}
{"uuid": "46eae428-8f63-4889-b1fe-429094b0f883", "befores": [{"name": "module", "status": "passed", "start": 1691408663673, "stop": 1691408663673}], "start": 1691408663673, "stop": 1691408663783}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': '▂▃▄▅▆▇█', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 11
Excel中写的数据 认证接口 登录系统 反向用例-密码为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': '▂▃▄▅▆▇█', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 11
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516442196033536'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516442196033536"}
断言成功
{"uuid": "5420970f-6ffa-4a5d-9420-55f0e411d6ed", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "5420970f-6ffa-4a5d-9420-55f0e411d6ed", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "411117dd-7ebc-418d-94e7-475f0ce27fcb", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
{"uuid": "411117dd-7ebc-418d-94e7-475f0ce27fcb", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408668803, "stop": 1691408668803}], "start": 1691408668803, "stop": 1691408668834}
\ No newline at end of file
{"uuid": "181e1d52-42eb-4c1e-ab8c-491bfeb116d0", "befores": [{"name": "interface", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "181e1d52-42eb-4c1e-ab8c-491bfeb116d0", "befores": [{"name": "interface", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "1e96e6ec-49c9-439e-a7c7-e536e713a714", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "1e96e6ec-49c9-439e-a7c7-e536e713a714", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
{"uuid": "30e67c08-bf45-4c88-b021-68b9c81f2ad8", "befores": [{"name": "interface", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "30e67c08-bf45-4c88-b021-68b9c81f2ad8", "befores": [{"name": "interface", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "DELETE /api/demension/v1/dem/deleteDemByIds?ids=1688516466208423936 HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "DELETE /api/demension/v1/dem/deleteDemByIds?ids=1688516466208423936 HTTP/1.1" 200 None
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'M', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 10
Excel中写的数据 认证接口 登录系统 反向用例-密码过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'M', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 10
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516441713688576'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516441713688576"}
断言成功
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/addOrg HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/addOrg HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "b55af075-345b-413c-a46a-9eb5cd8178ac", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
{"uuid": "b55af075-345b-413c-a46a-9eb5cd8178ac", "befores": [{"name": "case_data", "status": "passed", "start": 1691408670267, "stop": 1691408670267}], "start": 1691408670267, "stop": 1691408670345}
\ No newline at end of file
{"uuid": "91dc04a2-aa8c-4a2c-a68f-3f570530972b", "befores": [{"name": "interface", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
{"uuid": "91dc04a2-aa8c-4a2c-a68f-3f570530972b", "befores": [{"name": "interface", "status": "passed", "start": 1691408663564, "stop": 1691408663564}], "start": 1691408663564, "stop": 1691408663658}
\ No newline at end of file
{"uuid": "564fc5d3-c5be-42b1-88ff-15467b9c4509", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "564fc5d3-c5be-42b1-88ff-15467b9c4509", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "83aab3a8-1030-4d10-bed4-8ef67920f169", "befores": [{"name": "i", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
{"uuid": "83aab3a8-1030-4d10-bed4-8ef67920f169", "befores": [{"name": "i", "status": "passed", "start": 1691408664457, "stop": 1691408664457}], "start": 1691408664457, "stop": 1691408664690}
\ No newline at end of file
{"uuid": "e1405764-6642-4814-a393-919d39217856", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "e1405764-6642-4814-a393-919d39217856", "befores": [{"name": "case_data", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"uuid": "86cf7436-863d-4ea0-b061-949698c374b8", "befores": [{"name": "update_key", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
{"uuid": "86cf7436-863d-4ea0-b061-949698c374b8", "befores": [{"name": "update_key", "status": "passed", "start": 1691408666736, "stop": 1691408666736}], "start": 1691408666736, "stop": 1691408666751}
\ No newline at end of file
{"uuid": "6adcfb58-438e-44ef-9670-562c2b8a4134", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "6adcfb58-438e-44ef-9670-562c2b8a4134", "befores": [{"name": "case_data", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "b8d4c759-08fb-492f-a2e1-75ed9589f6fd", "befores": [{"name": "mime", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
{"uuid": "b8d4c759-08fb-492f-a2e1-75ed9589f6fd", "befores": [{"name": "mime", "status": "passed", "start": 1691408663455, "stop": 1691408663455}], "start": 1691408663455, "stop": 1691408663548}
\ No newline at end of file
{"uuid": "4b9152a0-d6da-463d-955e-33a7fd43bae4", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
{"uuid": "4b9152a0-d6da-463d-955e-33a7fd43bae4", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663892, "stop": 1691408663892}], "start": 1691408663892, "stop": 1691408664005}
\ No newline at end of file
{"uuid": "e00c19cd-c61e-47a2-b32c-8259ce6e59aa", "befores": [{"name": "case_data", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
{"uuid": "e00c19cd-c61e-47a2-b32c-8259ce6e59aa", "befores": [{"name": "case_data", "status": "passed", "start": 1691408669868, "stop": 1691408669868}], "start": 1691408669868, "stop": 1691408670057}
\ No newline at end of file
{"uuid": "f8287c6c-a628-4f0b-9f82-e974be831970", "befores": [{"name": "mime", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
{"uuid": "f8287c6c-a628-4f0b-9f82-e974be831970", "befores": [{"name": "mime", "status": "passed", "start": 1691408667770, "stop": 1691408667770}], "start": 1691408667770, "stop": 1691408667785}
\ No newline at end of file
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/deleteOrg HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/deleteOrg HTTP/1.1" 200 None
\ No newline at end of file
{"uuid": "1dbe14fe-b897-4f84-bd9f-84278db61675", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
{"uuid": "1dbe14fe-b897-4f84-bd9f-84278db61675", "befores": [{"name": "sql_sentence", "status": "passed", "start": 1691408664228, "stop": 1691408664228}], "start": 1691408664228, "stop": 1691408664322}
\ No newline at end of file
{"name": "反向用例-密码为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "a8339206-86c3-4b15-b86d-57ab20af76d4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "e5e5570d-cc0f-471a-8119-a6d57eebc074-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "11"}], "start": 1691408664228, "stop": 1691408664322, "uuid": "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "historyId": "b68c369cc83a3cb720cd76ddc452200c", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-密码为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "a8339206-86c3-4b15-b86d-57ab20af76d4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "e5e5570d-cc0f-471a-8119-a6d57eebc074-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "11"}], "start": 1691408664228, "stop": 1691408664322, "uuid": "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "historyId": "b68c369cc83a3cb720cd76ddc452200c", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "a1160d18-6bb5-4fd7-9c5d-6feaecd46baa", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "a1160d18-6bb5-4fd7-9c5d-6feaecd46baa", "befores": [{"name": "update_key", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "40468e2b-dcc0-4b11-a4df-d4b2214a1be1", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
{"uuid": "40468e2b-dcc0-4b11-a4df-d4b2214a1be1", "befores": [{"name": "sql_type", "status": "passed", "start": 1691408663308, "stop": 1691408663308}], "start": 1691408663308, "stop": 1691408663371}
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名为空 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': ''} {'state': False, 'message': '账号或密码错误'} None None None 3
Excel中写的数据 认证接口 登录系统 反向用例-用户名为空 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': ''} {'state': False, 'message': '账号或密码错误'} None None None 3
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516438488268800'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516438488268800"}
断言成功
{"uuid": "729456b5-646f-429b-90e7-39171de04550", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
{"uuid": "729456b5-646f-429b-90e7-39171de04550", "befores": [{"name": "update_key", "status": "passed", "start": 1691408664025, "stop": 1691408664025}], "start": 1691408664025, "stop": 1691408664103}
\ No newline at end of file
{"uuid": "f2f9902c-4dbd-48cc-a9a2-60e88a582677", "befores": [{"name": "method", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
{"uuid": "f2f9902c-4dbd-48cc-a9a2-60e88a582677", "befores": [{"name": "method", "status": "passed", "start": 1691408670076, "stop": 1691408670076}], "start": 1691408670076, "stop": 1691408670251}
\ No newline at end of file
{"name": "反向用例-密码为空", "status": "passed", "attachments": [{"name": "log", "source": "7cb76ca2-f847-44b3-ab7f-270361a6dde4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "45f7533d-26e3-4eb1-a1c1-82347521c185-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "8"}], "start": 1691408663892, "stop": 1691408663990, "uuid": "44fec60d-ede0-4f5a-a760-24735151dc52", "historyId": "c3a2ba259cb8235cc1f2d38c9092a529", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "反向用例-密码为空", "status": "passed", "attachments": [{"name": "log", "source": "7cb76ca2-f847-44b3-ab7f-270361a6dde4-attachment.txt", "type": "text/plain"}, {"name": "stdout", "source": "45f7533d-26e3-4eb1-a1c1-82347521c185-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://120.46.172.186:8080/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'password': '', 'username': 'admin'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账号或密码错误'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "8"}], "start": 1691408663892, "stop": 1691408663990, "uuid": "44fec60d-ede0-4f5a-a760-24735151dc52", "historyId": "c3a2ba259cb8235cc1f2d38c9092a529", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
{"uuid": "12158008-d0c0-4bae-a4b0-5035e2fae4e9", "children": ["9d6f064a-1fc4-4391-8b85-b59973c77b09", "e185c60e-d38d-4619-9606-563b004407fd", "a9eefe44-15d6-4b33-8811-9454dedab92f", "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "1b683ec4-0afd-4753-9097-676855ebb309", "4e8cdbab-584f-4497-bd20-60d7f25446df", "44fec60d-ede0-4f5a-a760-24735151dc52", "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "59c0c553-f29b-4c55-8492-c649d82fa17f", "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "5f9f7a08-ee5e-4e3c-939e-174399836900", "1e3898c7-9027-4441-a934-03779390ae75", "53db9b89-3b2b-42f6-8882-6502140d79ac", "4c383baa-bcf7-44df-8200-252959d51942", "4e5dcd78-1e85-432a-b13a-15a2adc88180", "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "7cec9e85-8ca8-47c7-b459-18aac62696c4", "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "d31ee03d-5d19-4251-a186-310baa97e04f"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1691408662849, "stop": 1691408662994}], "start": 1691408662849, "stop": 1691408670532}
{"uuid": "12158008-d0c0-4bae-a4b0-5035e2fae4e9", "children": ["9d6f064a-1fc4-4391-8b85-b59973c77b09", "e185c60e-d38d-4619-9606-563b004407fd", "a9eefe44-15d6-4b33-8811-9454dedab92f", "19a5eb13-b09a-410c-b9c9-47c6fb80cd6f", "1b683ec4-0afd-4753-9097-676855ebb309", "4e8cdbab-584f-4497-bd20-60d7f25446df", "44fec60d-ede0-4f5a-a760-24735151dc52", "ecd0f7b8-1df8-47f2-bb44-c0331c4f4c26", "59c0c553-f29b-4c55-8492-c649d82fa17f", "1604fb5b-d99a-49ab-8676-55b0c5b73be7", "5f9f7a08-ee5e-4e3c-939e-174399836900", "1e3898c7-9027-4441-a934-03779390ae75", "53db9b89-3b2b-42f6-8882-6502140d79ac", "4c383baa-bcf7-44df-8200-252959d51942", "4e5dcd78-1e85-432a-b13a-15a2adc88180", "d603c34f-a1d1-4502-8066-3ad4dc34f4b5", "c74fce28-1a31-48e3-8f18-40cf6e4cda90", "9c95e54a-b109-4c3f-b676-6cab4cf94e05", "7cec9e85-8ca8-47c7-b459-18aac62696c4", "d76a1b86-6ae2-4348-b70a-6aa2b36b8721", "46bbec2d-4c6f-47bb-8f9a-f0c2c842c9cb", "d31ee03d-5d19-4251-a186-310baa97e04f"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1691408662849, "stop": 1691408662994}], "start": 1691408662849, "stop": 1691408670532}
\ No newline at end of file
{"uuid": "9878c9ea-8af9-4e52-bb28-540589666c47", "befores": [{"name": "module", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
{"uuid": "9878c9ea-8af9-4e52-bb28-540589666c47", "befores": [{"name": "module", "status": "passed", "start": 1691408664337, "stop": 1691408664337}], "start": 1691408664337, "stop": 1691408664442}
\ No newline at end of file
{"uuid": "b2a64b35-6cd1-4494-bbf9-072e6cfbcd02", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
{"uuid": "b2a64b35-6cd1-4494-bbf9-072e6cfbcd02", "befores": [{"name": "expect_data", "status": "passed", "start": 1691408665703, "stop": 1691408665703}], "start": 1691408665703, "stop": 1691408665719}
\ No newline at end of file
{"uuid": "e1420703-ce6b-4403-a363-122a076dd9a8", "befores": [{"name": "module", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "e1420703-ce6b-4403-a363-122a076dd9a8", "befores": [{"name": "module", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"uuid": "acdde0b9-7732-4913-9f9e-72f6fe0305cd", "befores": [{"name": "title", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
{"uuid": "acdde0b9-7732-4913-9f9e-72f6fe0305cd", "befores": [{"name": "title", "status": "passed", "start": 1691408663382, "stop": 1691408663382}], "start": 1691408663382, "stop": 1691408663439}
\ No newline at end of file
{"uuid": "080084a3-233d-478a-8fe9-bad409f2e14a", "befores": [{"name": "level", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
{"uuid": "080084a3-233d-478a-8fe9-bad409f2e14a", "befores": [{"name": "level", "status": "passed", "start": 1691408670361, "stop": 1691408670361}], "start": 1691408670361, "stop": 1691408670423}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408665703, "stop": 1691408665703, "uuid": "53db9b89-3b2b-42f6-8882-6502140d79ac", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "TypeError: 'NoneType' object is not subscriptable", "trace": "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError"}, "parameters": [{"name": "module", "value": "'认证接口'"}, {"name": "interface", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://120.46.172.186:8080/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'message': '刷新token成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_sentence", "value": "None"}, {"name": "update_key", "value": "None"}, {"name": "i", "value": "13"}], "start": 1691408665703, "stop": 1691408665703, "uuid": "53db9b89-3b2b-42f6-8882-6502140d79ac", "historyId": "de4cb9c7f5a26a4d2bd94ac3d6541c37", "testCaseId": "0abeaba8f176b6785a0334bed7c1bdad", "fullName": "test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM系统"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "DESKTOP-4FFIKGU"}, {"name": "thread", "value": "9072-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_bpm"}]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Excel中写的数据 认证接口 登录系统 反向用例-密码为空 中 post http://120.46.172.186:8080/auth application/json {'password': '', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 8
Excel中写的数据 认证接口 登录系统 反向用例-密码为空 中 post http://120.46.172.186:8080/auth application/json {'password': '', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 8
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516440807718912'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516440807718912"}
断言成功
Excel中写的数据 认证接口 登录系统 反向用例-密码过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'M', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 10
Excel中写的数据 认证接口 登录系统 反向用例-密码过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'M', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 10
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516441713688576'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516441713688576"}
断言成功
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.address` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.automotive`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.automotive` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.bank`.
DEBUG--2023-08-07 19:44:22--Specified locale `en_US` is not available for provider `faker.providers.bank`. Locale reset to `en_GB` for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.barcode`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.barcode` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.color`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.color` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.company`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.company` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.credit_card`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.credit_card` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.currency`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.currency` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.date_time`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.date_time` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.emoji` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.file` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.geo`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.geo` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.internet`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.internet` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.isbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.job`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.job` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.lorem`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.lorem` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.misc`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.misc` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.passport`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.passport` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.person`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.person` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.phone_number`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.phone_number` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.profile` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.python` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.sbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:22--Looking for locale `en_US` in provider `faker.providers.ssn`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.ssn` has been localized to `en_US`.
DEBUG--2023-08-07 19:44:22--Provider `faker.providers.user_agent` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:44:23--Starting new HTTP connection (1): 120.46.172.186:8080
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 200 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/addOrg HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/addOrg HTTP/1.1" 200 None
\ No newline at end of file
Excel中写的数据 维度管理 添加维度 正向用例 高 post http://120.46.172.186:8080/api/demension/v1/dem/addDem application/json {'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'} {'state': True, 'message': '添加维度成功!'} delete DELETE FROM uc_demension WHERE `CODE_`="tom"; None 14
Excel中写的数据 维度管理 添加维度 正向用例 高 post http://120.46.172.186:8080/api/demension/v1/dem/addDem application/json {'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'} {'state': True, 'message': '添加维度成功!'} delete DELETE FROM uc_demension WHERE `CODE_`="tom"; None 14
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '添加维度成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"添加维度成功!","value":""}
断言成功
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
D:\pythonProject1\homewoke\接口pytest框架\file_data
D:\pythonProject1\homewoke\接口pytest框架\file_data
<configparser.ConfigParser object at 0x00000267699218D0>
D:\pythonProject1\homewoke\接口pytest框架\file_data
<configparser.ConfigParser object at 0x0000026761F74490>
Excel中写的数据 认证接口 登录系统 正向用例 高 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'admin'} {'username': '超级管理员', 'account': 'admin'} None None None 2
****************************************************************************************************
服务器返回的数据 {'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0OTUwNjQsImlhdCI6MTY5MTQwODY2NH0._jxbb0Th61sAEKYgFIq-XIk6iFcFAP6kJ20dbgjMI62F9l7hnWR6cd7dyz5sziBL6LKgUh4kprm_182-OubZLg', 'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True, 'userAttrs': {'tenantId': '-1'}}
服务器返回的数据 {"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0OTUwNjQsImlhdCI6MTY5MTQwODY2NH0._jxbb0Th61sAEKYgFIq-XIk6iFcFAP6kJ20dbgjMI62F9l7hnWR6cd7dyz5sziBL6LKgUh4kprm_182-OubZLg","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
断言成功
Excel中写的数据 认证接口 登录系统 反向用例-用户名输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'tom'} {'state': False, 'message': '账号或密码错误'} None None None 7
Excel中写的数据 认证接口 登录系统 反向用例-用户名输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'tom'} {'state': False, 'message': '账号或密码错误'} None None None 7
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516440308596736'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516440308596736"}
断言成功
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': '2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 12
Excel中写的数据 认证接口 登录系统 反向用例-密码输入错误 中 post http://120.46.172.186:8080/auth application/json {'password': '2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 12
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516442632241152'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516442632241152"}
断言成功
Excel中写的数据 认证接口 登录系统 反向用例-密码为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': '▂▃▄▅▆▇█', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 11
Excel中写的数据 认证接口 登录系统 反向用例-密码为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': '▂▃▄▅▆▇█', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 11
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516442196033536'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516442196033536"}
断言成功
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/deleteOrg HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/org/deleteOrg HTTP/1.1" 200 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
(('1688516466208423936',),)
(('1688516466208423936',),)
Excel中写的数据 组织管理 添加组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/addOrg application/json {'code': 'rich', 'demId': '1688516466208423936', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'} {'state': True, 'message': '添加组织成功!'} delete|select {'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`="tom";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`="rich";'} demId 15
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '添加组织成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"添加组织成功!","value":""}
断言成功
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/orgParam/saveOrgParams?orgCode=rich HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/org/v1/orgParam/saveOrgParams?orgCode=rich HTTP/1.1" 200 None
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-密码过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 9
Excel中写的数据 认证接口 登录系统 反向用例-密码过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'} {'state': False, 'message': '账号或密码错误'} None None None 9
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516441294258176'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516441294258176"}
断言成功
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'a'} {'state': False, 'message': '账号或密码错误'} None None None 5
Excel中写的数据 认证接口 登录系统 反向用例-用户名过短 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'a'} {'state': False, 'message': '账号或密码错误'} None None None 5
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516439390044160'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516439390044160"}
断言成功
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
Excel中写的数据 组织管理 删除组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/deleteOrg text/plain rich {'state': True, 'message': '删除组织成功!'} None None None 17
Excel中写的数据 组织管理 删除组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/deleteOrg text/plain rich {'state': True, 'message': '删除组织成功!'} None None None 17
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '删除组织成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"删除组织成功!","value":""}
断言成功
Excel中写的数据 组织管理 保存组织参数 正向用例 高 post http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams application/json|query {'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]} {'state': True, 'message': '保存组织参数成功!'} None None None 16
Excel中写的数据 组织管理 保存组织参数 正向用例 高 post http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams application/json|query {'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]} {'state': True, 'message': '保存组织参数成功!'} None None None 16
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '保存组织参数成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"保存组织参数成功!","value":""}
断言成功
Excel中写的数据 认证接口 登录系统 反向用例-用户名为空 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': ''} {'state': False, 'message': '账号或密码错误'} None None None 3
Excel中写的数据 认证接口 登录系统 反向用例-用户名为空 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': ''} {'state': False, 'message': '账号或密码错误'} None None None 3
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516438488268800'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516438488268800"}
断言成功
DEBUG--2023-08-07 19:44:29--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:29--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "POST /api/demension/v1/dem/addDem HTTP/1.1" 200 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "DELETE /api/demension/v1/dem/deleteDemByIds?ids=1688516466208423936 HTTP/1.1" 200 None
DEBUG--2023-08-07 19:44:30--http://120.46.172.186:8080 "DELETE /api/demension/v1/dem/deleteDemByIds?ids=1688516466208423936 HTTP/1.1" 200 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:24--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'} {'state': False, 'message': '账号或密码错误'} None None None 4
Excel中写的数据 认证接口 登录系统 反向用例-用户名过长 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'} {'state': False, 'message': '账号或密码错误'} None None None 4
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516438932865024'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516438932865024"}
断言成功
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:44:23--http://120.46.172.186:8080 "POST /auth HTTP/1.1" 500 None
\ No newline at end of file
Excel中写的数据 认证接口 登录系统 反向用例-用户名为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'} {'state': False, 'message': '账号或密码错误'} None None None 6
Excel中写的数据 认证接口 登录系统 反向用例-用户名为特殊字符 中 post http://120.46.172.186:8080/auth application/json {'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'} {'state': False, 'message': '账号或密码错误'} None None None 6
****************************************************************************************************
服务器返回的数据 {'state': False, 'message': '账号或密码错误', 'logId': '1688516439834640384'}
服务器返回的数据 {"state":false,"message":"账号或密码错误","logId":"1688516439834640384"}
断言成功
(('1688516466208423936',),)
(('1688516466208423936',),)
Excel中写的数据 维度管理 根据维度编码删除维度 正向用例 高 DELETE http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds query {'ids': '1688516466208423936'} {'state': True, 'message': '删除维度成功!'} select SELECT ID_ FROM uc_demension WHERE `CODE_`="tom"; ids 18
****************************************************************************************************
服务器返回的数据 {'state': True, 'message': '删除维度成功!', 'value': ''}
服务器返回的数据 {"state":true,"message":"删除维度成功!","value":""}
断言成功
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"BPM系统","认证接口","登录系统","0","0","11","0","0"
"BPM系统","组织管理","保存组织参数","0","0","1","0","0"
"BPM系统","维度管理","添加维度","0","0","1","0","0"
"BPM系统","认证接口","刷新token","0","1","0","0","0"
"BPM系统","维度管理","根据维度编码删除维度","0","0","1","0","0"
"BPM系统","组织管理","添加组织","0","0","1","0","0"
"BPM系统","组织管理","删除组织","0","0","1","0","0"
{
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "BPM系统",
"children" : [ {
"name" : "认证接口",
"children" : [ {
"name" : "登录系统",
"children" : [ {
"name" : "正向用例",
"uid" : "298f866a6b2215b4",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "{'username': '超级管理员', 'account': 'admin'}", "2", "'登录系统'", "'高'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "9ac7cc859f2ec7ea",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "{'state': False, 'message': '账号或密码错误'}", "3", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "e13719a20fc84ef0",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}", "{'state': False, 'message': '账号或密码错误'}", "4", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "ca5130bdb315b70e",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "{'state': False, 'message': '账号或密码错误'}", "5", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名为特殊字符",
"uid" : "d919ff1e041ea607",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}", "{'state': False, 'message': '账号或密码错误'}", "6", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名输入错误",
"uid" : "802fc3d1027944ff",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tom'}", "{'state': False, 'message': '账号或密码错误'}", "7", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "e8f1b21695ebb94d",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "8", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过长",
"uid" : "5702c07fa3629ce5",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "9", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过短",
"uid" : "1518bb804a12714",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'M', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "10", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "c5f6e5b91ca7ec53",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "11", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码输入错误",
"uid" : "809af7d1304ab127",
"parentUid" : "9eb19157a3426d8d3ab7067a14e9167f",
"status" : "passed",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "12", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
} ],
"uid" : "9eb19157a3426d8d3ab7067a14e9167f"
}, {
"name" : "刷新token",
"children" : [ {
"name" : "正向用例",
"uid" : "b05240ba0aceb5c4",
"parentUid" : "a409e3a0b6634abcef404e6df31976c5",
"status" : "broken",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
} ],
"uid" : "a409e3a0b6634abcef404e6df31976c5"
} ],
"uid" : "daf4a81c8500143ac26c740652b2737a"
}, {
"name" : "维度管理",
"children" : [ {
"name" : "添加维度",
"children" : [ {
"name" : "正向用例",
"uid" : "d22c6c3a7348a719",
"parentUid" : "3b95457e3dff05384511589b8078699c",
"status" : "passed",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}", "{'state': True, 'message': '添加维度成功!'}", "14", "'添加维度'", "'高'", "'post'", "'application/json'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'", "'delete'", "'正向用例'", "None", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'" ]
} ],
"uid" : "3b95457e3dff05384511589b8078699c"
}, {
"name" : "根据维度编码删除维度",
"children" : [ {
"name" : "正向用例",
"uid" : "36d9308c772af795",
"parentUid" : "44927dd409a65c91904e4c3a6b3c1d86",
"status" : "passed",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "{'state': True, 'message': '删除维度成功!'}", "18", "'根据维度编码删除维度'", "'高'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'", "'select'", "'正向用例'", "'ids'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'" ]
} ],
"uid" : "44927dd409a65c91904e4c3a6b3c1d86"
} ],
"uid" : "f491e726ab090b27f6eb774a22fe1587"
}, {
"name" : "组织管理",
"children" : [ {
"name" : "添加组织",
"children" : [ {
"name" : "正向用例",
"uid" : "26978f5926103d46",
"parentUid" : "3d6644ef5d3e8c0186c93f4d11d89bd9",
"status" : "passed",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "15", "'添加组织'", "'高'", "'post'", "'application/json'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'" ]
} ],
"uid" : "3d6644ef5d3e8c0186c93f4d11d89bd9"
}, {
"name" : "保存组织参数",
"children" : [ {
"name" : "正向用例",
"uid" : "29ba448c1ded7b0",
"parentUid" : "778600cb26b8f8f7203250b2d93427cd",
"status" : "passed",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}", "{'state': True, 'message': '保存组织参数成功!'}", "16", "'保存组织参数'", "'高'", "'post'", "'application/json|query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'" ]
} ],
"uid" : "778600cb26b8f8f7203250b2d93427cd"
}, {
"name" : "删除组织",
"children" : [ {
"name" : "正向用例",
"uid" : "6d153582e58ce9de",
"parentUid" : "90ce342b686b1926c1d90c881fb5b7b0",
"status" : "passed",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'rich'", "{'state': True, 'message': '删除组织成功!'}", "17", "'删除组织'", "'高'", "'post'", "'text/plain'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'" ]
} ],
"uid" : "90ce342b686b1926c1d90c881fb5b7b0"
} ],
"uid" : "ef3f7033cd07ff8e9e952819ec88f312"
} ],
"uid" : "f2ae4690c9b2f3df492f4f543cc9c7a2"
} ]
}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Test defects","0","1","0","0","0"
{
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ {
"name" : "Test defects",
"children" : [ {
"name" : "TypeError: 'NoneType' object is not subscriptable",
"children" : [ {
"name" : "正向用例",
"uid" : "b05240ba0aceb5c4",
"parentUid" : "86a928d47f47009c564bd8e345a40463",
"status" : "broken",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
} ],
"uid" : "86a928d47f47009c564bd8e345a40463"
} ],
"uid" : "bdbf199525818fae7a8651db9eafe741"
} ]
}
\ No newline at end of file
{
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "正向用例",
"uid" : "298f866a6b2215b4",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "{'username': '超级管理员', 'account': 'admin'}", "2", "'登录系统'", "'高'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "9ac7cc859f2ec7ea",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "{'state': False, 'message': '账号或密码错误'}", "3", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "e13719a20fc84ef0",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}", "{'state': False, 'message': '账号或密码错误'}", "4", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "ca5130bdb315b70e",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "{'state': False, 'message': '账号或密码错误'}", "5", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名为特殊字符",
"uid" : "d919ff1e041ea607",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}", "{'state': False, 'message': '账号或密码错误'}", "6", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名输入错误",
"uid" : "802fc3d1027944ff",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tom'}", "{'state': False, 'message': '账号或密码错误'}", "7", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "e8f1b21695ebb94d",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "8", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过长",
"uid" : "5702c07fa3629ce5",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "9", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过短",
"uid" : "1518bb804a12714",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'M', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "10", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "c5f6e5b91ca7ec53",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "11", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码输入错误",
"uid" : "809af7d1304ab127",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "12", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "b05240ba0aceb5c4",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "broken",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "正向用例",
"uid" : "d22c6c3a7348a719",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}", "{'state': True, 'message': '添加维度成功!'}", "14", "'添加维度'", "'高'", "'post'", "'application/json'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'", "'delete'", "'正向用例'", "None", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'" ]
}, {
"name" : "正向用例",
"uid" : "26978f5926103d46",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "15", "'添加组织'", "'高'", "'post'", "'application/json'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'" ]
}, {
"name" : "正向用例",
"uid" : "29ba448c1ded7b0",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}", "{'state': True, 'message': '保存组织参数成功!'}", "16", "'保存组织参数'", "'高'", "'post'", "'application/json|query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "正向用例",
"uid" : "6d153582e58ce9de",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'rich'", "{'state': True, 'message': '删除组织成功!'}", "17", "'删除组织'", "'高'", "'post'", "'text/plain'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "正向用例",
"uid" : "36d9308c772af795",
"parentUid" : "4a32e30797efccc00725261109ae2af4",
"status" : "passed",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "{'state': True, 'message': '删除维度成功!'}", "18", "'根据维度编码删除维度'", "'高'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'", "'select'", "'正向用例'", "'ids'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'" ]
} ],
"uid" : "4a32e30797efccc00725261109ae2af4"
} ]
}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Mon Aug 07 19:44:24 CST 2023","Mon Aug 07 19:44:24 CST 2023","95","","test_bpm","TestBPM","","","反向用例-密码输入错误",""
"passed","Mon Aug 07 19:44:30 CST 2023","Mon Aug 07 19:44:30 CST 2023","63","","test_bpm","TestBPM","","","正向用例",""
"passed","Mon Aug 07 19:44:24 CST 2023","Mon Aug 07 19:44:24 CST 2023","94","","test_bpm","TestBPM","","","反向用例-密码过短",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","98","","test_bpm","TestBPM","","","反向用例-密码为空",""
"passed","Mon Aug 07 19:44:24 CST 2023","Mon Aug 07 19:44:24 CST 2023","78","","test_bpm","TestBPM","","","反向用例-密码过长",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","57","","test_bpm","TestBPM","","","反向用例-用户名为空",""
"passed","Mon Aug 07 19:44:29 CST 2023","Mon Aug 07 19:44:30 CST 2023","189","","test_bpm","TestBPM","","","正向用例",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","94","","test_bpm","TestBPM","","","反向用例-用户名过短",""
"broken","Mon Aug 07 19:44:29 CST 2023","Mon Aug 07 19:44:29 CST 2023","0","","test_bpm","TestBPM","","","正向用例",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","63","","test_bpm","TestBPM","","","正向用例",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","94","","test_bpm","TestBPM","","","反向用例-用户名为特殊字符",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","93","","test_bpm","TestBPM","","","反向用例-用户名过长",""
"passed","Mon Aug 07 19:44:24 CST 2023","Mon Aug 07 19:44:24 CST 2023","94","","test_bpm","TestBPM","","","反向用例-密码为特殊字符",""
"passed","Mon Aug 07 19:44:23 CST 2023","Mon Aug 07 19:44:23 CST 2023","93","","test_bpm","TestBPM","","","反向用例-用户名输入错误",""
"passed","Mon Aug 07 19:44:30 CST 2023","Mon Aug 07 19:44:30 CST 2023","93","","test_bpm","TestBPM","","","正向用例",""
"passed","Mon Aug 07 19:44:30 CST 2023","Mon Aug 07 19:44:30 CST 2023","175","","test_bpm","TestBPM","","","正向用例",""
"passed","Mon Aug 07 19:44:30 CST 2023","Mon Aug 07 19:44:30 CST 2023","62","","test_bpm","TestBPM","","","正向用例",""
{
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "test_bpm",
"children" : [ {
"name" : "TestBPM",
"children" : [ {
"name" : "正向用例",
"uid" : "298f866a6b2215b4",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "{'username': '超级管理员', 'account': 'admin'}", "2", "'登录系统'", "'高'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "9ac7cc859f2ec7ea",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "{'state': False, 'message': '账号或密码错误'}", "3", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "e13719a20fc84ef0",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}", "{'state': False, 'message': '账号或密码错误'}", "4", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "ca5130bdb315b70e",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "{'state': False, 'message': '账号或密码错误'}", "5", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名为特殊字符",
"uid" : "d919ff1e041ea607",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}", "{'state': False, 'message': '账号或密码错误'}", "6", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名输入错误",
"uid" : "802fc3d1027944ff",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tom'}", "{'state': False, 'message': '账号或密码错误'}", "7", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "e8f1b21695ebb94d",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "8", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过长",
"uid" : "5702c07fa3629ce5",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "9", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过短",
"uid" : "1518bb804a12714",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'M', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "10", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "c5f6e5b91ca7ec53",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "11", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码输入错误",
"uid" : "809af7d1304ab127",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "12", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "b05240ba0aceb5c4",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "broken",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "正向用例",
"uid" : "d22c6c3a7348a719",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}", "{'state': True, 'message': '添加维度成功!'}", "14", "'添加维度'", "'高'", "'post'", "'application/json'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'", "'delete'", "'正向用例'", "None", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'" ]
}, {
"name" : "正向用例",
"uid" : "26978f5926103d46",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "15", "'添加组织'", "'高'", "'post'", "'application/json'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'" ]
}, {
"name" : "正向用例",
"uid" : "29ba448c1ded7b0",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}", "{'state': True, 'message': '保存组织参数成功!'}", "16", "'保存组织参数'", "'高'", "'post'", "'application/json|query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "正向用例",
"uid" : "6d153582e58ce9de",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'rich'", "{'state': True, 'message': '删除组织成功!'}", "17", "'删除组织'", "'高'", "'post'", "'text/plain'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "正向用例",
"uid" : "36d9308c772af795",
"parentUid" : "9e2149d4e33ad22996308efb2c8b042b",
"status" : "passed",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "{'state': True, 'message': '删除维度成功!'}", "18", "'根据维度编码删除维度'", "'高'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'", "'select'", "'正向用例'", "'ids'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'" ]
} ],
"uid" : "9e2149d4e33ad22996308efb2c8b042b"
} ],
"uid" : "10f50a925462c4c85491656d24b32ac1"
} ]
}
\ No newline at end of file
{
{
"uid" : "1518bb804a12714",
"name" : "反向用例-密码过短",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "f70e22fd9c549907809971593921aaca",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "b7df890a8fd18fa2",
"name" : "log",
"source" : "b7df890a8fd18fa2.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "17bd7453dddfe429",
"name" : "stdout",
"source" : "17bd7453dddfe429.txt",
"type" : "text/plain",
"size" : 570
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'M', 'username': 'admin'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "10"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码过短'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "1518bb804a12714.json",
"parameterValues" : [ "{'password': 'M', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "10", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "26978f5926103d46",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "5c60420a1cad41f75e3a5cd26ac36a70",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "34e80d68dced0027",
"name" : "log",
"source" : "34e80d68dced0027.txt",
"type" : "text/plain",
"size" : 111
}, {
"uid" : "64f90a74506064ad",
"name" : "stdout",
"source" : "64f90a74506064ad.txt",
"type" : "text/plain",
"size" : 805
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "添加组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加组织成功!'}"
}, {
"name" : "i",
"value" : "15"
}, {
"name" : "interface",
"value" : "'添加组织'"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'组织管理'"
}, {
"name" : "sql_sentence",
"value" : "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}"
}, {
"name" : "sql_type",
"value" : "'delete|select'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "'demId'"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/api/org/v1/org/addOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "26978f5926103d46.json",
"parameterValues" : [ "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "15", "'添加组织'", "'高'", "'post'", "'application/json'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'" ]
}
\ No newline at end of file
{
{
"uid" : "26bfb6e3f98caa7d",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "de4cb9c7f5a26a4d2bd94ac3d6541c37",
"time" : {
"start" : 1691408667770,
"stop" : 1691408667770,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "TypeError: 'NoneType' object is not subscriptable",
"statusTrace" : "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功!'}"
}, {
"name" : "i",
"value" : "13"
}, {
"name" : "interface",
"value" : "'刷新token'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/refresh'"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "26bfb6e3f98caa7d.json",
"parameterValues" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}
\ No newline at end of file
{
{
"uid" : "298f866a6b2215b4",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "613cddee6f6a9c7ba120046fb3ac0dbe",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "22c68b91b8cb6083",
"name" : "log",
"source" : "22c68b91b8cb6083.txt",
"type" : "text/plain",
"size" : 5166
}, {
"uid" : "3f805cbc832942a6",
"name" : "stdout",
"source" : "3f805cbc832942a6.txt",
"type" : "text/plain",
"size" : 1309
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'admin'}"
}, {
"name" : "expect_data",
"value" : "{'username': '超级管理员', 'account': 'admin'}"
}, {
"name" : "i",
"value" : "2"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "298f866a6b2215b4.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "{'username': '超级管理员', 'account': 'admin'}", "2", "'登录系统'", "'高'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "29ba448c1ded7b0",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "38a9d8efb55e428ad14d577834feffc2",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "72ed276e8e977676",
"name" : "log",
"source" : "72ed276e8e977676.txt",
"type" : "text/plain",
"size" : 136
}, {
"uid" : "8fa206bb1e95bec7",
"name" : "stdout",
"source" : "8fa206bb1e95bec7.txt",
"type" : "text/plain",
"size" : 801
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "保存组织参数"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '保存组织参数成功!'}"
}, {
"name" : "i",
"value" : "16"
}, {
"name" : "interface",
"value" : "'保存组织参数'"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json|query'"
}, {
"name" : "module",
"value" : "'组织管理'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "29ba448c1ded7b0.json",
"parameterValues" : [ "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}", "{'state': True, 'message': '保存组织参数成功!'}", "16", "'保存组织参数'", "'高'", "'post'", "'application/json|query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'" ]
}
\ No newline at end of file
{
{
"uid" : "36d9308c772af795",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "4bea7f4ef1c70b8a784f2b8e23bf02eb",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "a9abb24b7d9f834b",
"name" : "log",
"source" : "a9abb24b7d9f834b.txt",
"type" : "text/plain",
"size" : 151
}, {
"uid" : "f6244054fc86d1e",
"name" : "stdout",
"source" : "f6244054fc86d1e.txt",
"type" : "text/plain",
"size" : 622
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "根据维度编码删除维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'ids': '不知道'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除维度成功!'}"
}, {
"name" : "i",
"value" : "18"
}, {
"name" : "interface",
"value" : "'根据维度编码删除维度'"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'DELETE'"
}, {
"name" : "mime",
"value" : "'query'"
}, {
"name" : "module",
"value" : "'维度管理'"
}, {
"name" : "sql_sentence",
"value" : "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'"
}, {
"name" : "sql_type",
"value" : "'select'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "'ids'"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "36d9308c772af795.json",
"parameterValues" : [ "{'ids': '不知道'}", "{'state': True, 'message': '删除维度成功!'}", "18", "'根据维度编码删除维度'", "'高'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'", "'select'", "'正向用例'", "'ids'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'" ]
}
\ No newline at end of file
{
{
"uid" : "435c2cd74e5cf458",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "de4cb9c7f5a26a4d2bd94ac3d6541c37",
"time" : {
"start" : 1691408668803,
"stop" : 1691408668803,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "TypeError: 'NoneType' object is not subscriptable",
"statusTrace" : "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功!'}"
}, {
"name" : "i",
"value" : "13"
}, {
"name" : "interface",
"value" : "'刷新token'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/refresh'"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "435c2cd74e5cf458.json",
"parameterValues" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}
\ No newline at end of file
{
{
"uid" : "5702c07fa3629ce5",
"name" : "反向用例-密码过长",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "aa71e62268fb93f89b8b143b1ef298ac",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "7fcea30e21d1e717",
"name" : "log",
"source" : "7fcea30e21d1e717.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "7a7398fc7f849c35",
"name" : "stdout",
"source" : "7a7398fc7f849c35.txt",
"type" : "text/plain",
"size" : 608
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "9"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码过长'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "5702c07fa3629ce5.json",
"parameterValues" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "9", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "6d153582e58ce9de",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "0d3e2f4af324edd6038bbf773981293d",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "603a51946cb24731",
"name" : "log",
"source" : "603a51946cb24731.txt",
"type" : "text/plain",
"size" : 114
}, {
"uid" : "8b2f2600a7ad3c19",
"name" : "stdout",
"source" : "8b2f2600a7ad3c19.txt",
"type" : "text/plain",
"size" : 496
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "组织管理"
}, {
"name" : "story",
"value" : "删除组织"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "'rich'"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '删除组织成功!'}"
}, {
"name" : "i",
"value" : "17"
}, {
"name" : "interface",
"value" : "'删除组织'"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'text/plain'"
}, {
"name" : "module",
"value" : "'组织管理'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "6d153582e58ce9de.json",
"parameterValues" : [ "'rich'", "{'state': True, 'message': '删除组织成功!'}", "17", "'删除组织'", "'高'", "'post'", "'text/plain'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'" ]
}
\ No newline at end of file
{
{
"uid" : "802fc3d1027944ff",
"name" : "反向用例-用户名输入错误",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "5ec1e2259c4ca803e07b6568628245a6",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "efc7a93496b56601",
"name" : "log",
"source" : "efc7a93496b56601.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "4abe6b727fbe5658",
"name" : "stdout",
"source" : "4abe6b727fbe5658.txt",
"type" : "text/plain",
"size" : 583
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'tom'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "7"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-用户名输入错误'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "802fc3d1027944ff.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'tom'}", "{'state': False, 'message': '账号或密码错误'}", "7", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "809af7d1304ab127",
"name" : "反向用例-密码输入错误",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "d634f4f33827f3335e870f7eb298cbf3",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "628a3cfa32bf378f",
"name" : "log",
"source" : "628a3cfa32bf378f.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "4b1e71491e3327ec",
"name" : "stdout",
"source" : "4b1e71491e3327ec.txt",
"type" : "text/plain",
"size" : 576
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': '2', 'username': 'admin'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "12"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码输入错误'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "809af7d1304ab127.json",
"parameterValues" : [ "{'password': '2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "12", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "99709de82c4214b8",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "de4cb9c7f5a26a4d2bd94ac3d6541c37",
"time" : {
"start" : 1691408664457,
"stop" : 1691408664457,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "TypeError: 'NoneType' object is not subscriptable",
"statusTrace" : "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功!'}"
}, {
"name" : "i",
"value" : "13"
}, {
"name" : "interface",
"value" : "'刷新token'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/refresh'"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "99709de82c4214b8.json",
"parameterValues" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}
\ No newline at end of file
{
{
"uid" : "9ac7cc859f2ec7ea",
"name" : "反向用例-用户名为空",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "c5645e76e92863278eb36a41387f30bf",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "4af5882c8032b896",
"name" : "log",
"source" : "4af5882c8032b896.txt",
"type" : "text/plain",
"size" : 94
}, {
"uid" : "99a0ddcc7588b473",
"name" : "stdout",
"source" : "99a0ddcc7588b473.txt",
"type" : "text/plain",
"size" : 574
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': ''}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "3"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-用户名为空'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "9ac7cc859f2ec7ea.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': ''}", "{'state': False, 'message': '账号或密码错误'}", "3", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "b05240ba0aceb5c4",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "de4cb9c7f5a26a4d2bd94ac3d6541c37",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "TypeError: 'NoneType' object is not subscriptable",
"statusTrace" : "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功!'}"
}, {
"name" : "i",
"value" : "13"
}, {
"name" : "interface",
"value" : "'刷新token'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/refresh'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ {
"uid" : "435c2cd74e5cf458",
"status" : "broken",
"statusDetails" : "TypeError: 'NoneType' object is not subscriptable",
"time" : {
"start" : 1691408668803,
"stop" : 1691408668803,
"duration" : 0
}
}, {
"uid" : "26bfb6e3f98caa7d",
"status" : "broken",
"statusDetails" : "TypeError: 'NoneType' object is not subscriptable",
"time" : {
"start" : 1691408667770,
"stop" : 1691408667770,
"duration" : 0
}
}, {
"uid" : "c04117b2cb1086d0",
"status" : "broken",
"statusDetails" : "TypeError: 'NoneType' object is not subscriptable",
"time" : {
"start" : 1691408666736,
"stop" : 1691408666736,
"duration" : 0
}
}, {
"uid" : "d3eaf02b1dccfe3c",
"status" : "broken",
"statusDetails" : "TypeError: 'NoneType' object is not subscriptable",
"time" : {
"start" : 1691408665703,
"stop" : 1691408665703,
"duration" : 0
}
}, {
"uid" : "99709de82c4214b8",
"status" : "broken",
"statusDetails" : "TypeError: 'NoneType' object is not subscriptable",
"time" : {
"start" : 1691408664457,
"stop" : 1691408664457,
"duration" : 0
}
} ],
"categories" : [ {
"name" : "Test defects",
"matchedStatuses" : [ ],
"flaky" : false
} ],
"tags" : [ ]
},
"source" : "b05240ba0aceb5c4.json",
"parameterValues" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}
\ No newline at end of file
{
{
"uid" : "c04117b2cb1086d0",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "de4cb9c7f5a26a4d2bd94ac3d6541c37",
"time" : {
"start" : 1691408666736,
"stop" : 1691408666736,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "TypeError: 'NoneType' object is not subscriptable",
"statusTrace" : "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功!'}"
}, {
"name" : "i",
"value" : "13"
}, {
"name" : "interface",
"value" : "'刷新token'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/refresh'"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "c04117b2cb1086d0.json",
"parameterValues" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}
\ No newline at end of file
{
{
"uid" : "c5f6e5b91ca7ec53",
"name" : "反向用例-密码为特殊字符",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "b68c369cc83a3cb720cd76ddc452200c",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "88944832e15d1796",
"name" : "log",
"source" : "88944832e15d1796.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "56a0359fd6a53042",
"name" : "stdout",
"source" : "56a0359fd6a53042.txt",
"type" : "text/plain",
"size" : 599
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "11"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码为特殊字符'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "c5f6e5b91ca7ec53.json",
"parameterValues" : [ "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "11", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "ca5130bdb315b70e",
"name" : "反向用例-用户名过短",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "bd0f4c705255cb52910d9996996befe4",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "630fab7baf1b6a39",
"name" : "log",
"source" : "630fab7baf1b6a39.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "880795e425e24a4f",
"name" : "stdout",
"source" : "880795e425e24a4f.txt",
"type" : "text/plain",
"size" : 575
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'a'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "5"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-用户名过短'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "ca5130bdb315b70e.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "{'state': False, 'message': '账号或密码错误'}", "5", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "d22c6c3a7348a719",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "fe0ac3b66d3f04a6eaff10670c0093f0",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "9cddb6f57d5bc832",
"name" : "log",
"source" : "9cddb6f57d5bc832.txt",
"type" : "text/plain",
"size" : 199
}, {
"uid" : "3a8f7071de311d16",
"name" : "stdout",
"source" : "3a8f7071de311d16.txt",
"type" : "text/plain",
"size" : 619
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "维度管理"
}, {
"name" : "story",
"value" : "添加维度"
}, {
"name" : "severity",
"value" : "高"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}"
}, {
"name" : "expect_data",
"value" : "{'state': True, 'message': '添加维度成功!'}"
}, {
"name" : "i",
"value" : "14"
}, {
"name" : "interface",
"value" : "'添加维度'"
}, {
"name" : "level",
"value" : "'高'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'维度管理'"
}, {
"name" : "sql_sentence",
"value" : "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'"
}, {
"name" : "sql_type",
"value" : "'delete'"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "d22c6c3a7348a719.json",
"parameterValues" : [ "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}", "{'state': True, 'message': '添加维度成功!'}", "14", "'添加维度'", "'高'", "'post'", "'application/json'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'", "'delete'", "'正向用例'", "None", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'" ]
}
\ No newline at end of file
{
{
"uid" : "d3eaf02b1dccfe3c",
"name" : "正向用例",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "de4cb9c7f5a26a4d2bd94ac3d6541c37",
"time" : {
"start" : 1691408665703,
"stop" : 1691408665703,
"duration" : 0
},
"status" : "broken",
"statusMessage" : "TypeError: 'NoneType' object is not subscriptable",
"statusTrace" : "self = <homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x0000026769863F10>\ndb_fix = <homewoke.接口pytest框架.common.read_db.DB object at 0x00000267699216D0>\nmy_rep = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, module = '认证接口'\ninterface = '刷新token', title = '正向用例', level = '中', method = 'get', url = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\nexpect_data = {'message': '刷新token成功!'}, sql_type = None, sql_sentence = None, update_key = None, i = 13\n\n @allure.epic(\"BPM系统\")\n @pytest.mark.parametrize(\"module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i\", ReadExcel().get_data())\n def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):\n allure.dynamic.feature(module)\n allure.dynamic.story(interface)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n if sql_type == \"delete\":\n db_fix.delete(sql_sentence)\n \n \n \n elif sql_type == \"select\":\n select_result = db_fix.select(sql_sentence)\n case_data[update_key] = select_result\n \n \n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{\"delete\":\"删除sql语句\", \"select\":\"查询sql语句\"}\n db_fix.delete(sql_sentence[\"delete\"])\n select_result = db_fix.select(sql_sentence[\"select\"])\n case_data[update_key] = select_result\n \n> result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)\n\ntest_bpm.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x00000267680CEB50>, method = 'get'\nurl = 'http://120.46.172.186:8080/refresh', mime = None, case_data = None\n\n def request_all(self, method, url, mime, case_data):\n if mime == \"application/x-www-form-urlencoded\" or mime == \"x-www-form-urlencoded\" or mime == \"urlencoded\":\n return self.bpm_session.request(method=method,url=url, data=case_data)\n elif mime == \"application/json\" or mime == \"json\":\n return self.bpm_session.request(method=method, url=url, json=case_data)\n elif mime == \"multipart/from-data\" or mime == \"from-data\":\n return self.bpm_session.request(method=method, url=url, files=case_data)\n # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参\n elif mime == \"query\" or mime== \"params\":\n return self.bpm_session.request(method=method, url=url, params=case_data)\n # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参\n elif mime== \"text/plain\" or mime == \"text\":\n return self.bpm_session.request(method=method, url=url, data=case_data)\n # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参\n elif mime == \"application/Json|query\" or mime == \"json|query\" or \"json|params\":\n> return self.bpm_session.request(method=method, url=url, params=case_data[\"query\"], json=case_data[\"body\"])\nE TypeError: 'NoneType' object is not subscriptable\n\n..\\requests_method\\requests_method.py:42: TypeError",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "刷新token"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "None"
}, {
"name" : "expect_data",
"value" : "{'message': '刷新token成功!'}"
}, {
"name" : "i",
"value" : "13"
}, {
"name" : "interface",
"value" : "'刷新token'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'get'"
}, {
"name" : "mime",
"value" : "None"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'正向用例'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/refresh'"
} ],
"links" : [ ],
"hidden" : true,
"retry" : true,
"extra" : {
"categories" : [ ],
"tags" : [ ]
},
"source" : "d3eaf02b1dccfe3c.json",
"parameterValues" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}
\ No newline at end of file
{
{
"uid" : "d919ff1e041ea607",
"name" : "反向用例-用户名为特殊字符",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "3712c017303438bf9df404feae03826b",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "3de6d9f8b03878b2",
"name" : "log",
"source" : "3de6d9f8b03878b2.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "f3dc573dbf621b0b",
"name" : "stdout",
"source" : "f3dc573dbf621b0b.txt",
"type" : "text/plain",
"size" : 604
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "6"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-用户名为特殊字符'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "d919ff1e041ea607.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}", "{'state': False, 'message': '账号或密码错误'}", "6", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "e13719a20fc84ef0",
"name" : "反向用例-用户名过长",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "88d8751bd498f159d23da3e6cba67ee8",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "b34dd4960a063d71",
"name" : "log",
"source" : "b34dd4960a063d71.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "bddc6ff2f229b5a9",
"name" : "stdout",
"source" : "bddc6ff2f229b5a9.txt",
"type" : "text/plain",
"size" : 604
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "4"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-用户名过长'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "e13719a20fc84ef0.json",
"parameterValues" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}", "{'state': False, 'message': '账号或密码错误'}", "4", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "e8f1b21695ebb94d",
"name" : "反向用例-密码为空",
"fullName" : "test_bpm.TestBPM#test_bpm",
"historyId" : "c3a2ba259cb8235cc1f2d38c9092a529",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"beforeStages" : [ {
"name" : "db_fix",
"time" : {
"start" : 1691408662994,
"stop" : 1691408663199,
"duration" : 205
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep",
"time" : {
"start" : 1691408663199,
"stop" : 1691408663308,
"duration" : 109
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "_session_faker",
"time" : {
"start" : 1691408662849,
"stop" : 1691408662994,
"duration" : 145
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "232a75a0ef6c47ed",
"name" : "log",
"source" : "232a75a0ef6c47ed.txt",
"type" : "text/plain",
"size" : 176
}, {
"uid" : "10c63a9af7c4fdf4",
"name" : "stdout",
"source" : "10c63a9af7c4fdf4.txt",
"type" : "text/plain",
"size" : 568
} ],
"parameters" : [ ],
"hasContent" : true,
"stepsCount" : 0,
"attachmentsCount" : 2,
"shouldDisplayMessage" : false
},
"afterStages" : [ {
"name" : "db_fix::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
}, {
"name" : "my_rep::0",
"time" : {
"start" : 1691408670532,
"stop" : 1691408670532,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"hasContent" : false,
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false
} ],
"labels" : [ {
"name" : "feature",
"value" : "认证接口"
}, {
"name" : "story",
"value" : "登录系统"
}, {
"name" : "severity",
"value" : "中"
}, {
"name" : "epic",
"value" : "BPM系统"
}, {
"name" : "suite",
"value" : "test_bpm"
}, {
"name" : "subSuite",
"value" : "TestBPM"
}, {
"name" : "host",
"value" : "DESKTOP-4FFIKGU"
}, {
"name" : "thread",
"value" : "9072-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "test_bpm"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "case_data",
"value" : "{'password': '', 'username': 'admin'}"
}, {
"name" : "expect_data",
"value" : "{'state': False, 'message': '账号或密码错误'}"
}, {
"name" : "i",
"value" : "8"
}, {
"name" : "interface",
"value" : "'登录系统'"
}, {
"name" : "level",
"value" : "'中'"
}, {
"name" : "method",
"value" : "'post'"
}, {
"name" : "mime",
"value" : "'application/json'"
}, {
"name" : "module",
"value" : "'认证接口'"
}, {
"name" : "sql_sentence",
"value" : "None"
}, {
"name" : "sql_type",
"value" : "None"
}, {
"name" : "title",
"value" : "'反向用例-密码为空'"
}, {
"name" : "update_key",
"value" : "None"
}, {
"name" : "url",
"value" : "'http://120.46.172.186:8080/auth'"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "e8f1b21695ebb94d.json",
"parameterValues" : [ "{'password': '', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "8", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}
\ No newline at end of file
{
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "DESKTOP-4FFIKGU",
"children" : [ {
"name" : "9072-MainThread",
"children" : [ {
"name" : "正向用例",
"uid" : "99709de82c4214b8",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "broken",
"time" : {
"start" : 1691408664457,
"stop" : 1691408664457,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "正向用例",
"uid" : "26bfb6e3f98caa7d",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "broken",
"time" : {
"start" : 1691408667770,
"stop" : 1691408667770,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "反向用例-用户名为特殊字符",
"uid" : "d919ff1e041ea607",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': '▂▃▄▅▆▇█'}", "{'state': False, 'message': '账号或密码错误'}", "6", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码输入错误",
"uid" : "809af7d1304ab127",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "12", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "6d153582e58ce9de",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "'rich'", "{'state': True, 'message': '删除组织成功!'}", "17", "'删除组织'", "'高'", "'post'", "'text/plain'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/org/deleteOrg'" ]
}, {
"name" : "反向用例-密码为空",
"uid" : "e8f1b21695ebb94d",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "8", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码为特殊字符",
"uid" : "c5f6e5b91ca7ec53",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': '▂▃▄▅▆▇█', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "11", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码为特殊字符'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名输入错误",
"uid" : "802fc3d1027944ff",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'tom'}", "{'state': False, 'message': '账号或密码错误'}", "7", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名输入错误'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "b05240ba0aceb5c4",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "broken",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "反向用例-用户名为空",
"uid" : "9ac7cc859f2ec7ea",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': ''}", "{'state': False, 'message': '账号或密码错误'}", "3", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名为空'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-密码过长",
"uid" : "5702c07fa3629ce5",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "9", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "反向用例-用户名过短",
"uid" : "ca5130bdb315b70e",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'a'}", "{'state': False, 'message': '账号或密码错误'}", "5", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "298f866a6b2215b4",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'admin'}", "{'username': '超级管理员', 'account': 'admin'}", "2", "'登录系统'", "'高'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "d22c6c3a7348a719",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'tom', 'description': 'gogo', 'isDefault': 0, 'name': '子维度'}", "{'state': True, 'message': '添加维度成功!'}", "14", "'添加维度'", "'高'", "'post'", "'application/json'", "'维度管理'", "'DELETE FROM uc_demension WHERE `CODE_`=\"tom\";'", "'delete'", "'正向用例'", "None", "'http://120.46.172.186:8080/api/demension/v1/dem/addDem'" ]
}, {
"name" : "正向用例",
"uid" : "435c2cd74e5cf458",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "broken",
"time" : {
"start" : 1691408668803,
"stop" : 1691408668803,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "反向用例-用户名过长",
"uid" : "e13719a20fc84ef0",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'MTIzNDU2', 'username': 'adminadminadminadminadminadmin'}", "{'state': False, 'message': '账号或密码错误'}", "4", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-用户名过长'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "26978f5926103d46",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'code': 'rich', 'demId': '不知道', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}", "{'state': True, 'message': '添加组织成功!'}", "15", "'添加组织'", "'高'", "'post'", "'application/json'", "'组织管理'", "{'select': 'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";', 'delete': 'DELETE FROM uc_org WHERE `CODE_`=\"rich\";'}", "'delete|select'", "'正向用例'", "'demId'", "'http://120.46.172.186:8080/api/org/v1/org/addOrg'" ]
}, {
"name" : "反向用例-密码过短",
"uid" : "1518bb804a12714",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'password': 'M', 'username': 'admin'}", "{'state': False, 'message': '账号或密码错误'}", "10", "'登录系统'", "'中'", "'post'", "'application/json'", "'认证接口'", "None", "None", "'反向用例-密码过短'", "None", "'http://120.46.172.186:8080/auth'" ]
}, {
"name" : "正向用例",
"uid" : "36d9308c772af795",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'ids': '不知道'}", "{'state': True, 'message': '删除维度成功!'}", "18", "'根据维度编码删除维度'", "'高'", "'DELETE'", "'query'", "'维度管理'", "'SELECT ID_ FROM uc_demension WHERE `CODE_`=\"tom\";'", "'select'", "'正向用例'", "'ids'", "'http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds'" ]
}, {
"name" : "正向用例",
"uid" : "29ba448c1ded7b0",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "passed",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "{'query': {'orgCode': 'rich'}, 'body': [{'alias': 'sz', 'value': 0}, {'alias': 'zy', 'value': 'math'}, {'alias': 'rq', 'value': '2023-08-04T16:00:00.000Z'}, {'alias': 'ah', 'value': 'lq'}, {'alias': 'yyyy', 'value': '越高越好'}, {'alias': 'xb', 'value': '2'}]}", "{'state': True, 'message': '保存组织参数成功!'}", "16", "'保存组织参数'", "'高'", "'post'", "'application/json|query'", "'组织管理'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams'" ]
}, {
"name" : "正向用例",
"uid" : "c04117b2cb1086d0",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "broken",
"time" : {
"start" : 1691408666736,
"stop" : 1691408666736,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
}, {
"name" : "正向用例",
"uid" : "d3eaf02b1dccfe3c",
"parentUid" : "a1e40dc62ccb26335293a86c5265d162",
"status" : "broken",
"time" : {
"start" : 1691408665703,
"stop" : 1691408665703,
"duration" : 0
},
"flaky" : false,
"newFailed" : false,
"parameters" : [ "None", "{'message': '刷新token成功!'}", "13", "'刷新token'", "'中'", "'get'", "None", "'认证接口'", "None", "None", "'正向用例'", "None", "'http://120.46.172.186:8080/refresh'" ]
} ],
"uid" : "a1e40dc62ccb26335293a86c5265d162"
} ],
"uid" : "f73be692ef2b065133063b476e3099eb"
} ]
}
\ No newline at end of file
launch_status failed=0 1691408920000000000
launch_status failed=0 1691408920000000000
launch_status broken=1 1691408920000000000
launch_status passed=16 1691408920000000000
launch_status skipped=0 1691408920000000000
launch_status unknown=0 1691408920000000000
launch_time duration=7224 1691408920000000000
launch_time min_duration=0 1691408920000000000
launch_time max_duration=189 1691408920000000000
launch_time sum_duration=1535 1691408920000000000
launch_problems test_defects=1 1691408920000000000
launch_retries retries=5 1691408920000000000
launch_retries run=17 1691408920000000000
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 0
launch_status_failed 0
launch_status_broken 1
launch_status_passed 16
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 7224
launch_time_min_duration 0
launch_time_max_duration 189
launch_time_sum_duration 1535
launch_problems_test_defects 1
launch_retries_retries 5
launch_retries_run 17
module.exports = __webpack_public_path__ + "favicon.ico";
module.exports = __webpack_public_path__ + "favicon.ico";
\ No newline at end of file
[ {
[ {
"data" : {
"Test defects" : 1
}
} ]
\ No newline at end of file
[ {
[ {
"data" : {
"duration" : 7224
}
} ]
\ No newline at end of file
[ {
[ {
"data" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 16,
"unknown" : 0,
"total" : 17
}
} ]
\ No newline at end of file
{
{
"f70e22fd9c549907809971593921aaca" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "1518bb804a12714",
"status" : "passed",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
}
} ]
},
"5c60420a1cad41f75e3a5cd26ac36a70" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "26978f5926103d46",
"status" : "passed",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
}
} ]
},
"bd0f4c705255cb52910d9996996befe4" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "ca5130bdb315b70e",
"status" : "passed",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
}
} ]
},
"5ec1e2259c4ca803e07b6568628245a6" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "802fc3d1027944ff",
"status" : "passed",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
}
} ]
},
"c3a2ba259cb8235cc1f2d38c9092a529" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "e8f1b21695ebb94d",
"status" : "passed",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
}
} ]
},
"d634f4f33827f3335e870f7eb298cbf3" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "809af7d1304ab127",
"status" : "passed",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
}
} ]
},
"fe0ac3b66d3f04a6eaff10670c0093f0" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "d22c6c3a7348a719",
"status" : "passed",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
}
} ]
},
"c5645e76e92863278eb36a41387f30bf" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "9ac7cc859f2ec7ea",
"status" : "passed",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
}
} ]
},
"b68c369cc83a3cb720cd76ddc452200c" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "c5f6e5b91ca7ec53",
"status" : "passed",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
}
} ]
},
"38a9d8efb55e428ad14d577834feffc2" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "29ba448c1ded7b0",
"status" : "passed",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
}
} ]
},
"4bea7f4ef1c70b8a784f2b8e23bf02eb" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "36d9308c772af795",
"status" : "passed",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
}
} ]
},
"613cddee6f6a9c7ba120046fb3ac0dbe" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "298f866a6b2215b4",
"status" : "passed",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
}
} ]
},
"3712c017303438bf9df404feae03826b" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "d919ff1e041ea607",
"status" : "passed",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
}
} ]
},
"aa71e62268fb93f89b8b143b1ef298ac" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "5702c07fa3629ce5",
"status" : "passed",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
}
} ]
},
"88d8751bd498f159d23da3e6cba67ee8" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "e13719a20fc84ef0",
"status" : "passed",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
}
} ]
},
"0d3e2f4af324edd6038bbf773981293d" : {
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "6d153582e58ce9de",
"status" : "passed",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
}
} ]
},
"de4cb9c7f5a26a4d2bd94ac3d6541c37" : {
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "b05240ba0aceb5c4",
"status" : "broken",
"statusDetails" : "TypeError: 'NoneType' object is not subscriptable",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
}
} ]
}
}
\ No newline at end of file
[ {
[ {
"data" : {
"run" : 17,
"retry" : 5
}
} ]
\ No newline at end of file
<!DOCTYPE html>
<!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';
'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';
'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 () {
(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 {
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
{
"total" : 1,
"items" : [ {
"uid" : "f2ae4690c9b2f3df492f4f543cc9c7a2",
"name" : "BPM系统",
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 3
}
} ]
}
\ No newline at end of file
[ {
[ {
"data" : {
"Test defects" : 1
}
} ]
\ No newline at end of file
{
{
"total" : 1,
"items" : [ {
"uid" : "bdbf199525818fae7a8651db9eafe741",
"name" : "Test defects",
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
}
} ]
}
\ No newline at end of file
[ {
[ {
"data" : {
"duration" : 7224
}
} ]
\ No newline at end of file
[ {
[ {
"uid" : "809af7d1304ab127",
"name" : "反向用例-密码输入错误",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "29ba448c1ded7b0",
"name" : "正向用例",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1518bb804a12714",
"name" : "反向用例-密码过短",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e8f1b21695ebb94d",
"name" : "反向用例-密码为空",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5702c07fa3629ce5",
"name" : "反向用例-密码过长",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9ac7cc859f2ec7ea",
"name" : "反向用例-用户名为空",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d22c6c3a7348a719",
"name" : "正向用例",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ca5130bdb315b70e",
"name" : "反向用例-用户名过短",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b05240ba0aceb5c4",
"name" : "正向用例",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "298f866a6b2215b4",
"name" : "正向用例",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d919ff1e041ea607",
"name" : "反向用例-用户名为特殊字符",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e13719a20fc84ef0",
"name" : "反向用例-用户名过长",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "c5f6e5b91ca7ec53",
"name" : "反向用例-密码为特殊字符",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "802fc3d1027944ff",
"name" : "反向用例-用户名输入错误",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "36d9308c772af795",
"name" : "正向用例",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "26978f5926103d46",
"name" : "正向用例",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "6d153582e58ce9de",
"name" : "正向用例",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
[ {
"data" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 16,
"unknown" : 0,
"total" : 17
}
} ]
\ No newline at end of file
[ {
[ {
"data" : {
"run" : 17,
"retry" : 5
}
} ]
\ No newline at end of file
[ {
[ {
"uid" : "802fc3d1027944ff",
"name" : "反向用例-用户名输入错误",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e13719a20fc84ef0",
"name" : "反向用例-用户名过长",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9ac7cc859f2ec7ea",
"name" : "反向用例-用户名为空",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ca5130bdb315b70e",
"name" : "反向用例-用户名过短",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "36d9308c772af795",
"name" : "正向用例",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "c5f6e5b91ca7ec53",
"name" : "反向用例-密码为特殊字符",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "809af7d1304ab127",
"name" : "反向用例-密码输入错误",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "6d153582e58ce9de",
"name" : "正向用例",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d22c6c3a7348a719",
"name" : "正向用例",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d919ff1e041ea607",
"name" : "反向用例-用户名为特殊字符",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5702c07fa3629ce5",
"name" : "反向用例-密码过长",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b05240ba0aceb5c4",
"name" : "正向用例",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "29ba448c1ded7b0",
"name" : "正向用例",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "298f866a6b2215b4",
"name" : "正向用例",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1518bb804a12714",
"name" : "反向用例-密码过短",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e8f1b21695ebb94d",
"name" : "反向用例-密码为空",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "26978f5926103d46",
"name" : "正向用例",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
[ {
"uid" : "809af7d1304ab127",
"name" : "反向用例-密码输入错误",
"time" : {
"start" : 1691408664337,
"stop" : 1691408664432,
"duration" : 95
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "29ba448c1ded7b0",
"name" : "正向用例",
"time" : {
"start" : 1691408670267,
"stop" : 1691408670330,
"duration" : 63
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1518bb804a12714",
"name" : "反向用例-密码过短",
"time" : {
"start" : 1691408664118,
"stop" : 1691408664212,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e8f1b21695ebb94d",
"name" : "反向用例-密码为空",
"time" : {
"start" : 1691408663892,
"stop" : 1691408663990,
"duration" : 98
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "5702c07fa3629ce5",
"name" : "反向用例-密码过长",
"time" : {
"start" : 1691408664025,
"stop" : 1691408664103,
"duration" : 78
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "9ac7cc859f2ec7ea",
"name" : "反向用例-用户名为空",
"time" : {
"start" : 1691408663382,
"stop" : 1691408663439,
"duration" : 57
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d22c6c3a7348a719",
"name" : "正向用例",
"time" : {
"start" : 1691408669868,
"stop" : 1691408670057,
"duration" : 189
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "ca5130bdb315b70e",
"name" : "反向用例-用户名过短",
"time" : {
"start" : 1691408663564,
"stop" : 1691408663658,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "b05240ba0aceb5c4",
"name" : "正向用例",
"time" : {
"start" : 1691408669853,
"stop" : 1691408669853,
"duration" : 0
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "298f866a6b2215b4",
"name" : "正向用例",
"time" : {
"start" : 1691408663308,
"stop" : 1691408663371,
"duration" : 63
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "d919ff1e041ea607",
"name" : "反向用例-用户名为特殊字符",
"time" : {
"start" : 1691408663673,
"stop" : 1691408663767,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "e13719a20fc84ef0",
"name" : "反向用例-用户名过长",
"time" : {
"start" : 1691408663455,
"stop" : 1691408663548,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "c5f6e5b91ca7ec53",
"name" : "反向用例-密码为特殊字符",
"time" : {
"start" : 1691408664228,
"stop" : 1691408664322,
"duration" : 94
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "802fc3d1027944ff",
"name" : "反向用例-用户名输入错误",
"time" : {
"start" : 1691408663783,
"stop" : 1691408663876,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "36d9308c772af795",
"name" : "正向用例",
"time" : {
"start" : 1691408670439,
"stop" : 1691408670532,
"duration" : 93
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "26978f5926103d46",
"name" : "正向用例",
"time" : {
"start" : 1691408670076,
"stop" : 1691408670251,
"duration" : 175
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "6d153582e58ce9de",
"name" : "正向用例",
"time" : {
"start" : 1691408670361,
"stop" : 1691408670423,
"duration" : 62
},
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
{
{
"total" : 1,
"items" : [ {
"uid" : "10f50a925462c4c85491656d24b32ac1",
"name" : "test_bpm",
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 16,
"unknown" : 0,
"total" : 17
}
} ]
}
\ No newline at end of file
{
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 16,
"unknown" : 0,
"total" : 17
},
"time" : {
"start" : 1691408663308,
"stop" : 1691408670532,
"duration" : 7224,
"minDuration" : 0,
"maxDuration" : 189,
"sumDuration" : 1535
}
}
\ No newline at end of file
++ "a/\346\216\245\345\217\243pytest\346\241\206\346\236\266/report/log/bpm_test.log"
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Test Report</title>
<style>body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
/* do not increase min-width as some may use split screens */
min-width: 800px;
color: #999;
}
h1 {
font-size: 24px;
color: black;
}
h2 {
font-size: 16px;
color: black;
}
p {
color: black;
}
a {
color: #999;
}
table {
border-collapse: collapse;
}
/******************************
* SUMMARY INFORMATION
******************************/
#environment td {
padding: 5px;
border: 1px solid #E6E6E6;
}
#environment tr:nth-child(odd) {
background-color: #f6f6f6;
}
/******************************
* TEST RESULT COLORS
******************************/
span.passed, .passed .col-result {
color: green;
}
span.skipped, span.xfailed, span.rerun, .skipped .col-result, .xfailed .col-result, .rerun .col-result {
color: orange;
}
span.error, span.failed, span.xpassed, .error .col-result, .failed .col-result, .xpassed .col-result {
color: red;
}
/******************************
* RESULTS TABLE
*
* 1. Table Layout
* 2. Extra
* 3. Sorting items
*
******************************/
/*------------------
* 1. Table Layout
*------------------*/
#results-table {
border: 1px solid #e6e6e6;
color: #999;
font-size: 12px;
width: 100%;
}
#results-table th, #results-table td {
padding: 5px;
border: 1px solid #E6E6E6;
text-align: left;
}
#results-table th {
font-weight: bold;
}
/*------------------
* 2. Extra
*------------------*/
.log:only-child {
height: inherit;
}
.log {
background-color: #e6e6e6;
border: 1px solid #e6e6e6;
color: black;
display: block;
font-family: "Courier New", Courier, monospace;
height: 230px;
overflow-y: scroll;
padding: 5px;
white-space: pre-wrap;
}
div.image {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin-left: 5px;
overflow: hidden;
width: 320px;
}
div.image img {
width: 320px;
}
div.video {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin-left: 5px;
overflow: hidden;
width: 320px;
}
div.video video {
overflow: hidden;
width: 320px;
height: 240px;
}
.collapsed {
display: none;
}
.expander::after {
content: " (show details)";
color: #BBB;
font-style: italic;
cursor: pointer;
}
.collapser::after {
content: " (hide details)";
color: #BBB;
font-style: italic;
cursor: pointer;
}
/*------------------
* 3. Sorting items
*------------------*/
.sortable {
cursor: pointer;
}
.sort-icon {
font-size: 0px;
float: left;
margin-right: 5px;
margin-top: 5px;
/*triangle*/
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
}
.inactive .sort-icon {
/*finish triangle*/
border-top: 8px solid #E6E6E6;
}
.asc.active .sort-icon {
/*finish triangle*/
border-bottom: 8px solid #999;
}
.desc.active .sort-icon {
/*finish triangle*/
border-top: 8px solid #999;
}
</style></head>
<body onLoad="init()">
<script>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
function toArray(iter) {
if (iter === null) {
return null;
}
return Array.prototype.slice.call(iter);
}
function find(selector, elem) { // eslint-disable-line no-redeclare
if (!elem) {
elem = document;
}
return elem.querySelector(selector);
}
function find_all(selector, elem) {
if (!elem) {
elem = document;
}
return toArray(elem.querySelectorAll(selector));
}
function sort_column(elem) {
toggle_sort_states(elem);
const colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
let key;
if (elem.classList.contains('result')) {
key = key_result;
} else if (elem.classList.contains('links')) {
key = key_link;
} else {
key = key_alpha;
}
sort_table(elem, key(colIndex));
}
function show_all_extras() { // eslint-disable-line no-unused-vars
find_all('.col-result').forEach(show_extras);
}
function hide_all_extras() { // eslint-disable-line no-unused-vars
find_all('.col-result').forEach(hide_extras);
}
function show_extras(colresult_elem) {
const extras = colresult_elem.parentNode.nextElementSibling;
const expandcollapse = colresult_elem.firstElementChild;
extras.classList.remove('collapsed');
expandcollapse.classList.remove('expander');
expandcollapse.classList.add('collapser');
}
function hide_extras(colresult_elem) {
const extras = colresult_elem.parentNode.nextElementSibling;
const expandcollapse = colresult_elem.firstElementChild;
extras.classList.add('collapsed');
expandcollapse.classList.remove('collapser');
expandcollapse.classList.add('expander');
}
function show_filters() {
const filter_items = document.getElementsByClassName('filter');
for (let i = 0; i < filter_items.length; i++)
filter_items[i].hidden = false;
}
function add_collapse() {
// Add links for show/hide all
const resulttable = find('table#results-table');
const showhideall = document.createElement('p');
showhideall.innerHTML = '<a href="javascript:show_all_extras()">Show all details</a> / ' +
'<a href="javascript:hide_all_extras()">Hide all details</a>';
resulttable.parentElement.insertBefore(showhideall, resulttable);
// Add show/hide link to each result
find_all('.col-result').forEach(function(elem) {
const collapsed = get_query_parameter('collapsed') || 'Passed';
const extras = elem.parentNode.nextElementSibling;
const expandcollapse = document.createElement('span');
if (extras.classList.contains('collapsed')) {
expandcollapse.classList.add('expander');
} else if (collapsed.includes(elem.innerHTML)) {
extras.classList.add('collapsed');
expandcollapse.classList.add('expander');
} else {
expandcollapse.classList.add('collapser');
}
elem.appendChild(expandcollapse);
elem.addEventListener('click', function(event) {
if (event.currentTarget.parentNode.nextElementSibling.classList.contains('collapsed')) {
show_extras(event.currentTarget);
} else {
hide_extras(event.currentTarget);
}
});
});
}
function get_query_parameter(name) {
const match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
function init () { // eslint-disable-line no-unused-vars
reset_sort_headers();
add_collapse();
show_filters();
sort_column(find('.initial-sort'));
find_all('.sortable').forEach(function(elem) {
elem.addEventListener('click',
function() {
sort_column(elem);
}, false);
});
}
function sort_table(clicked, key_func) {
const rows = find_all('.results-table-row');
const reversed = !clicked.classList.contains('asc');
const sorted_rows = sort(rows, key_func, reversed);
/* Whole table is removed here because browsers acts much slower
* when appending existing elements.
*/
const thead = document.getElementById('results-table-head');
document.getElementById('results-table').remove();
const parent = document.createElement('table');
parent.id = 'results-table';
parent.appendChild(thead);
sorted_rows.forEach(function(elem) {
parent.appendChild(elem);
});
document.getElementsByTagName('BODY')[0].appendChild(parent);
}
function sort(items, key_func, reversed) {
const sort_array = items.map(function(item, i) {
return [key_func(item), i];
});
sort_array.sort(function(a, b) {
const key_a = a[0];
const key_b = b[0];
if (key_a == key_b) return 0;
if (reversed) {
return key_a < key_b ? 1 : -1;
} else {
return key_a > key_b ? 1 : -1;
}
});
return sort_array.map(function(item) {
const index = item[1];
return items[index];
});
}
function key_alpha(col_index) {
return function(elem) {
return elem.childNodes[1].childNodes[col_index].firstChild.data.toLowerCase();
};
}
function key_link(col_index) {
return function(elem) {
const dataCell = elem.childNodes[1].childNodes[col_index].firstChild;
return dataCell == null ? '' : dataCell.innerText.toLowerCase();
};
}
function key_result(col_index) {
return function(elem) {
const strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
'Skipped', 'Passed'];
return strings.indexOf(elem.childNodes[1].childNodes[col_index].firstChild.data);
};
}
function reset_sort_headers() {
find_all('.sort-icon').forEach(function(elem) {
elem.parentNode.removeChild(elem);
});
find_all('.sortable').forEach(function(elem) {
const icon = document.createElement('div');
icon.className = 'sort-icon';
icon.textContent = 'vvv';
elem.insertBefore(icon, elem.firstChild);
elem.classList.remove('desc', 'active');
elem.classList.add('asc', 'inactive');
});
}
function toggle_sort_states(elem) {
//if active, toggle between asc and desc
if (elem.classList.contains('active')) {
elem.classList.toggle('asc');
elem.classList.toggle('desc');
}
//if inactive, reset all other functions and add ascending active
if (elem.classList.contains('inactive')) {
reset_sort_headers();
elem.classList.remove('inactive');
elem.classList.add('active');
}
}
function is_all_rows_hidden(value) {
return value.hidden == false;
}
function filter_table(elem) { // eslint-disable-line no-unused-vars
const outcome_att = 'data-test-result';
const outcome = elem.getAttribute(outcome_att);
const class_outcome = outcome + ' results-table-row';
const outcome_rows = document.getElementsByClassName(class_outcome);
for(let i = 0; i < outcome_rows.length; i++){
outcome_rows[i].hidden = !elem.checked;
}
const rows = find_all('.results-table-row').filter(is_all_rows_hidden);
const all_rows_hidden = rows.length == 0 ? true : false;
const not_found_message = document.getElementById('not-found-message');
not_found_message.hidden = !all_rows_hidden;
}
</script>
<h1>report.html</h1>
<p>Report generated on 07-Aug-2023 at 19:40:18 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.1.0</p>
<h2>Summary</h2>
<p>17 tests ran in 2.77 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">16 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">1 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>, <input checked="true" class="filter" data-test-result="rerun" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="rerun">0 rerun</span>
<h2>Results</h2>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable result initial-sort" col="result">Result</th>
<th class="sortable" col="name">Test</th>
<th class="sortable" col="duration">Duration</th>
<th class="sortable links" col="links">Links</th></tr>
<tr hidden="true" id="not-found-message">
<th colspan="4">No results found. Try to check the filters</th></tr></thead>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-刷新token-正向用例-中-get-http://120.46.172.186:8080/refresh-None-None-expect_data11-None-None-None-13]</td>
<td class="col-duration">0.00</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">self = &lt;homewoke.接口pytest框架.case_data.test_bpm.TestBPM object at 0x000001CDD35B8990&gt;<br/>db_fix = &lt;homewoke.接口pytest框架.common.read_db.DB object at 0x000001CDDB628350&gt;<br/>my_rep = &lt;homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x000001CDDB621E50&gt;, module = &#x27;认证接口&#x27;<br/>interface = &#x27;刷新token&#x27;, title = &#x27;正向用例&#x27;, level = &#x27;&#x27;, method = &#x27;get&#x27;, url = &#x27;http://120.46.172.186:8080/refresh&#x27;, mime = None, case_data = None<br/>expect_data = {&#x27;message&#x27;: &#x27;刷新token成功!&#x27;}, sql_type = None, sql_sentence = None, update_key = None, i = 13<br/><br/> @allure.epic(&quot;BPM系统&quot;)<br/> @pytest.mark.parametrize(&quot;module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i&quot;, ReadExcel().get_data())<br/> def test_bpm(self, db_fix, my_rep, module,interface, title, level, method, url, mime, case_data, expect_data, sql_type, sql_sentence, update_key, i):<br/> allure.dynamic.feature(module)<br/> allure.dynamic.story(interface)<br/> allure.dynamic.title(title)<br/> allure.dynamic.severity(level)<br/> <br/> if sql_type == &quot;delete&quot;:<br/> db_fix.delete(sql_sentence)<br/> <br/> <br/> <br/> elif sql_type == &quot;select&quot;:<br/> select_result = db_fix.select(sql_sentence)<br/> case_data[update_key] = select_result<br/> <br/> <br/> elif sql_type == &quot;select|delete&quot; or sql_type == &quot;delete|select&quot;:<br/> #添加组织先执行删除的sql语句. 这里的sql语句存放在一个字典中, 字典的格式为:{&quot;delete&quot;:&quot;删除sql语句&quot;, &quot;select&quot;:&quot;查询sql语句&quot;}<br/> db_fix.delete(sql_sentence[&quot;delete&quot;])<br/> select_result = db_fix.select(sql_sentence[&quot;select&quot;])<br/> case_data[update_key] = select_result<br/> <br/>&gt; result = my_rep.request_all(method=method,url=url,mime=mime,case_data=case_data)<br/><br/>test_bpm.py:43: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>self = &lt;homewoke.接口pytest框架.requests_method.requests_method.RequestsMethod object at 0x000001CDDB621E50&gt;, method = &#x27;get&#x27;<br/>url = &#x27;http://120.46.172.186:8080/refresh&#x27;, mime = None, case_data = None<br/><br/> def request_all(self, method, url, mime, case_data):<br/> if mime == &quot;application/x-www-form-urlencoded&quot; or mime == &quot;x-www-form-urlencoded&quot; or mime == &quot;urlencoded&quot;:<br/> return self.bpm_session.request(method=method,url=url, data=case_data)<br/> elif mime == &quot;application/json&quot; or mime == &quot;json&quot;:<br/> return self.bpm_session.request(method=method, url=url, json=case_data)<br/> elif mime == &quot;multipart/from-data&quot; or mime == &quot;from-data&quot;:<br/> return self.bpm_session.request(method=method, url=url, files=case_data)<br/> # 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参<br/> elif mime == &quot;query&quot; or mime== &quot;params&quot;:<br/> return self.bpm_session.request(method=method, url=url, params=case_data)<br/> # 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参<br/> elif mime== &quot;text/plain&quot; or mime == &quot;text&quot;:<br/> return self.bpm_session.request(method=method, url=url, data=case_data)<br/> # 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参<br/> elif mime == &quot;application/Json|query&quot; or mime == &quot;json|query&quot; or &quot;json|params&quot;:<br/>&gt; return self.bpm_session.request(method=method, url=url, params=case_data[&quot;query&quot;], json=case_data[&quot;body&quot;])<br/><span class="error">E TypeError: &#x27;NoneType&#x27; object is not subscriptable</span><br/><br/>..\requests_method\requests_method.py:42: TypeError<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-正向用例-高-post-http://120.46.172.186:8080/auth-application/json-case_data0-expect_data0-None-None-None-2]</td>
<td class="col-duration">0.52</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -----------------------------Captured stdout setup------------------------------ <br/>D:\pythonProject1\homewoke\接口pytest框架\file_data
&lt;configparser.ConfigParser object at 0x000001CDDB6D1610&gt;
D:\pythonProject1\homewoke\接口pytest框架\file_data
&lt;configparser.ConfigParser object at 0x000001CDDB61ECD0&gt;
<br/> -------------------------------Captured log setup------------------------------- <br/>DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.address`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.address` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.automotive`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.automotive` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.bank`.
DEBUG--2023-08-07 19:40:15--Specified locale `en_US` is not available for provider `faker.providers.bank`. Locale reset to `en_GB` for this provider.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.barcode`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.barcode` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.color`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.color` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.company`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.company` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.credit_card`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.credit_card` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.currency`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.currency` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.date_time`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.date_time` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.emoji` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.file` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.geo`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.geo` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.internet`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.internet` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.isbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.job`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.job` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.lorem`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.lorem` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.misc`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.misc` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.passport`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.passport` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.person`.
DEBUG--2023-08-07 19:40:15--Provider `faker.providers.person` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:15--Looking for locale `en_US` in provider `faker.providers.phone_number`.
DEBUG--2023-08-07 19:40:16--Provider `faker.providers.phone_number` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:16--Provider `faker.providers.profile` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:16--Provider `faker.providers.python` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:16--Provider `faker.providers.sbn` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:16--Looking for locale `en_US` in provider `faker.providers.ssn`.
DEBUG--2023-08-07 19:40:16--Provider `faker.providers.ssn` has been localized to `en_US`.
DEBUG--2023-08-07 19:40:16--Provider `faker.providers.user_agent` does not feature localization. Specified locale `en_US` is not utilized for this provider.
DEBUG--2023-08-07 19:40:16--Starting new HTTP connection (1): 120.46.172.186:8080
DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 200 None<br/> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 正向用例 高 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;admin&#x27;} {&#x27;username&#x27;: &#x27;超级管理员&#x27;, &#x27;account&#x27;: &#x27;admin&#x27;} None None None 2
****************************************************************************************************
服务器返回的数据 {&#x27;token&#x27;: &#x27;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0OTQ4MTcsImlhdCI6MTY5MTQwODQxN30.1UKfYkQKp1wWLOngIfQ57xggbb8kFeNyJW13cUfTAiMoUHoWpQkgxWPw2XJDb0jjpqa252xiP8caYvLnfo3iaA&#x27;, &#x27;username&#x27;: &#x27;超级管理员&#x27;, &#x27;account&#x27;: &#x27;admin&#x27;, &#x27;userId&#x27;: &#x27;1&#x27;, &#x27;expiration&#x27;: 86400, &#x27;loginStatus&#x27;: True, &#x27;userAttrs&#x27;: {&#x27;tenantId&#x27;: &#x27;-1&#x27;}}
服务器返回的数据 {&quot;token&quot;:&quot;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0OTQ4MTcsImlhdCI6MTY5MTQwODQxN30.1UKfYkQKp1wWLOngIfQ57xggbb8kFeNyJW13cUfTAiMoUHoWpQkgxWPw2XJDb0jjpqa252xiP8caYvLnfo3iaA&quot;,&quot;username&quot;:&quot;超级管理员&quot;,&quot;account&quot;:&quot;admin&quot;,&quot;userId&quot;:&quot;1&quot;,&quot;expiration&quot;:86400,&quot;loginStatus&quot;:true,&quot;userAttrs&quot;:{&quot;tenantId&quot;:&quot;-1&quot;}}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 200 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名为空-中-post-http://120.46.172.186:8080/auth-application/json-case_data1-expect_data1-None-None-None-3]</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-用户名为空 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 3
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515402474209280&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515402474209280&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名过长-中-post-http://120.46.172.186:8080/auth-application/json-case_data2-expect_data2-None-None-None-4]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-用户名过长 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;adminadminadminadminadminadmin&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 4
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515402897833984&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515402897833984&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名过短-中-post-http://120.46.172.186:8080/auth-application/json-case_data3-expect_data3-None-None-None-5]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-用户名过短 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;a&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 5
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515403321458688&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515403321458688&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名为特殊字符-中-post-http://120.46.172.186:8080/auth-application/json-case_data4-expect_data4-None-None-None-6]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-用户名为特殊字符 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;▂▃▄▅▆▇█&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 6
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515403749277696&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515403749277696&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-用户名输入错误-中-post-http://120.46.172.186:8080/auth-application/json-case_data5-expect_data5-None-None-None-7]</td>
<td class="col-duration">0.08</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-用户名输入错误 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;tom&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 7
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515404118376448&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515404118376448&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码为空-中-post-http://120.46.172.186:8080/auth-application/json-case_data6-expect_data6-None-None-None-8]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-密码为空 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;&#x27;, &#x27;username&#x27;: &#x27;admin&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 8
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515404500058112&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515404500058112&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:16--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码过长-中-post-http://120.46.172.186:8080/auth-application/json-case_data7-expect_data7-None-None-None-9]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-密码过长 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2MTIzNDU2&#x27;, &#x27;username&#x27;: &#x27;admin&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 9
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515404906905600&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515404906905600&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:16--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码过短-中-post-http://120.46.172.186:8080/auth-application/json-case_data8-expect_data8-None-None-None-10]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-密码过短 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;M&#x27;, &#x27;username&#x27;: &#x27;admin&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 10
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515405326336000&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515405326336000&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:17--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码为特殊字符-中-post-http://120.46.172.186:8080/auth-application/json-case_data9-expect_data9-None-None-None-11]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-密码为特殊字符 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;▂▃▄▅▆▇█&#x27;, &#x27;username&#x27;: &#x27;admin&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 11
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515405783515136&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515405783515136&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:17--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[认证接口-登录系统-反向用例-密码输入错误-中-post-http://120.46.172.186:8080/auth-application/json-case_data10-expect_data10-None-None-None-12]</td>
<td class="col-duration">0.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 认证接口 登录系统 反向用例-密码输入错误 中 post http://120.46.172.186:8080/auth application/json {&#x27;password&#x27;: &#x27;2&#x27;, &#x27;username&#x27;: &#x27;admin&#x27;} {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;} None None None 12
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: False, &#x27;message&#x27;: &#x27;账号或密码错误&#x27;, &#x27;logId&#x27;: &#x27;1688515406219722752&#x27;}
服务器返回的数据 {&quot;state&quot;:false,&quot;message&quot;:&quot;账号或密码错误&quot;,&quot;logId&quot;:&quot;1688515406219722752&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:17--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /auth HTTP/1.1&quot; 500 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[维度管理-添加维度-正向用例-高-post-http://120.46.172.186:8080/api/demension/v1/dem/addDem-application/json-case_data12-expect_data12-delete-DELETE FROM uc_demension WHERE `CODE_`=&quot;tom&quot;;-None-14]</td>
<td class="col-duration">0.17</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 维度管理 添加维度 正向用例 高 post http://120.46.172.186:8080/api/demension/v1/dem/addDem application/json {&#x27;code&#x27;: &#x27;tom&#x27;, &#x27;description&#x27;: &#x27;gogo&#x27;, &#x27;isDefault&#x27;: 0, &#x27;name&#x27;: &#x27;子维度&#x27;} {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;添加维度成功!&#x27;} delete DELETE FROM uc_demension WHERE `CODE_`=&quot;tom&quot;; None 14
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;添加维度成功!&#x27;, &#x27;value&#x27;: &#x27;&#x27;}
服务器返回的数据 {&quot;state&quot;:true,&quot;message&quot;:&quot;添加维度成功!&quot;,&quot;value&quot;:&quot;&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:17--Resetting dropped connection: 120.46.172.186
DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /api/demension/v1/dem/addDem HTTP/1.1&quot; 200 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[组织管理-添加组织-正向用例-高-post-http://120.46.172.186:8080/api/org/v1/org/addOrg-application/json-case_data13-expect_data13-delete|select-sql_sentence13-demId-15]</td>
<td class="col-duration">0.16</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>((&#x27;1688515407951970304&#x27;,),)
Excel中写的数据 组织管理 添加组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/addOrg application/json {&#x27;code&#x27;: &#x27;rich&#x27;, &#x27;demId&#x27;: &#x27;1688515407951970304&#x27;, &#x27;exceedLimitNum&#x27;: 0, &#x27;grade&#x27;: &#x27;&#x27;, &#x27;limitNum&#x27;: 0, &#x27;name&#x27;: &#x27;组织&#x27;, &#x27;nowNum&#x27;: 0, &#x27;orderNo&#x27;: 0, &#x27;parentId&#x27;: &#x27;0&#x27;} {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;添加组织成功!&#x27;} delete|select {&#x27;select&#x27;: &#x27;SELECT ID_ FROM uc_demension WHERE `CODE_`=&quot;tom&quot;;&#x27;, &#x27;delete&#x27;: &#x27;DELETE FROM uc_org WHERE `CODE_`=&quot;rich&quot;;&#x27;} demId 15
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;添加组织成功!&#x27;, &#x27;value&#x27;: &#x27;&#x27;}
服务器返回的数据 {&quot;state&quot;:true,&quot;message&quot;:&quot;添加组织成功!&quot;,&quot;value&quot;:&quot;&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /api/org/v1/org/addOrg HTTP/1.1&quot; 200 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[组织管理-保存组织参数-正向用例-高-post-http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams-application/json|query-case_data14-expect_data14-None-None-None-16]</td>
<td class="col-duration">0.07</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 组织管理 保存组织参数 正向用例 高 post http://120.46.172.186:8080/api/org/v1/orgParam/saveOrgParams application/json|query {&#x27;query&#x27;: {&#x27;orgCode&#x27;: &#x27;rich&#x27;}, &#x27;body&#x27;: [{&#x27;alias&#x27;: &#x27;sz&#x27;, &#x27;value&#x27;: 0}, {&#x27;alias&#x27;: &#x27;zy&#x27;, &#x27;value&#x27;: &#x27;math&#x27;}, {&#x27;alias&#x27;: &#x27;rq&#x27;, &#x27;value&#x27;: &#x27;2023-08-04T16:00:00.000Z&#x27;}, {&#x27;alias&#x27;: &#x27;ah&#x27;, &#x27;value&#x27;: &#x27;lq&#x27;}, {&#x27;alias&#x27;: &#x27;yyyy&#x27;, &#x27;value&#x27;: &#x27;越高越好&#x27;}, {&#x27;alias&#x27;: &#x27;xb&#x27;, &#x27;value&#x27;: &#x27;2&#x27;}]} {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;保存组织参数成功!&#x27;} None None None 16
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;保存组织参数成功!&#x27;, &#x27;value&#x27;: &#x27;&#x27;}
服务器返回的数据 {&quot;state&quot;:true,&quot;message&quot;:&quot;保存组织参数成功!&quot;,&quot;value&quot;:&quot;&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:17--http://120.46.172.186:8080 &quot;POST /api/org/v1/orgParam/saveOrgParams?orgCode=rich HTTP/1.1&quot; 200 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[组织管理-删除组织-正向用例-高-post-http://120.46.172.186:8080/api/org/v1/org/deleteOrg-text/plain-rich-expect_data15-None-None-None-17]</td>
<td class="col-duration">0.05</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Excel中写的数据 组织管理 删除组织 正向用例 高 post http://120.46.172.186:8080/api/org/v1/org/deleteOrg text/plain rich {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;删除组织成功!&#x27;} None None None 17
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;删除组织成功!&#x27;, &#x27;value&#x27;: &#x27;&#x27;}
服务器返回的数据 {&quot;state&quot;:true,&quot;message&quot;:&quot;删除组织成功!&quot;,&quot;value&quot;:&quot;&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:18--http://120.46.172.186:8080 &quot;POST /api/org/v1/org/deleteOrg HTTP/1.1&quot; 200 None<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_bpm.py::TestBPM::test_bpm[维度管理-根据维度编码删除维度-正向用例-高-DELETE-http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds-query-case_data16-expect_data16-select-SELECT ID_ FROM uc_demension WHERE `CODE_`=&quot;tom&quot;;-ids-18]</td>
<td class="col-duration">0.09</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>((&#x27;1688515407951970304&#x27;,),)
Excel中写的数据 维度管理 根据维度编码删除维度 正向用例 高 DELETE http://120.46.172.186:8080/api/demension/v1/dem/deleteDemByIds query {&#x27;ids&#x27;: &#x27;1688515407951970304&#x27;} {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;删除维度成功!&#x27;} select SELECT ID_ FROM uc_demension WHERE `CODE_`=&quot;tom&quot;; ids 18
****************************************************************************************************
服务器返回的数据 {&#x27;state&#x27;: True, &#x27;message&#x27;: &#x27;删除维度成功!&#x27;, &#x27;value&#x27;: &#x27;&#x27;}
服务器返回的数据 {&quot;state&quot;:true,&quot;message&quot;:&quot;删除维度成功!&quot;,&quot;value&quot;:&quot;&quot;}
断言成功
<br/> -------------------------------Captured log call-------------------------------- <br/>DEBUG--2023-08-07 19:40:18--http://120.46.172.186:8080 &quot;DELETE /api/demension/v1/dem/deleteDemByIds?ids=1688515407951970304 HTTP/1.1&quot; 200 None<br/></div></td></tr></tbody></table></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: __init__.py
# Author: xxxxxxx
# Datetime: 2023/8/7 10:37
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
# -*-coding:utf-8 -*- #
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName: pythonProject1
# FileName: requests_method.py
# Author: xxxxxxx
# Datetime: 2023/8/3 19:11
# Description:
# #号开头的代码表示注释信息
# ---------------------------------------------------------------------------
import base64
import requests
from homewoke.接口自动化框架_登录_添加维度.common.read_ini import ReadIni
class RequestsMethod:
def __init__(self) :
login_url = ReadIni().get_host("test_bpm")+"/auth"
login_data = {"username": "admin", "password": "123456"}
login_data["password"] = base64.b64encode(login_data["password"].encode("utf-8")).decode("utf-8")
self.bpm_session = requests.sessions.Session()
resp = self.bpm_session.request(method="post",url=login_url,json=login_data)
token = resp.json().get("token")
self.bpm_session.headers["Authorization"] = "Bearer " + token
def request_all(self, method, url, mime, case_data):
if mime == "application/x-www-form-urlencoded" or mime == "x-www-form-urlencoded" or mime == "urlencoded":
return self.bpm_session.request(method=method,url=url, data=case_data)
elif mime == "application/json" or mime == "json":
return self.bpm_session.request(method=method, url=url, json=case_data)
elif mime == "multipart/from-data" or mime == "from-data":
return self.bpm_session.request(method=method, url=url, files=case_data)
# 判断媒体类型的值是否query或者为params的媒体类型,如果是,使用params关键字传参
elif mime == "query" or mime== "params":
return self.bpm_session.request(method=method, url=url, params=case_data)
# 判断媒体类型的值是否text/plain或者为text的媒体类型,如果是,使用data关键字传参
elif mime== "text/plain" or mime == "text":
return self.bpm_session.request(method=method, url=url, data=case_data)
# 判断媒体类型的值是否为application/Json|query或者json|query,如果是,表示地址栏和请求体同时传参
elif mime == "application/json|query" or mime == "json|query" or mime =="json|params":
return self.bpm_session.request(method=method, url=url, params=case_data["query"], json=case_data["body"])
elif mime is None:
return self.bpm_session.request(method=method,url=url)
else:
raise NameError("传入的媒体类型错误")
if __name__ == '__main__':
requests_method= RequestsMethod()
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