Home
16 | 05 | 2012
Search-based software testing and test data generation for a dynamic programming language PDF Print E-mail
Written by Administrator   
Monday, 17 October 2011 10:27

Title: Search-based software testing and test data generation for a dynamic programming language

Authors: Stefan Mairhofer, Robert Feldt and Richard Torkar

Source : GECCO'11

Abstract: Manually creating test cases is time consuming and error prone. Search-based software testing can help automate this process and thus reduce time and effort and increase quality by automatically generating relevant test cases. Previous research has mainly focused on static programming languages and simple test data inputs such as numbers. This is not practical for dynamic programming languages that are increasingly used by software developers. Here we present an approach for search-based software testing for dynamically typed programming languages that can generate test scenarios and both simple and more complex test data. The approach is implemented as a tool, RuTeG, in and for the dynamic programming language Ruby. It combines an evolutionary search for test cases that give structural code coverage with a learning component to restrict the space of possible types of inputs. The latter is called for in dynamic languages since we cannot always know statically which types of objects are valid inputs. Experiments on 14 cases taken from real-world Ruby projects show that RuTeG achieves full or higher statement coverage on more cases and does so faster than randomly generated test cases.

DOI


 
Next Events

MAY
21

21.05.2012 - 25.05.2012
NIDISC

JUN
10

10.06.2012 - 15.06.2012
CEC

JUL
07

07.07.2012 - 11.07.2012
GECCO

Powered by