Cargando…

Path-oriented test cases generation based adaptive genetic algorithm

The automatic generation of test cases oriented paths in an effective manner is a challenging problem for structural testing of software. The use of search-based optimization methods, such as genetic algorithms (GAs), has been proposed to handle this problem. This paper proposes an improved adaptive...

Descripción completa

Detalles Bibliográficos
Autores principales: Bao, Xiaoan, Xiong, Zijian, Zhang, Na, Qian, Junyan, Wu, Biao, Zhang, Wei
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Public Library of Science 2017
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5685491/
https://www.ncbi.nlm.nih.gov/pubmed/29136028
http://dx.doi.org/10.1371/journal.pone.0187471
_version_ 1783278639175958528
author Bao, Xiaoan
Xiong, Zijian
Zhang, Na
Qian, Junyan
Wu, Biao
Zhang, Wei
author_facet Bao, Xiaoan
Xiong, Zijian
Zhang, Na
Qian, Junyan
Wu, Biao
Zhang, Wei
author_sort Bao, Xiaoan
collection PubMed
description The automatic generation of test cases oriented paths in an effective manner is a challenging problem for structural testing of software. The use of search-based optimization methods, such as genetic algorithms (GAs), has been proposed to handle this problem. This paper proposes an improved adaptive genetic algorithm (IAGA) for test cases generation by maintaining population diversity. It uses adaptive crossover rate and mutation rate in dynamic adjustment according to the differences between individual similarity and fitness values, which enhances the exploitation of searching global optimum. This novel approach is experimented and tested on a benchmark and six industrial programs. The experimental results confirm that the proposed method is efficient in generating test cases for path coverage.
format Online
Article
Text
id pubmed-5685491
institution National Center for Biotechnology Information
language English
publishDate 2017
publisher Public Library of Science
record_format MEDLINE/PubMed
spelling pubmed-56854912017-11-30 Path-oriented test cases generation based adaptive genetic algorithm Bao, Xiaoan Xiong, Zijian Zhang, Na Qian, Junyan Wu, Biao Zhang, Wei PLoS One Research Article The automatic generation of test cases oriented paths in an effective manner is a challenging problem for structural testing of software. The use of search-based optimization methods, such as genetic algorithms (GAs), has been proposed to handle this problem. This paper proposes an improved adaptive genetic algorithm (IAGA) for test cases generation by maintaining population diversity. It uses adaptive crossover rate and mutation rate in dynamic adjustment according to the differences between individual similarity and fitness values, which enhances the exploitation of searching global optimum. This novel approach is experimented and tested on a benchmark and six industrial programs. The experimental results confirm that the proposed method is efficient in generating test cases for path coverage. Public Library of Science 2017-11-14 /pmc/articles/PMC5685491/ /pubmed/29136028 http://dx.doi.org/10.1371/journal.pone.0187471 Text en © 2017 Bao et al http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
spellingShingle Research Article
Bao, Xiaoan
Xiong, Zijian
Zhang, Na
Qian, Junyan
Wu, Biao
Zhang, Wei
Path-oriented test cases generation based adaptive genetic algorithm
title Path-oriented test cases generation based adaptive genetic algorithm
title_full Path-oriented test cases generation based adaptive genetic algorithm
title_fullStr Path-oriented test cases generation based adaptive genetic algorithm
title_full_unstemmed Path-oriented test cases generation based adaptive genetic algorithm
title_short Path-oriented test cases generation based adaptive genetic algorithm
title_sort path-oriented test cases generation based adaptive genetic algorithm
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5685491/
https://www.ncbi.nlm.nih.gov/pubmed/29136028
http://dx.doi.org/10.1371/journal.pone.0187471
work_keys_str_mv AT baoxiaoan pathorientedtestcasesgenerationbasedadaptivegeneticalgorithm
AT xiongzijian pathorientedtestcasesgenerationbasedadaptivegeneticalgorithm
AT zhangna pathorientedtestcasesgenerationbasedadaptivegeneticalgorithm
AT qianjunyan pathorientedtestcasesgenerationbasedadaptivegeneticalgorithm
AT wubiao pathorientedtestcasesgenerationbasedadaptivegeneticalgorithm
AT zhangwei pathorientedtestcasesgenerationbasedadaptivegeneticalgorithm