1 | /*
|
---|
2 | * @author STF 370
|
---|
3 | * @version $Id: LibIot_TestInterface.ttcn 16 2009-06-16 15:06:42Z pintar $
|
---|
4 | * @desc This module provides the types and components used by the test
|
---|
5 | * system component for Interoperability tests.
|
---|
6 | */
|
---|
7 |
|
---|
8 | module LibIot_TestInterface {
|
---|
9 |
|
---|
10 | import from LibUpperTester {
|
---|
11 | type EquipmentOperationReq, EquipmentOperationRsp;
|
---|
12 | }
|
---|
13 |
|
---|
14 | import from LibIot_TypesAndValues all;
|
---|
15 |
|
---|
16 | import from LibIot_PIXITS {modulepar PX_MAX_MSG_WAIT;}
|
---|
17 |
|
---|
18 | import from LibCommon_Sync all;
|
---|
19 | import from LibSip_SIPTypesAndValues all;
|
---|
20 | import from AtsImsIot_TypesAndValues all;
|
---|
21 |
|
---|
22 |
|
---|
23 | group abstractTestComponents {
|
---|
24 | /**
|
---|
25 | * @desc
|
---|
26 | * used to coordinate the behavior of other components. It is in charge
|
---|
27 | * of controlling the overall execution, manangement of testing phases,
|
---|
28 | * test verdicts collection and synchronization. Used as MTC.
|
---|
29 | */
|
---|
30 | type component TestCoordinator extends OracleServer {
|
---|
31 | var ComponentIdList vc_compIds;
|
---|
32 | port AdapterConfigPort acPort;
|
---|
33 | }
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * @desc
|
---|
37 | * collecting information to manage E2E and conformance verdicts.
|
---|
38 | * Can be used as MTC.
|
---|
39 | */
|
---|
40 | type component OracleServer extends ServerSyncComp {
|
---|
41 | port VerdictPort vPort;
|
---|
42 | var VerdictType vc_e3e_verdict := {none, "init"};
|
---|
43 | var VerdictType vc_conf_verdict := {none, "init"};
|
---|
44 | }
|
---|
45 |
|
---|
46 | type component OracleClient extends SelfSyncComp {
|
---|
47 | port VerdictPort vPort;
|
---|
48 | }
|
---|
49 |
|
---|
50 | /**
|
---|
51 | * @desc
|
---|
52 | * This component type is used to monitor interfaces.
|
---|
53 | * The library provides on the adapter configuration port.
|
---|
54 | * @remark
|
---|
55 | * As part of the ATS test system module this component type must be
|
---|
56 | * extended to include the ATS specific data port!
|
---|
57 | */
|
---|
58 | type component InterfaceMonitor extends OracleClient {
|
---|
59 | timer tc_wait := PX_MAX_MSG_WAIT;
|
---|
60 | var charstring vc_interfaceName := "Undefined";
|
---|
61 | port AdapterConfigPort acPort;
|
---|
62 | }
|
---|
63 |
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * @desc
|
---|
67 | * This component type is used to trigger, stimualte, configure etc any
|
---|
68 | * equipment related to the test, i.e., EUTs or other, or the
|
---|
69 | * interconnecting network. To be used as PTC.
|
---|
70 | */
|
---|
71 | type component EquipmentUser extends OracleClient{
|
---|
72 | port EquipmentAccessPort eaPort;
|
---|
73 | timer T_Equipment;
|
---|
74 | }
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * @desc This component type is used to trigger, stimulate, configure etc
|
---|
78 | * any equipment related to the test, i.e., EUTs or other, or
|
---|
79 | * the interconnecting network. To be used as PTC.
|
---|
80 | */
|
---|
81 | type component IotEquipmentUser extends EquipmentUser {
|
---|
82 | }
|
---|
83 |
|
---|
84 | // TODO commented out due to problems with tools not accepting 'extends' from several components
|
---|
85 | /**
|
---|
86 | * @desc This component type is used to trigger, stimulate, configure etc
|
---|
87 | * any equipment related to the test, i.e., EUTs or other, or
|
---|
88 | * the interconnecting network. To be used as PTC.
|
---|
89 | */
|
---|
90 | // type component IotEquipmentUser extends EquipmentUser, OracleClient {
|
---|
91 | // }
|
---|
92 |
|
---|
93 | }// end group abstractTestComponents
|
---|
94 |
|
---|
95 | group portDefinitions {
|
---|
96 |
|
---|
97 | type port EquipmentAccessPort message {
|
---|
98 | out EquipmentOperationReq;
|
---|
99 | in EquipmentOperationRsp;
|
---|
100 | }
|
---|
101 | type port VerdictPort message {
|
---|
102 | inout IotVerdict;
|
---|
103 | }
|
---|
104 |
|
---|
105 | type port AdapterConfigPort message {
|
---|
106 | out GeneralConfigurationReq;
|
---|
107 | out SetFilterReq;
|
---|
108 | out StartTrafficCaptureReq;
|
---|
109 | out StopTrafficCaptureReq;
|
---|
110 | in GeneralConfigurationRsp;
|
---|
111 | in SetFilterRsp;
|
---|
112 | in StartTrafficCaptureRsp;
|
---|
113 | in StopTrafficCaptureRsp;
|
---|
114 | }
|
---|
115 | }// end group portDefinitions
|
---|
116 | }
|
---|