摘要
本文主要研究面向对象软件系统的自动化测试代码的复用问题。复用测试代码是基于建立的方法测试用例。当创建了一个方法的测试用例之后,可以发现这个用例可在其他相关方法的测试过程中起到多种作用。这个生成的测试用例可以作为另一个方法测试输入的对象参数,或者作为一个主测试对象以调用其方法。我们设计了一个可自动生成复用测试代码的算法,并应用于一个微软平台上的对象测试自动化工具的研发过程中。
This paper focues on studying the issue of reusing the automatic test code for object-oriented software systems. The basic idea to reuse the test code comes from method test case building. When we produce a method test case, we find that the test case can play different roles in testing other methods which may have some relationship with it. This test case can be reused as an object argument passed to a method or as a major object whose method is to be invoked. We have developed an algorithm of automatically generating reuse test code. Finally, we give the implementation of an automated testing tool on the Microsoft.Net platform.
出处
《计算机工程与科学》
CSCD
2008年第11期109-110,136,共3页
Computer Engineering & Science