Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: SOL13942
Printer Friendly
Email 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);
...
}
Version
1.0
Publish Date
2018-11-15
Categories
Product : TTworkbench
Related Articles