一种测试用例与测试代码分离的单元测试框架  被引量:1

An Unit Test Framework Based on Separation Between Case and Code

在线阅读下载全文

作  者:杜军威[1] 

机构地区:[1]青岛科技大学信息科学技术学院,山东青岛266061

出  处:《青岛科技大学学报(自然科学版)》2008年第3期257-260,共4页Journal of Qingdao University of Science and Technology:Natural Science Edition

摘  要:软件必须通过测试才能确保其在应用环境中工作正常,自动化软件测试可以减少测试开销,同时增加在有限时间内的测试。在传统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.

关 键 词:自动化测试 测试用例 复用 XML 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象