30 lines
1.7 KiB
Markdown
30 lines
1.7 KiB
Markdown
# 收货入库相关测试通过简报
|
||
|
||
## 测试目标
|
||
验证收货入库链路中两个现有回归测试文件是否可稳定通过:
|
||
- [test/app/controller/system.storage.receiving.test.js](../../test/app/controller/system.storage.receiving.test.js)
|
||
- [test/app/controller/system.storage.inventory.matchPutaway.test.js](../../test/app/controller/system.storage.inventory.matchPutaway.test.js)
|
||
|
||
## 测试类型
|
||
回归测试,包含接口验证与集成测试。
|
||
|
||
## 测试范围
|
||
- 收货单列表、详情、绑定货主、绑定商品、取消收货、创建校验、详情排序、图片返回等 controller 回归用例
|
||
- 收货完成后与入库单的精确匹配、超收、少收三类 matchPutaway 场景
|
||
|
||
## 依赖与公共 setup
|
||
- receiving controller 测试依赖 `test/support/system_method_client`,并在用例内切换到固定测试仓角色。
|
||
- matchPutaway 测试依赖 `before` 中的登录、仓库角色切换、系统商品查询,以及 `after` 中的数据库连接关闭。
|
||
- matchPutaway 测试还会直接连接数据库并插入入库单与明细数据。
|
||
|
||
## 测试结果摘要
|
||
- [test/app/controller/system.storage.receiving.test.js](../../test/app/controller/system.storage.receiving.test.js): 15 通过,0 失败,0 跳过
|
||
- [test/app/controller/system.storage.inventory.matchPutaway.test.js](../../test/app/controller/system.storage.inventory.matchPutaway.test.js): 3 通过,0 失败,0 跳过
|
||
|
||
## 结论
|
||
这两份回归测试在当前仓库状态下通过,收货单基础流程与 matchPutaway 链路未见失败。
|
||
|
||
## 备注
|
||
- 运行命令:`npm run test:local -- <file> --timeout 120000`
|
||
- 测试环境中已按固定测试仓 ID 100000 和固定测试货主 ID 1000000 运行相关链路
|