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 条
  • [31] Test data generation for web application using a UML class diagram with OCL constraints
    Fujiwara, Shoichiro
    Munakata, Kazuki
    Maeda, Yoshiharu
    Katayama, Asako
    Uehara, Tadahiro
    INNOVATIONS IN SYSTEMS AND SOFTWARE ENGINEERING, 2011, 7 (04) : 275 - 282
  • [32] UML diagram-driven test scenarios generation based on the temporal graph grammar
    Shi, Zhan
    Zeng, Xiaoqin
    Zhang, Tingting
    Han, Lei
    Qian, Ying
    KSII TRANSACTIONS ON INTERNET AND INFORMATION SYSTEMS, 2021, 15 (07): : 2476 - 2495
  • [33] Deriving Combinatorial Test Design Model from UML Activity Diagram
    Satish, Preeti
    Sheeba, K.
    Rangarajan, Krishnan
    IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2013), 2013, : 331 - 337
  • [34] Test cases generation from UML activity diagrams
    Kim, Hyungchoul
    Kang, Sungwon
    Baik, Jongmoon
    Ko, Inyoung
    SNPD 2007: EIGHTH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING, AND PARALLEL/DISTRIBUTED COMPUTING, VOL 3, PROCEEDINGS, 2007, : 556 - +
  • [35] Test sequence generation from UML sequence diagrams
    Samuel, Philip
    Joseph, Anju Teresa
    PROCEEDINGS OF NINTH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING, 2008, : 879 - +
  • [36] Generating Test Data Using Ant Colony Optimization (ACO) Algorithm and UML State Machine Diagram in Gray Box Testing Approach
    Arifiani, Siska
    Rochimah, Siti
    2016 1ST INTERNATIONAL SEMINAR ON APPLICATION FOR TECHNOLOGY OF INFORMATION AND COMMUNICATION (ISEMANTIC): SCIENCE AND TECHNOLOGY FOR A BETTER FUTURE, 2016, : 217 - 222
  • [37] Tool Support to Automate Transformations from SBVR to UML Use Case Diagram
    Essebaa, Imane
    Chantit, Salima
    PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, 2018, : 525 - 532
  • [38] Test Input Generation using UML Sequence and State Machines Models
    Bandyopadhyay, Aritra
    Ghosh, Sudipto
    SECOND INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION, AND VALIDATION, PROCEEDINGS, 2009, : 121 - 130
  • [39] UML Activity Diagram-Based Automatic Test Case Generation For Java']Java Programs
    Chen, Mingsong
    Qiu, Xiaokang
    Xu, Wei
    Wang, Linzhang
    Zhao, Jianhua
    Li, Xuandong
    COMPUTER JOURNAL, 2009, 52 (05): : 545 - 556
  • [40] Language and Tool Support for Class and State Machine Refinement in UML-B
    Said, Mar Yah
    Butler, Michael
    Snook, Colin
    FM 2009: FORMAL METHODS, PROCEEDINGS, 2009, 5850 : 579 - 595