JuiceGen: The JUnit Test Generation Tool from the UML State Machine Diagram

被引:0
|
作者
Doungsa-Ard, Chartchai [1 ]
Dahal, Keshav [2 ]
Pervez, Zeeshan [2 ]
机构
[1] Chiang Mai Univ, Coll Arts Media & Technol, Chiang Mai, Thailand
[2] Univ West Scotland, Sch Engn & Comp, Paisley, Renfrew, Scotland
关键词
Test data generation; Genetic algorithm; UML state machine diagram; JUnit test generation;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:8
相关论文
共 50 条
  • [1] Test Case Generation from UML State Machine Diagram: A Survey
    Aggarwal, Manuj
    Sabharwal, Sangeeta
    2012 THIRD INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATION TECHNOLOGY (ICCCT), 2012, : 133 - 140
  • [2] Automatic test case generation from UML State Machine diagrams
    Olianas, Dario
    PROGRAMMING 2019: PROCEEDINGS OF THE CONFERENCE COMPANION OF THE 3RD INTERNATIONAL CONFERENCE ON ART, SCIENCE, AND ENGINEERING OF PROGRAMMING, 2019,
  • [3] The Test Cases Generation From The UML Activity Diagram
    Xie, Tangtang
    Li, Jun
    Fang, Yonghui
    Xiong, Hailing
    FRONTIERS OF MANUFACTURING AND DESIGN SCIENCE II, PTS 1-6, 2012, 121-126 : 2387 - +
  • [4] Test Case Generation from UML Subactivity and Activity Diagram
    Fan, Xin
    Shu, Jian
    Liu, LinLan
    Liang, QiJun
    PROCEEDINGS OF THE SECOND INTERNATIONAL SYMPOSIUM ON ELECTRONIC COMMERCE AND SECURITY, VOL II, 2009, : 244 - 248
  • [5] Coverage Criteria for Test Case Generation Using UML State Chart Diagram
    Salman, Yasir Dawood
    Hashim, Nor Laily
    Rejab, Mawarny Md
    Romli, Rohaida
    Mohd, Haslina
    2ND INTERNATIONAL CONFERENCE ON APPLIED SCIENCE AND TECHNOLOGY 2017 (ICAST'17), 2017, 1891
  • [6] A test path generation approach for component testing based on UML state diagram
    Ma, Yuhong
    Lu, Jiang
    Zhao, Ruilian
    PROCEEDINGS OF THE 10TH IASTED INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND APPLICATIONS, 2006, : 471 - +
  • [7] Evolutionary Test Case Generation from UML-Diagram with Concurrency
    Back, Seungchan
    Choi, Hyorin
    Lee, Jung-Won
    Lee, Byungjeong
    ADVANCES IN COMPUTER SCIENCE AND UBIQUITOUS COMPUTING, 2017, 421 : 674 - 679
  • [8] A Novel Approach for Test Case Generation from UML Activity Diagram
    Jena, Ajay Kumar
    Swain, Santosh Kumar
    Mohapatra, Durga Prasad
    PROCEEDINGS OF THE 2014 INTERNATIONAL CONFERENCE ON ISSUES AND CHALLENGES IN INTELLIGENT COMPUTING TECHNIQUES (ICICT), 2014, : 621 - 629
  • [9] Complete Code Generation from UML State Machine
    Van Cam Pham
    Radermacher, Ansgar
    Gerard, Sebastien
    Li, Shuai
    MODELSWARD: PROCEEDINGS OF THE 5TH INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT, 2017, : 208 - 219
  • [10] Test cases generation from UML state diagrams
    Kim, Y.G.
    Hong, H.S.
    Bae, D.H.
    Cha, S.D.
    IEE Proceedings: Software, 1999, 146 (04): : 187 - 192