- 1、本文档共171页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
软件测试与质量保证
申明:本课件是在原书作者课件基础上编制,仅用于课堂教学,不得用于任何商业目的的活动。
1
Logical Coverage
Chapter 3
逻辑覆盖
第3章
OUTLINE
Overview: Logic Predicates and Clauses
Logical Expression Coverage Criteria
Structural Logical Coverage of Programs
Specification-Based Logic Coverage
Logical Coverage of Finite State Machines
Disjunctive Normal Form Criteria(Master Level)
4
大纲
概览:逻辑谓词和子句
逻辑表达式覆盖标准
程序结构化逻辑覆盖
基于规约的逻辑覆盖
有限状态机的逻辑覆盖
析取范式标准(硕士水平)
5
Ch. 3 : Logic Coverage
Four Structures for Modeling Software
6
第三章: 逻辑覆盖
软件建模的四种结构
7
Covering Logic Expressions
Logic expressions show up in many situations
Covering logic expressions is required by the US Federal Aviation Administration for safety critical software
Logical expressions can come from many sources
Decisions in programs
FSMs and statecharts
Requirements
Tests are intended to choose some subset of the total number of truth assignments to the expressions
8
覆盖逻辑表达式
逻辑表达式出现在许多情况下
美国联邦航空管理局的安全性至关重要的软件标准要求覆盖逻辑表达式
逻辑表达式可以有多种来源
决策程序
FSMs和状态图
需求
测试的目的是选择事实总数中的一些子集分配到表达式
9
Logic Predicates and Clauses
A predicate is an expression that evaluates to a boolean value
Predicates can contain
boolean variables
non-boolean variables that contain , , ==, =, =, !=
boolean function calls
Internal structure is created by logical operators
? – the negation operator
? – the and operator
? – the or operator
? – the implication operator
? – the exclusive or operator
? – the equivalence operator
A clause is a predicate with no logical operators
10
逻辑谓词和子句
一个谓词的表达式是一个布尔值
谓词可以包含
布尔变量
非布尔变量包含、、= =、 =、 =、! =
布尔函数调用
内部结构是由逻辑运算符构建
? – 取反操作符
? – 和操作符
? – 或操作符
? – 蕴涵操作符
? – 异或操作符
? – 等价操作符
子句是不含任何逻辑操作符的谓词
11
Examples
(a b) ? f (z) ? D ? (m = n*o)
Four clauses:
(a b) – relational expression
f (z) – boolean-valued function
D – boolean variable
(m = n*o) – relational expression
Most predicates have few clauses
It would be nice to quantify that claim!
Sources of predicates
Decisions in programs
Guards in finite state machines
Decisions in UML activity graphs
Requirement
您可能关注的文档
最近下载
- 2023-2024学年人教版(新起点)四年级英语下册期末测试卷含答案.docx VIP
- 施乐 DocuPrint C5005d 5005d 彩色激光打印机中文维修手册.pdf
- 非煤矿山井巷工程施工组织设计标准 GB/T 51300-2018.docx VIP
- 2025广东江门市江海区银信资产管理有限公司招聘1人笔试备考题库及答案解析.docx VIP
- 2025广东江门市江海区金信资产管理有限公司招聘1人笔试模拟试题及答案解析.docx VIP
- 2000年《既有建筑地基基础加固技术规范》.pdf VIP
- 延安文艺专题研究知到智慧树期末考试答案题库2025年西安外国语大学.docx VIP
- 广东xx储能电站安全预评价报告.doc VIP
- 温州医科大学2022-2023学年第2学期《高等数学(下)》期末试卷(A卷)附标准答案.pdf
- 预应力张拉孔道灌浆记录表(市政).xls VIP
文档评论(0)