八:Testing the Programs


一、Software faults and failures

Types of faults

二、Testing issues

1.Test opinions

【选择题】
About test, which of the following is NOT true?We test a program to demonstrate its correctness.(应该测试它的不正确demonstrate the existence of a fault)

2.Test organization – testing steps

【简答题】

  • describe testing steps
    单元测试:测试单个模块
    集成测试:测试集成的模块
    系统测试(包括功能测试、性能测试、验收测试和安装测试):测试整个软件系统

(1)Module testing单元测试(也叫做component testing or unit testing)

(2)Integration testing集成测试

【选择题】

  • A function X in component A requires a pointer to an integer to be passed as an argument, but a call to the function X in component B passes the value of an integer instead.( Integration testing of components A and B )would most likely expose this defect.

(3)System testing系统测试

  • function test功能测试
  • performance test性能测试
  • acceptance test验收测试
  • installation test安装测试

【应用题】

  • describe the testing process in system test
    单元测试和集成测试后,进行系统测试,系统测试主要的四个步骤:
  1. 功能测试:检查集成的系统是否按照需求中指定的那样执行它的功能
  2. 性能测试:将集成的构件与非功能需求进行比较
  3. 验收测试:客户参与的测试,目标是确保系统符合他们对需求的理解
  4. 安装测试:在实际运行环境中进行的测试

3.Testing techniques

(1)Black box

(2)White box

【选择题】
Includes tests:

  • statement coverage
  • condition coverage
  • boundary coverage

Except :equivalence class partitioning.

三、Unit testing

1.Examining the code

【简答题】

  • describe two types of code review.

(1)Code walkthroughs代码走查

【简答题】
代码走查:程序员向评审小组提交代码及其相关文档,然后评审小组评论它们的正确性

(2)Code inspections代码审查

【简答题】
代码审查:与走查类似,但更正式一些。按照一个事先准备好的关注问题清单来检查代码和文档。

2.Success of the code reviews

3.Test thoroughness-Logic flow逻辑流程图

答案就是所有可能的路径。

题:
【应用题】
在这里插入图片描述
在这里插入图片描述

四、Integration testing

1.Bottom-up integration

自底向上由一个叶模块开始,自底向上逐步添加新模块,组成程序的一个子系统或具有某一功能的模块族(群Cluster)在这里插入图片描述

2.Top-down integration

在这里插入图片描述

3.Big-bang integration

在这里插入图片描述

4.Sandwich integration

对上层模块采用自顶向下,较早显示程序的总体轮廓。
在这里插入图片描述

【选择题】
在这里插入图片描述

5.Comparison of the strategies

【简答题】

  • What is regression test?Why iss regression test needed?
    回归测试是用于新的版本或发布的一种测试,以验证与旧版本或发布相比,它是否仍然以同样的方式执行相同的功能。
    由于在测试过程中可能在修复已有故障的同时引入新的故障,故需要进行回归测试。
  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值