Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1109/SEW.2005.33guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

On the Use of Specification-Based Assertions as Test Oracles

Published: 06 April 2005 Publication History

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.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Guide Proceedings
SEW '05: Proceedings of the 29th Annual IEEE/NASA on Software Engineering Workshop
April 2005
329 pages
ISBN:0769523064

Publisher

IEEE Computer Society

United States

Publication History

Published: 06 April 2005

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2023)Feedback-Directed Metamorphic TestingACM Transactions on Software Engineering and Methodology10.1145/353331432:1(1-34)Online publication date: 13-Feb-2023
  • (2023)An annotation-based approach for finding bugs in neural network programsJournal of Systems and Software10.1016/j.jss.2023.111669201:COnline publication date: 1-Jul-2023
  • (2023)A Literature Survey of Assertions in Software TestingEngineering of Computer-Based Systems10.1007/978-3-031-49252-5_8(75-96)Online publication date: 16-Oct-2023
  • (2022)Perfect is the enemy of test oracleProceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3540250.3549086(70-81)Online publication date: 7-Nov-2022
  • (2020)Automated construction of energy test oracles for AndroidProceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3368089.3409677(927-938)Online publication date: 8-Nov-2020
  • (2019)Generating automated and online test oracles for Simulink models with continuous and uncertain behaviorsProceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3338906.3338920(27-38)Online publication date: 12-Aug-2019
  • (2015)Effective test suites for mixed discrete-continuous stateflow controllersProceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering10.1145/2786805.2786818(84-95)Online publication date: 30-Aug-2015
  • (2015)The Oracle Problem in Software Testing: A SurveyIEEE Transactions on Software Engineering10.1109/TSE.2014.237278541:5(507-525)Online publication date: 1-May-2015
  • (2014)Improving the accuracy of oracle verdicts through automated model steeringProceedings of the 29th ACM/IEEE International Conference on Automated Software Engineering10.1145/2642937.2642989(527-538)Online publication date: 15-Sep-2014
  • (2013)Techniques for testing scientific programs without an OracleProceedings of the 5th International Workshop on Software Engineering for Computational Science and Engineering10.5555/2663370.2663378(48-57)Online publication date: 18-May-2013
  • Show More Cited By

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media