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

基于JUnit和元模型的模型存储测试设计与实现
引用本文:黄陇,郭玉福,吴际,金茂忠.基于JUnit和元模型的模型存储测试设计与实现[J].北京航空航天大学学报,2007,33(4):481-485.
作者姓名:黄陇  郭玉福  吴际  金茂忠
作者单位:北京航空航天大学 计算机学院, 北京 100083
基金项目:国家高技术研究发展计划(863计划)
摘    要:在模型驱动测试中,针对测试模型的存储测试问题,提出了单元素、单个测试元模型、组合测试元模型等测试覆盖准则,并通过实例化的方法生成了测试用例,讨论了测试结果的判定方法.在Eclipse平台上,借助于JUnit框架实现了模型存储测试.通过分析不同数量级的测试用例对执行效率的影响以及不同测试覆盖准则和相应的JUnit测试代码规模之间的关系,为测试元模型的设计与存储提供了实践指导,并表明JUnit框架可以用于基于元模型的测试.提出了一个基于JUnit和元模型的自动测试框架——JMetamodel,可以用于模型存储以及模型转换的测试. 

关 键 词:JUnit    元模型    测试用例生成    模型驱动测试    模型存储
文章编号:1001-5965(2007)04-0481-05
收稿时间:2006-05-18
修稿时间:2006-05-18

Design and implementation of model repository testing based on metamodel and JUnit
Huang Long,Guo Yufu,Wu Ji,Jin Maozhong.Design and implementation of model repository testing based on metamodel and JUnit[J].Journal of Beijing University of Aeronautics and Astronautics,2007,33(4):481-485.
Authors:Huang Long  Guo Yufu  Wu Ji  Jin Maozhong
Institution:School of Computer Science and Technology, Beijing University of Aeronautics and Astronautics, Beijing 100083, China
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.
Keywords:JUnit
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《北京航空航天大学学报》浏览原始摘要信息
点击此处可从《北京航空航天大学学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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