HIT 2020Spring Software Construction 0303

Software Test

Testing is an integral part of the software construction and it also has a relatively large proportion in the exam. Sometimes we may be asked to analyse the exception situation of the specific program or we need to construct some test cases for a better program test.
Although software testing is an important method to improve the quality of product, we cannot consider it as the most significant or the only approach. Actually, the design process plays an more important role in the quality than any other parts.
Another concept should be made clear is that testing can only prove a program to be incorrect. Even the best test may not cover all the defect in a program. It cannot be employed to prove a program is perfect.

Test-First Programming

Before we begin to program, we will write some test cases and they will make set limit on us during the program process and help us program better.

Choosing Test Cases

Equivalence classes is classified into the effective equivalence class and ineffective equivalence class. Effective equivalence class corresponds with correct input while ineffective equivalence class corresponds with incorrect input. It is very important to cover test cases with equivalence class. In the test, we cannot get the expected output from the incorrect input, so we only consider effective equivalence class.

It is only a post for what I want to record for the specific course and it does not stand for the whole content.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值