首页 | 本学科首页   官方微博 | 高级检索  
     

多核计算机上并行生成类测试用例
引用本文:吴惜华,钟诚,莫英红,唐金辉.多核计算机上并行生成类测试用例[J].计算机工程,2010,36(19):90-92.
作者姓名:吴惜华  钟诚  莫英红  唐金辉
作者单位:广西大学计算机与电子信息学院,南宁,530004
基金项目:广西科学基金资助项目,广西研究生教育创新计划基金,广西高校人才小高地建设创新团队基金资助项目 
摘    要:通过类的数据流分析计算出实例变量的“定义-使用”对信息以及成员函数的前置和后置条件,利用类的继承多态性对被测试类进行预处理。在JPF中设置搜索环境,将测试用例生成问题简化成模型检测中寻找反例的问题,提出一种在多核计算机上实现的线程级并行生成类测试用例的方法。实验结果表明,该方法可以减少测试生成所需的状态数和运行时间,算法可使用的处理核心越多、测试生成所需的时间越少。

关 键 词:类测试  用例生成  多线程  多核计算机  并行处理

Generating Class Test Case in Parallel on Multi-core Computers
WU Xi-hua,ZHONG Cheng,MO Ying-hong,TANG Jin-hui.Generating Class Test Case in Parallel on Multi-core Computers[J].Computer Engineering,2010,36(19):90-92.
Authors:WU Xi-hua  ZHONG Cheng  MO Ying-hong  TANG Jin-hui
Affiliation:(School of Computer, Electronics and Information, Guangxi University, Nanning 530004, China)
Abstract:The definition-use pair for each instance variable and the post conditions and preconditions for each member function are computed by the class data flow analysis. The class to be tested is preprocessed by the inheritance and the polymorphism of the class. The search environment of Java PathFinder(JPF) is configured, and the problem of generating test case is transformed into the one of finding the counter example in model check. A method to generate the class test case in parallel with multi-threading is presented on multi-core computers. Experimental results show that the algorithm can remarkably reduce the required states and run time of the test case generation, and spends the less time with more processing cores used.
Keywords:class test  case generation  multi-thread  multi-core computer  parallel processing
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机工程》浏览原始摘要信息
点击此处可从《计算机工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号