检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:祁琳莹[1] 洪玫[1] 冯丽云[1] 周宁[1] 文婷婷[1]
机构地区:[1]四川大学计算机(软件)学院,成都610065
出 处:《计算机应用研究》2013年第6期1764-1768,共5页Application Research of Computers
摘 要:单元测试框架下的软件测试将产生大量的测试脚本,在软件测试过程中如何有效利用现有的测试脚本,实现软件测试脚本(代码)的重用成为业界关心的一个重要问题。业界最常见的复用需求是当开发项目更换新的测试框架时,如何重用开发人员在原单元测试框架下积累的测试脚本。针对这一问题,提出了基于测试脚本移植的重用方案。通过对单元测试脚本的分析和自动翻译方法,将原测试脚本中包含的信息提取出来,解析为基于XML的中间脚本,然后再利用XSLT技术,依据XML记录的信息,自动生成目标框架的单元测试脚本,从而解决单元测试脚本的重用问题。最后实验验证了方案的可行性。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.
关 键 词:软件测试 单元测试框架 单元测试脚本重用 源代码翻译
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7