Home of the AlmostImplementedException


Presence checking functions

A mayor difference between TTCN-3 and other languages are partial initialized variables. If you set a variable in Java or C# to null it isn’t initialized at all. In TTCN-3 you have to use omit instead of null, but this will initialize the variable partially. There are a few functions to check in which state […]

, ,

Basic datatypes in TTCN-3

Like in any programming language, TTCN-3 provides different data types. In this post I’ll show you the different types and the special things you can do with them. Let’s start with an overview of all types and a short description. Later on I will explain what is meant with “subtypes”. Simple basic types Keyword Values […]

How to work with templates

One of the key features in TTCN-3 are templates. You can use them to fill TTCN-3 records with predefined values and you can use them as matching-templates to check if the values are like expected. If you have a complex structure and you need to check every single property you normally have to use a […]

How to define your own types

In order to work with TTCN3 you will have to define your own types. They are like objects with properties in Java or C#. Lets begin, as always with a very simple example [ttcn3] type charstring customString; [/ttcn3] With this simple statement we declare a new type customString which is simply a charstring. Thats not […]

Your first TTCN-3 script

Before we start our first testscript, we’ll check a few pre-conditions: – You have a working TTCN-3 compiler and know how to use it. I’ll use TTWorkbench. – You have a strong stomach, a high frustration tolerance and a fair amount of programming experiance (yes you’ll need that too) And now we can start. First […]

Get startet with TTCN-3

Welcome to our new TTCN-3 category! TTCN-3 is yet another testing language whose main purpose is the testing of communication protocols. Its generelly useful for any hardware test, but a major setback is the lack of good examples ,working codecs and port-plugins. Even a few mandatory things are missing. But there is one key feature […]