在软件测试中,即使对中小规模的软件,要想达到一定的测试覆盖要求,生成的测试用例数目都可能非常惊人。为了尽早地产生高质量的测试数据,将有限的测试资源进行合理的分配,提出了一种基于正交试验设计法(简称正交法)的软件测试用例生成技术。介绍了正交法的基本概念和主要用途,详细阐述了运用正交法进行软件测试用例设计的步骤,最后将其应用于一个简易管理信息系统,结果表明,生成的测试数据数量较少且错误检测能力较高。
In software testing, even for the small or medium-sized software, to reach some test coverage requirements, the number of test cases can be very large. In order to detect and correct software defects as early as possible, identifying and generating more defect- sensitive test cases for software testing is one solution. A method based on orthogonal experiment design method of generating software test case set is proposed, the basic conceptions of this method are introduced. The significance of applying this method to test case generation is analyzed, and the detailed steps of using this technique are presented to clarify the applicability and effectiveness with an example.