Skip to main content

Combining Algebraic and Model-Based Test Case Generation

  • Conference paper
Book cover Theoretical Aspects of Computing - ICTAC 2004 (ICTAC 2004)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3407))

Included in the following conference series:

Abstract

The classical work on test case generation and formal methods focuses either on algebraic or model-based specifications. In this paper we propose an approach to derive test cases in the RAISE method whose specification language RSL combines the model-based and algebraic style. Our approach integrates the testing techniques of algebraic specifications and model-based specifications. In this testing strategy, first, every function definition is partitioned by Disjunctive Normal Form (DNF) rewriting and then test arguments are generated. Next, sequences of function calls are formed. Finally, the test cases are built by replacing the variables, on both sides of the axioms, with the sequences of functions calls. These kinds of test cases not only provide the data for testing, but also serve as test oracles. Based on this combined approach, a test case generation tool has been developed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aichernig, B.K.: Contract-based mutation testing in the refinement calculus. In: REFINE 2002, the British Computer Society - Formal Aspects of Computing refinement workshop. Elsevier, Amsterdam (2002)

    Google Scholar 

  2. Behnia, S., Waeselynck, H.: Test Criteria Definition for B Models. In: FM 1999. LNCS, vol. 1709, pp. 509–529. Springer, Heidelberg (1999)

    Google Scholar 

  3. Legeard, B., Peureux, F., Utting, M.: Automated Boundary Testing from Z and B. In: Eriksson, L.-H., Lindsay, P.A. (eds.) FME 2002. LNCS, vol. 2391, pp. 21–40. Springer, Heidelberg (2002)

    Chapter  Google Scholar 

  4. Chen, H.Y., Tse, T.H., Chan, F.T., Chen, T.Y.: In Black and White: An Integrated Approach to Class-Level Testing of Object-Oriented Programs. ACM Transactions on Software Engineering and Methodology 7(3), 250–295 (1998)

    Article  Google Scholar 

  5. Derrick, J., Boiten, E.: Testing Refinements of State-based Formal Specifications. Software Testing, Verification and Reliability 9, 27–50 (1999)

    Article  Google Scholar 

  6. Dick, J., Faivre, A.: Automating the Generation and Sequencing of Test Cases from Model-Based Specifications. In: Larsen, P.G., Woodcock, J.C.P. (eds.) FME 1993. LNCS, vol. 670. Springer, Heidelberg (1993)

    Google Scholar 

  7. Doong, R.-K., Frankl, P.G.: The ASTOOT Approach to Testing Object-Oriented Programs. ACM Transactions on Software Engineering and Methodology 3(2), 101–130 (1994)

    Article  Google Scholar 

  8. Gaudel, M.-C., James, P.R.: Testing Algebraic Data Types and Processes: A Unifying Theory. Formal Aspects of Computing 10(5-6), 436–451 (1998)

    Article  MATH  Google Scholar 

  9. Hierons, R., Harman, M., Fox, C., Ouarbya, L., Daoudi, M.: Conditional slicing supports partition testing. Software Testing, Verification and Reliability 12, 23–28 (2002)

    Article  Google Scholar 

  10. Hierons, R.M.: Testing from a Z Specification. Software Testing, Verification and Reliability 7, 19–33 (1997)

    Article  Google Scholar 

  11. Hughes, M., Stotts, D.: Daistish: Systematic Algebraic Testing for OO Programs in the Presence of Side-effects. In: ISSTA 1996 (1996)

    Google Scholar 

  12. Janowski, T., Van, H.D., George, C., Moore, R.: Specification Case Studies in RAISE. FACIT series. Springer, Heidelberg (2002)

    Google Scholar 

  13. Meudec, C.: Automatic Generation of Software Test Cases From Formal Specifications. PhD thesis, The Queen’s University of Belfast (May 1998)

    Google Scholar 

  14. Peraire, C., Barbey, S., Buchs, D.: Test Selection for Object-Oriented Software Based on Formal Specifications

    Google Scholar 

  15. Pretschner, A., Slotosch, O., Otzbeyer, H., Aiglstorfer, E., Kriebel, S.: Model Based Testing for Real: The Inhouse Card Case Study (2001)

    Google Scholar 

  16. The RAISE Language Group. The RAISE Specification Language. BCS Practitioner Series. Prentice Hall, Englewood Cliffs (1992)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Dan, L., Aichernig, B.K. (2005). Combining Algebraic and Model-Based Test Case Generation. In: Liu, Z., Araki, K. (eds) Theoretical Aspects of Computing - ICTAC 2004. ICTAC 2004. Lecture Notes in Computer Science, vol 3407. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-31862-0_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-31862-0_19

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-25304-4

  • Online ISBN: 978-3-540-31862-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics