没有合适的资源?快使用搜索试试~ 我知道了~
software testing.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 97 浏览量
2023-03-13
12:56:49
上传
评论
收藏 3.83MB DOCX 举报
温馨提示
试读
74页
软件测试
资源推荐
资源详情
资源评论
主观题 70+
客观题 20+
1、软件质量、缺陷管理、控制流图的画法、定义、计算、测试的意义
2、计算等价类的测试划分
边界值的划分 BOR BRO
基于谓词的测试生成
有穷自动机关于特征集、测试树、覆盖集的部分
测试充分性的等价部分
组合设计的测试生成、测试配置的基本知识
。。。。。。步骤
组合设计的二次 对偶设计
测试充分性评价 条件判定、覆盖/多重条件覆盖/条件覆盖
数据流 CND→DFD DFD 使用的概念
Chapter 1 Preliminaries 准备工作: Software Testing
Learning Objectives 目标
-Errors, Testing, debugging, test process, CFG 控制流图, correctness 正确性, reliability可
靠,oracles 数据库?.
-Finite state machines 有限状态机
-Testing techniques 测试技术
1.1 Humans, errors and testing
Errors
-Errors are a part of our daily life.
-Humans make errors in their thoughts, actions, and in the products that might result
from their actions.
-Errors occur wherever humans are involved in taking actions and making decisions.
These fundamental facts 基本事实 of human existence make testing an essential 必
要 activity.
Errors: Examples
Error, faults, failures
1.2 Software Quality √
Software quality
-Static quality attributes: structured 有结构的, maintainable 可维护的, testable 可
测试的 code as well as the availability可用 of correct and complete documentation.
-Dynamic quality attributes: software reliability 可靠性, correctness, completeness
完整性, consistency 一致性, usability 可用性, and performance 性能
Software quality (contd.)
-Completeness refers to the availability of all features listed in the requirements, or
in the user manual. An incomplete software is one that does not fully implement 实
现 all features required.
-Consistency refers to adherence 坚持 to a common set of conventions 约定 and
assumptions 设 想 . For example, all buttons in the user interface might follow a
common color coding convention. An example of inconsistency would be when a
database application displays 展示 the date of birth of a person in the database.
-Usability refers to the ease 减轻 with which an application can be used. This is an
area in itself and there exist techniques for usability testing. Psychology 心理学 plays
an important role in the design of techniques for usability testing.
-Performance refers to the time the application takes to perform 执行 a requested
task 请求任务. It is considered as a
non-functional requirement
. It is specified in terms
such as ``This task must be performed at the rate of X units of activity in one second
on a machine running at speed Y, having Z gigabytes of memory."
这个任务必须以每秒 X 个单位的速度在运行速度 Y 的机器上执行,有 Z g 的内存
1.3 Requirements, behavior, and correctness
Requirements, behavior, correctness
Requirements leading to two different programs:
-Requirement 1: It is required to write a program that inputs two integers 整数 and
outputs the maximum of these.
-Requirement 2: It is required to write a program that inputs a sequence of integers
and outputs the sorted 排序 version of this sequence.
Requirements: Incompleteness 不完整性
Suppose that program max is developed to satisfy 满 足 Requirement 1. The
expected 预期 output of max when the input integers are 13 and 19 can be easily
determined to be 19.
Suppose now that the tester wants to know if the two integers are to be input to the
program on one line followed by a carriage return 回车, or on two separate lines with
a carriage return typed in after each number. The requirement as stated above fails
to provide an answer to this question.如上所述的要求不能提供这个问题的答案。
Requirements: Ambiguity 模棱两可
Requirement 2 is ambiguous. It is not clear whether the input sequence is to sorted
in ascending or in descending order. The behavior of sort program, written to satisfy
this requirement, will depend on the decision taken by the programmer while writing
sort.
Input domain 域 (Input space)
The set of all possible inputs to a program P is known as the input domain or input
space, of P.
Using Requirement 1 above we find the input domain of max
to be the set of all pairs of integers 整数 where each element in the pair integers is
in the range -32,768 till 32,767.
Using Requirement 2 it is not possible to find the input domain for the sort program.
Input domain (Continued)
Modified Requirement 2:
It is required to write a program that inputs a
sequence of integers and outputs the integers in this sequence sorted in either
ascending or descending order. The order of the output sequence is determined by
an input request character which should be ``A'' when an ascending sequence is
desired, and ``D'' otherwise.
While providing input to the program, the request character is input first followed
by the sequence of integers to be sorted; the sequence is terminated with a period.
Based on the above modified requirement, the input domain for sort is a set of
pairs. The first element of the pair is a character. The second element of the pair
is a sequence of zero or more integers ending with a period.
Valid 有效/Invalid 无效 Inputs
The modified 修改 requirement for sort mentions that the
request characters can be ``A'' and ``D'', but fails to answer the question ``What
if the user types a different character ?’’
When using sort it is certainly possible for the user to type a
character other than ``A'' and ``D''. Any character other than ``A'’ and ``D'' is
considered as invalid input to sort. The requirement for sort does not specify
what action it should take when an invalid input is encountered. 排序的需求没有指
定当遇到无效输入时,应该采取什么操作。
1.4 Correctness versus reliability 正确性对可靠性
Correctness
Though correctness of a program is desirable 令 人满意的 , it is almost never the
objective of testing.它几乎从来都不是测试的目标
To establish correctness via 通过 testing would imply 意味着 testing a program on
all elements in the input domain. In most cases that are encountered in practice, this
is impossible to accomplish. 在实践中遇到的大多数情况下,这是不可能完成的。
Thus, correctness is established via mathematical proofs of programs.
因此,正确性
是通过程序的数学证明建立起来的。
Correctness and Testing
While correctness attempts to establish that the program is error free, testing
attempts to find if there are any errors in it. 当正确性试图证明程序是无错误的,测
试试图找出其中是否有任何错误。
Thus, completeness of testing does not necessarily demonstrate that a program is
error free. 因此,测试的完整性并不一定证明程序是无错误的。
Testing, debugging, and the error removal processes together increase our
confidence in the correct functioning of the program under test.
测试、调试和错误
删除过程一起增加了我们的工作对正在测试的程序的正确运行的信心
Software reliability 可靠性: two definitions 定义
Software reliability [ANSI/IEEE Std 729-1983]: is the probability of failure free
operation of software over a given time interval and under given conditions. 在给定的
时间间隔内,在给定的条件下,软件故障的概率。
Software reliability is the probability of failure free operation of software in its
剩余73页未读,继续阅读
资源评论
悠闲饭团
- 粉丝: 151
- 资源: 3303
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 蓝桥杯2024年第十五届省赛真题-前缀总分
- com.qihoo.appstore_300101305-1.apk
- tensorflow-gpu-2.7.1-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.2-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-2.7.1-cp39-cp39-manylinux2010-x86-64.whl
- 蓝桥杯2024年第十五届省赛真题-传送阵
- com.qihoo.appstore_300101305.apk
- linux之线程同步一.doc
- keil5配色方案10种
- python烟花代码.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功