Files
bj_power/test/reports/RUN20261108-01-场景1.json
T
SunYF af554cea75 feat: 同步失败台账双向可重试 + 拧紧枪按工位配置 + 虚拟工位体系 + 去Redis与文档口径对齐
- 同步失败台账:MES/WMS 双端新增台账与页面,跨系统通知失败落台账、人工重试或标记已处理,不自动重传;重试前先判对端终态;叫料、配送、出库回写失败提示指向台账;补幂等建表脚本与菜单权限。
- 拧紧枪:新增按工位配置页,展示控制器地址与三把枪通道号(仅供查看,不参与采集校验);「允许手填」由全局开关改为每工位开关,关闭时校验该工位已配控制器;终端启动/登录上报配置并按本工位拉取,扭矩手填框按本工位置灰;补全局值迁移到各工位的脚本。
- 工位体系:终端未配置工位号时登录页可选(含虚拟工位),固定工位模式保留;虚拟/线下位不叫料、不退料、不作转产目标,未采集绑定放行并说明原因;叫料期望接驳台改为选填。
- AGV与出库:补「出库单已送达」回写;空车回充、接驳台传感器失联、配送状态更新失败均落预警或留痕并提示人工核对;人工出库不引入送达状态;出库单支持目标工位/接驳台并扩展导出列。
- 基础设施:看板缓存由Redis改为MES进程内实现,文档与启动脚本同步去Redis;扫码监听支持多地址、端口被占自动降级;PLC对账与工位报警在MES不可达时降级放行并留日志。
- 文档与帮助:案例与部署手册按实测订正(工位绑定、菜单名称、补料由班组长代提、菜单覆盖对照、虚拟工位);迁移脚本改为本地即时执行并登记7个已执行脚本;三端页面帮助改为「业务/操作/影响范围/后果」四要素。
- 测试:新增独立Go模块,按三个业务场景做真实HTTP与真实写库的流水测试,含运行报告。
2026-11-09 18:58:47 +08:00

