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 篇原创文章 · 获赞 0 · 访问量 225

猜你喜欢

转载自blog.csdn.net/TroyHorse/article/details/104633854