Printer FriendlyEmail Article Link

TTworkbench: Are module parameters of structured TTCN-3 types supported in command line mode?

in command line mode the module parameters of structured types are not supported.

As a workaround, you can split the module parameter of the leaf value of the structured type into those of basic types. After the values are read, reconstruct them to a structure type in TTCN-3.

For example

type record ContactType {
charstring name,
integer postBox
}

modulepar charstring PX_NAME;
modulepar integer PX_POXBOX;

function f_contructContact(charstring p_name, integer p_postBox) return ContactType {
var ContactType v_result;
v_result := { name := p_name, psotBox := p_postBox }
return v_result;
}

testcase ....
f_constructContact(PX_NAME, PX_POXBOX);
...
}

Product : TTworkbench