创业管理(李雪灵)part 2-blackbox资料教程.ppt
As an example, suppose that pc: ab+c and pi: ab+c. Consider a test set T={t1, t2} where t1: a=0, b=0, c=0 and t2: a=0, b=1, c=1. The fault in pi is not revealed by t1 as both pc and pi evaluate to false when evaluated against t1. However, the fault is revealed by t2 as pc evaluates to true and pi to false when evaluated against t2. Goal of predicate testing (contd.) Correct predicate: a ? b Extra Boolean variable fault: a ? b?c Missing Boolean variable fault: a Missing or extra Boolean variable faults Consider the following Boolean-Relational set of BR-symbols: BR={t, f, , =, , +?, -?} For example, consider the predicate E: ab and the constraint “” . A test case that satisfies this constraint for E must cause E to evaluate to false. A BR symbol is a constraint on a Boolean variable or a relational expression. Predicate constraints: BR symbols A constraint C is considered infeasible for predicate pr if there exists no input values for the variables in pr that satisfy c. For example, the constraint t is infeasible for the predicate ab? bd if it is known that da. Infeasible constraints Let pr denote a predicate with n, n0, ? and ? operators. A predicate constraint C for predicate pr is a sequence of (n+1) BR symbols, one for each Boolean variable or relational expression in pr. When clear from context, we refer to “predicate constraint” as simply constraint. Test case t satisfies C for predicate pr, if each component of pr satisfies the corresponding constraint in C when evaluated against t. Constraint C for predicate pr guides the development of a test for pr, i.e. it offers hints on what the values of the variables should be for pr to satisfy C. Predicate constraints pr(C) denotes the value of predicate pr evaluated using a test case that satisfies C. C is referred to as a true constraint when pr(C) is true and a false constraint otherwise. A set of constraints S is partitioned into subsets St and Sf, respectively, such that fo
您可能关注的文档
- 刘义林博士-综合积极情绪疗法7教学幻灯片.ppt
- 刘义林博士-综合积极情绪疗法8教学幻灯片.ppt
- 刘义林博士-综合积极情绪疗法9教学幻灯片.ppt
- 刘亚平 公共部门改革 public sector reform in a comparative perspective教学幻灯片.ppt
- 刘亚平 公共部门改革 行政改革之七教学幻灯片.ppt
- 刘亚平 公共部门改革 行政改革之三教学幻灯片.ppt
- 刘备,诸葛亮,曹操 研究性学习总结PPT.ppt幻灯片资料.ppt
- 刘备简介ppt.ppt幻灯片资料.ppt
- 刘文斌-绩效评估的现状与未来-2018讲义资料.ppt
- 刘春峰-脓毒症共识解读 ppt课件培训讲学.ppt
- 2025年版汽车趋势报告 The 2025 EPA Automotive Trends Report.docx
- 2026年边缘计算开源平台EdgeX Foundry入门与二次开发.docx
- 2026年超声内镜放大内镜早癌诊断AI辅助识别系统临床评价.docx
- 2026年报废汽车回收与再制造逆向物流体系.docx
- 2026年产品碳足迹核算方法学:从摇篮到大门与从摇篮到坟墓.docx
- 2026年城乡要素平等交换双向流动政策创新试点申报材料.docx
- 2026年超导半导体接口电路架构与电平转换驱动器设计.docx
- 2026年财政贴息不再以再贷款支持为前提后的风险防范与合规要点.docx
- 2026年不动产信托登记试点政策对遗嘱信托支持.docx
- 2026年城乡有机废弃物协同处理技术方案.docx
原创力文档

文档评论(0)