摘要
Junit是现在软件开发过程中最常用的单元测试工具,它为软件的自动化单元测试实现提供了一个理想的测试框架,它主要是针对功能性代码的测试。JFCunit是基于Junit扩展而来,专门用来解决GUI图形界面单元测试的问题。本文先简要介绍了Junit和JFCunit的基本框架,然后对JFCunit和Junit的特点进行比较,分析了JFCunit的适用范围以及使用JFCunit的好处;最后以一个简单实例阐述了使用JFCunit进行GUI图形界面单元测试的一般方式。
Junit is Open Source Software.Junit is a simple test framework for building and executing unit tests.JFCunit is an extension to the popular testing framework Junit.Any application that is written usually has a user interface associated with it so that users can interact with the system (for eg: inputting data, generating reports based on data that exists in databases, etc.).For application developers, testing forms an integral part of the development life-cycle.This paper proposed at analysing the advantages and disadvantages of JFCUnit and give an sample to show how to use JFCunit to testing.
出处
《中国测试技术》
2005年第3期78-80,共3页
CHINA MEASUREMENT & TESTING TECHNOLOGY
基金
国家863计划项目(2002AA1Z2306)