• DocumentCode
    2230413
  • Title

    On the Use of Specification-Based Assertions as Test Oracles

  • Author

    Coppit, David ; Haddox-Schatz, Jennifer M.

  • Author_Institution
    Dept. of Comput. Sci., Coll. of William & Mary, Williamsburg, VA
  • fYear
    2005
  • fDate
    7-7 April 2005
  • Firstpage
    305
  • Lastpage
    314
  • Abstract
    The "oracle problem\´ is a well-known challenge for software testing. Without some means of automatically computing the correct answer for test cases, testers must instead compute the results by hand, or use a previous version of the software. In this paper, we investigate the feasibility of revealing software faults by augmenting the code with complete, specification-based assertions. Our evaluation method is to (1) develop a formal specification, (2) translate this specification into assertions, (3) inject or identify existing faults, and (4) for each version of the assertion-enhanced system containing a fault, execute it using a set of test inputs and check for assertion violations. Our goal is to determine whether specification-based assertions are a viable method of revealing faults, and to begin to assess the extent to which their cost-effectiveness can be improved. Our evaluation is based on two case studies involving real-world software systems. Our results indicate that specification-based assertions can effectively reveal faults, as long as they adversely affect the program state. We describe techniques that we used for translating high-level specifications into code-level assertions. We also discuss the costs associated with the approach, and potential techniques for reducing these costs
  • Keywords
    formal specification; program testing; program verification; software cost estimation; software fault tolerance; formal specification; software cost reduction; software faults; software testing; specification translation; specification-based assertion; test oracles; Automatic testing; Computer science; Costs; Educational institutions; Fault diagnosis; Formal specifications; Impedance matching; Software systems; Software testing; System testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Workshop, 2005. 29th Annual IEEE/NASA
  • Conference_Location
    Greenbelt, MD
  • Print_ISBN
    0-7695-2306-4
  • Type

    conf

  • DOI
    10.1109/SEW.2005.33
  • Filename
    1521219