{ "runBatch": "RUN20261108-04", "scenario": "场景1", "startedAt": "2026-11-09 07:23:14", "finishedAt": "2026-11-09 07:23:16", "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-04,T=2026-11-09,T+1=2026-11-10,T+2=2026-11-11(日期相对化,无写死日期)", "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=\"1\";路线工位真实 flow_id 将在 S1-03 现查", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-01/1", "caseLine": "案例.md:62 / 流水1-1 :135-141", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "物料 DX100-XT-001 已在档(幂等跳过创建,不重复写库)", "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 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-01/2", "caseLine": "案例.md:62 / 流水1-1 :135-141", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "物料 DX100-MB-002 已在档(幂等跳过创建,不重复写库)", "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 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-01/3", "caseLine": "案例.md:62 / 流水1-1 :135-141", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "物料 DX100-MP-005 已在档(幂等跳过创建,不重复写库)", "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": "记录本步真实产出供下一步使用", "actual": "物料 DX100-QL-004 已在档(幂等跳过创建,不重复写库)", "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 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-01/5", "caseLine": "案例.md:62 / 流水1-1 :135-141", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "物料 DX-100 已在档(幂等跳过创建,不重复写库)", "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 = \"1\"", "pass": true, "failReason": "", "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-04-IB-001-94686)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-04-BATCH-001-94686\",\"inboundNo\":\"RUN20261108-04-IB-001-94686\",\"quantity\":8,\"snCount\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in1", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-04-IB-001-94686 落库", "actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in2", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "入库 DX100-MB-002 ×8 成功(RUN20261108-04-IB-002-94686)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-04-BATCH-002-94686\",\"inboundNo\":\"RUN20261108-04-IB-002-94686\",\"quantity\":8,\"snCount\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in2", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-04-IB-002-94686 落库", "actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in3", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "入库 DX100-MP-005 ×8 成功(RUN20261108-04-IB-003-94686)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-04-BATCH-003-94686\",\"inboundNo\":\"RUN20261108-04-IB-003-94686\",\"quantity\":8,\"snCount\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in3", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-04-IB-003-94686 落库", "actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in4", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "入库 DX100-QL-004 ×20 成功(RUN20261108-04-IB-004-94686)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-04-IB-004-94686\",\"quantity\":20,\"snCount\":20}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in4", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-04-IB-004-94686 落库", "actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in5", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "成品工件 SN 入库登记 RUN20261108-04-SN-0001-94686", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-04-IB-005-94686\",\"quantity\":1,\"snCount\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in5", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "成品 SN 入库单落库", "actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"", "pass": true, "failReason": "", "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\":\"RUN20261108-04-IB-005-94686\",\"inboundType\":\"other\",\"ownershipType\":\"other\",\"ownershipNo\":\"RUN20261108-04-PROJ-001-94686\",\"materialCode\":\"DX-100\",\"materialName\":\"电表箱成品\",\"matManageMode\":3,\"snMode\":1,\"unInspectedQty\":1,\"detailsTotal\":1,\"inboundTime\":1794180195,\"inspectionNo\":\"RUN20261108-04-IBJ-001-94686\"},{\"inboundNo\":\"RUN20261108-04-I…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-04-IB-005-94686", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":113,\"itemType\":3,\"matManageMode\":3,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-04-SN-0001-94686\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-04-IB-004-94686", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":93,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-04-QL-0001-94686\",\"zoneCode\":\"Z02\"},{\"id\":94,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-04-QL-0002-94686\",\"zoneCode\":\"Z02\"},{\"id\":95,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-04-QL-0003-94686\",\"zone…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-04-IB-003-94686", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":92,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-04-BATCH-003-94686\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-04-IB-002-94686", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":91,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-04-BATCH-002-94686\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-04-IB-001-94686", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":90,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-04-BATCH-001-94686\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-004-07783", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":70,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-03-QL-0001-07783\",\"zoneCode\":\"Z02\"},{\"id\":71,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-03-QL-0002-07783\",\"zoneCode\":\"Z02\"},{\"id\":72,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-03-QL-0003-07783\",\"zone…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-003-07783", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":69,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-03-BATCH-003-07783\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-002-07783", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":68,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-03-BATCH-002-07783\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-001-07783", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":67,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-03-BATCH-001-07783\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-004", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":47,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-03-QL-0001\",\"zoneCode\":\"Z02\"},{\"id\":48,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-03-QL-0002\",\"zoneCode\":\"Z02\"},{\"id\":49,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-03-QL-0003\",\"zoneCode\":\"Z02\"},{\"id\"…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-003", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":46,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-03-BATCH-003\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-002", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":45,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-03-BATCH-002\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-03-IB-001", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":44,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-03-BATCH-001\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-02-IB-004", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":24,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-02-QL-0001\",\"zoneCode\":\"Z02\"},{\"id\":25,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-02-QL-0002\",\"zoneCode\":\"Z02\"},{\"id\":26,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-02-QL-0003\",\"zoneCode\":\"Z02\"},{\"id\"…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-02-IB-003", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":23,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-02-BATCH-003\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-02-IB-002", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":22,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-02-BATCH-002\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-02-IB-001", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":21,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-02-BATCH-001\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 IB20261105-002", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":17,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"1\",\"zoneCode\":\"1区\"},{\"id\":18,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"2\",\"zoneCode\":\"1区\"},{\"id\":19,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"3\",\"zoneCode\":\"1区\"},{\"id\":20,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 IB20261105-001", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":16,\"itemType\":1,\"matManageMode\":1,\"quantity\":2,\"snMode\":2,\"targetId\":\"YouQi001-20261105-001\",\"zoneCode\":\"1区\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RET:TH20261104132033900", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":8,\"itemType\":0,\"matManageMode\":0,\"quantity\":3,\"snMode\":2,\"targetId\":\"M-TESTG-20261104-001\",\"zoneCode\":\"\"}],\"page\":1,\"pageSize\":500,\"total\":1}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "真实待检明细取得 99 条 targetId(含成品工件 SN)", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/inspect", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "逐条判合格并提交检验结论", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"flipped\":99}}", "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": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/quality", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L3 状态流转", "expect": "DX100-MB-002 检验后质量状态=合格(仅合格可被 FIFO 选中)", "actual": "当前状态 = \"合格\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/quality", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L3 状态流转", "expect": "DX100-MP-005 检验后质量状态=合格(仅合格可被 FIFO 选中)", "actual": "当前状态 = \"合格\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/quality", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L3 状态流转", "expect": "DX100-QL-004 检验后质量状态=合格(仅合格可被 FIFO 选中)", "actual": "当前状态 = \"合格\"", "pass": true, "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 = \"99\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/flow-material-1", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "工艺1 保存装配物料清单", "actual": "HTTP 200 / code=0 / message=\"工艺物料清单已保存\" / body={\"code\":0,\"message\":\"工艺物料清单已保存\"}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/flow-material-2", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "工艺2 保存装配物料清单", "actual": "HTTP 200 / code=0 / message=\"工艺物料清单已保存\" / body={\"code\":0,\"message\":\"工艺物料清单已保存\"}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/flow-material-3", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "工艺3 保存装配物料清单", "actual": "HTTP 200 / code=0 / message=\"工艺物料清单已保存\" / body={\"code\":0,\"message\":\"工艺物料清单已保存\"}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/create", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "工单 RUN20261108-04-WO-001-94686 创建成功", "actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"warnings\":[]}}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/create", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L3 状态流转", "expect": "工单初始状态 CREATED", "actual": "当前状态 = \"CREATED\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/schedule", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "自动排产生成 2026-11-09 计划", "actual": "HTTP 200 / code=0 / message=\"排产已确认(待人工启用)\" / body={\"code\":0,\"message\":\"排产已确认(待人工启用)\"}\n", "pass": true, "failReason": "", "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 = \"1\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/release", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "下发并开工(状态 CREATED→IN_PROGRESS)", "actual": "HTTP 200 / code=0 / message=\"状态已更新\" / body={\"code\":0,\"message\":\"状态已更新\"}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/release", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L3 状态流转", "expect": "工单状态 IN_PROGRESS", "actual": "当前状态 = \"IN_PROGRESS\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-03/plan-confirm", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "启用日排产(PENDING→CONFIRMED,派生叫料池)", "actual": "HTTP 200 / code=3012 / message=\"仅支持 启用/停用 操作\" / body={\"code\":3012,\"message\":\"仅支持 启用/停用 操作\"}\n", "pass": false, "failReason": "业务码期望 0 实际 3012", "status": "失败" }, { "stepId": "S1-03", "caseLine": "案例.md:69-70 / 流水1-3 :151-157", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "真实工单号=RUN20261108-04-WO-001-94686,真实工件号=RUN20261108-04-SN-0001-94686,真实路线组合=[map[flowId:1 stationNo:3] map[flowId:2 stationNo:6] map[flowId:3 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\":[{\"planDate\":\"2026-11-09\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"productName\":\"电表箱\",\"stationNo\":3,\"stationQty\":6,\"materialCode\":\"DX100-MB-002\",\"materialName\":\"面板\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"qty\":6,\"unitQty\":1,\"status\":\"PROCESSING\"},{\"planDate\":\"2026-11-09\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"productName\":\"电表箱\",\"stationNo\":3…", "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\":[{\"planDate\":\"2026-11-09\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"productName\":\"电表箱\",\"stationNo\":3,\"stationQty\":6,\"materialCode\":\"DX100-MB-002\",\"materialName\":\"面板\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"qty\":6…", "pass": true, "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-04-SN-0001-94686", "actual": "HTTP 200 / code=0 / message=\"进线登记成功\" / body={\"code\":0,\"message\":\"进线登记成功\",\"data\":null}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-05/online", "caseLine": "案例.md:76-82 / 流水1-5 :167-173", "layer": "L3 状态流转", "expect": "在制工件上线(ONLINE)", "actual": "当前状态 = \"ONLINE\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-05/call1", "caseLine": "案例.md:76-82 / 流水1-5 :167-173", "layer": "L1 接口响应", "expect": "工位3 第1 次叫料提交成包", "actual": "HTTP 200 / code=3202 / message=\"叫料池无该物料行(该工位未排产或工艺无此物料)\" / body={\"code\":3202,\"message\":\"叫料池无该物料行(该工位未排产或工艺无此物料)\"}\n", "pass": false, "failReason": "业务码期望 0 实际 3202", "status": "失败" }, { "stepId": "S1-05/call2", "caseLine": "案例.md:76-82 / 流水1-5 :167-173", "layer": "L1 接口响应", "expect": "工位3 第2 次叫料提交成包", "actual": "HTTP 200 / code=3202 / message=\"叫料池无该物料行(该工位未排产或工艺无此物料)\" / body={\"code\":3202,\"message\":\"叫料池无该物料行(该工位未排产或工艺无此物料)\"}\n", "pass": false, "failReason": "业务码期望 0 实际 3202", "status": "失败" }, { "stepId": "S1-05/call3", "caseLine": "案例.md:76-82 / 流水1-5 :167-173", "layer": "L1 接口响应", "expect": "工位6 第3 次叫料提交成包", "actual": "HTTP 200 / code=3202 / message=\"叫料池无该物料行(该工位未排产或工艺无此物料)\" / body={\"code\":3202,\"message\":\"叫料池无该物料行(该工位未排产或工艺无此物料)\"}\n", "pass": false, "failReason": "业务码期望 0 实际 3202", "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 200 / code=2104 / message=\"装配物料未绑齐:DX100-XT-001(箱体):未绑定批次号;DX100-MB-002(面板):未绑定批次号\" / body={\"code\":2104,\"message\":\"装配物料未绑齐:DX100-XT-001(箱体):未绑定批次号;DX100-MB-002(面板):未绑定批次号\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2104", "status": "失败" }, { "stepId": "S1-09/report2", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "工位6 报工完成", "actual": "HTTP 200 / code=2104 / message=\"不可跳工序:请先完成上一道工序\" / body={\"code\":2104,\"message\":\"不可跳工序:请先完成上一道工序\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2104", "status": "失败" }, { "stepId": "S1-09/report3", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "工位12 报工完成", "actual": "HTTP 200 / code=2104 / message=\"不可跳工序:请先完成上一道工序\" / body={\"code\":2104,\"message\":\"不可跳工序:请先完成上一道工序\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2104", "status": "失败" }, { "stepId": "S1-09/bind", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "工位6 装配物料逐颗绑定", "actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"bound\":12,\"panel\":{\"enabled\":true,\"required\":[{\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":1,\"unitQty\":2,\"need\":2,\"bound\":[\"RUN20261108-04-QL-0001-94686\",\"RUN20261108-04-QL-0002-94686\",\"RUN20261108-04-QL-0003-94686\",\"RUN20261108-04-QL-0004-94686\",\"RUN20261108-04-QL-0005-94686\",\"RUN20261108-04-Q…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-09/torque", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "拧紧步骤逐颗录入扭矩", "actual": "HTTP 400 / code=400 / message=\"请求体解析失败\" / body={\"code\":400,\"message\":\"请求体解析失败\"}\n", "pass": false, "failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 400", "status": "失败" }, { "stepId": "S1-09", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L2 数据库落库", "expect": "工序实绩落库(workpiece_process)", "actual": "select count(*) from workpiece_process where sn=$1 = \"0\"", "pass": false, "failReason": "期望 \"3\",实际 \"0\"", "status": "失败" }, { "stepId": "S1-09", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L2 数据库落库", "expect": "装机绑定落库(workpiece_bind)", "actual": "select count(*) from workpiece_bind where sn=$1 = \"12\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-10/done", "caseLine": "案例.md:94-95 / 流水1-10 :207-213", "layer": "L1 接口响应", "expect": "确认完工入库(回流 WMS)", "actual": "HTTP 200 / code=2008 / message=\"完工前必须绑齐全部装配物料:工艺「盖子安装」:装配物料未绑齐:DX100-XT-001(箱体):未绑定批次号;DX100-MB-002(面板):未绑定批次号\" / body={\"code\":2008,\"message\":\"完工前必须绑齐全部装配物料:工艺「盖子安装」:装配物料未绑齐:DX100-XT-001(箱体):未绑定批次号;DX100-MB-002(面板):未绑定批次号\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2008;提示文案未包含 \"完工成功\"", "status": "失败" }, { "stepId": "S1-10/done", "caseLine": "案例.md:94-95 / 流水1-10 :207-213", "layer": "L3 状态流转", "expect": "工件状态 DONE", "actual": "当前状态 = \"ONLINE\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"ONLINE\"", "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 = \"{1 0 false finite true}\"", "pass": false, "failReason": "期望 \"6\",实际 \"{1 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=\"工单尚有 6 台未报工完成(共 6 台,已完工 0 台),不能完工;请等全部工件报工完成后再点「完工」\" / body={\"code\":3008,\"message\":\"工单尚有 6 台未报工完成(共 6 台,已完工 0 台),不能完工;请等全部工件报工完成后再点「完工」\"}\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": "当前状态 = \"IN_PROGRESS\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"IN_PROGRESS\"", "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 = \"6\"", "pass": false, "failReason": "期望 \"\",实际 \"6\"", "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-04-SN-0001-94686 可查全生命周期", "actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"associationTrace\":null,\"bindTrace\":{\"binds\":[{\"id\":1,\"sn\":\"RUN20261108-04-SN-0001-94686\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"flowId\":2,\"stationNo\":\"6\",\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":1,\"bindValue\":\"RUN20261108-04-QL-0001-94686\",\"bindType\":\"SN\",\"operator\":\"系统管理员\",\"crea…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-12", "caseLine": "案例.md:113 / 流水1-12 :223-229", "layer": "L4 交付物", "expect": "时间线 3→6→12、步骤考核、拧紧数据、装机绑定全绑齐", "actual": "响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"associationTrace\":null,\"bindTrace\":{\"binds\":[{\"id\":1,\"sn\":\"RUN20261108-04-SN-0001-94686\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"flowId\":2,\"stationNo\":\"6\",\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snM…", "pass": true, "failReason": "若为失败:追溯聚合缺工位节点或绑定未落库", "status": "通过" }, { "stepId": "S1-13", "caseLine": "案例.md:114 / 流水1-13 :231-237", "layer": "L1 接口响应", "expect": "按工单可查主卡(工序实绩/用料清单/成品明细/签字区)", "actual": "HTTP 200 / code=-1 / message=\"响应非 JSON\" / body=\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh\"\u003e\n\u003chead\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003ctitle\u003e生产流程卡 RUN20261108-04-WO-001-94686\u003c/title\u003e\n\u003cstyle\u003e\n * { margin:0; padding:0; box-sizing:border-box; }\n body { font-family:\"Microsoft YaHei\",sans-serif; color:#1f2937; padding:24px; background:#f7f8fa; }\n .card { max-width:1080px; margin:0 auto; border:2px solid #333; border-radius:8px; padding:22px 26px; background:#…", "pass": false, "failReason": "业务码期望 0 实际 -1", "status": "失败" }, { "stepId": "S1-13", "caseLine": "案例.md:114 / 流水1-13 :231-237", "layer": "L4 交付物", "expect": "主卡四段内容齐全", "actual": "响应片段:\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh\"\u003e\n\u003chead\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003ctitle\u003e生产流程卡 RUN20261108-04-WO-001-94686\u003c/title\u003e\n\u003cstyle\u003e\n * { margin:0; padding:0; box-sizing:border-box; }\n body { font-family:\"Microsoft YaHei\",sans-serif; color:#1f2937; padding:24px…", "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=-1 / message=\"响应非 JSON\" / body=%PDF-1.3\n3 0 obj\n\u003c\u003c/Type /Page\n/Parent 1 0 R\n/Resources 2 0 R\n/Contents 4 0 R\u003e\u003e\nendobj\n4 0 obj\n\u003c\u003c/Filter /FlateDecode /Length 2633\u003e\u003e\nstream\nx\u0001��M��G��k\u000f��;�E\u0005aAR^tr�'��\u0011���1�Iov�g7afv2��r����q��\u0001q�F�=\u0018�e!\u0017#��\\\u0012�[��� \u001e\u0002^\u003cx\u001ad��!�\u001eČ��SoU�ݽ\f���a�������T����y\u0005�ƌ��g\u0004XϿ7#@\b�\u001f���3g�����5c�\\]]�kf-J\u001f��\u001b�A\u000e���X}z�\u000e�\fk\u0003��\u0007!x���g���\u0012\u0006��\u003e\u0004p�������ݷ���\u000f���zxr�������_\u001e�z���q�{��{i\u0007�r�4x?���Ao�w��\f�g\u000b��\u0014\u0013L…", "pass": false, "failReason": "业务码期望 0 实际 -1", "status": "失败" }, { "stepId": "S1-13/pdf", "caseLine": "案例.md:114 / 流水1-13 :231-237", "layer": "L4 交付物", "expect": "导出 pdf 有交付物", "actual": "HTTP 200 / code=-1 / 长度 32900 字节", "pass": true, "failReason": "若不可用:导出链路缺实现", "status": "通过" }, { "stepId": "S1-13/excel", "caseLine": "案例.md:114 / 流水1-13 :231-237", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "跳过:MES 未注册 /api/v1/process-card/excel 接口(T6 核实),该格式不计入本步断言", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-13/print", "caseLine": "案例.md:114 / 流水1-13 :231-237", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "跳过:MES 未注册 /api/v1/process-card/print 接口(T6 核实),该格式不计入本步断言", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-14/return1", "caseLine": "案例.md:98-102 / 流水1-14 :239-245", "layer": "L1 接口响应", "expect": "第1 张分批退料单(箱体 1 个、必选接驳台、必填原因)", "actual": "HTTP 200 / code=0 / message=\"退库单已提交\" / body={\"code\":0,\"message\":\"退库单已提交\"}\n", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-14/return2", "caseLine": "案例.md:98-102 / 流水1-14 :239-245", "layer": "L1 接口响应", "expect": "第2 张分批退料单(箱体 1 个、必选接驳台、必填原因)", "actual": "HTTP 200 / code=0 / message=\"退库单已提交\" / body={\"code\":0,\"message\":\"退库单已提交\"}\n", "pass": true, "failReason": "", "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' = \"2\"", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-14/confirm1", "caseLine": "案例.md:98-102 / 流水1-14 :239-245", "layer": "L1 接口响应", "expect": "库管逐张「确认收货」(扣减在确认时发生)", "actual": "HTTP 400 / code=-1 / message=\"参数错误: json: unknown field \\\"receiveBy\\\"\" / body={\"code\":-1,\"message\":\"参数错误: json: unknown field \\\"receiveBy\\\"\"}", "pass": false, "failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1", "status": "失败" }, { "stepId": "S1-14/confirm2", "caseLine": "案例.md:98-102 / 流水1-14 :239-245", "layer": "L1 接口响应", "expect": "库管逐张「确认收货」(扣减在确认时发生)", "actual": "HTTP 400 / code=-1 / message=\"参数错误: json: unknown field \\\"receiveBy\\\"\" / body={\"code\":-1,\"message\":\"参数错误: json: unknown field \\\"receiveBy\\\"\"}", "pass": false, "failReason": "HTTP 状态码期望 200 实际 400;业务码期望 0 实际 -1", "status": "失败" }, { "stepId": "S1-14/confirm", "caseLine": "案例.md:98-102 / 流水1-14 :239-245", "layer": "L3 状态流转", "expect": "退料单终态 RECEIVED(已收货)", "actual": "当前状态 = \"PENDING\"", "pass": false, "failReason": "状态期望属于 [RECEIVED],实际 \"PENDING\"", "status": "失败" }, { "stepId": "S1-14", "caseLine": "案例.md:98-102 / 流水1-14 :239-245", "layer": "L1 接口响应", "expect": "记录本步真实产出供下一步使用", "actual": "真实退料单号=[TH20261109072316091809 TH20261109072316106059]", "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%' = \"7\"", "pass": false, "failReason": "期望 \"\",实际 \"7\"", "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='合格' = \"{32 0 false finite true}\"", "pass": false, "failReason": "期望 \"2\",实际 \"{32 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='合格' = \"{32 0 false finite true}\"", "pass": false, "failReason": "期望 \"2\",实际 \"{32 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='合格' = \"{32 0 false finite true}\"", "pass": false, "failReason": "期望 \"2\",实际 \"{32 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='合格' = \"{8 1 false finite true}\"", "pass": false, "failReason": "期望 \"8\",实际 \"{8 1 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='合格' = \"{1 0 false finite true}\"", "pass": false, "failReason": "期望 \"6\",实际 \"{1 0 false finite true}\"", "status": "失败" }, { "stepId": "S1-16/wo", "caseLine": "案例.md:109-110", "layer": "L3 状态流转", "expect": "工单 终态 DONE", "actual": "当前状态 = \"IN_PROGRESS\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"IN_PROGRESS\"", "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/return", "caseLine": "案例.md:109-110", "layer": "L3 状态流转", "expect": "退料单 终态 RECEIVED", "actual": "当前状态 = \"PENDING\"", "pass": false, "failReason": "状态期望属于 [RECEIVED],实际 \"PENDING\"", "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'' → \"10\"", "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 → \"239\"", "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": 141, "pass": 102, "fail": 38, "block": 1, "passRate": "72.3%" } }