Skip to main content

Symbolic Production Grammars in LSCs Testing

  • Chapter
Computer and Information Science 2012

Part of the book series: Studies in Computational Intelligence ((SCI,volume 429))

  • 700 Accesses

Abstract

We present LCT SG , an LSC (Live Sequence Chart) consistency testing system, which takes LSCs and symbolic grammars as inputs and performs an automated LSC simulation for consistency testing. A symbolic context-free grammar is used to systematically enumerate continuous inputs for LSCs, where symbolic terminals and domains are introduced to hide the complexity of different inputs which have common syntactic structures as well as similar expected system behaviors. Our symbolic grammars allow a symbolic terminal to be passed as a parameter of a production rule, thus extending context-free grammars with context-sensitivity on symbolic terminals. Constraints on symbolic terminals may be collected and processed dynamically along the simulation to properly decompose their symbolic domains for branched testing. The LCT SG system further provides either a state transition graph or a failure trace to justify the consistency testing results. The justification result may be used to evolve the symbolic grammar for refined test generation.

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 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover 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. Bartsch, K., Robey, M., Ivins, J., Lam, C.: Consistency checking between use case scenarios and uml sequence diagrams. In: IASTED Conference on Software Engineering, pp. 581–589 (2004)

    Google Scholar 

  2. Bontemps, Y., Heymans, P.: Turning High-Level Live Sequence Charts into Automata. In: Pacholski, L., Tiuryn, J. (eds.) CSL 1994. LNCS, vol. 933, pp. 456–470. Springer, Heidelberg (1995)

    Chapter  Google Scholar 

  3. Clarke, L.A.: A system to generate test data and symbolically execute programs. IEEE Transaction on Software Engineering 2, 215–222 (1976)

    Article  Google Scholar 

  4. Damm, W., Harel, D.: Lscs: Breathing life into message sequence charts. In: Proceedings of 3rd IFIP Int. Conf. on Formal Methods for Open Object-based Distributed Systems, pp. 293–312 (1999)

    Google Scholar 

  5. Declarativa. Interprolog 2.1.2: a java front-end and enhancement for prolog (2010), http://www.declarativa.com/interprolog

  6. Guo, H.-F., Zheng, W., Subramaniam, M.: Consistency checking for LSC specifications. In: 3rd IEEE International Symposium on Theoretical Aspects of Software Engineering, TASE 2009 (July 2009)

    Google Scholar 

  7. Guo, H.-F., Zheng, W., Subramaniam, M.: L2c2: Logic-based LSC consistency checking. In: 11th International ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming, PPDP (September 2009)

    Google Scholar 

  8. Harel, D.: From Play-In Scenarios to Code: An Achievable Dream. In: Maibaum, T. (ed.) FASE 2000. LNCS, vol. 1783, pp. 22–34. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  9. Harel, D., Kugler, H.: Synthesizing state-based object systems from LSC specifications. Int. Journal of Foundations of Computer Science 13(1), 5–51 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  10. Harel, D., Maoz, S., Segall, I.: Some results on the expressive power and complexity of LSCs. In: Pillars of Computer Science, pp. 351–366 (2008)

    Google Scholar 

  11. Harel, D., Marelly, R.: Come, Let’s Play: Scenario-Based Programming Using LSCs and the Play-Engine. Springer (2003)

    Google Scholar 

  12. ITU-T. Message sequence chart (MSC). Z.120 ITU-T Recommendation (1996)

    Google Scholar 

  13. King, J.C.: Symbolic execution and program testing. Commun. ACM 19, 385–394 (1976)

    Article  MATH  Google Scholar 

  14. Klose, J., Toben, T., Westphal, B., Wittke, H.: Check It Out: On the Efficient Formal Verification of Live Sequence Charts. In: Ball, T., Jones, R.B. (eds.) CAV 2006. LNCS, vol. 4144, pp. 219–233. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  15. Kugler, H., Harel, D., Pnueli, A., Lu, Y., Bontemps, Y.: Temporal Logic for Scenario-Based Specifications. In: Halbwachs, N., Zuck, L.D. (eds.) TACAS 2005. LNCS, vol. 3440, pp. 445–460. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  16. Majumdar, R., Xu, R.-G.: Directed test generation using symbolic grammars. In: The ACM SIGSOFT Symposium on the Foundations of Software Engineering: Companion Papers, pp. 553–556 (2007)

    Google Scholar 

  17. Maurer, P.M., Maurer, P.M.: Generating test data with enhanced context-free grammars. IEEE Software 7, 50–55 (1990)

    Article  Google Scholar 

  18. Pemmasani, G., Guo, H.-F., Dong, Y., Ramakrishnan, C., Ramakrishnan, I.: Online justification for tabled logic programs. In: The 7th Int. Symposium on Functional and Logic Programming (2004)

    Google Scholar 

  19. OMG. Unified modeling languages superstructure specification, v2.0. The Object Management Group (2005), http://www.uml.org/

  20. OMG. Documentation of the unified modeling language. The Object Management Group (2009), http://www.omg.org

  21. Sirer, E.G., Bershad, B.N.: Using production grammars in software testing. In: Second Conference on Domain Specific Languages, pp. 1–13 (1999)

    Google Scholar 

  22. Sun, J., Dong, J.S.: Model checking live sequence charts. In: The 10th IEEE Int. Conf. on Engineering of Complex Computer Systems (2005)

    Google Scholar 

  23. SWI-Prolog. SWI-prolog’s home (2010), http://www.swi-prolog.org

  24. Toben, T., Westphal, B.: On the expressive power of LSCs. In: The 32nd Conf. on Current Trends in Theory and Practice of Computer Science, pp. 33–43 (2006)

    Google Scholar 

  25. Visser, W., Pǎsǎreanu, C.S., Khurshid, S.: Test input generation with java pathfinder. SIGSOFT Softw. Eng. Notes 29, 97–107 (2004)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hai-Feng Guo .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Guo, HF., Subramaniam, M. (2012). Symbolic Production Grammars in LSCs Testing. In: Lee, R. (eds) Computer and Information Science 2012. Studies in Computational Intelligence, vol 429. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-30454-5_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-30454-5_8

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-30453-8

  • Online ISBN: 978-3-642-30454-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics