refactor: 优化日志系统及增加定位转换器
- 更新 pytest.ini 统一配置日志格式和基础命令。 - 优化 main.py 增加测试后的日志自动备份与定期清理功能。 - 新增 finder.py 实现定位元素转换机制
This commit is contained in:
@@ -13,7 +13,7 @@ import logging
|
||||
|
||||
import pytest
|
||||
from core.run_appium import start_appium_service, stop_appium_service
|
||||
from core.driver import AppDriver
|
||||
from core.driver import CoreDriver
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
@@ -36,7 +36,7 @@ def driver(app_server):
|
||||
依赖 app_server,确保服务 Ready 后才创建连接。
|
||||
"""
|
||||
# 实例化你提供的类结构
|
||||
app_helper = AppDriver()
|
||||
app_helper = CoreDriver()
|
||||
|
||||
# 配置Android设备参数
|
||||
capabilities = dict(
|
||||
|
||||
Reference in New Issue
Block a user