D:\GitProjects\REQManagement\.venv\RRM_env\Scripts\python.exe -X pycache_prefix=C:\Users\kotei\AppData\Local\JetBrains\PyCharmCE2024.3\cpython-cache "D:/Program Files/JetBrains/PyCharm Community Edition 2024.3.4/plugins/python-ce/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 59309 --file "D:/Program Files/JetBrains/PyCharm Community Edition 2024.3.4/plugins/python-ce/helpers/pycharm/_jb_pytest_runner.py" --path D:\GitProjects\REQManagement\DDE\kotei_web_server\utils\test.py
Testing started at 15:01 ...
已连接到 pydev 调试器(内部版本号 243.25659.43)Launching pytest with arguments D:\GitProjects\REQManagement\DDE\kotei_web_server\utils\test.py --no-header --no-summary -q in D:\GitProjects\REQManagement\DDE\kotei_web_server\utils
============================= test session starts =============================
collecting ... collected 8 items
test.py::OfficeLocatorTest::test_clear_marks
test.py::OfficeLocatorTest::test_excel_cell_locating
test.py::OfficeLocatorTest::test_office_location_api
test.py::OfficeLocatorTest::test_open_close_documents
test.py::OfficeLocatorTest::test_picture_locating
test.py::OfficeLocatorTest::test_table_locating
test.py::OfficeLocatorTest::test_text_paragraph_locating
test.py::OfficeLocatorTest::test_window_positioning
============================= 8 errors in 11.79s ==============================
ERROR [ 12%]2025-09-16 15:02:03 - [MainThread] - INFO - (test.py:112) $ setUpClass) ::: === 准备测试环境 ===
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [ 25%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [ 37%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [ 50%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [ 62%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [ 75%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [ 87%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
ERROR [100%]
test setup failed
cls = <class 'kotei_web_server.utils.test.OfficeLocatorTest'>
@classmethod
def setUpClass(cls):
"""创建测试文档并初始化"""
logging.info("=== 准备测试环境 ===")
> cls.word_path, cls.excel_path = create_test_documents()
test.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test.py:52: in create_test_documents
shapes.AddPicture(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <COMObject <unknown>>
FileName = 'D:\\GitProjects\\REQManagement\\DDE\\kotei_web_server\\utils\\test.py'
LinkToFile = False, SaveWithDocument = True, Left = 100, Top = 100, Width = 100
Height = 100, Anchor = <PyOleMissing object at 0x000001B13AAF4920>
> ???
E pywintypes.com_error: (-2147352567, '发生意外。', (0, None, None, None, 0, -2147467259), None)
<COMObject <unknown>>:3: com_error
进程已结束,退出代码为 1
最新发布