计算机应用研究2013,Vol.30Issue(6):1764-1768,5.DOI:10.3969/j.issn.1001-3695.2013.06.042
一种针对单元测试框架的测试脚本重用方法
Method on reusability of test scripts under unit test framework
祁琳莹 1洪玫 1冯丽云 1周宁 1文婷婷1
作者信息
- 1. 四川大学计算机(软件)学院,成都610065
- 折叠
摘要
Abstract
With the wide application of unit testing framework in software industry,some problems have cropped up.One of the principal problems is how can guarantee the test code which developers accumulate not to be wasted,that is how to reuse the test code.This article proposed a solution to solve this problem-reuse the existing unit test code by translating the unit test code automatically.The specific steps was as follows:first,extracted the test case information from the existing unit testing code; then,recorded the information in XML file; finally,generated test code under the rules of new unit testing framework automatically with the technology of XSLT.In the end,this paper verified the feasibility of the method.关键词
软件测试/单元测试框架/单元测试脚本重用/源代码翻译Key words
software testing/ unit testing framework/ unit test script reuse/ code translation分类
信息技术与安全科学引用本文复制引用
祁琳莹,洪玫,冯丽云,周宁,文婷婷..一种针对单元测试框架的测试脚本重用方法[J].计算机应用研究,2013,30(6):1764-1768,5.