March, 2014
24 03 2014
As announced in my post about the “Null Object Pattern” I will explain the “Visitor Pattern” today. At the first time I maintained an application with visitors, I found it a bit confusing – Therefore I try to explain it based on my own experiences. The Visitor is a pattern of the category of behavior […]
Accept, C#, Code, Design, Game, Interface, Method, NET, Object, Patterns, Visit, Visitor
24 03 2014
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 […]
17 03 2014
As preparation for the post about the “Visitor Pattern”, we will make a short trip to the “Creational Patterns” with the “Singleton”. As the name suggests it means: single, only one. Like the Highlander: There can be only one! Let’s take a look at the UML diagram. The singleton assumes responsibility over it’s creation – […]
C#, Central, Design, GetInstance, Highlander, Patterns, Single, singleton, UML, Unique
17 03 2014
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 […]
enum, iterate, performance
14 03 2014
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 […]
8 03 2014
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 […]
6 03 2014
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 […]
6 03 2014
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 […]
2 03 2014
Today we will make a short trip to the world of Oracle. In my current project I have to do a lot with a Oracle database and some days ago I had to programmatically fill a table based on a predefined sequence for primary key. Sound simple, right? This sequence has an increment by 1000 […]
By, Connect, DUAL, Increment, Level, NextVal, Oracle, Sequence