An improved memetic algorithm with method dependence relations (MAMDR)

A Aburas, A Groce - 2014 14th International Conference on …, 2014 - ieeexplore.ieee.org
2014 14th International Conference on Quality Software, 2014ieeexplore.ieee.org
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-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.
ieeexplore.ieee.org
以上显示的是最相近的搜索结果。 查看全部搜索结果

Google学术搜索按钮

example.edu/paper.pdf
搜索
获取 PDF 文件
引用
References