知识卡片
流程模型也要行为测试
可执行模型承载业务逻辑,应和代码一样测试。可以启动实例,断言服务任务与人工任务出现,用替身完成外部调用,提交审批结果,再检查后续任务、HTTP请求及流程结束。测试关注执行行为和分支,模型与胶水代码共同进入版本库及CI/CD。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 工作流引擎与流程方案 · 查看原书依据
The process model is source code and implements important parts of the business logic, so you should test it just like you test other parts of your business logic.
参考来源
- 位置:《Practical Process Automation》第2章《工作流引擎与流程方案》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch02.xhtml)
- 结论依据:原文中的定义、机制和适用条件支持上述解释,正文未将产品示例推广为所有引擎的保证。
- 原始内容:The process model is source code and implements important parts of the business logic, so you should test it just like you test other parts of your business logic.