DocumentCode
155168
Title
An Improved Memetic Algorithm with Method Dependence Relations (MAMDR)
Author
Aburas, Ali ; Groce, Alex
Author_Institution
Oregon State Univ., Corvallis, OR, USA
fYear
2014
fDate
2-3 Oct. 2014
Firstpage
11
Lastpage
20
Abstract
Search-based approaches are successfully used for generating unit tests for object-oriented programs in Java. However, these approaches may struggle to generate sequence method calls with specific values to achieve high coverage due to the large size of the search space. This paper proposes a memetic algorithm (MA) approach in which static analysis is used to identify method dependence relations (MDR) based on the field access. This method dependence information is employed for reducing the search space and used to guide the search towards regions that lead to full (or at least high) structural coverage. Our approach, MAMDR, combines both a genetic algorithm (GA) and Hill Climbing (HC) to generate test data for Java programs. The former is used to produce test cases that maximize the branch coverage of the CUT, while minimizing the length of each test case. The latter is used to target uncovered branches in the preceding search phase using static information that guides the search to generate sequences of method calls and values that could cover target branches. We compare MAMDR with pure random testing, a well-known search based approach (EvoSuite), and a simple MA on several open source projects and classes, and show that the combination of MA and MDR is effective.
Keywords
Java; genetic algorithms; object-oriented programming; program diagnostics; program testing; public domain software; CUT; EvoSuite; Hill Climbing algorithm; Java programs; MAMDR; class under test; genetic algorithm; memetic algorithm-with-method dependence relations; object-oriented programs; open source projects; preceding search phase; search space; search-based software testing; static analysis; Algorithm design and analysis; Genetic algorithms; Java; Search problems; Sociology; Software algorithms; Testing; Memetic Algorithms; Object-Oriented; Search Based Software Testing; Search Space Reduction; Static Analysis;
fLanguage
English
Publisher
ieee
Conference_Titel
Quality Software (QSIC), 2014 14th International Conference on
Conference_Location
Dallas, TX
ISSN
1550-6002
Print_ISBN
978-1-4799-7197-8
Type
conf
DOI
10.1109/QSIC.2014.12
Filename
6958382
Link To Document