摘要
对于构件使用者来说,源代码的不可得性决定了测试构件需要从构件的接口层面上进行。文章首先介绍了变异测试和遗传算法的概念;接着将遗传算法运用到构件接口变异上,通过变异测试过程获取有效而充分的测试用例,进而对构件进行测试;最后通过一个实例验证这种测试策略。
Source code of component is unavailable to component users,so component test has to been run on component interface.First-ly,This paper introduced Mutation Testing and Genetic Algorithms;Secondly,applying Genetic Algorithms to interface mutation,and by that to create adequate and effective test cases which are used to test component;At last,an example is provided to validate the test method.
作者
刘长有
管贤春
LIU Chang-you,GUAN-Xian-chun(Computer School of GuangDong University of Technology,Guangzhou 510006,China)
出处
《电脑知识与技术》
2010年第5期3561-3563,共3页
Computer Knowledge and Technology
关键词
构件测试
接口变异
遗传算法
component testing
interface mutation
Genetic Algorithms