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 条
  • [11] Model extraction and test generation from JUnit test suites
    Seijas, Pablo Lamela
    Thompson, Simon
    Angel Francisco, Miguel
    2016 IEEE/ACM 11TH INTERNATIONAL WORKSHOP IN AUTOMATION OF SOFTWARE TEST (AST), 2016, : 8 - 14
  • [12] Model extraction and test generation from JUnit test suites
    Pablo Lamela Seijas
    Simon Thompson
    Miguel Ángel Francisco
    Software Quality Journal, 2018, 26 : 1519 - 1552
  • [13] Model extraction and test generation from JUnit test suites
    Seijas, Pablo Lamela
    Thompson, Simon
    Angel Francisco, Miguel
    SOFTWARE QUALITY JOURNAL, 2018, 26 (04) : 1519 - 1552
  • [14] Test case automate generation from UML sequence diagram and OCL expression
    Li Bao-Lin
    Li Zhi-Shu
    Li Qing
    Chen Yan Hong
    CIS: 2007 INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY, PROCEEDINGS, 2007, : 1048 - 1052
  • [15] The Research on Test Case Generation Technology of UML Sequence Diagram
    Li, Yan
    Jiang, Li
    2014 PROCEEDINGS OF THE 9TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE & EDUCATION (ICCSE 2014), 2014, : 1067 - 1069
  • [16] Deriving System Behavior from UML State Machine Diagram: Applied to Missile Project
    Min, Hyun-Seok
    Chung, Sang-Mun
    Choi, Jin-Young
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2013, 19 (01) : 53 - 77
  • [17] Automated generation of statistical test cases from UML state diagrams
    Chevalley, P
    Thévenod-Fosse, P
    25TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE & APPLICATIONS CONFERENCE, 2001, : 205 - 214
  • [18] A Memorization Approach for Test Case Generation in Concurrent UML Activity Diagram
    Kamonsantiroj, Suwatchai
    Pipanmaekaporn, Luepol
    Lorpunmanee, Siriluck
    2019 2ND INTERNATIONAL CONFERENCE ON GEOINFORMATICS AND DATA ANALYSIS (ICGDA 2019), 2019, : 20 - 25
  • [19] Automated test case generation based on UML activity diagram model
    Zhang, M., 2001, Beijing University of Aeronautics and Astronautics (BUAA) (27):
  • [20] Extenics-based Test Case Generation for UML Activity Diagram
    Li, Liping
    Li, Xingsen
    He, Tao
    Xiong, Jie
    FIRST INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY AND QUANTITATIVE MANAGEMENT, 2013, 17 : 1186 - 1193