Component-based software testing with UML
assertionbuilt-in testingcomponent embodimentcomponent realizationcomponent specificationcomponent-based developmentJUnitKobrA methodmodel-based testingmodel-driven developmenttest modelingtestable componenttester componenttesting interfaceTTCN-3UMLUML testing profilesvending machineXUnit
Introductory exposition (textbooks, tutorial papers, etc.) pertaining to computer science (68-01) Other programming paradigms (object-oriented, sequential, concurrent, automatic, etc.) (68N19) Mathematical aspects of software engineering (specification, verification, metrics, requirements, etc.) (68N30) Theory of software (68N99)
The book contains the outcome of the author's thorough involvement in a series of three major research projects at the Fraunhofer Institute for Experimental Software Engineering (IESE), dealing with embedded real-time software systems development and validation methodologies. The focus is on supplying the component-based and model-driven software development method KobrA (\texttt{www.iese.fhg.de/Projects/Kobra\_Method}) with an adequate testing framework. The KobrA method supports the UML design of component-based software systems, following a distinct model-based analysis and design process. It provides a sound methodology of approaching component-based developments through the identification of three dimensions with each of which the development activity can be associated: composition/decomposition, abstraction/concretization and genericity/specialization. The main idea behind component-based software development is to build new software products by reusing readily available parts, rather than by developing everything from scratch. This is different from the traditional software development and, as a consequence, the validation of component-based systems is also different from testing traditionally developed systems. Indeed, while traditional development-time verification and validation techniques can assure the quality of individual units, they can do little to assure the quality of applications that are assembled from them at development time. The book is really worth devising a supplement to the KobrA method, which adds an entire UML-based testing framework for component-based developments. The author first describes the most important difficulties that the software engineering community believes make component-based software testing problematic or challenging. Testing a component in a new context is considered to be the primary challenge and the entire book is more or less devoted to this problem. Indeed, components are often reused in contexts that the provider could have never imagined before, thus leading to entirely different testing criteria. The second difficulty the book deals with is the lack of access to the internal working of a component. The book introduces technologies devoted to increase the controllability and observability of a server component and, as a consequence, to improve the component testability. These two challenges are fully addressed in Chapter 4, \textit{Built-in Contract Testing}, and in Chapter 5, \textit{Built-in Contract Testing and Implementation Technologies}, where the built-in contract testing architecture is presented both at higher and lower levels of abstraction. The first issue is dealt with by the \textit{built-in testing interface} that each reusable component is supposed to provide additionally to its original functional interface. The testing interface usually contains special purpose operations for setting and validating the hidden internal structure of a component, thus allowing system integrators to use this testability feature when they integrate such components into their applications. As a rule, the testing interface has to be designed in such a way that it can be used for setting, retrieving and validating that key states of the component which are considered essential for a proper use and are visible to the external clients. An optimal design of a testing interface should contains both Set-To-State operations (as setters) and Is-In-State operations (for validation). A nice feature of this approach is its model-based way of design, that is, the testing interface can be directly derived from a UML behavioral model of the component. The second issue is addressed by the \textit{built-in tester} that each reusable component should readily provide. This contains tests that represent the object's expectation toward its associated server components and the underlying runtime system. Built-in tester components are more fundamental to built-in contract testing because they assure that two components that have been brought together syntactically will also interact correctly in terms of their semantic contracts. Tester component and testing interface will together make sure that a reusable component that is brought into a new context will behave according to what the context is expecting, and that the context will behave according to what the reusable component has been developed to expect. The way the abstract models derived from built-in contract testing can be instantiated and turned into concrete representations at the implementation level is presented in Chapter 5, \textit{Built-in Contract Testing and Implementation Technologies}. The author illustrates how built-in contract testing can be implemented in typical programming languages such as C, C++, or Java and how contemporary component technologies, including Web services, affect built-in contract testing. An additional section is devoted to some specific tools that can be applied to implement built-in contract testing, like XUnit and JUnit platform-dependent testing frameworks for programming languages and the platform-free standard Testing and Test Control Notation TTCN-3. Adequate component testing is the third approach the author concentrates on. This is concerned with the questions of which type of testing and how much testing a component provider should perform, and which type of and how much testing a component user must perform to be confident that the involved component will properly work. The book concentrates only on which testing criteria may be applied in a model-based development approach (Chapter 3, \textit{Model-Based Testing with UML}). This leads to a \textit{model-based testing} approach, that is, testing that is based on criteria and artifacts directly derived from a UML specification. The model provides the primary information for developing the test cases and test suites, and for checking the final implementation of a system. Moreover, since the test software for a computer system is a software system in its own right, it can be specified according to the same rules and with the same means applicable to the original tested system. This is the so-called \textit{test modeling} approach, which consists in applying UML to specify the structural and behavioral aspects of the testing software. As a consequence, model-based testing and test modeling appear to be in fact orthogonal activities that complement each other. Chapter 6, \textit{Reuse and Related Technologies}, concentrates on how built-in testing technologies support and affect software reuse. Chapter 7, \textit{Assessing Quality-of-Service Contracts}, focuses on how the non-functional criteria, or quality-of-service criteria (timing requirements etc.), may be assessed in a component assembly. A very useful \textit{Glossary} containing complete definitions for the most important topics the presentation deals with is also added at the end of the book. The case study centered on a Vending Machine project gives promising results and proves the efficiency and the effectiveness of the proposed methodology. The book clearly explains what component-based software testing is, why it is important and in what points it differs from the traditional point of view. As a research source, it gives a revealing snapshot of the key developments in this area. The book also serves as an excellent textbook for software engineering courses at the advanced undergraduate level or graduate level.
- Composing Software Components
- WCT: A wrapper for component testing
- Incorporation of test functionality into software components
- UML-based integration testing for component-based software
- A UML-based approach to system testing
- scientific article; zbMATH DE number 2020410 (Why is no real title available?)
- scientific article; zbMATH DE number 2176855 (Why is no real title available?)
- A European COTS architecture with built-in tests
- Component-based product-line engineering with the UML
- Robustness testing for software components
This page was built for publication: Component-based software testing with UML
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4663419)