An open compiler for TTCN-3: picoTTCN-3
An open compiler for TTCN-3: picoTTCN-3
An open compiler for TTCN-3: picoTTCN-3
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
RTS using the sample<br />
module DNSTester {<br />
class _DNSTester :public T3RTSModule<br />
type integer Identification (0..65535);<br />
{public:<br />
type enumerated MessageKind<br />
class _ExampleResolveNokia3<br />
.......<br />
:public T3RTSTestCase<br />
type record DNSMessage { ...... }<br />
{ .......... };<br />
template DNSMessage a_DNSQuestion<br />
.....<br />
(Identification p_id, Question p_question ):=<br />
TciIntegerType Identification;<br />
...........<br />
TciEnumeratedType MessageKind;<br />
type port DNSPort message .....<br />
TciRecordType DNSMessage;<br />
type component DNSClient ......<br />
TciRecordType *a_DNSQuestion;<br />
..........<br />
T3RTSPortType DNSPort;<br />
testcase ExampleResolveNokia3() ...<br />
T3RTSComponentType control, DNSClient;<br />
{ timer replyTimer;<br />
.......<br />
..........<br />
class _control:public T3RTSBehavior<br />
}<br />
{...... };<br />
Control<br />
......<br />
{execute (ExampleResolveNokia3());}<br />
};<br />
} with { encode "ttlib" }