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

© 2014 IEEE. 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...

Full description

Saved in:
Bibliographic Details
Main Authors: Doungsa-Ard,C., Dahal,K.P., Pervez,Z.
Format: Conference or Workshop Item
Published: 2015
Online Access:http://www.scopus.com/inward/record.url?partnerID=HzOxMe3b&scp=84928542631&origin=inward
http://cmuir.cmu.ac.th/handle/6653943832/39261
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Chiang Mai University
Description
Summary:© 2014 IEEE. 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.