软件测试--黑盒测试

软件测试-解决的主要问题:

Fundamental problems
• Test oracle
• Test adequacy
• Test generation


Important problems
• Test process and plan
• Test automation

软件测试问题之间的关系:


Covering the Representative Choices of Input

1Level 1: Single input parameter

2Level 2: Combination of input parameters

3Level 3: Sequence of parameter combinations


Single input parameter Level-1 Techniques

1Equivalence class partitioning (ECP, 等价类划分)

How to Find Classes?
Based on what the requirement says:
•The parameter shall be within a range [a, b].
•within range [a, b]: a valid class
•too large (b, ]: an invalid class
•too small [- , a): a invalid class

Additional Classes:

• Empty: value exists, but has no contents.
• Blank: value exists, and has content.
• Null: value does not exist or is not allocated.
• None: does not provide value for the parameter, or when the parameter require selecting one item from a list, make no selection.
• Very long: the length of the input is extremely long.
• Special value: February 29
• Encoding of string: utf-8 vs. GBK


2Boundary value analysis (BVA, 边界值分析)

3Cause-effect graph and decision table(因果图和决策表)

• Analyze the causal relation between input and output as edges.
• Adequacy criterion: cover each edge at least once

.

符号表示:





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值