静态白盒测试:检查代码和设计(附思维导图)

在这里插入图片描述

静态白盒测试:Examine the Design Documents & Code

  • These are static, white box techniques.
  • Handling these requires some programming expertise.
  • It is best if the testers know the language in which the software is written.
  • Consequently, you often find these tests are run by either Programmers with software testers as observers or Software testers with help from the programmers.

Major Problems with These Tests

They are often NOT performed! 未运行
These are the hardest to justify to upper management as they are viewed by many as too time consuming.对于大多数人来说,这些是最难以证明的,因为许多人认为它们太耗时。
Some of the problem is the perception that programmers are not productive if they are not generating code.

Note: The tyranny专制 of the LOC metric, Lines of executable code as a measure of productivity!

Three approaches

Formal inspection
Peer review
Walkthrough
在这里插入图片描述

Formal reviews

These are structured processes for doing static, white box testing.

4 elements are required:

  1. Identify problems by directing attention to the code, not who wrote it.
  2. Setup and follow rules for the review:
    • How much code should be examined?
    • How long should the review take?
  • What is fair(公平) game for the review?
  1. Prepare and assign duties to people
    Moderator(主持人,) recorder, reader, etc.
  2. Write a report.

These are not just “get together and go over code” sessions!

Relative strengths of test strategies

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值