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
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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