JuiceGen: The JUnit test generation tool from the UML state machine diagram

C. Doungsa-ard, K. Dahal, Zeeshan Pervez
{"title":"JuiceGen: The JUnit test generation tool from the UML state machine diagram","authors":"C. Doungsa-ard, K. Dahal, Zeeshan Pervez","doi":"10.1109/SKIMA.2014.7083390","DOIUrl":null,"url":null,"abstract":"This paper proposes a JUnit test code generation tool from the UML state machine diagram which is referred to here as JuiceGen tool. Genetic algorithm (GA) based approach is used to generate the test data because of its simplicity and effectiveness. The generated test data are sequences of triggers which change the status of the state machine diagram. The GAs can generate sequences of triggers which can cover more than 95% transition coverage. The triggers are mapped as methods called in the test code. Junit test code is generated not only from the sequences of triggers. The mapping information between the state machine diagram and the class under tests are also required. This detail includes: the methods which map to the triggers; the class members which map to the attribute; and the initial value of the attributes of the state machine. The generated JUnit test code has been tested by finding the code coverage of the program under test. The experimental results show that JUnit code generated from JuiceGen can represent all behaviours which the sequence of triggers could cover.","PeriodicalId":22294,"journal":{"name":"The 8th International Conference on Software, Knowledge, Information Management and Applications (SKIMA 2014)","volume":"262 1","pages":"1-8"},"PeriodicalIF":0.0000,"publicationDate":"2014-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"The 8th International Conference on Software, Knowledge, Information Management and Applications (SKIMA 2014)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SKIMA.2014.7083390","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

This paper proposes a JUnit test code generation tool from the UML state machine diagram which is referred to here as JuiceGen tool. Genetic algorithm (GA) based approach is used to generate the test data because of its simplicity and effectiveness. The generated test data are sequences of triggers which change the status of the state machine diagram. The GAs can generate sequences of triggers which can cover more than 95% transition coverage. The triggers are mapped as methods called in the test code. Junit test code is generated not only from the sequences of triggers. The mapping information between the state machine diagram and the class under tests are also required. This detail includes: the methods which map to the triggers; the class members which map to the attribute; and the initial value of the attributes of the state machine. The generated JUnit test code has been tested by finding the code coverage of the program under test. The experimental results show that JUnit code generated from JuiceGen can represent all behaviours which the sequence of triggers could cover.
JuiceGen:来自UML状态机图的JUnit测试生成工具
本文提出了一种基于UML状态机图的JUnit测试代码生成工具,这里称为JuiceGen工具。基于遗传算法的测试数据生成方法简单有效。生成的测试数据是改变状态机图状态的触发器序列。GAs可以生成超过95%转换覆盖率的触发器序列。触发器被映射为测试代码中调用的方法。Junit测试代码不仅是从触发器序列生成的。状态机图和测试中的类之间的映射信息也是必需的。这个细节包括:映射到触发器的方法;映射到属性的类成员;以及状态机属性的初始值。生成的JUnit测试代码已经通过查找被测程序的代码覆盖率进行了测试。实验结果表明,由JuiceGen生成的JUnit代码可以表示触发器序列所能涵盖的所有行为。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信