← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1712.e.1.a

录制回放帮助复现偶发故障

理解等级:高级

在接口处记录跨边界的数据和状态,再作为测试输入回放,可重建难以手工制造的失败前提。它对不可完全约束的并发和外部事件尤其有用,但记录范围必须覆盖相关条件,只有功能输入并不必然重现线程交错。运行数据分析应服务于复现根因,而非把一次未复现当修复成功。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 可测试性 · 查看原书依据

      Recording the state when it crosses an interface allows that state to be used to “play the system back” and to re-create the fault. Record refers to capturing information crossing an interface and playback refers to using it as input for further testing.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第12章《可测试性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch12.html) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:Recording the state when it crosses an interface allows that state to be used to “play the system back” and to re-create the fault. Record refers to capturing information crossing an interface and playback refers to using it as input for further testing.