- 同步失败台账:MES/WMS 双端新增台账与页面,跨系统通知失败落台账、人工重试或标记已处理,不自动重传;重试前先判对端终态;叫料、配送、出库回写失败提示指向台账;补幂等建表脚本与菜单权限。 - 拧紧枪:新增按工位配置页,展示控制器地址与三把枪通道号(仅供查看,不参与采集校验);「允许手填」由全局开关改为每工位开关,关闭时校验该工位已配控制器;终端启动/登录上报配置并按本工位拉取,扭矩手填框按本工位置灰;补全局值迁移到各工位的脚本。 - 工位体系:终端未配置工位号时登录页可选(含虚拟工位),固定工位模式保留;虚拟/线下位不叫料、不退料、不作转产目标,未采集绑定放行并说明原因;叫料期望接驳台改为选填。 - AGV与出库:补「出库单已送达」回写;空车回充、接驳台传感器失联、配送状态更新失败均落预警或留痕并提示人工核对;人工出库不引入送达状态;出库单支持目标工位/接驳台并扩展导出列。 - 基础设施:看板缓存由Redis改为MES进程内实现,文档与启动脚本同步去Redis;扫码监听支持多地址、端口被占自动降级;PLC对账与工位报警在MES不可达时降级放行并留日志。 - 文档与帮助:案例与部署手册按实测订正(工位绑定、菜单名称、补料由班组长代提、菜单覆盖对照、虚拟工位);迁移脚本改为本地即时执行并登记7个已执行脚本;三端页面帮助改为「业务/操作/影响范围/后果」四要素。 - 测试:新增独立Go模块,按三个业务场景做真实HTTP与真实写库的流水测试,含运行报告。
1543 lines
65 KiB
JSON
1543 lines
65 KiB
JSON
{
|
||
"runBatch": "RUN20261108-07",
|
||
"scenario": "场景1",
|
||
"startedAt": "2026-11-09 09:12:28",
|
||
"finishedAt": "2026-11-09 09:12:30",
|
||
"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-07,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-07-IB-001-48543)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-07-BATCH-001-48543\",\"inboundNo\":\"RUN20261108-07-IB-001-48543\",\"quantity\":8,\"snCount\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-02/in1",
|
||
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "入库单 RUN20261108-07-IB-001-48543 落库",
|
||
"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-07-IB-002-48543)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-07-BATCH-002-48543\",\"inboundNo\":\"RUN20261108-07-IB-002-48543\",\"quantity\":8,\"snCount\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-02/in2",
|
||
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "入库单 RUN20261108-07-IB-002-48543 落库",
|
||
"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-07-IB-003-48543)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-07-BATCH-003-48543\",\"inboundNo\":\"RUN20261108-07-IB-003-48543\",\"quantity\":8,\"snCount\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-02/in3",
|
||
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "入库单 RUN20261108-07-IB-003-48543 落库",
|
||
"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-07-IB-004-48543)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-07-IB-004-48543\",\"quantity\":20,\"snCount\":20}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-02/in4",
|
||
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "入库单 RUN20261108-07-IB-004-48543 落库",
|
||
"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-07-SN-0001-48543",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-07-IB-005-48543\",\"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-07-IB-005-48543\",\"inboundType\":\"other\",\"ownershipType\":\"other\",\"ownershipNo\":\"RUN20261108-07-PROJ-001-48543\",\"materialCode\":\"DX-100\",\"materialName\":\"电表箱成品\",\"matManageMode\":3,\"snMode\":1,\"unInspectedQty\":1,\"detailsTotal\":1,\"inboundTime\":1794186749,\"inspectionNo\":\"RUN20261108-07-IBJ-001-48543\"},{\"inboundNo\":\"RUN20261108-07-I…",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-02/pending-detail",
|
||
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
|
||
"layer": "L1 接口响应",
|
||
"expect": "待检明细可读 RUN20261108-07-IB-001-48543",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":163,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-07-BATCH-001-48543\",\"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-07-IB-002-48543",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":164,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-07-BATCH-002-48543\",\"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-07-IB-003-48543",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":165,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-07-BATCH-003-48543\",\"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-07-IB-004-48543",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":166,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-07-QL-0001-48543\",\"zoneCode\":\"Z02\"},{\"id\":167,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-07-QL-0002-48543\",\"zoneCode\":\"Z02\"},{\"id\":168,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-07-QL-0003-48543\",\"z…",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-02/pending-detail",
|
||
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
|
||
"layer": "L1 接口响应",
|
||
"expect": "待检明细可读 RUN20261108-07-IB-005-48543",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":186,\"itemType\":3,\"matManageMode\":3,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-07-SN-0001-48543\",\"zoneCode\":\"Z02\"}],\"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": "本轮入库单待检明细取得 24 条 targetId(按 Run 批次隔离,不触碰历史未检数据)",
|
||
"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\":24}}",
|
||
"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 = \"24\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-03",
|
||
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "工艺1 物料清单已存在(2 条),幂等跳过保存",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-03",
|
||
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "工艺2 物料清单已存在(1 条),幂等跳过保存",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-03",
|
||
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "工艺3 物料清单已存在(1 条),幂等跳过保存",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-03/create",
|
||
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工单 RUN20261108-07-WO-001-48543 创建成功",
|
||
"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/plan-confirm",
|
||
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
|
||
"layer": "L1 接口响应",
|
||
"expect": "启用日排产(PENDING→CONFIRMED,派生叫料池)",
|
||
"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": "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",
|
||
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "真实工单号=RUN20261108-07-WO-001-48543,真实工件号=RUN20261108-07-SN-0001-48543,真实路线组合=[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": "备料清单只读:GET 前后叫料池行数不变(案例:184 D16)",
|
||
"actual": "select count(*) from call_pool = \"4\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-05/online",
|
||
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
|
||
"layer": "L1 接口响应",
|
||
"expect": "上线建档 RUN20261108-07-SN-0001-48543",
|
||
"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=0 / message=\"叫料已提交\" / body={\"code\":0,\"message\":\"叫料已提交\",\"data\":{\"count\":2}}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-05/call2",
|
||
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位3 第2 次叫料提交成包",
|
||
"actual": "HTTP 200 / code=0 / message=\"叫料已提交\" / body={\"code\":0,\"message\":\"叫料已提交\",\"data\":{\"count\":1}}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-05/call3",
|
||
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位6 第3 次叫料提交成包",
|
||
"actual": "HTTP 200 / code=0 / message=\"叫料已提交\" / body={\"code\":0,\"message\":\"叫料已提交\",\"data\":{\"count\":1}}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-05/call",
|
||
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "叫料单落库(按包、按工位×物料聚合)",
|
||
"actual": "select count(distinct package_no) from material_request where id \u003e $1 = \"3\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-05/call",
|
||
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
|
||
"layer": "L3 状态流转",
|
||
"expect": "叫料包内单据初始状态 PENDING(待备料)",
|
||
"actual": "当前状态 = \"PENDING\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-05",
|
||
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "真实叫料单号=[MR1794186749528809100 MR1794186749528809101 MR1794186749562669800 MR1794186749576840500];真实叫料包号=[PK3-1794186749528809100 PK3-1794186749562669800 PK6-1794186749576840500]",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/complete1",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L1 接口响应",
|
||
"expect": "叫料单 MR1794186749528809100 完成备料(FIFO 选批/选 SN)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-001\",\"reqQty\":4,\"requestNo\":\"MR1794186749528809100\",\"sentQty\":4,\"short\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/complete2",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L1 接口响应",
|
||
"expect": "叫料单 MR1794186749528809101 完成备料(FIFO 选批/选 SN)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-002\",\"reqQty\":6,\"requestNo\":\"MR1794186749528809101\",\"sentQty\":6,\"short\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/complete3",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L1 接口响应",
|
||
"expect": "叫料单 MR1794186749562669800 完成备料(FIFO 选批/选 SN)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-003\",\"reqQty\":4,\"requestNo\":\"MR1794186749562669800\",\"sentQty\":4,\"short\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/complete4",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L1 接口响应",
|
||
"expect": "叫料单 MR1794186749576840500 完成备料(FIFO 选批/选 SN)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-004,OB20261109-005,OB20261109-006,OB20261109-007,OB20261109-008,OB20261109-009,OB20261109-010,OB20261109-011,OB20261109-012,OB20261109-013,OB20261109-014,OB20261109-015\",\"reqQty\":12,\"requestNo\":\"MR1794186749576840500\",\"sentQty\":12,\"short\":0}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/complete",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L3 状态流转",
|
||
"expect": "叫料单状态 PENDING→SHIPPED",
|
||
"actual": "当前状态 = \"SHIPPED\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/out1",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "出库单号已回写叫料单 MR1794186749528809100",
|
||
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/out2",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "出库单号已回写叫料单 MR1794186749528809101",
|
||
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/out3",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "出库单号已回写叫料单 MR1794186749562669800",
|
||
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/out4",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "出库单号已回写叫料单 MR1794186749576840500",
|
||
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-06/delivery",
|
||
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
|
||
"layer": "L1 接口响应",
|
||
"expect": "按叫料包建配送单(明细快照含工单/工艺/排产日)",
|
||
"actual": "HTTP 400 / code=-1 / message=\"叫料单 MR1794186749562669800 不在该包内\" / body={\"code\":-1,\"message\":\"叫料单 MR1794186749562669800 不在该包内\"}",
|
||
"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": "真实出库单号=[OB20261109-001 OB20261109-002 OB20261109-003 OB20261109-004,OB20261109-005,OB20261109-006,OB20261109-007,OB20261109-008,OB20261109-009,OB20261109-010,OB20261109-011,OB20261109-012,OB20261109-013,OB20261109-014,OB20261109-015];真实配送单号=",
|
||
"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/sign1",
|
||
"caseLine": "案例.md:92 / 流水1-8 :191-197",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位待接料区「接料确认」MR1794186749528809100",
|
||
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-08/sign2",
|
||
"caseLine": "案例.md:92 / 流水1-8 :191-197",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位待接料区「接料确认」MR1794186749528809101",
|
||
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-08/sign3",
|
||
"caseLine": "案例.md:92 / 流水1-8 :191-197",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位待接料区「接料确认」MR1794186749562669800",
|
||
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-08/sign4",
|
||
"caseLine": "案例.md:92 / 流水1-8 :191-197",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位待接料区「接料确认」MR1794186749576840500",
|
||
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-08",
|
||
"caseLine": "案例.md:92 / 流水1-8 :191-197",
|
||
"layer": "L3 状态流转",
|
||
"expect": "叫料单状态 SHIPPED→DONE(已完成)",
|
||
"actual": "当前状态 = \"DONE\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"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-07-QL-0001-48543\",\"RUN20261108-07-QL-0002-48543\",\"RUN20261108-07-QL-0003-48543\",\"RUN20261108-07-QL-0004-48543\",\"RUN20261108-07-QL-0005-48543\",\"RUN20261108-07-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 = \"4\"",
|
||
"pass": false,
|
||
"failReason": "期望 \"6\",实际 \"4\"",
|
||
"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": "完工无反冲扣账(案例.md:232)",
|
||
"actual": "select count(*) from event_log where work_order_no=$1 and (event_type like '%backflush%' or description like '%反冲%') = \"0\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"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\":[{\"operator\":\"自动化测试\",\"stationNo\":\"3\",\"date\":\"2026-11-09\",\"checkinAt\":\"2026-11-09 09:03:56\",\"lastActiveAt\":\"2026-11-09 09:03:56\",\"durationSec\":0,\"doneCount\":0,\"efficiency\":0}],\"total\":…",
|
||
"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\":[{\"operator\":\"自动化测试\",\"stationNo\":\"3\",\"date\"…",
|
||
"pass": true,
|
||
"failReason": "若 code≠0:绩效报表接口未返回当日数据",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-12",
|
||
"caseLine": "案例.md:113 / 流水1-12 :223-229",
|
||
"layer": "L1 接口响应",
|
||
"expect": "输入 RUN20261108-07-SN-0001-48543 可查全生命周期",
|
||
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"associationTrace\":null,\"bindTrace\":{\"binds\":[{\"id\":37,\"sn\":\"RUN20261108-07-SN-0001-48543\",\"orderNo\":\"RUN20261108-07-WO-001-48543\",\"flowId\":2,\"stationNo\":\"6\",\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":1,\"bindValue\":\"RUN20261108-07-QL-0001-48543\",\"bindType\":\"SN\",\"operator\":\"系统管理员\",\"cre…",
|
||
"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\":37,\"sn\":\"RUN20261108-07-SN-0001-48543\",\"orderNo\":\"RUN20261108-07-WO-001-48543\",\"flowId\":2,\"stationNo\":\"6\",\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"sn…",
|
||
"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-07-WO-001-48543\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-07-WO-001-48543\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 2632\u003e\u003e\nstream\nx\u0001��Ml\\W\u0015�o\u0016E��P\u0004HH�P/\u001bp\u0017sz���UY\u0010a*��4�q��v\\O�E�����bA%��\u0004�,��M�l(B��M+eW��E�XTbÂ���\u0006\u0016U�@�H����\u001dgf,�w#/�O�s���s���w�\u003c��5%��)\u0001��\u001fL\t\u0010B�'�s}�t�?�\r�b�����vŬ\u0004�C���j%\u0007zyM,?�f\u0007^V+\u0003��\u0007!x����N��\u0012\u0006�ᾪ�\t�_��[\u000fw�z�k?�toy���^on��\u000b��?�H�\"}�(�\u0012C��\u000e*˽��}}�Ž�\\���)6��X�)\u0026…",
|
||
"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 / 长度 32899 字节",
|
||
"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 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"addedQty\":1,\"qualityStatus\":\"未检\",\"receiveDiff\":0,\"returnNo\":\"TH20261109091230060373\",\"status\":\"RECEIVED\"}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-14/confirm2",
|
||
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
|
||
"layer": "L1 接口响应",
|
||
"expect": "库管逐张「确认收货」(扣减在确认时发生)",
|
||
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"addedQty\":1,\"qualityStatus\":\"未检\",\"receiveDiff\":0,\"returnNo\":\"TH20261109091230069646\",\"status\":\"RECEIVED\"}}",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-14/confirm",
|
||
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
|
||
"layer": "L3 状态流转",
|
||
"expect": "退料单终态 RECEIVED(已收货)",
|
||
"actual": "当前状态 = \"RECEIVED\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-14",
|
||
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "真实退料单号=[TH20261109091230060373 TH20261109091230069646]",
|
||
"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-MB-002 = 2",
|
||
"actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 and quality_status='合格' = \"50\"",
|
||
"pass": false,
|
||
"failReason": "期望 \"2\",实际 \"50\"",
|
||
"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='合格' = \"56\"",
|
||
"pass": false,
|
||
"failReason": "期望 \"2\",实际 \"56\"",
|
||
"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='合格' = \"140\"",
|
||
"pass": false,
|
||
"failReason": "期望 \"8\",实际 \"140\"",
|
||
"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='合格' = \"4\"",
|
||
"pass": false,
|
||
"failReason": "期望 \"6\",实际 \"4\"",
|
||
"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='合格' = \"48\"",
|
||
"pass": false,
|
||
"failReason": "期望 \"2\",实际 \"48\"",
|
||
"status": "失败"
|
||
},
|
||
{
|
||
"stepId": "S1-16/return",
|
||
"caseLine": "案例.md:109-110",
|
||
"layer": "L3 状态流转",
|
||
"expect": "退料单 终态 RECEIVED",
|
||
"actual": "当前状态 = \"RECEIVED\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"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": "当前状态 = \"DONE\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"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": "S1-17/report",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L1 接口响应",
|
||
"expect": "工位上报数量不符(正常 HTTP 接口造数)",
|
||
"actual": "HTTP 200 / code=0 / message=\"数量不符已上报\" / body={\"code\":0,\"message\":\"数量不符已上报\"}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17/created",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "差异单落库 material_qty_report",
|
||
"actual": "select count(*) from material_qty_report where order_no=$1 and material_code=$2 = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17/diff",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "差异量 = 应发 6 − 实收 5 = 1",
|
||
"actual": "select diff_qty from material_qty_report where order_no=$1 and material_code=$2 order by id desc limit 1 = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L1 接口响应",
|
||
"expect": "记录本步真实产出供下一步使用",
|
||
"actual": "本轮真实差异单 id=2",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17/page",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L1 接口响应",
|
||
"expect": "数量不符处理列表可读",
|
||
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"list\":[{\"id\":2,\"reportNo\":\"QR2\",\"stationNo\":3,\"orderNo\":\"RUN20261108-07-WO-001-48543\",\"sn\":\"RUN20261108-07-SN-0001-48543\",\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"planQty\":6,\"actualQty\":5,\"diffQty\":1,\"cause\":\"自动化流水测试差异\",\"status\":\"PENDING\",\"handleType\":\"\",\"handleDocNo\":\"\",\"handleNote\":\"\",\"handledBy\":\"\",\"handledAt\":0,\"operator\":\"…",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17/listed",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L4 交付物",
|
||
"expect": "本轮差异单出现在页面列表(data.total\u003e0)",
|
||
"actual": "code=0 / total=\"1\" / 响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"list\":[{\"id\":2,\"reportNo\":\"QR2\",\"stationNo\":3,\"orderNo\":\"RUN20261108-07-WO-001-48543\",\"sn\":\"RUN20261108-07-SN-0001-48543\",\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"plan…",
|
||
"pass": true,
|
||
"failReason": "若为空:上报未落库或列表未按 orderNo 过滤",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17/handle",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L1 接口响应",
|
||
"expect": "人工处理差异(ADJUST 调整口径,note 必填)",
|
||
"actual": "HTTP 200 / code=0 / message=\"处理完成\" / body={\"code\":0,\"message\":\"处理完成\",\"data\":{\"handleDocNo\":\"\",\"handleType\":\"ADJUST\",\"id\":2,\"status\":\"CLOSED\"}}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-17/terminal",
|
||
"caseLine": "案例.md:143 / MES 数量不符处理",
|
||
"layer": "L3 状态流转",
|
||
"expect": "差异单终态 CLOSED",
|
||
"actual": "当前状态 = \"CLOSED\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-18/checkin",
|
||
"caseLine": "案例.md:142 / MES 绩效报表",
|
||
"layer": "L1 接口响应",
|
||
"expect": "开工签到(正常 HTTP 接口造上机实绩)",
|
||
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"message\":\"巡检记录已提交\"}}\n",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-18/record",
|
||
"caseLine": "案例.md:142 / MES 绩效报表",
|
||
"layer": "L2 数据库落库",
|
||
"expect": "签到实绩落库 inspection_record",
|
||
"actual": "select count(*) from inspection_record where order_no=$1 and category='CHECKIN' and operator=$2 = \"1\"",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-18/performance",
|
||
"caseLine": "案例.md:142 / MES 绩效报表",
|
||
"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\":[{\"operator\":\"自动化测试\",\"stationNo\":\"3\",\"date\":\"2026-11-09\",\"checkinAt\":\"2026-11-09 09:12:30\",\"lastActiveAt\":\"2026-11-09 09:12:30\",\"durationSec\":0,\"doneCount\":0,\"efficiency\":0},{\"operato…",
|
||
"pass": true,
|
||
"failReason": "",
|
||
"status": "通过"
|
||
},
|
||
{
|
||
"stepId": "S1-18/data",
|
||
"caseLine": "案例.md:142 / MES 绩效报表",
|
||
"layer": "L4 交付物",
|
||
"expect": "绩效报表含当日上机实绩(data.sessions.total\u003e0)",
|
||
"actual": "code=0 / sessions.total=\"2\" / 响应片段:{\"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\":[{\"operator\":…",
|
||
"pass": true,
|
||
"failReason": "若为 0:签到实绩未被绩效聚合读取,或报表按其它口径过滤",
|
||
"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='' → \"8\"",
|
||
"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 → \"4\"",
|
||
"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'' → \"16\"",
|
||
"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 → \"311\"",
|
||
"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": 150,
|
||
"pass": 125,
|
||
"fail": 24,
|
||
"block": 1,
|
||
"passRate": "83.3%"
|
||
}
|
||
} |