Testing against Visual Contracts: Model-Based Coverage | SpringerLink
Skip to main content

Testing against Visual Contracts: Model-Based Coverage

  • Conference paper
Graph Transformations (ICGT 2012)

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

Included in the following conference series:

Abstract

Testing service-oriented or component-based systems poses new challenges due to the non-availability of code and the distributed nature of the applications being tested. Structural coverage criteria, traditionally used to assess test suites, require access to code. As an alternative we consider model-based criteria based on interface specifications using visual contracts.

Formally represented as graph transformation rules, visual contracts are analysed for potential dependencies and conflicts and dependency graphs are derived for defining the criteria. In order to assess the coverage of a given set of tests, AGG is used for simulating the model while tests are executed. In the course of the simulation, which also serves as a test oracle, conflicts and dependencies are observed and recorded. This allows us to see if the statically detected potential dependencies and conflicts are exercised at runtime. For evaluation purposes, we compare coverage with respect to model-based criteria and traditional structural ones.

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

Access this chapter

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
JPY 3498
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
JPY 5719
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
JPY 7149
Price includes VAT (Japan)
  • 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.

Similar content being viewed by others

References

  1. AGG: AGG - Attributed Graph Grammar System Environment (2007), http://tfs.cs.tu-berlin.de/agg

  2. Ammann, P., Offutt, J.: Introduction to Software Testing. Cambridge University Press, New York (2008)

    Book  MATH  Google Scholar 

  3. Bartolini, C., Bertolino, A., Marchetti, E., Parissis, I.: Data Flow-Based Validation of Web Services Compositions: Perspectives and Examples. In: de Lemos, R., Di Giandomenico, F., Gacek, C., Muccini, H., Vieira, M. (eds.) Architecting Dependable Systems V. LNCS, vol. 5135, pp. 298–325. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  4. Beizer, B.: Black-box testing: techniques for functional testing of software and systems. John Wiley & Sons, Inc., New York (1995)

    Google Scholar 

  5. Belli, F., Guandler, N., Linschulte, M.: Are longer test sequences always better? - a reliability theoretical analysis. In: Fourth International Conference on Secure Software Integration and Reliability Improvement Companion (SSIRI-C), pp. 78–85. IEEE (June 2010)

    Google Scholar 

  6. Biermann, E., Ehrig, H., Ermel, C., Golas, U., Taentzer, G.: Parallel Independence of Amalgamated Graph Transformations Applied to Model Transformation. In: Engels, G., Lewerentz, C., Schäfer, W., Schürr, A., Westfechtel, B. (eds.) Nagl Festschrift. LNCS, vol. 5765, pp. 121–140. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  7. Briand, L., Labiche, Y., Lin, Q.: Improving the coverage criteria of UML state machines using data flow analysis. Software Testing, Validation, and Reliability 20(3) (2010)

    Google Scholar 

  8. Chen, Y., Liu, S., Nagoya, F.: An Approach to Integration Testing Based on Data Flow Specifications. In: Liu, Z., Araki, K. (eds.) ICTAC 2004. LNCS, vol. 3407, pp. 235–249. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  9. Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation (Monographs in Theoretical Computer Science. An EATCS Series). Springer (2006)

    Google Scholar 

  10. Frankl, P.G., Weyuker, E.J.: An applicable family of data flow testing criteria. IEEE Trans. Softw. Eng. 14(10), 1483–1498 (1988)

    Article  MathSciNet  Google Scholar 

  11. Golas, U., Biermann, E., Ehrig, H., Ermel, C.: A Visual Interpreter Semantics for Statecharts Based on Amalgamated Graph Transformation. In: Proceedings of Int. Workshop on Graph Computation Models (GCM 2010). Electronic Communications of the EASST, vol. 39 (2011)

    Google Scholar 

  12. Güldali, B., Mlynarski, M., Wübbeke, A., Engels, G.: Model-based system testing using visual contracts. In: Proceedings of Euromicro SEAA Conference 2009, Special Session on “Model Driven Engineering”, pp. 121–124. IEEE Computer Society, Washington, DC (2009)

    Google Scholar 

  13. Hausmann, J.H., Heckel, R., Lohmann, M.: Model-based development of web services descriptions enabling a precise matching concept. Int. J. Web Service Res. 2(2), 67–84 (2005)

    Article  Google Scholar 

  14. Heckel, R., Khan, T.A., Machado, R.: Towards test coverage criteria for visual contracts. In: Proceedings of Graph Transformation and Visual Modeling Techniques, GTVMT 2011. Electronic Communications of the EASST, vol. 41 (2011)

    Google Scholar 

  15. Heckel, R., Llabrés, M., Ehrig, H., Orejas, F.: Concurrency and loose semantics of open graph transformation systems. Mathematical Structures in Computer Science 12(4), 349–376 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  16. Hou, J., Xu, B., Xu, L., Wang, D., Xu, J.: A testing method for web services composition based on data-flow. Wuhan University Journal of Natural Sciences 13, 455–460 (2008)

    Article  Google Scholar 

  17. Khan, T.A., Runge, O., Heckel, R.: Visual contracts as test oracle in AGG 2.0. In: Proceedings of Graph Transformation and Visual Modeling Techniques, GTVMT 2012. Electronic Communications of the EASST, vol. 47 (2012)

    Google Scholar 

  18. Lohmann, M., Mariani, L., Heckel, R.: A model-driven approach to discovery, testing and monitoring of web services. In: Test and Analysis of Web Services, pp. 173–204. Springer (2007)

    Google Scholar 

  19. Mei, L., Chan, W., Tse, T., Kuo, F.C.: An empirical study of the use of Frankl-Weyuker data flow testing criteria to test BPEL web services. In: 33rd Annual IEEE International Computer Software and Applications Conference, COMPSAC 2009, vol. 1, pp. 81–88 (July 2009)

    Google Scholar 

  20. Najumudheen, E., Mall, R., Samanata, D.: A dependence representation for coverage testing of object-oriented programs. Journal of Object Technology 9(4), 1–23 (2010)

    Article  Google Scholar 

  21. Podgurski, A., Lori, C.A.: A formal model of program dependences and its implications for software testing, debugging, and maintenance. IEEE Transactions on Software Engineering 16, 965–979 (1990)

    Article  Google Scholar 

  22. Runge, O., Ermel, C., Taentzer, G.: AGG 2.0 – new features for specifying and analyzing algebraic graph transformations. In: Proceedings of the 4th International Symposium on Applications of Graph Transformation with Industrial Relevance, AGTIVE 2011. LNCS, vol. 7233, Springer (2012)

    Google Scholar 

  23. Sinha, A., Paradkar, A.: Model-based functional conformance testing of web services operating on persistent data. In: Proceedings of the 2006 Workshop on Testing, Analysis, and Verification of Web Services and Applications, TAV-WEB 2006, pp. 17–22. ACM, New York (2006)

    Chapter  Google Scholar 

  24. Zhu, H., Hall, P.A.V., May, J.H.R.: Software unit test coverage and adequacy. ACM Comput. Surv. 29, 366–427 (1997)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Khan, T.A., Runge, O., Heckel, R. (2012). Testing against Visual Contracts: Model-Based Coverage. In: Ehrig, H., Engels, G., Kreowski, HJ., Rozenberg, G. (eds) Graph Transformations. ICGT 2012. Lecture Notes in Computer Science, vol 7562. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-33654-6_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-33654-6_19

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-33653-9

  • Online ISBN: 978-3-642-33654-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics