Automatic Test Data Generation Using the Activity Diagram and Search-Based Technique

被引:9
|
作者
Jaffari, Aman [1 ]
Yoo, Cheol-Jung [2 ]
Lee, Jihyun [2 ]
机构
[1] Jeonbuk Natl Univ, Dept Software Engn, Jeonju Si 54896, South Korea
[2] Jeonbuk Natl Univ, CAIIT, Dept Software Engn, Jeonju Si 54896, South Korea
来源
APPLIED SCIENCES-BASEL | 2020年 / 10卷 / 10期
关键词
automatic test data generation; activity diagram; genetic algorithm; model-based testing; search-based testing; UML ACTIVITY DIAGRAMS; DATA-FLOW; MUTATION;
D O I
10.3390/app10103397
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
In software testing, generating test data is quite expensive and time-consuming. The manual generation of an appropriately large set of test data to satisfy a specified coverage criterion carries a high cost and requires significant human effort. Currently, test automation has come at the cost of low quality. In this paper, we are motivated to propose a model-based approach utilizing the activity diagram of the system under test as a test base, focusing on its data flow aspect. The technique is incorporated with a search-based optimization heuristic to fully automate the test data generation process and deliver test cases with more improved quality. Our experimental investigation used three open-source software systems to assess and compare the proposed technique with two alternative approaches. The experimental results indicate the improved fault-detection performance of the proposed technique, which was 11.1% better than DFAAD and 38.4% better than EvoSuite, although the techniques did not differ significantly in terms of statement and branch coverage. The proposed technique was able to detect more computation-related faults and tends to have better fault detection capability as the system complexity increases.
引用
收藏
页数:21
相关论文
共 50 条
  • [1] Search-Based Functional Test Data Generation Using Data Metamodel
    Olah, Janos
    Majzik, Istvan
    [J]. SEARCH BASED SOFTWARE ENGINEERING, 2011, 6956 : 273 - 273
  • [2] Search-based automatic path test generation method for character string data
    Department of Computer Science, Beijing University of Chemical Technology, Beijing 100029, China
    不详
    [J]. Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao, 2008, 5 (671-677): : 671 - 677
  • [3] Search-based software test data generation: a survey
    McMinn, P
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2004, 14 (02): : 105 - 156
  • [4] Search-based Data-flow Test Generation
    Vivanti, Mattia
    Mis, Andre
    Gorla, Alessandra
    Fraser, Gordon
    [J]. 2013 IEEE 24TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE), 2013, : 370 - 379
  • [5] Search-Based Test Data Generation for SQL Queries
    Castelein, Jeroen
    Aniche, Mauricio
    Soltani, Mozhan
    Panichella, Annibale
    van Deursen, Arie
    [J]. PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, : 1220 - 1230
  • [6] Automatic Test Data Generator: A Tool based on Search-based Techniques
    Malhotra, Ruchika y
    Poornima
    Kumar, Nitish
    [J]. 2016 5TH INTERNATIONAL CONFERENCE ON RELIABILITY, INFOCOM TECHNOLOGIES AND OPTIMIZATION (TRENDS AND FUTURE DIRECTIONS) (ICRITO), 2016, : 570 - 576
  • [7] Toward granular search-based automatic unit test case generation
    Pecorelli, Fabiano
    Grano, Giovanni
    Palomba, Fabio
    Gall, Harald C.
    De Lucia, Andrea
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (04)
  • [8] An Improved Crow Search Algorithm for Test Data Generation Using Search-Based Mutation Testing
    Nishtha Jatana
    Bharti Suri
    [J]. Neural Processing Letters, 2020, 52 : 767 - 784
  • [9] An Improved Crow Search Algorithm for Test Data Generation Using Search-Based Mutation Testing
    Jatana, Nishtha
    Suri, Bharti
    [J]. NEURAL PROCESSING LETTERS, 2020, 52 (01) : 767 - 784
  • [10] A Search-Based Test Data Generation Method for Concurrent Programs
    Seyed Mohsen Mirhosseini
    Hassan Haghighi
    [J]. International Journal of Computational Intelligence Systems, 2020, 13 : 1161 - 1175