Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/**
* @author STF 519
* @version $Id: $
* @desc This module provides ATS specific steps used by the test cases for S1AP tests.
*/
module S1AP_Steps {
//LibCommon
import from LibCommon_DataStrings {type Bit1, Bit4, Bit5, Bit8;}//all;
import from LibCommon_BasicTypesAndValues {type UInt8;type UInt32;};//LibCommon
import from LibCommon_Sync all ;
import from LibCommon_VerdictControl all ;
//LibS1AP
//import from LibS1AP_TypesAndValues all;
import from LibS1AP_Templates all;
import from LibS1AP_Steps all;
import from LibS1AP_PIXITS all;
import from LibS1AP_Interface all;
//Ats
import from S1AP_PIXITS all;
import from S1AP_Templates all;
import from S1AP_TestConfiguration all;
import from S1AP_TestSystem all;
group GlobalSteps {
/*
* @desc This is a test step that init global variables
* @param
*/
function f_S1AP_mme_init()
runs on S1APComponent {
//Defaults
vc_default_s1ap := activate (a_defaultS1AP());
//Base LibDiameter init function if there will be any base initialisation
f_S1AP_Init_Component();
vc_ETS_address := PX_S1AP_MME_ETS_IPADDR;
vc_ETS_port := PX_S1AP_MME_ETS_PORT;
vc_SUT_address := PX_S1AP_MME_SUT_IPADDR;
vc_SUT_port := PX_S1AP_MME_SUT_PORT;
} // End of function f_S1AP_init
/*
* @desc This is a test step that init global variables
* @param
*/
function f_S1AP_enb_init()
runs on S1APComponent {
//Defaults
vc_default_s1ap := activate (a_defaultS1AP());
//Base LibDiameter init function if there will be any base initialisation
f_S1AP_Init_Component();
vc_ETS_address := PX_S1AP_ENB_ETS_IPADDR;
vc_ETS_port := PX_S1AP_ENB_ETS_PORT;
vc_SUT_address := PX_S1AP_ENB_SUT_IPADDR;
vc_SUT_port := PX_S1AP_ENB_SUT_PORT;
} // End of function f_S1AP_enb_init
/*
* @desc This is a test step that init global variables
* @param
*/
function f_S1AP_enb_init2()
runs on S1APComponent {
//Defaults
vc_default_s1ap := activate (a_defaultS1AP());
//Base LibDiameter init function if there will be any base initialisation
f_S1AP_Init_Component();
vc_ETS_address := PX_S1AP_ENB_ETS_IPADDR2;
vc_ETS_port := PX_S1AP_ENB_ETS_PORT2;
vc_SUT_address := PX_S1AP_ENB_SUT_IPADDR;
vc_SUT_port := PX_S1AP_ENB_SUT_PORT;
} // End of function f_DiameterRo_init
} // Endgroup GlobalSteps
group Preambles{
function f_preamble_S1AP_MME() runs on S1APComponent
{
var default v_def_s1ap_;
f_S1AP_mme_init();
//f_preambleS1APClient();
}
function f_preamble_S1AP_eNB() runs on S1APComponent
{
var default v_def_s1ap_;
f_S1AP_enb_init();
//f_preambleS1APServer();
}
function f_preamble_S1AP_eNB2() runs on S1APComponent
{
var default v_def_s1ap_;
f_S1AP_enb_init2();
//f_preambleS1APServer();
}
} // End of group Preambles
group Postambles {
function f_postamble_S1AP_MME() runs on S1APComponent
{
f_postambleS1AP_MME();
// Deactivate defaults
deactivate;
}
function f_postamble_S1AP_eNB() runs on S1APComponent
{
f_postambleS1AP_eNB();
//Deactivate defaults
deactivate;
}
function f_postamble_S1AP_eNB2() runs on S1APComponent
{
f_postambleS1AP_eNB();
// Deactivate defaults
deactivate;
}
} // End of group Postambles
group CheckFunctions {
} // End of group CheckFunctions
group SendMessage {
} // End of group SendMessage
group DefaultTestStep{
}//end group DefaultTestStep
} // End of module S1AP_Steps