You are previewing An Introduction to TTCN-3, 2nd Edition.
O'Reilly logo
An Introduction to TTCN-3, 2nd Edition

Book Description

This unique book provides a fully revised and up-to-date treatment of the TTCN-3 language

TTCN-3 is an internationally standardised test language with a powerful textual syntax which has established itself as a global, universal testing language. Application of TTCN-3 has been widened beyond telecommunication systems to areas such as the automotive industry, internet protocols, railway signalling, medical systems, and avionics.

An Introduction to TTCN-3 gives a solid introduction to the TTCN-3 language and its uses, guiding readers though the TTCN-3 standards, methodologies and tools with examples and advice based on the authors' extensive real-world experience. All the important concepts and constructs of the language are explained in a step-by-step, tutorial style, and the authors relate the testing language to the overall test system implementation, giving the bigger picture.

This second edition of the book has been updated and revised to cover the additions, changes and extensions to the TTCN-3 language since the first version was published. In addition, this book provides new material on the use of XML, test framework design and LTE testing with TTCN-3.

Key Features:

  • Provides a fully revised and up-to-date look at the TTCN-3 language

  • Addresses language standardization, tool implementation and applying TTCN-3 in real world scenarios such as VoIP and LTE testing

  • Explores recent advances such as TTCN-3 core language extensions on type parameterization, behavior types, real time and performance testing

  • Introduces the use of ASN.1 and XML with TTCN-3

  • Written by experts in the field

  • Includes an accompanying website containing code samples and links to the relevant standards documents (www.wiley.com/go/willcock_ttcn-3_2e)

This book is an ideal reference for test engineers, software developers, and standards professionals. Graduate students studying telecommunications and software engineering will also find this book insightful.

Table of Contents

  1. Cover
  2. Title Page
  3. Copyright
  4. List of Figures
  5. List of Tables
  6. About the Authors
    1. Colin Willcock
    2. Thomas Deiß
    3. Stephan Tobies
    4. Stefan Keil
    5. Federico Engler
    6. Stephan Schulz
  7. Foreword
  8. Preface
  9. Acknowledgements
  10. Abbreviations and Acronyms
  11. Chapter 1: Introduction
    1. 1.1 TTCN-3 as a Language
    2. 1.2 The Development of TTCN-3
    3. 1.3 Summary
  12. Chapter 2: TTCN-3 by Example
    1. 2.1 TTCN-3 Test Suite
    2. 2.2 TTCN-3 Test Systems
    3. 2.3 Summary
  13. Chapter 3: Basic TTCN-3
    1. 3.1 Basic Constructs
    2. 3.2 Basic Statements
    3. 3.3 Summary
  14. Chapter 4: Single Component TTCN-3
    1. 4.1 Ports
    2. 4.2 Components
    3. 4.3 Test Cases
    4. 4.4 Templates
    5. 4.5 Message-Based Communication
    6. 4.6 Timers
    7. 4.7 Alt Statement
    8. 4.8 Altsteps
    9. 4.9 Default Altsteps
    10. 4.10 Functions
    11. 4.11 Summary
  15. Chapter 5: Multi Component TTCN-3
    1. 5.1 Multi Component Test Case Example
    2. 5.2 Test Components
    3. 5.3 Mappings and Connections
    4. 5.4 Component Type Extension
    5. 5.5 Miscellaneous Port Operations
    6. 5.6 SUT Addresses
    7. 5.7 Putting the Pieces Together
    8. 5.8 Summary
  16. Chapter 6: Procedure-Based Communication
    1. 6.1 Procedure- versus Message-Based Communication
    2. 6.2 An Example—the Directory Service
    3. 6.3 Procedure-Based Communication in TTCN-3
    4. 6.4 Communication Operations
    5. 6.5 Procedure-Based Communication on the Client Side
    6. 6.6 Procedure-Based Communication on the Server Side
    7. 6.7 Addressing
    8. 6.8 Summary
  17. Chapter 7: Modular TTCN-3
    1. 7.1 Modules
    2. 7.2 Group Definitions
    3. 7.3 Importing
    4. 7.4 Module Parameters
    5. 7.5 Attributes
    6. 7.6 Summary
  18. Chapter 8: TTCN-3 Data Types
    1. 8.1 The Session Initiation Protocol
    2. 8.2 Subtyping
    3. 8.3 TTCN-3 Built-in Types
    4. 8.4 User-Defined Types
    5. 8.5 Nested Type Definitions
    6. 8.6 Encoding and Decoding of Data
    7. 8.7 Summary
  19. Chapter 9: Advanced Type Topics
    1. 9.1 Type Compatibility
    2. 9.2 The Anytype Type
    3. 9.3 The Address Type
    4. 9.4 Recursive Type Definitions
    5. 9.5 Foreign Type Systems
    6. 9.6 Summary
  20. Chapter 10: Templates
    1. 10.1 A First Look at TTCN-3 Templates
    2. 10.2 The TTCN-3 Match Operation
    3. 10.3 Template Definition for One Specific Value
    4. 10.4 Template Definitions with Matching Expressions
    5. 10.5 Template Definitions for Signatures
    6. 10.6 Assignment, Access of Templates and the Pre-Defined Functions Isvalue and Valueof
    7. 10.7 Summary
  21. Chapter 11: Advanced Templates
    1. 11.1 Template Definitions for Complex Type Structures
    2. 11.2 Template References
    3. 11.3 Template Parameterisation
    4. 11.4 Selective Modification of Other Templates
    5. 11.5 Explicit versus Implicit Template Definitions
    6. 11.6 Restricting Template Usage
    7. 11.7 Template Variables and Computing Functions
    8. 11.8 Structuring of Template Definitions for Complex Types
    9. 11.9 Summary
  22. Chapter 12: Extension Packages
    1. 12.1 Static Test Configurations
    2. 12.2 Real-Time in TTCN-3
    3. 12.3 Type Parameterisation
    4. 12.4 Behaviour Types
    5. 12.5 Summary
  23. Chapter 13: TTCN-3 Test Systems in Practice
    1. 13.1 The Anatomy of a TTCN-3 Test System
    2. 13.2 Test System Execution of a Simple Test Case
    3. 13.3 More about the SUT Adapter
    4. 13.4 More about the Platform Adapter
    5. 13.5 More about External Codecs
    6. 13.6 Documentation Comments
    7. 13.7 Summary
  24. Chapter 14: Frameworks
    1. 14.1 Frameworks and Test Suites
    2. 14.2 TTCN-3 Libraries
    3. 14.3 Design of Frameworks
    4. 14.4 Example: the IPv6 Testing Framework
    5. 14.5 Summary
  25. Chapter 15: Advice and Examples
    1. 15.1 TTCN-3 Style Guide
    2. 15.2 Suggestions for Modularisation
    3. 15.3 Template Specification for Complex Message Definitions
    4. 15.4 Useful Behaviour
    5. 15.5 Test Component Synchronisation
  26. Chapter 16: LTE Testing with TTCN-3
    1. 16.1 LTE Description
    2. 16.2 LTE Test Suite
    3. 16.3 Summary
  27. Chapter 17: Closing Thoughts and Future Directions
  28. References
  29. Index