1183 lines
48 KiB
JSON
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.
{
"runBatch": "RUN20261108-01",
"scenario": "场景1",
"startedAt": "2026-11-08 10:57:54",
"finishedAt": "2026-11-08 10:57:54",
"probes": [
{
"name": "MES",
"url": "http://127.0.0.1:8888",
"ok": true,
"detail": "HTTP 405"
},
{
"name": "WMS",
"url": "http://127.0.0.1:8890",
"ok": true,
"detail": "HTTP 200"
},
{
"name": "工位终端",
"url": "http://127.0.0.1:8892",
"ok": true,
"detail": "HTTP 200"
},
{
"name": "看板",
"url": "http://127.0.0.1:5173",
"ok": true,
"detail": "HTTP 200"
}
],
"loginErrors": null,
"dbErrors": null,
"results": [
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "运行批次=RUN20261108-01,T=2026-11-08,T+1=2026-11-09,T+2=2026-11-10(日期相对化,无写死日期)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L2 数据库落库",
"expect": "工位 3/6/12 全部启用",
"actual": "select count(*) from station where station_no in (3,6,12) and status='ENABLED' = \"3\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L2 数据库落库",
"expect": "存在启用产品工艺(工单必选工艺)",
"actual": "select count(*) from product_process where status='ACTIVE' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L2 数据库落库",
"expect": "工位终端本地无离线索列表(2026-11-05 已拆)",
"actual": "select count(*) from sqlite_master where type='table' and name in ('report_queue','torque_results') = \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "取到真实 product_process.id=\"\";路线工位真实 flow_id 将在 S1-03 现查",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/1",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "物料 DX100-XT-001 建档成功(code=0)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"id\":18,\"code\":\"DX100-XT-001\",\"name\":\"箱体\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"description\":\"自动化流水测试主数据 RUN20261108-01\",\"itemType\":1,\"manageMode\":1,\"snMode\":2,\"isBatchManaged\":true,\"isActive\":true,\"createdAt\":1794106674,\"updatedAt\":1794106674}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/1",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-XT-001",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/1",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-XT-001",
"actual": "select count(*) from materials where code=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-01/2",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "物料 DX100-MB-002 建档成功(code=0)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"id\":19,\"code\":\"DX100-MB-002\",\"name\":\"面板\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"description\":\"自动化流水测试主数据 RUN20261108-01\",\"itemType\":1,\"manageMode\":1,\"snMode\":2,\"isBatchManaged\":true,\"isActive\":true,\"createdAt\":1794106674,\"updatedAt\":1794106674}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/2",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-MB-002",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/2",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-MB-002",
"actual": "select count(*) from materials where code=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-01/3",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "物料 DX100-MP-005 建档成功(code=0)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"id\":20,\"code\":\"DX100-MP-005\",\"name\":\"铭牌\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"description\":\"自动化流水测试主数据 RUN20261108-01\",\"itemType\":1,\"manageMode\":1,\"snMode\":2,\"isBatchManaged\":true,\"isActive\":true,\"createdAt\":1794106674,\"updatedAt\":1794106674}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/3",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-MP-005",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/3",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-MP-005",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/4",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "物料 DX100-QL-004 建档成功(code=0)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"id\":21,\"code\":\"DX100-QL-004\",\"name\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"description\":\"自动化流水测试主数据 RUN20261108-01\",\"itemType\":1,\"manageMode\":2,\"snMode\":1,\"isSerialManaged\":true,\"isActive\":true,\"createdAt\":1794106674,\"updatedAt\":1794106674}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/4",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-QL-004",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/4",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-QL-004",
"actual": "select count(*) from materials where code=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-01/5",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "物料 DX-100 建档成功(code=0)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"id\":22,\"code\":\"DX-100\",\"name\":\"电表箱成品\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"description\":\"自动化流水测试主数据 RUN20261108-01\",\"itemType\":3,\"manageMode\":3,\"snMode\":1,\"isSerialManaged\":true,\"isActive\":true,\"createdAt\":1794106674,\"updatedAt\":1794106674}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/5",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX-100",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/5",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX-100",
"actual": "select count(*) from materials where code=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-01",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "主数据真实编码:DX100-XT-001、DX100-MB-002、DX100-MP-005、DX100-QL-004、DX-100;口径差异:案例:62 走 Excel 批量导入,本步走同源单条建档(同一 materials 表)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in1",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-XT-001 ×8 成功(RUN20261108-01-IB-001)",
"actual": "HTTP 400 / code=-1 / message=\"货架/层/位置必填,不允许只填区域不填货架\" / body={\"code\":-1,\"message\":\"货架/层/位置必填,不允许只填区域不填货架\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-02/in1",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-01-IB-001 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-02/in2",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-MB-002 ×8 成功(RUN20261108-01-IB-002)",
"actual": "HTTP 400 / code=-1 / message=\"货架/层/位置必填,不允许只填区域不填货架\" / body={\"code\":-1,\"message\":\"货架/层/位置必填,不允许只填区域不填货架\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-02/in2",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-01-IB-002 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-02/in3",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-MP-005 ×8 成功(RUN20261108-01-IB-003)",
"actual": "HTTP 400 / code=-1 / message=\"货架/层/位置必填,不允许只填区域不填货架\" / body={\"code\":-1,\"message\":\"货架/层/位置必填,不允许只填区域不填货架\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-02/in3",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-01-IB-003 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-02/in4",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-QL-004 ×20 成功(RUN20261108-01-IB-004)",
"actual": "HTTP 400 / code=-1 / message=\"货架/层/位置必填,不允许只填区域不填货架\" / body={\"code\":-1,\"message\":\"货架/层/位置必填,不允许只填区域不填货架\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-02/in4",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-01-IB-004 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-02/pending",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检清单可读",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"inboundNo\":\"IB20261105-002\",\"inboundType\":\"purchase\",\"ownershipType\":\"project\",\"ownershipNo\":\"归属编号b\",\"materialCode\":\"XinPian001\",\"materialName\":\"芯片001号\",\"matManageMode\":2,\"snMode\":1,\"unInspectedQty\":4,\"detailsTotal\":4,\"inboundTime\":1793878652,\"inspectionNo\":\"检查单b\"},{\"inboundNo\":\"IB20261105-001\",\"inboundType\":\"purchase\",\"ownershipType\":…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实待检清单取得 0 条 targetId(来自上一步入库产生的库存)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-XT-001 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [合格],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-MB-002 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [合格],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-MP-005 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [合格],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-QL-004 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [合格],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-02/inspect",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "本批检验记录落库",
"actual": "select count(*) from inspection_records where inspection_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-03/create",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "工单 RUN20261108-01-WO-001 创建成功",
"actual": "HTTP 200 / code=3015 / message=\"保存失败,共 3 项需要处理\" / body={\"code\":3015,\"message\":\"保存失败,共 3 项需要处理\",\"data\":{\"errors\":[{\"field\":\"productTypeId\",\"message\":\"请选择产品型号\",\"suggestion\":\"在「产品型号」下拉中选择本次要生产的产品\"},{\"field\":\"contractNo\",\"message\":\"非法的归属类型\",\"suggestion\":\"归属类型选「合同号/科技项目号」时必须填归属编号;选「其他」可不填\"},{\"field\":\"flow…",
"pass": false,
"failReason": "业务码期望 0 实际 3015",
"status": "失败"
},
{
"stepId": "S1-03/create",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L3 状态流转",
"expect": "工单初始状态 CREATED",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [CREATED],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-03/schedule",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "自动排产生成 2026-11-08 计划",
"actual": "HTTP 200 / code=3015 / message=\"保存失败,共 1 项需要处理\" / body={\"code\":3015,\"message\":\"保存失败,共 1 项需要处理\",\"data\":{\"errors\":[{\"field\":\"orderNo\",\"message\":\"工单不存在\",\"suggestion\":\"请核对该工单的状态与工艺组合后重试\"}]}}\n",
"pass": false,
"failReason": "业务码期望 0 实际 3015",
"status": "失败"
},
{
"stepId": "S1-03/schedule",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L2 数据库落库",
"expect": "日排产落库 1 行",
"actual": "select count(*) from daily_plan where order_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-03/release",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "下发并开工(状态 CREATED→IN_PROGRESS)",
"actual": "HTTP 200 / code=3008 / message=\"缺少 id\" / body={\"code\":3008,\"message\":\"缺少 id\"}\n",
"pass": false,
"failReason": "业务码期望 0 实际 3008",
"status": "失败"
},
{
"stepId": "S1-03/release",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L3 状态流转",
"expect": "工单状态 IN_PROGRESS",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [IN_PROGRESS],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-03",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实工单号=RUN20261108-01-WO-001,真实工件号=RUN20261108-01-SN-0001,真实路线组合=[map[flowId:0 stationNo:3] map[flowId:0 stationNo:6] map[flowId:0 stationNo:12]](flowId 取自 station 表现值)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-04",
"caseLine": "案例.md:73 / 流水1-4 :159-165",
"layer": "L1 接口响应",
"expect": "备料清单可读(只读页)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"rows\":[],\"total\":0,\"range\":\"2026-11-08 ~ 2026-11-08\",\"planCnt\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-04",
"caseLine": "案例.md:73 / 流水1-4 :159-165",
"layer": "L4 交付物",
"expect": "清单含工位3 箱体6/面板6、工位6 断路器12、工位12 铭牌6",
"actual": "响应片段:{\"code\":0,\"message\":\"ok\",\"data\":{\"rows\":[],\"total\":0,\"range\":\"2026-11-08 ~ 2026-11-08\",\"planCnt\":0}}",
"pass": false,
"failReason": "若为空:备料需求由 MES 实时计算,需工单已下发开工且排产日期为今天及以后",
"status": "失败"
},
{
"stepId": "S1-04",
"caseLine": "案例.md:73 / 流水1-4 :159-165",
"layer": "L2 数据库落库",
"expect": "备料清单不落工单备料台账(案例:162 D16)",
"actual": "select count(*) from call_pool = \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/online",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "上线建档 RUN20261108-01-SN-0001",
"actual": "HTTP 409 / code=-1 / message=\"工单不存在,无法确定序列号管理方式\" / body={\"code\":-1,\"message\":\"工单不存在,无法确定序列号管理方式\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 409;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-05/online",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L3 状态流转",
"expect": "在制工件上线(ONLINE)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [ONLINE],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-05/call1",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "工位3 第1 次叫料提交成包",
"actual": "HTTP 502 / code=-1 / message=\"MES 服务不可达:MES 业务拒绝(code=3202): 接驳台 DOCK01 不属于本工位或已停用,请在「产线管理」确认后重选\" / body={\"code\":-1,\"message\":\"MES 服务不可达:MES 业务拒绝(code=3202): 接驳台 DOCK01 不属于本工位或已停用,请在「产线管理」确认后重选\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 502;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-05/call2",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "工位3 第2 次叫料提交成包",
"actual": "HTTP 502 / code=-1 / message=\"MES 服务不可达:MES 业务拒绝(code=3202): 接驳台 DOCK01 不属于本工位或已停用,请在「产线管理」确认后重选\" / body={\"code\":-1,\"message\":\"MES 服务不可达:MES 业务拒绝(code=3202): 接驳台 DOCK01 不属于本工位或已停用,请在「产线管理」确认后重选\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 502;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-05/call3",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "工位6 第3 次叫料提交成包",
"actual": "HTTP 502 / code=-1 / message=\"MES 服务不可达:MES 业务拒绝(code=3202): 接驳台 DOCK01 不属于本工位或已停用,请在「产线管理」确认后重选\" / body={\"code\":-1,\"message\":\"MES 服务不可达:MES 业务拒绝(code=3202): 接驳台 DOCK01 不属于本工位或已停用,请在「产线管理」确认后重选\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 502;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-05/call",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L2 数据库落库",
"expect": "叫料单落库(按包、按工位×物料聚合)",
"actual": "select count(*) from material_request where work_order_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"3\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-05/call",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L3 状态流转",
"expect": "叫料包内单据初始状态 PENDING(待备料)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [PENDING],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-05",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实叫料单号=[];真实叫料包号=[]",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/complete",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L3 状态流转",
"expect": "叫料单状态 PENDING→SHIPPED",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [SHIPPED],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-06/delivery",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "按叫料包建配送单(明细快照含工单/工艺/排产日)",
"actual": "HTTP 400 / code=-1 / message=\"包号、配送接驳台与配送明细必填\" / body={\"code\":-1,\"message\":\"包号、配送接驳台与配送明细必填\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-06/delivery",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "配送单落库(按包)",
"actual": "select count(*) from delivery_order where package_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"1\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-06/delivery",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "配送单明细快照落库",
"actual": "select count(*) from delivery_order_item where delivery_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"3\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-06",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实出库单号=[];真实配送单号=",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "按配送单派车并人工确认装车/卸货",
"actual": "未执行(前置条件不满足)",
"pass": false,
"failReason": "上一步未产生真实配送单号,无法派车(流水在此断开)",
"status": "阻断"
},
{
"stepId": "S1-08",
"caseLine": "案例.md:92 / 流水1-8 :191-197",
"layer": "L3 状态流转",
"expect": "叫料单状态 SHIPPED→DONE(已完成)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [DONE],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-09/report1",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位3 报工完成",
"actual": "HTTP 400 / code=-1 / message=\"sn/flowId/stationNo 必填\" / body={\"code\":-1,\"message\":\"sn/flowId/stationNo 必填\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-09/report2",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位6 报工完成",
"actual": "HTTP 400 / code=-1 / message=\"sn/flowId/stationNo 必填\" / body={\"code\":-1,\"message\":\"sn/flowId/stationNo 必填\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-09/report3",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位12 报工完成",
"actual": "HTTP 400 / code=-1 / message=\"sn/flowId/stationNo 必填\" / body={\"code\":-1,\"message\":\"sn/flowId/stationNo 必填\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-09/bind",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位6 装配物料逐颗绑定",
"actual": "HTTP 400 / code=-1 / message=\"sn / flowId 必填\" / body={\"code\":-1,\"message\":\"sn / flowId 必填\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-09/torque",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "拧紧步骤逐颗录入扭矩",
"actual": "HTTP 400 / code=-1 / message=\"缺少拧紧工艺步骤\" / body={\"code\":-1,\"message\":\"缺少拧紧工艺步骤\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-09",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L2 数据库落库",
"expect": "工序实绩落库(workpiece_process)",
"actual": "SQL 执行失败:错误: 字段 \"workpiece_id\" 不存在 (SQLSTATE 42703)",
"pass": false,
"failReason": "错误: 字段 \"workpiece_id\" 不存在 (SQLSTATE 42703)",
"status": "失败"
},
{
"stepId": "S1-09",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L2 数据库落库",
"expect": "装机绑定落库(workpiece_bind)",
"actual": "SQL 执行失败:错误: 字段 \"workpiece_id\" 不存在 (SQLSTATE 42703)",
"pass": false,
"failReason": "错误: 字段 \"workpiece_id\" 不存在 (SQLSTATE 42703)",
"status": "失败"
},
{
"stepId": "S1-10/done",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "确认完工入库(回流 WMS)",
"actual": "HTTP 409 / code=-1 / message=\"工件不存在\" / body={\"code\":-1,\"message\":\"工件不存在\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 409;业务码期望 0 实际 -1;提示文案未包含 \"完工入库成功\"",
"status": "失败"
},
{
"stepId": "S1-10/done",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [DONE],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-10/done",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L2 数据库落库",
"expect": "成品回流 WMS 成品库存 6 台",
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 = \"{0 0 false finite true}\"",
"pass": false,
"failReason": "期望 \"6\",实际 \"{0 0 false finite true}\"",
"status": "失败"
},
{
"stepId": "S1-10/wo-complete",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "工单点「完工」→ 状态已完成",
"actual": "HTTP 200 / code=3008 / message=\"缺少 id\" / body={\"code\":3008,\"message\":\"缺少 id\"}\n",
"pass": false,
"failReason": "业务码期望 0 实际 3008",
"status": "失败"
},
{
"stepId": "S1-10/wo-complete",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工单终态 DONE(案例界面显示「已完成」)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [DONE],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-10/backflush",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L2 数据库落库",
"expect": "按工单物料清单反冲扣账(不混账)",
"actual": "select count(*) from event_log where work_order_no=$1 = \"0\"",
"pass": false,
"failReason": "期望 \"\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-11",
"caseLine": "案例.md:112 / 流水1-11 :215-221",
"layer": "L1 接口响应",
"expect": "绩效报表按工位/人员/日期可读",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"byOperator\":{\"list\":[],\"total\":0},\"byStation\":{\"list\":[],\"total\":0},\"detail\":{\"list\":[],\"total\":0},\"lossByOrder\":{\"list\":[],\"total\":0},\"lossTotal\":0,\"sessions\":{\"list\":[],\"total\":0}}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-11",
"caseLine": "案例.md:112 / 流水1-11 :215-221",
"layer": "L4 交付物",
"expect": "含当日合格数、上机时长、工单损耗列(本场景损耗=0)",
"actual": "响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"byOperator\":{\"list\":[],\"total\":0},\"byStation\":{\"list\":[],\"total\":0},\"detail\":{\"list\":[],\"total\":0},\"lossByOrder\":{\"list\":[],\"total\":0},\"lossTotal\":0,\"sessions\":{\"list\":[],\"total\":0}}}\n",
"pass": true,
"failReason": "若 code≠0:绩效报表接口未返回当日数据",
"status": "通过"
},
{
"stepId": "S1-12",
"caseLine": "案例.md:113 / 流水1-12 :223-229",
"layer": "L1 接口响应",
"expect": "输入 RUN20261108-01-SN-0001 可查全生命周期",
"actual": "HTTP 200 / code=3305 / message=\"该SN无追溯数据\" / body={\"code\":3305,\"message\":\"该SN无追溯数据\"}\n",
"pass": false,
"failReason": "业务码期望 0 实际 3305",
"status": "失败"
},
{
"stepId": "S1-12",
"caseLine": "案例.md:113 / 流水1-12 :223-229",
"layer": "L4 交付物",
"expect": "时间线 3→6→12、步骤考核、拧紧数据、装机绑定全绑齐",
"actual": "响应片段:{\"code\":3305,\"message\":\"该SN无追溯数据\"}\n",
"pass": false,
"failReason": "若为失败:追溯聚合缺工位节点或绑定未落库",
"status": "失败"
},
{
"stepId": "S1-13",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L1 接口响应",
"expect": "按工单可查主卡(工序实绩/用料清单/成品明细/签字区)",
"actual": "HTTP 200 / code=2403 / message=\"工单 RUN20261108-01-WO-001 不存在\" / body={\"code\":2403,\"message\":\"工单 RUN20261108-01-WO-001 不存在\"}\n",
"pass": false,
"failReason": "业务码期望 0 实际 2403",
"status": "失败"
},
{
"stepId": "S1-13",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "主卡四段内容齐全",
"actual": "响应片段:{\"code\":2403,\"message\":\"工单 RUN20261108-01-WO-001 不存在\"}\n",
"pass": false,
"failReason": "若 code≠0:流程卡未生成",
"status": "失败"
},
{
"stepId": "S1-13/pdf",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L1 接口响应",
"expect": "备份导出格式 pdf 可用",
"actual": "HTTP 200 / code=2410 / message=\"工单 RUN20261108-01-WO-001 不存在\" / body={\"code\":2410,\"message\":\"工单 RUN20261108-01-WO-001 不存在\"}\n",
"pass": false,
"failReason": "业务码期望 0 实际 2410",
"status": "失败"
},
{
"stepId": "S1-13/pdf",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "导出 pdf 有交付物",
"actual": "HTTP 200 / code=2410 / 长度 65 字节",
"pass": true,
"failReason": "若不可用:导出链路缺实现",
"status": "通过"
},
{
"stepId": "S1-13/excel",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L1 接口响应",
"expect": "备份导出格式 excel 可用",
"actual": "HTTP 404 / code=-1 / message=\"响应非 JSON\" / body=404 page not found\n",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 404;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-13/excel",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "导出 excel 有交付物",
"actual": "HTTP 404 / code=-1 / 长度 19 字节",
"pass": false,
"failReason": "若不可用:导出链路缺实现",
"status": "失败"
},
{
"stepId": "S1-13/print",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L1 接口响应",
"expect": "备份导出格式 print 可用",
"actual": "HTTP 404 / code=-1 / message=\"响应非 JSON\" / body=404 page not found\n",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 404;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-13/print",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "导出 print 有交付物",
"actual": "HTTP 404 / code=-1 / 长度 19 字节",
"pass": false,
"failReason": "若不可用:导出链路缺实现",
"status": "失败"
},
{
"stepId": "S1-14/return1",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "第1 张分批退料单(箱体 1 个、必选接驳台、必填原因)",
"actual": "HTTP 502 / code=-1 / message=\"MES 服务不可达:MES 业务拒绝(code=2403): 运输方式必选(AGV / 人工)\" / body={\"code\":-1,\"message\":\"MES 服务不可达:MES 业务拒绝(code=2403): 运输方式必选(AGV / 人工)\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 502;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-14/return2",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "第2 张分批退料单(箱体 1 个、必选接驳台、必填原因)",
"actual": "HTTP 502 / code=-1 / message=\"MES 服务不可达:MES 业务拒绝(code=2403): 运输方式必选(AGV / 人工)\" / body={\"code\":-1,\"message\":\"MES 服务不可达:MES 业务拒绝(code=2403): 运输方式必选(AGV / 人工)\"}",
"pass": false,
"failReason": "HTTP 状态码期望 200 实际 502;业务码期望 0 实际 -1",
"status": "失败"
},
{
"stepId": "S1-14",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L2 数据库落库",
"expect": "两张「待确认收货」单并存互不吞并(案例:101 D10)",
"actual": "select count(*) from return_orders where order_no=$1 and material_code=$2 and status='PENDING' = \"0\"",
"pass": false,
"failReason": "期望 \"2\",实际 \"0\"",
"status": "失败"
},
{
"stepId": "S1-14/confirm",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L3 状态流转",
"expect": "退料单终态 RECEIVED(已收货)",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [RECEIVED],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-14",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实退料单号=[]",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-15",
"caseLine": "案例.md:105 / 流水1-15 :247-253",
"layer": "L1 接口响应",
"expect": "下班/结束作业(左右接驳台均空才放行)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"ok\":true}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-15",
"caseLine": "案例.md:105 / 流水1-15 :247-253",
"layer": "L2 数据库落库",
"expect": "下班动作在工位终端操作日志留痕",
"actual": "select count(*) from event_log where action like '%off%' = \"6\"",
"pass": false,
"failReason": "期望 \"\",实际 \"6\"",
"status": "失败"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "库存汇总 DX100-XT-001 = 2",
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 and quality_status='合格' = \"{0 0 false finite true}\"",
"pass": false,
"failReason": "期望 \"2\",实际 \"{0 0 false finite true}\"",
"status": "失败"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "库存汇总 DX100-MB-002 = 2",
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 and quality_status='合格' = \"{0 0 false finite true}\"",
"pass": false,
"failReason": "期望 \"2\",实际 \"{0 0 false finite true}\"",
"status": "失败"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "库存汇总 DX100-MP-005 = 2",
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 and quality_status='合格' = \"{0 0 false finite true}\"",
"pass": false,
"failReason": "期望 \"2\",实际 \"{0 0 false finite true}\"",
"status": "失败"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "库存汇总 DX100-QL-004 = 8",
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 and quality_status='合格' = \"{0 0 false finite true}\"",
"pass": false,
"failReason": "期望 \"8\",实际 \"{0 0 false finite true}\"",
"status": "失败"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "库存汇总 DX-100 = 6",
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 and quality_status='合格' = \"{0 0 false finite true}\"",
"pass": false,
"failReason": "期望 \"6\",实际 \"{0 0 false finite true}\"",
"status": "失败"
},
{
"stepId": "S1-16/return",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "退料单 终态 RECEIVED",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [RECEIVED],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-16/wo",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "工单 终态 DONE",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [DONE],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-16/call",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "叫料单 终态 DONE",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [DONE],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-16/outbound",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "出库单 终态 已送达",
"actual": "当前状态 = \"\"",
"pass": false,
"failReason": "状态期望属于 [已送达],实际 \"\"",
"status": "失败"
},
{
"stepId": "S1-16/deliverable",
"caseLine": "案例.md:109-110",
"layer": "L4 交付物",
"expect": "绩效报表(含工单损耗)",
"actual": "见 S1-11 / S1-12 / S1-13 各步实际响应",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/deliverable",
"caseLine": "案例.md:109-110",
"layer": "L4 交付物",
"expect": "工件追溯(3→6→12 时间线、装机绑定全绑齐)",
"actual": "见 S1-11 / S1-12 / S1-13 各步实际响应",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/deliverable",
"caseLine": "案例.md:109-110",
"layer": "L4 交付物",
"expect": "生产流程卡(工序实绩/用料清单/成品明细/签字区,PDF/Excel/打印三格式)",
"actual": "见 S1-11 / S1-12 / S1-13 各步实际响应",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-01",
"caseLine": "案例.md:540-545",
"layer": "L4 交付物",
"expect": "叫料时接驳台非必填(允许空值行)(期望 \u003e=0)",
"actual": "select count(*) from material_request where target_dock is null or target_dock='' → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-02",
"caseLine": "案例.md:543,601-611",
"layer": "L4 交付物",
"expect": "退料必须指定左/右接驳台(空值行应为 0)(期望 0)",
"actual": "select count(*) from return_orders where return_dock is null or return_dock='' → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-03",
"caseLine": "案例.md:544,282",
"layer": "L4 交付物",
"expect": "叫料池按工位×物料聚合、不认工单(期望 \u003e=0)",
"actual": "select count(*) from call_pool → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-04",
"caseLine": "案例.md:551-560",
"layer": "L4 交付物",
"expect": "AGV 任务按配送单驱动(biz_no 关联配送单)(期望 \u003e=0)",
"actual": "select count(*) from agv_tasks → \"4\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-05",
"caseLine": "案例.md:613-617",
"layer": "L4 交付物",
"expect": "损耗原因在 WMS 确认收货时落账(期望 \u003e=0)",
"actual": "select count(*) from return_orders where loss_reason is not null and loss_reason\u003c\u003e'' → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-06",
"caseLine": "案例.md:623-625",
"layer": "L4 交付物",
"expect": "MES 物料副本与 WMS 主数据源同源(期望 同源)",
"actual": "MES=11 / WMS=11(差集需按 code 逐条核)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-07",
"caseLine": "案例.md:547-549",
"layer": "L4 交付物",
"expect": "设备失联降级动作有事件日志留痕(期望 \u003e=0)",
"actual": "select count(*) from event_log → \"179\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-08",
"caseLine": "案例.md:449,547-549",
"layer": "L4 交付物",
"expect": "工位终端本地无离线队列/重试缓存表(期望 0)",
"actual": "select count(*) from sqlite_master where type='table' and name in ('report_queue','torque_results') → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-09",
"caseLine": "案例.md:619-621",
"layer": "L4 交付物",
"expect": "看板免登录可读、报喜不报忧",
"actual": "HTTP 200 / 首页长度 935 字节",
"pass": true,
"failReason": "若非 200:看板未就绪",
"status": "通过"
}
],
"summary": {
"total": 114,
"pass": 41,
"fail": 72,
"block": 1,
"passRate": "36.0%"
}
}