NavisworksTransport/resources/auto-test-routes.xml
tian c9c29c7170 refactor: 依赖 Navisworks 的路径导入验证从单测迁移至集成测试
- 删除 UnitTests/Core/PathPersistenceTests.cs:单测进程无法初始化 Navisworks API,
  Rail/Hoisting 路径导入必经的长度计算(Point3D 访问)必然失败,测试'假通过'且每次产生 ERROR 日志噪音
- 新增集成测试 PathImportValidityAutomationTests:验证完整流程
  JSON/XML 导入 → Rail 属性映射 → 长度计算(含文档单位换算)→ 切换路径 → 完整动画/碰撞流程
- TestAutomationHttpService 新增 /api/test/import-route-file 端点(overwrite 语义保证可重复执行)
- NavisworksTestAutomationClient 新增 ImportRouteFileAsync/SelectRouteAsync/routeName 重载
- 修正 auto-test-routes.xml Rail 属性为有效枚举值(UnderRail/RailCenterLine,与原路径一致)

验证:单测 255/255 且 API must be initialized 错误日志归零;集成测试 6/6 通过
2026-08-02 21:19:23 +08:00

43 lines
4.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<PathPlanningData version="1.0" generator="NavisworksTransport" timestamp="2026-08-02T21:00:00" xmlns="http://www.3ds.com/delmia/pathplanning">
<ProjectInfo name="NavisworksTransport路径规划" description="集成测试标准路径(自动导入用)" units="meters" coordinateSystem="Global" />
<Routes>
<!-- 地面路径3 点折线,坐标取自 Floor2_mobile_yup.nwd 中已验证可用的区域 -->
<Route id="a1b2c3d4-0001-4a5b-9c6d-111111111111" name="自动测试_Ground" description="集成测试标准地面路径" pathType="Ground" railNormalOffset="0.000" totalLength="26.000" maxObjectLength="0.400" maxObjectWidth="0.400" maxObjectHeight="0.400" safetyMargin="0.050" gridSize="0.300" liftHeight="0.000" created="2026-08-02T21:00:00">
<Points>
<Point id="b2c3d4e5-0001-4a5b-9c6d-111111111111" name="起点" type="StartPoint" index="0" x="-152.706" y="14.833" z="-5.443" created="2026-08-02T21:00:00" />
<Point id="c3d4e5f6-0001-4a5b-9c6d-111111111111" name="路径点1" type="WayPoint" index="1" x="-162.501" y="14.833" z="9.481" created="2026-08-02T21:00:00" />
<Point id="d4e5f6a7-0001-4a5b-9c6d-111111111111" name="终点" type="EndPoint" index="2" x="-177.130" y="14.833" z="-4.383" created="2026-08-02T21:00:00" />
</Points>
</Route>
<!-- 吊装路径4 点(地面起吊 → 悬挂提升 → 水平平移 → 地面落地)。
注意:吊装平面姿态链要求路径点 ≥3 且存在水平方向段第2点-第1点确定 forward
2 点纯垂直路径会触发“平面路径未能生成完整姿态”错误,禁止回退旧 yaw 链路。 -->
<Route id="a1b2c3d4-0002-4a5b-9c6d-222222222222" name="自动测试_Hoisting" description="集成测试标准吊装路径" pathType="Hoisting" railNormalOffset="0.000" totalLength="14.000" maxObjectLength="0.400" maxObjectWidth="0.400" maxObjectHeight="0.400" safetyMargin="0.050" gridSize="0.300" liftHeight="9.917" created="2026-08-02T21:00:00">
<Points>
<Point id="b2c3d4e5-0002-4a5b-9c6d-222222222222" name="起吊点" type="StartPoint" index="0" x="-221.750" y="10.833" z="-14.097" created="2026-08-02T21:00:00" />
<Point id="c3d4e5f6-0002-4a5b-9c6d-222222222222" name="提升点" type="WayPoint" index="1" x="-221.750" y="20.750" z="-14.097" created="2026-08-02T21:00:00" />
<Point id="d4e5f6a7-0002-4a5b-9c6d-222222222222" name="下降点" type="WayPoint" index="2" x="-219.750" y="20.750" z="-14.097" created="2026-08-02T21:00:00" />
<Point id="e5f6a7b8-0002-4a5b-9c6d-222222222222" name="落地点" type="EndPoint" index="3" x="-219.750" y="10.833" z="-14.097" created="2026-08-02T21:00:00" />
</Points>
</Route>
<!-- 空轨路径2 点直线,坐标取自 Floor2_mobile_yup.nwd 中已验证可用的区域与人工_0602_123431 同源) -->
<Route id="a1b2c3d4-0003-4a5b-9c6d-333333333333" name="自动测试_Rail" description="集成测试标准空轨路径" pathType="Rail" railMountMode="UnderRail" railPathDefinitionMode="RailCenterLine" railNormalOffset="0.000" railPreferredNormalX="0.077" railPreferredNormalY="0.442" railPreferredNormalZ="0.893" totalLength="12.500" maxObjectLength="0.400" maxObjectWidth="0.400" maxObjectHeight="0.400" safetyMargin="0.050" gridSize="0.300" liftHeight="0.000" created="2026-08-02T21:00:00">
<Points>
<Point id="b2c3d4e5-0003-4a5b-9c6d-333333333333" name="起点" type="StartPoint" index="0" x="-207.591" y="29.482" z="3.504" created="2026-08-02T21:00:00" />
<Point id="c3d4e5f6-0003-4a5b-9c6d-333333333333" name="终点" type="EndPoint" index="1" x="-195.556" y="27.776" z="3.308" created="2026-08-02T21:00:00" />
</Points>
</Route>
<!-- 自动路径规划测试基准2 点地面路径,供 AutoPathGridGenerationAutomationTests 精确引用 -->
<Route id="a1b2c3d4-0004-4a5b-9c6d-444444444444" name="测试基准" description="集成测试自动路径规划基准" pathType="Ground" railNormalOffset="0.000" totalLength="14.000" maxObjectLength="0.400" maxObjectWidth="0.400" maxObjectHeight="0.400" safetyMargin="0.050" gridSize="0.300" liftHeight="0.000" created="2026-08-02T21:00:00">
<Points>
<Point id="b2c3d4e5-0004-4a5b-9c6d-444444444444" name="起点" type="StartPoint" index="0" x="-204.608" y="14.833" z="19.250" created="2026-08-02T21:00:00" />
<Point id="c3d4e5f6-0004-4a5b-9c6d-444444444444" name="终点" type="EndPoint" index="1" x="-213.324" y="14.833" z="5.968" created="2026-08-02T21:00:00" />
</Points>
</Route>
</Routes>
</PathPlanningData>