Printer FriendlyEmail Article Link

TTworkbench: How to define and start a PTC in TTCN-3?

TTworkbench, Windows, Linux, 32/64bit
First define a component type and behaviour function on such type
type component MyComponent { ... }
function myBehaviourFunction() runs on MyComponent { ... }
In testcase or behaviour function, create an instance of the component type as PTC, then start the behaviour function on it.
var component ptc := Component.create;
ptc.start (myBehaviourFunction());

Product : TTCN-3 Language