Files
xst 2aca405267 refactor(pages): PO 层框架化 — 细粒度操作 + 显式等待 + 消除静默吞异常
DriverFreightFlowPage (APP):
- 流程方法拆为单一职责的细粒度操作(open_freight_tab/fill_quantity/upload_photo_from_album/...),
  流程方法仅做编排,公共 API 不变,用例零改动
- 移除全部 implicitly_wait 全局副作用,每步显式等待目标元素
- 容错点击(已知晓/确定)改为 _tap_by_text_if_present,跳过时记录 warning

FreightAccountingPage (Web):
- _go/_click_search 改显式等待(搜索框出现/列表数据行或空态),替代固定 2s/1s sleep
- 表格等待升级为 td:visible,避开 vxe-table 固定列隐藏占位单元格
- 点击行操作按钮后显式等待弹窗出现,替代固定 800ms
- 车队长下拉选择改显式等待下拉项渲染
- 可选弹窗操作统一收敛到 _try_click,跳过时记录 warning;关键确认按钮保持严格

两条 E2E 用例在真实环境回归通过(TC-D2S-001 116s / TC-D2S-002 112s)。
2026-09-02 11:59:46 +08:00

19 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?><testsuites name="pytest tests"><testsuite name="pytest" errors="3" failures="0" skipped="0" tests="3" time="0.743" timestamp="2026-09-02T10:09:06.437700+08:00" hostname="yunba-126"><testcase classname="" name="app.driver_ios.tests.test_smoke" time="0.000"><error message="collection failure">ImportError while importing test module 'E:\Desktop\xst_files\test\QaAutomationHub\tests\app\driver_ios\tests\test_smoke.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Users\23184\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_smoke'</error></testcase><testcase classname="" name="app.shipper_android.tests.test_smoke" time="0.000"><error message="collection failure">ImportError while importing test module 'E:\Desktop\xst_files\test\QaAutomationHub\tests\app\shipper_android\tests\test_smoke.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Users\23184\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_smoke'</error></testcase><testcase classname="" name="app.shipper_ios.tests.test_smoke" time="0.000"><error message="collection failure">ImportError while importing test module 'E:\Desktop\xst_files\test\QaAutomationHub\tests\app\shipper_ios\tests\test_smoke.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Users\23184\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'tests.test_smoke'</error></testcase></testsuite></testsuites>