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: Chartchai Doungsa-Ard, Keshav Dahal, Zeeshan Pervez
Format: Conference Proceeding
Published: 2018
Online Access:https://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=84949924536&origin=inward
http://cmuir.cmu.ac.th/jspui/handle/6653943832/45077
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Chiang Mai University
id th-cmuir.6653943832-45077
record_format dspace
spelling th-cmuir.6653943832-450772018-01-24T06:05:03Z JuiceGen: The JUnit test generation tool from the UML state machine diagram Chartchai Doungsa-Ard Keshav Dahal Zeeshan Pervez © 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. 2018-01-24T06:05:03Z 2018-01-24T06:05:03Z 2014-04-08 Conference Proceeding 2-s2.0-84949924536 10.1109/SKIMA.2014.7083390 https://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=84949924536&origin=inward http://cmuir.cmu.ac.th/jspui/handle/6653943832/45077
institution Chiang Mai University
building Chiang Mai University Library
country Thailand
collection CMU Intellectual Repository
description © 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.
format Conference Proceeding
author Chartchai Doungsa-Ard
Keshav Dahal
Zeeshan Pervez
spellingShingle Chartchai Doungsa-Ard
Keshav Dahal
Zeeshan Pervez
JuiceGen: The JUnit test generation tool from the UML state machine diagram
author_facet Chartchai Doungsa-Ard
Keshav Dahal
Zeeshan Pervez
author_sort Chartchai Doungsa-Ard
title JuiceGen: The JUnit test generation tool from the UML state machine diagram
title_short JuiceGen: The JUnit test generation tool from the UML state machine diagram
title_full JuiceGen: The JUnit test generation tool from the UML state machine diagram
title_fullStr JuiceGen: The JUnit test generation tool from the UML state machine diagram
title_full_unstemmed JuiceGen: The JUnit test generation tool from the UML state machine diagram
title_sort juicegen: the junit test generation tool from the uml state machine diagram
publishDate 2018
url https://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=84949924536&origin=inward
http://cmuir.cmu.ac.th/jspui/handle/6653943832/45077
_version_ 1681422678177611776