Automatic feasible transition path generation from UML state chart diagrams using grouping genetic algorithms

被引:5
|
作者
Choi, Yoo-Min [1 ]
Lim, Dong-Jin [1 ]
机构
[1] Hanyang Univ, Dept Elect Syst Engn, Sa3 Dong, Ansan, Gyeonggi Do, South Korea
关键词
Search-based algorithm; UML state chart; Feasible transition path; Model-driven testing; Automatic test case generation;
D O I
10.1016/j.infsof.2017.09.013
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context Transition coverage testing, a testing technique using state charts of Unified Modeling Language (UML), requires generation of transition paths that cover all transitions. However, if a generated path is infeasible due to internal variables then the transition will not be executed according to the input sequence, resulting in a test failure. Thus, feasible transition paths (FTPs) must be generated to run transition coverage tests. Objective: Several automatic transition path generation studies have been conducted using genetic algorithms (GM), but when generating a transition path using a GA, the dependent transition pairs serve as distractions. Furthermore, counter problems that require repeated execution of dependent transitions (for example, to test a failing operation of an automatic teller machine, the password must be incorrect three times) make FFP generation more difficult. Method: In this study, to address these issues, an automatic FTP generation method using a grouping GA (GGA) is described. Considering the characteristics of the problem, modification of the original GGA is proposed. A chromosome initialized using information from the state chart, and generating transition coverage, satisfied FTP while adjusting the length of the chromosome. Results: An experiment using the 'inres initiator state chart and the 'ATM' state chart generated FTPs successfully. In the case of the inres initiator state chart, the proposed GGA was shown to be capable of generating FTPs with a 100% success rate. In the case of the ATM state chart, the proposed GGA was shown to be capable of generating FTPs with a 100% success rate, by setting the maximum number of generations. Conclusion: The proposed GGA can be applied effectively to transition coverage testing using UML state charts, and can generate test paths suitable for testing purposes by setting the genetic parameter value and the maximum number of generations.
引用
收藏
页码:38 / 58
页数:21
相关论文
共 50 条
  • [1] Automatic Code Generation From UML State Chart Diagrams
    Sunitha, E., V
    Samuel, Philip
    [J]. IEEE ACCESS, 2019, 7 : 8591 - 8608
  • [2] Automatic test case generation from UML State Machine diagrams
    Olianas, Dario
    [J]. PROGRAMMING 2019: PROCEEDINGS OF THE CONFERENCE COMPANION OF THE 3RD INTERNATIONAL CONFERENCE ON ART, SCIENCE, AND ENGINEERING OF PROGRAMMING, 2019,
  • [3] Automatic test case generation using unified modeling language (UML) state diagrams
    Samuel, P.
    Mall, R.
    Bothra, A. K.
    [J]. IET SOFTWARE, 2008, 2 (02) : 79 - 93
  • [4] Automatic test case generation from UML communication diagrams
    Samuel, Philip
    Mall, Rajib
    Kanth, Pratyush
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2007, 49 (02) : 158 - 171
  • [5] Automatic test case generation from UML sequence diagrams
    Sarma, Monalisa
    Kundu, Debasish
    Mall, Rajib
    [J]. ADCOM 2007: PROCEEDINGS OF THE 15TH INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING AND COMMUNICATIONS, 2007, : 60 - +
  • [6] Test Case Generation from UML-Diagrams Using Genetic Algorithm
    Sahoo, Rajesh Kumar
    Derbali, Morched
    Jerbi, Houssem
    Doan Van Thang
    Kumar, P. Pavan
    Sahoo, Sipra
    [J]. CMC-COMPUTERS MATERIALS & CONTINUA, 2021, 67 (02): : 2321 - 2336
  • [7] Automatic routing of Goldstone diagrams using genetic algorithms
    Nils Herrmann
    Michael Hanrath
    [J]. Theoretical Chemistry Accounts, 2019, 138
  • [8] Automatic routing of Goldstone diagrams using genetic algorithms
    Herrmann, Nils
    Hanrath, Michael
    [J]. THEORETICAL CHEMISTRY ACCOUNTS, 2019, 138 (10)
  • [9] Automatic generation of basic behavior schemas from UML class diagrams
    Albert, Manoli
    Cabot, Jordi
    Gomez, Cristina
    Pelechano, Vicente
    [J]. SOFTWARE AND SYSTEMS MODELING, 2010, 9 (01): : 47 - 67
  • [10] Automatic generation of object-Z specification from UML diagrams
    Miao Huaikou
    Chen Yihai
    [J]. ICCSE'2006: PROCEEDINGS OF THE FIRST INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE & EDUCATION: ADVANCED COMPUTER TECHNOLOGY, NEW EDUCATION, 2006, : 857 - 862