O'Reilly logo

Model-Based Testing Essentials - Guide to the ISTQB Certified Model-Based Tester by Robert V. Binder, Gualtiero Bazzana, Bruno Legeard, Anne Kramer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5MODELING LANGUAGES – THE AGONY OF CHOICE

This chapter covers the learning objectives of syllabus Section 2.2 “Languages for MBT Models.”

In Section 2.2.2, we discussed that languages are defined by their syntax and their semantics. In this regard, they are similar to natural language. However, unlike natural language, a modeling language is a theoretical construct. It follows some abstract syntax, which explains the concepts of the modeling language itself. The best-known abstract syntax for modeling languages is the Unified Modeling Language (UML) meta-model. In fact, the concepts of UML are themselves described using models.

All modeling languages have an abstract syntax. In the simplest case, it is just some textual description. Grammar rules describe the concrete syntax, while semantics rules describe the semantics of a modeling language. A grammar rule for our simple modeling languages in Section 2.3 is that arrows connect rectangles. Another one is that diagrams start with a start node and end with an end node.

The semantic rules may be static or dynamic. An example of a static rule is that rounded rectangles represent actions in the simple graphical modeling language for workflows and states in the simple graphical modeling language for state diagrams. As you can see, the syntax is identical for both languages (rounded rectangles represent the element), but their semantics is different.

An example of a dynamic rule is that parallel actions in activity diagrams shall ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required