Test Case Generation in Object-Oriented Programming. Rojas, J. M. Ph.D. Thesis, Universidad Politécnica de Madrid (Technical University of Madrid), December, 2013.
Paper
Link abstract bibtex Testing is nowadays the most used technique to validate software and assess its quality. It is integrated into all practical software development methodologies and plays a crucial role towards the success of any software project. From the smallest units of code to the most complex components and their integration into a software system and later deployment; all pieces of a software product must be tested thoroughly before a software product can be released. The main limitation of software testing is that it remains a mostly manual task, representing a large fraction of the total development cost. In this scenario, test automation is paramount to alleviate such high costs. Test case generation (TCG) is the process of automatically generating test inputs that achieve high coverage of the system under test. Among a wide variety of approaches to TCG, this thesis focuses on structural (white-box) TCG, where one of the most successful enabling techniques is symbolic execution. In symbolic execution, the program under test is executed with its input arguments being symbolic expressions rather than concrete values. This thesis relies on a previously developed constraint-based TCG framework for imperative object-oriented programs (e.g., Java), in which the imperative program under test is first translated into an equivalent constraint logic program, and then such a translated program is symbolically executed by relying on standard evaluation mechanisms of Constraint Logic Programming (CLP), extended with special treatment for dynamically allocated data structures. Improving the scalability and efficiency of symbolic execution constitutes a major challenge. It is well known that symbolic execution quickly becomes impractical due to the large number of paths that must be explored and the size of the constraints that must be handled. Moreover, symbolic execution-based TCG tends to produce an unnecessarily large number of test cases when applied to medium or large programs. The contributions of this dissertation can be summarized as follows. \beginitemize ıtem[(1)] A compositional approach to CLP-based TCG is developed which overcomes the inter-procedural path explosion by separately analyzing each component (method) in a program under test, stowing the results as method summaries and incrementally reusing them to obtain whole-program results. A similar compositional strategy that relies on program specialization is also developed for the state-of-the-art symbolic execution tool Symbolic PathFinder (SPF). ıtem[(2)] Resource-driven TCG is proposed as a methodology to use resource consumption information to drive symbolic execution towards those parts of the program under test that comply with a user-provided resource policy, avoiding the exploration of those parts of the program that violate such policy. ıtem[(3)] A generic methodology to guide symbolic execution towards the most interesting parts of a program is proposed, which uses abstractions as oracles to steer symbolic execution through those parts of the program under test that interest the programmer/tester most. ıtem[(4)] A new heap-constraint solver is proposed, which efficiently handles heap-related constraints and aliasing of references during symbolic execution and greatly outperforms the state-of-the-art standard technique known as lazy initialization. ıtem[(5)] All techniques above have been implemented in the PET system (and some of them in the SPF tool). Experimental evaluation has confirmed that they significantly help towards a more scalable and efficient symbolic execution and TCG. \enditemize
@phdthesis{JMRojasPhD,
author = {Jos\'e Miguel Rojas},
title = {Test {C}ase {G}eneration in {O}bject-{O}riented
{P}rogramming},
url = {http://oa.upm.es/22751/},
school = {{U}niversidad {P}olit\'ecnica de {M}adrid ({T}echnical
{U}niversity of {M}adrid)},
month = dec,
year = {2013},
labels = {phdissert,vivac-ucm},
ee = {http://oa.upm.es/22751/},
abstract = {Testing is nowadays the most used technique to validate
software and assess its quality. It is integrated into all practical
software development methodologies and plays a crucial role towards
the success of any software project. From the smallest units of code
to the most complex components and their integration into a software
system and later deployment; all pieces of a software product must be
tested thoroughly before a software product can be released. The main
limitation of software testing is that it remains a mostly manual
task, representing a large fraction of the total development cost. In
this scenario, test automation is paramount to alleviate such high
costs. Test case generation (TCG) is the process of automatically
generating test inputs that achieve high coverage of the system under
test. Among a wide variety of approaches to TCG, this thesis focuses
on structural (white-box) TCG, where one of the most successful
enabling techniques is symbolic execution. In symbolic execution, the
program under test is executed with its input arguments being symbolic
expressions rather than concrete values. This thesis relies on a
previously developed constraint-based TCG framework for imperative
object-oriented programs (e.g., Java), in which the imperative program
under test is first translated into an equivalent constraint logic
program, and then such a translated program is symbolically executed
by relying on standard evaluation mechanisms of Constraint Logic
Programming (CLP), extended with special treatment for dynamically
allocated data structures. Improving the scalability and efficiency of
symbolic execution constitutes a major challenge. It is well known
that symbolic execution quickly becomes impractical due to the large
number of paths that must be explored and the size of the constraints
that must be handled. Moreover, symbolic execution-based TCG tends to
produce an unnecessarily large number of test cases when applied to
medium or large programs. The contributions of this dissertation can
be summarized as follows. \begin{itemize} \item[(1)] A compositional
approach to CLP-based TCG is developed which overcomes the
inter-procedural path explosion by separately analyzing each component
(method) in a program under test, stowing the results as method
summaries and incrementally reusing them to obtain whole-program
results. A similar compositional strategy that relies on program
specialization is also developed for the state-of-the-art symbolic
execution tool Symbolic PathFinder (SPF). \item[(2)] Resource-driven
TCG is proposed as a methodology to use resource consumption
information to drive symbolic execution towards those parts of the
program under test that comply with a user-provided resource policy,
avoiding the exploration of those parts of the program that violate
such policy. \item[(3)] A generic methodology to guide symbolic
execution towards the most interesting parts of a program is proposed,
which uses abstractions as oracles to steer symbolic execution through
those parts of the program under test that interest the
programmer/tester most. \item[(4)] A new heap-constraint solver is
proposed, which efficiently handles heap-related constraints and
aliasing of references during symbolic execution and greatly
outperforms the state-of-the-art standard technique known as lazy
initialization. \item[(5)] All techniques above have been implemented
in the PET system (and some of them in the SPF tool). Experimental
evaluation has confirmed that they significantly help towards a more
scalable and efficient symbolic execution and TCG. \end{itemize}}
}
Downloads: 0
{"_id":"jQ2Cte4NvcGBF6rYL","bibbaseid":"rojas-testcasegenerationinobjectorientedprogramming-2013","author_short":["Rojas, J. M."],"bibdata":{"bibtype":"phdthesis","type":"phdthesis","author":[{"firstnames":["José","Miguel"],"propositions":[],"lastnames":["Rojas"],"suffixes":[]}],"title":"Test Case Generation in Object-Oriented Programming","url":"http://oa.upm.es/22751/","school":"Universidad Politécnica de Madrid (Technical University of Madrid)","month":"December","year":"2013","labels":"phdissert,vivac-ucm","ee":"http://oa.upm.es/22751/","abstract":"Testing is nowadays the most used technique to validate software and assess its quality. It is integrated into all practical software development methodologies and plays a crucial role towards the success of any software project. From the smallest units of code to the most complex components and their integration into a software system and later deployment; all pieces of a software product must be tested thoroughly before a software product can be released. The main limitation of software testing is that it remains a mostly manual task, representing a large fraction of the total development cost. In this scenario, test automation is paramount to alleviate such high costs. Test case generation (TCG) is the process of automatically generating test inputs that achieve high coverage of the system under test. Among a wide variety of approaches to TCG, this thesis focuses on structural (white-box) TCG, where one of the most successful enabling techniques is symbolic execution. In symbolic execution, the program under test is executed with its input arguments being symbolic expressions rather than concrete values. This thesis relies on a previously developed constraint-based TCG framework for imperative object-oriented programs (e.g., Java), in which the imperative program under test is first translated into an equivalent constraint logic program, and then such a translated program is symbolically executed by relying on standard evaluation mechanisms of Constraint Logic Programming (CLP), extended with special treatment for dynamically allocated data structures. Improving the scalability and efficiency of symbolic execution constitutes a major challenge. It is well known that symbolic execution quickly becomes impractical due to the large number of paths that must be explored and the size of the constraints that must be handled. Moreover, symbolic execution-based TCG tends to produce an unnecessarily large number of test cases when applied to medium or large programs. The contributions of this dissertation can be summarized as follows. \\beginitemize ıtem[(1)] A compositional approach to CLP-based TCG is developed which overcomes the inter-procedural path explosion by separately analyzing each component (method) in a program under test, stowing the results as method summaries and incrementally reusing them to obtain whole-program results. A similar compositional strategy that relies on program specialization is also developed for the state-of-the-art symbolic execution tool Symbolic PathFinder (SPF). ıtem[(2)] Resource-driven TCG is proposed as a methodology to use resource consumption information to drive symbolic execution towards those parts of the program under test that comply with a user-provided resource policy, avoiding the exploration of those parts of the program that violate such policy. ıtem[(3)] A generic methodology to guide symbolic execution towards the most interesting parts of a program is proposed, which uses abstractions as oracles to steer symbolic execution through those parts of the program under test that interest the programmer/tester most. ıtem[(4)] A new heap-constraint solver is proposed, which efficiently handles heap-related constraints and aliasing of references during symbolic execution and greatly outperforms the state-of-the-art standard technique known as lazy initialization. ıtem[(5)] All techniques above have been implemented in the PET system (and some of them in the SPF tool). Experimental evaluation has confirmed that they significantly help towards a more scalable and efficient symbolic execution and TCG. \\enditemize","bibtex":"@phdthesis{JMRojasPhD,\n author = {Jos\\'e Miguel Rojas},\n title\t = {Test {C}ase {G}eneration in {O}bject-{O}riented\n {P}rogramming},\n url\t = {http://oa.upm.es/22751/},\n school = {{U}niversidad {P}olit\\'ecnica de {M}adrid ({T}echnical\n {U}niversity of {M}adrid)},\n month\t = dec,\n year\t = {2013},\n labels = {phdissert,vivac-ucm},\n ee\t = {http://oa.upm.es/22751/},\n abstract = {Testing is nowadays the most used technique to validate\nsoftware and assess its quality. It is integrated into all practical\nsoftware development methodologies and plays a crucial role towards\nthe success of any software project. From the smallest units of code\nto the most complex components and their integration into a software\nsystem and later deployment; all pieces of a software product must be\ntested thoroughly before a software product can be released. The main\nlimitation of software testing is that it remains a mostly manual\ntask, representing a large fraction of the total development cost. In\nthis scenario, test automation is paramount to alleviate such high\ncosts. Test case generation (TCG) is the process of automatically\ngenerating test inputs that achieve high coverage of the system under\ntest. Among a wide variety of approaches to TCG, this thesis focuses\non structural (white-box) TCG, where one of the most successful\nenabling techniques is symbolic execution. In symbolic execution, the\nprogram under test is executed with its input arguments being symbolic\nexpressions rather than concrete values. This thesis relies on a\npreviously developed constraint-based TCG framework for imperative\nobject-oriented programs (e.g., Java), in which the imperative program\nunder test is first translated into an equivalent constraint logic\nprogram, and then such a translated program is symbolically executed\nby relying on standard evaluation mechanisms of Constraint Logic\nProgramming (CLP), extended with special treatment for dynamically\nallocated data structures. Improving the scalability and efficiency of\nsymbolic execution constitutes a major challenge. It is well known\nthat symbolic execution quickly becomes impractical due to the large\nnumber of paths that must be explored and the size of the constraints\nthat must be handled. Moreover, symbolic execution-based TCG tends to\nproduce an unnecessarily large number of test cases when applied to\nmedium or large programs. The contributions of this dissertation can\nbe summarized as follows. \\begin{itemize} \\item[(1)] A compositional\napproach to CLP-based TCG is developed which overcomes the\ninter-procedural path explosion by separately analyzing each component\n(method) in a program under test, stowing the results as method\nsummaries and incrementally reusing them to obtain whole-program\nresults. A similar compositional strategy that relies on program\nspecialization is also developed for the state-of-the-art symbolic\nexecution tool Symbolic PathFinder (SPF). \\item[(2)] Resource-driven\nTCG is proposed as a methodology to use resource consumption\ninformation to drive symbolic execution towards those parts of the\nprogram under test that comply with a user-provided resource policy,\navoiding the exploration of those parts of the program that violate\nsuch policy. \\item[(3)] A generic methodology to guide symbolic\nexecution towards the most interesting parts of a program is proposed,\nwhich uses abstractions as oracles to steer symbolic execution through\nthose parts of the program under test that interest the\nprogrammer/tester most. \\item[(4)] A new heap-constraint solver is\nproposed, which efficiently handles heap-related constraints and\naliasing of references during symbolic execution and greatly\noutperforms the state-of-the-art standard technique known as lazy\ninitialization. \\item[(5)] All techniques above have been implemented\nin the PET system (and some of them in the SPF tool). Experimental\nevaluation has confirmed that they significantly help towards a more\nscalable and efficient symbolic execution and TCG. \\end{itemize}}\n}\n\n","author_short":["Rojas, J. M."],"key":"JMRojasPhD","id":"JMRojasPhD","bibbaseid":"rojas-testcasegenerationinobjectorientedprogramming-2013","role":"author","urls":{"Paper":"http://oa.upm.es/22751/","Link":"http://oa.upm.es/22751/"},"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"phdthesis","biburl":"https://jmrojas.github.io/cv/mybibtex.bib","dataSources":["HH2ZMm8PqShQeXCWM"],"keywords":[],"search_terms":["test","case","generation","object","oriented","programming","rojas"],"title":"Test Case Generation in Object-Oriented Programming","year":2013}