北京航空航天大学学报 ›› 2007, Vol. 33 ›› Issue (04): 481-485.

• 论文 • 上一篇    下一篇

基于JUnit和元模型的模型存储测试设计与实现

黄陇, 郭玉福, 吴际, 金茂忠   

  1. 北京航空航天大学 计算机学院, 北京 100083
  • 收稿日期:2006-05-18 出版日期:2007-04-30 发布日期:2010-09-19
  • 作者简介:黄 陇(1975-),男,河北南和人,讲师,huanglong@sei.buaa.edu.cn.
  • 基金资助:

    国家863计划资助项目(2004AA119030)

Design and implementation of model repository testing based on metamodel and JUnit

Huang Long, Guo Yufu, Wu Ji, Jin Maozhong   

  1. School of Computer Science and Technology, Beijing University of Aeronautics and Astronautics, Beijing 100083, China
  • Received:2006-05-18 Online:2007-04-30 Published:2010-09-19

摘要: 在模型驱动测试中,针对测试模型的存储测试问题,提出了单元素、单个测试元模型、组合测试元模型等测试覆盖准则,并通过实例化的方法生成了测试用例,讨论了测试结果的判定方法.在Eclipse平台上,借助于JUnit框架实现了模型存储测试.通过分析不同数量级的测试用例对执行效率的影响以及不同测试覆盖准则和相应的JUnit测试代码规模之间的关系,为测试元模型的设计与存储提供了实践指导,并表明JUnit框架可以用于基于元模型的测试.提出了一个基于JUnit和元模型的自动测试框架——JMetamodel,可以用于模型存储以及模型转换的测试.

Abstract: To solve repository testing problem of test models in model driven testing, the single element, single test metamodel and combination of test metamodels coverage criteria were proposed. Test cases were generated by instantiation method and test verdict problem was discussed. The model repository testing project was implemented by JUnit framework on Eclipse platform. The effect of execution efficiency with different quantitative test cases and the relation of different test coverage criteria and corresponding JUnit test code scale were analyzed. Then practical instructions were given for test metamodel design and repository. The test results indicate that JUnit framework could be used to metamodel based testing. An automatic test framework-JMetamodel based on JUnit and metamodel was proposed which could be used for model repository and transformation testing.

中图分类号: 


版权所有 © 《北京航空航天大学学报》编辑部
通讯地址:北京市海淀区学院路37号 北京航空航天大学学报编辑部 邮编:100191 E-mail:jbuaa@buaa.edu.cn
本系统由北京玛格泰克科技发展有限公司设计开发