第一范文网 - 专业文章范例文档资料分享平台

一种针对单元测试框架的测试脚本重用方法

来源:用户分享 时间:2025/9/11 13:26:24 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

一种针对单元测试框架的测试脚本重用方法

祁琳莹;洪玫;冯丽云;周宁;文婷婷

【期刊名称】《计算机应用研究》 【年(卷),期】2013(030)006

【摘要】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.%单元测试框架下的软件测试将产生大量的测试脚本,在软件测试过程中如何有效利用现有的测试脚本,实现软件测试脚本(代码)的重用成为业界关心的一个重要问题.业界最常见的复用需求是当开发项目更换新的测试框架时,如何重用开发人员在原单元测试框架下积累的测试脚本.针对这一问题,提出了基于测试脚本移植的重用方案.通过对单元测试脚本的分析和自动翻译方法,将原测试脚本中包含的信息提取出来,解析为基于XML的中间脚本,然后再利用XSLT技术,依据XML记录的信息,自动生成目标框架的单元测试脚本,从而解决单元测试脚本的重用问题.最后实验验证了方案的可

一种针对单元测试框架的测试脚本重用方法.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c7bapw3qo1i6d7jn4l8uv58u602x7bw012jh_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top