Home of the AlmostImplementedException

March, 2014

Fluent Interface Pattern

Chris already discussed a few design pattern like the Null Object Pattern and the Singleton Pattern and today its my pleasure to introduce you to the Fluent Interface Pattern. This pattern is known since 2005 and the founders are Eric Evans and Martin Fowler as you can read in his post and it’s very likely […]

How to iterate through an enum

On occasions it’s necessary to iterate through an enum. Maybe you need to show all values or names or want to use all values in a unit test. Since .Net 4 there are two ways to get the names and values, but as you will see the old way is the better choice. First of […]

, ,

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 […]