Advertisement

Proof-based Test Case Generation

  • Wolfgang Ahrendt
  • Christoph Gladisch
  • Mihai Herda
Chapter
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10001)

Abstract

KeYTestGen is a white-box test generator for Java methods based on KeY's program analysis and symbolic execution. KeYTestGen generates a JUnit test harness (test driver) which does not only initialize method parameters but also the global state that is defined by the (potentially private) fields of objects and classes. For example, a complex linked data structure may be created as test input. The tests can satisfy different test criteria such as branch coverage, path coverage, and MC/DC coverage. The user may also provide a specification in the Java Modeling Language (JML) from which a test oracle can be generated or which can be used as an abstraction for a loop or method call. KeYTestGen can be used either as a simple stand-alone tool not requiring expert knowledge or it can be used in an advanced way to support and complement formal verification.

Keywords

Test Suite Coverage Criterion Symbolic Execution Test Case Generation Java Modeling Language 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer International Publishing AG 2016

Authors and Affiliations

  • Wolfgang Ahrendt
    • 1
  • Christoph Gladisch
    • 2
  • Mihai Herda
    • 2
  1. 1.Chalmers University of TechnologyGothenburgSweden
  2. 2.Karlsruhe Institute of TechnologyKarlsruheGermany

Personalised recommendations