摘要
软件必须通过测试才能确保其在应用环境中工作正常,自动化软件测试可以减少测试开销,同时增加在有限时间内的测试。在传统JUnit单元测试框架的基础上,提出一种基于测试代码复用的自动化测试框架,该框架利用XML脚本来描述和组织测试用例,有效的实现数据与代码分离,提高测试执行效率。最后给出新框架的实现方案。
The software won't be guaranteed to operate properly in the application environment unless it passes all related tests. Automatic testing significantly reduces the effort of individual tests, this implies that performing the same test becomes cheaper and more tests can be done within the limited time. Based on traditional JUnit framework, a new code-reuse technique based automatic testing framework is proposed. The test cases are described and organized using XML, the separation between code and data can be realized in his framework and the efficiency of test can be improved. The implementation scheme is given.
出处
《青岛科技大学学报(自然科学版)》
CAS
2008年第3期257-260,共4页
Journal of Qingdao University of Science and Technology:Natural Science Edition
关键词
自动化测试
测试用例
复用
XML
software automation testing
test case
refactoring
XML