NGAP_TCFunctions.ttcn 137 KB
Newer Older
        } // End of group UE_Mobility_Management_Procedures
        //8.5
        group Paging_Procedures{
            //8.5.1
            group Paging{
            } // End of group Paging
        } // End of group Paging_Procedures
        //8.6
        group Transport_of_NAS_Messages_Procedures{
            //8.6.1
            group Initial_UE_Message{
            } // End of group Initial_UE_Message
            //8.6.2
            group Downlink_NAS_Transport{
            } // End of group Downlink_NAS_Transport
            //8.6.3
            group Uplink_NAS_Transport{
            } // End of group Uplink_NAS_Transport
            //8.6.4
            group NAS_Non_Delivery_Indication{
            } // End of group NAS_Non_Delivery_Indication
            //8.6.5
            group Rerout_NAS_Request{
            } // End of group Rerout_NAS_Request
        } // End of group Transport_of_NAS_Messages_Procedures
        //8.7
        group Interface_Management_Procedures{
            //8.7.1
            group NG_Setup{
2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446
              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_01
               */
               function f_TC_NGAP_AMF_IMP_01() runs on gNBNGAPComponent {
                   // Local variables

                        /*//  type    record  SupportedTAItem {
                        template (omit) SupportedTAItem m_ie_supportedTAItem(in template (value) TAC p_tAC,
                                                                            in template (value) BroadcastPLMNList p_broadcastPLMNList,
                                                                            in template (omit) SupportedTAItem.iE_Extensions p_iE_Extensions := omit
                                                                            ) := {
                                    tAC               := p_tAC,
                                    broadcastPLMNList := p_broadcastPLMNList,
                                    iE_Extensions     := p_iE_Extensions
                                } // End of template m_ie_supportedTAItem
                        //  type    octetstring TAC length  (3);
                        template (value) TAC m_ie_tAC(in template (value) TAC p_val) := p_val;
                        //  type    record  length  (1  ..  NGAP_Constants.maxnoofSliceItems)   of  SliceSupportItem    SliceSupportList;
                        template (value) SliceSupportList m_ie_sliceSupportList(in template (value) SliceSupportList p_list) := p_list;

                        //  type    record  SliceSupportItem    {
                        template (omit) SliceSupportItem m_ie_sliceSupportItem(
                                                                                      in template (value) S_NSSAI p_S_NSSAI,
                                                                                      in template (omit) SliceSupportItem.iE_Extensions p_iE_Extensions := omit
                                                                                      ) := {  
                                    s_NSSAI        := p_S_NSSAI,
                                    iE_Extensions  :=p_iE_Extensions
                                } // End of template m_ie_sliceSupportItem
                        //  type    record  S_NSSAI {
                        template (omit) S_NSSAI m_ie_sNSSAI(
                                                                    in template (value) SST p_sST,
                                                                    in template (value) SD p_sD,
                                                                    in template (omit) S_NSSAI.iE_Extensions p_iE_Extensions := omit
                                                                    ) := {
                                    sST           := p_sST,//'00'O,
                                    sD            := p_sD,//'000000'O,
                                    iE_Extensions := p_iE_Extensions
                                } // End of template m_ie_sNSSAI
                        //  type    octetstring SST length  (1);
                        template (value) SST m_ie_sST(in SST p_val := '00'O) := p_val;
                        //  type    octetstring SD  length  (3);
                        template (value) SD m_ie_sD(in SD p_val := '000000'O) := p_val;
                        */

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGSetupResponse(
                          ?,
                          {
                            mw_servedGUAMIItem(
                              mw_gUAMI(
                                ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                                ?,//template (present) AMFRegionID p_aMFRegionID := ?,
                                ?,//template (present) AMFSetID p_aMFSetID := ?,
                                ?,//template (present) AMFPointer p_aMFPointer := ?,
                                *//template GUAMI.iE_Extensions p_iE_Extensions := *
                              ),//template (present) GUAMI p_gUAMI := ?,
                              *,//template AMFName p_backupAMFName := *,
                              *//template ServedGUAMIItem.iE_Extensions p_iE_Extensions := *
                            )
                          },//template (present) ServedGUAMIList p_servedGUAMIList := ?,
                          ?,//template (present) RelativeAMFCapacity p_relativeAmfCap:= ?,
                          {
                            mw_pLMNSupportItem(
                              ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                              {
                                mw_sliceSupportItem(
                                  mw_s_NSSAI(
                                    ?,//template (present) SST p_sST := ?,
                                    *,//template SD p_sD := *,
                                    *//template S_NSSAI.iE_Extensions p_iE_Extensions := *
                                  ),//template (present) S_NSSAI p_s_NSSAI := ?,
                                  ?//template SliceSupportItem.iE_Extensions p_iE_Extensions := *
                                )
                              },//template (present) SliceSupportList p_sliceSupportList := ?,
                              *//template PLMNSupportItem.iE_Extensions p_iE_Extensions := *
                            )
                          }//template (present) PLMNSupportList p_plmnSuppList := ?
                        ) 
                      )
                    );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_01

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_02
               */
               function f_TC_NGAP_AMF_IMP_02() runs on gNBNGAPComponent {
                   // Local variables
  
                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_unsuccMsg(
                        mw_n2_NGSetupFailure(
                          ?//template (present) Cause p_cause := ?
                        )
                      )
                    );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_02

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_03
               */
               function f_TC_NGAP_AMF_IMP_03() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX,
                  //         FIXME:UERetention_Information template  m_uERetentionInformation(in UERetentionInformation p_value := ues_retained)
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGSetupResponse(
                          ?,
                          {
                            mw_servedGUAMIItem(
                              mw_gUAMI(
                                ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                                ?,//template (present) AMFRegionID p_aMFRegionID := ?,
                                ?,//template (present) AMFSetID p_aMFSetID := ?,
                                ?,//template (present) AMFPointer p_aMFPointer := ?,
                                *//template GUAMI.iE_Extensions p_iE_Extensions := *
                              ),//template (present) GUAMI p_gUAMI := ?,
                              *,//template AMFName p_backupAMFName := *,
                              *//template ServedGUAMIItem.iE_Extensions p_iE_Extensions := *
                            )
                          },//template (present) ServedGUAMIList p_servedGUAMIList := ?,
                          ?,//template (present) RelativeAMFCapacity p_relativeAmfCap:= ?,
                          {
                            mw_pLMNSupportItem(
                              ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                              {
                                mw_sliceSupportItem(
                                  mw_s_NSSAI(
                                    ?,//template (present) SST p_sST := ?,
                                    *,//template SD p_sD := *,
                                    *//template S_NSSAI.iE_Extensions p_iE_Extensions := *
                                  ),//template (present) S_NSSAI p_s_NSSAI := ?,
                                  ?//template SliceSupportItem.iE_Extensions p_iE_Extensions := *
                                )
                              },//template (present) SliceSupportList p_sliceSupportList := ?,
                              *//template PLMNSupportItem.iE_Extensions p_iE_Extensions := *
                            )
                          }//template (present) PLMNSupportList p_plmnSuppList := ?
                          //FIXME:UERetention_Information template  mw_uERetentionInformation(template (present) UERetentionInformation p_value := ues_retained)
                        ) 
                      )
                    );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_03

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_04
               */
               function f_TC_NGAP_AMF_IMP_04() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                  //  f_send_NGAP_PDU(
                  //    m_ngap_initMsg(
                  //       m_n2_NGSetupRequest(
                  //         m_globalRANNodeID_globalGNB_ID(
                  //           m_ie_globalGnbId(
                  //           PX_PLMN_IDENTITY,
                  //           '0000000000000000000000'B,//in template (value) bitstring p_gnbId,
                  //           -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit
                  //           )
                  //         ),
                  //         {
                  //           m_ie_supportedTAItem(
                  //               m_ie_tAC('000000'O),
                  //               m_ie_broadcastPLMNList(
                  //                   {
                  //                       m_ie_broadcastPLMNItem(
                  //                           m_ie_pLMNIdentity('00f110'O),
                  //                           m_ie_sliceSupportList(
                  //                               {
                  //                                   m_ie_sliceSupportItem(
                  //                                       m_ie_sNSSAI(
                  //                                           m_ie_sST('00'O),
                  //                                           m_ie_sD('000000'O)
                  //                                       )
                  //                                   )
                  //                               }
                  //                           )

                  //                       )
                  //                   }
                  //               )
                  //           )
                  //         },
                  //         PX_PAGING_DRX,
                  //         FIXME:NB_IoT_Default_Paging_DRX,
	                //       	 FIXME:Extended_RAN_Node_Name containing  RAN_Node_Name_Visible;;; m_extended_RANNodeName...
                  //       ) 
                  //    )
                  //  );

                    f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGSetupResponse(
                          ?,
                          {
                            mw_servedGUAMIItem(
                              mw_gUAMI(
                                ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                                ?,//template (present) AMFRegionID p_aMFRegionID := ?,
                                ?,//template (present) AMFSetID p_aMFSetID := ?,
                                ?,//template (present) AMFPointer p_aMFPointer := ?,
                                *//template GUAMI.iE_Extensions p_iE_Extensions := *
                              ),//template (present) GUAMI p_gUAMI := ?,
                              *,//template AMFName p_backupAMFName := *,
                              *//template ServedGUAMIItem.iE_Extensions p_iE_Extensions := *
                            )
                          },//template (present) ServedGUAMIList p_servedGUAMIList := ?,
                          ?,//template (present) RelativeAMFCapacity p_relativeAmfCap:= ?,
                          {
                            mw_pLMNSupportItem(
                              ?,//template (present) PLMNIdentity p_pLMNIdentity := ?,
                              {
                                mw_sliceSupportItem(
                                  mw_s_NSSAI(
                                    ?,//template (present) SST p_sST := ?,
                                    *,//template SD p_sD := *,
                                    *//template S_NSSAI.iE_Extensions p_iE_Extensions := *
                                  ),//template (present) S_NSSAI p_s_NSSAI := ?,
                                  ?//template SliceSupportItem.iE_Extensions p_iE_Extensions := *
                                )
                              },//template (present) SliceSupportList p_sliceSupportList := ?,
                              *//template PLMNSupportItem.iE_Extensions p_iE_Extensions := *
                            )
                          }//template (present) PLMNSupportList p_plmnSuppList := ?
                          //       	 FIXME:Extended_RAN_Node_Name containing  RAN_Node_Name_Visible;;; mw_extended_RANNodeName...
                        ) 
                      )
                    );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_04  

            //8.7.2
            group RAN_Configuration_Update{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_05
               */
               function f_TC_NGAP_AMF_IMP_05() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   f_send_NGAP_PDU(
                      m_ngap_initMsg(
                          m_n2_RANConfigurationUpdate(
                            PX_RAN_NODE_NAME
                            //FIXXME: mising template params due to TP , Supported_TA_list,....
                          )
                      )
                   );

                   f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_RANConfigurationUpdateAcknowledge
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_05

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_06
               */
               function f_TC_NGAP_AMF_IMP_06() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   f_send_NGAP_PDU(
                      m_ngap_initMsg(
                          m_n2_RANConfigurationUpdate(
                            PX_RAN_NODE_NAME
                            //FIXXME: mising template params due to TP , Supported_TA_list,....
                          )
                      )
                   );

                   f_recv_NGAP_PDU(
                      mw_ngap_unsuccMsg(
                        mw_n2_RANConfigurationUpdateFailure(
                          ?//template (present) Cause p_cause := ?
                        ) 
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_06

            } // End of group RAN_Configuration_Update
            //8.7.3
            group AMF_Configuration_Update{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_07
               */
               function f_TC_NGAP_AMF_IMP_07() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger AMF CONFIGURATION UPDATE !");

                   f_recv_NGAP_PDU(
                      mw_ngap_initMsg(
                        mw_n2_AMFConfigurationUpdate(
                          ?//template (present) AMFName p_aMFName := ?
                          //FIXXME: mising template params due to TP ,ServedGUAMI_list,PLMNSupport_List....
                        )
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_07

            } // End of group AMF_Configuration_Update
            //8.7.4
            group NG_Reset{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_08
               */
               function f_TC_NGAP_AMF_IMP_08() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   //f_NGAP_gnb_UE_Register();
                   //f_NGAP_gnb_UE_PDU_ResourceSetup();

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   f_send_NGAP_PDU(
                      m_ngap_initMsg(
                          m_n2_NGReset(
                            m_cause_misc(m_causeMisc(-)),//in template (value) Cause p_cause,
                            m_resetType_nG_Interface(
                              m_resetAll(reset_all) 
                            )//in template (value) ResetType p_resetType
                          ) 
                      )
                   );

                   f_recv_NGAP_PDU(
                      mw_ngap_succMsg(
                        mw_n2_NGResetAcknowledge
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_08

            //8.7.5
            group Error_Indication{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_09
               */
               function f_TC_NGAP_AMF_IMP_09() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   

                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                  //  f_send_NGAP_PDU(
                  //     m_ngap_initMsg(
                  //       m_n2_InitialContextSetupRequest(
                  //         PX_AMF_UE_NGAP_ID,
                  //         PX_RAN_UE_NGAP_ID,
                  //         *//in template (value) PDUSessionResourceSetupListCxtReq p_pDUSessionResourceSetupListCxtReq
                            //FIXME missing template for PDUSessionResourceSetupListCxtReq
                  //       )
                  //     )
                  //  );

                   f_recv_NGAP_PDU(
                      mw_ngap_initMsg(
                          mw_n2_ErrorIndication_ids(
                            ?,
                            ?,
                            ?
                          )
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_09

            //8.7.6
            group AMF_Status_Indication{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_10
               */
               function f_TC_NGAP_AMF_IMP_10() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger AMF STATUS INDICATION !");

                   f_recv_NGAP_PDU(
                      mw_ngap_initMsg(
                          mw_n2_AMFStatusIndication(
                            ?//template (present) UnavailableGUAMIList p_unavailableGUAMIList := ?
                            //FIXME: when UnavailableGUAMIList template ready
                          )
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_10

            } // End of group AMF_Status_Indication
            //8.7.7
            group Overload_Start{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_11
               */
               function f_TC_NGAP_AMF_IMP_11() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger OVERLOAD START !");

                   f_recv_NGAP_PDU(
                      mw_ngap_initMsg(
                        mw_n2_OverloadStart //FIXME: mising template with aditional IEs, OverloadStartNSSAIList
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_11

            //8.7.8
            group Overload_Stop{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_AMF_IMF_12
               */
               function f_TC_NGAP_AMF_IMP_12() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger OVERLOAD STOP !");

                   f_recv_NGAP_PDU(
                      mw_ngap_initMsg(
                        mw_n2_OverloadStop
                      )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_IMP_12

            } // End of group Overload_Stop
        } // End of group Interface_Management_Procedures
        //8.8
        group Configuration_Transfer_Procedures{
            //8.8.1
            group Uplink_RAN_Configuration_Transfer{
            } // End of group Uplink_RAN_Configuration_Transfer
            //8.8.2
            group Downlink_RAN_Configuration_Transfer{
            } // End of group Downlink_RAN_Configuration_Transfer
        } // End of group Configuration_Transfer_Procedures
        //8.9
        group Warning_Message_Transmission_Procedures{
            //8.9.1
            group Write_Replace_Warning{

              /**
               * @desc Testcase function for TC_NGAP_aMF_WTP_01
               */
               function f_TC_NGAP_AMF_WTP_01() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger WRITE REPLACE WARNING REQUEST !");

                   f_recv_NGAP_PDU(
                     mw_ngap_initMsg(
                       mw_n2_WriteReplaceWarningRequest(
                         ?,// template (present) MessageIdentifier p_messageIdentifier :=?,
                         ?,// template (present) SerialNumber p_serialNumber := ?,
                         ?,// template (present) RepetitionPeriod p_repetitionPeriod := ?,
                         ?// template (present) NumberOfBroadcastsRequested p_numberOfBroadcastsRequested := ?
                       )
                     )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_WTP_01

            } // End of group Write_Replace_Warning
            //8.9.2
            group PWS_Cancel{

              /**
               * @desc Testcase function for TC_NGAP_aMF_WTP_02
               */
               function f_TC_NGAP_AMF_WTP_02() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger PWS CANCEL REQUEST !");

                   f_recv_NGAP_PDU(
                     mw_ngap_initMsg(
                       mw_n2_PWSCancelRequest(
                         ?,//template (present) MessageIdentifier p_messageIdentifier := ?,
                         ?// template (present) SerialNumber p_serialNumber := ?
                       )
                     )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_WTP_02

            //8.9.3
            group PWS_Restart_Indication{
            } // End of group PWS_Restart_Indication
            //8.9.4
            group PWS_Failure_Indication{
            } // End of group PWS_Failure_Indication
        } // End of group Warning_Message_Transmission_Procedures
        //8.10
        group NRPPa_Transport_Procedures{
        } // End of group NRPPa_Transport_Procedures
        //8.11
        group Trace_Procedures{
            //8.11.1
            group Trace_Start{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_aMF_TRP_01
               */
               function f_TC_NGAP_AMF_TRP_01() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger TRACE START!");

                   f_recv_NGAP_PDU(
                     mw_ngap_initMsg(
                       mw_n2_TraceStart(
                         ?,
                         ?,
                         ?
                       )
                     )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_TRP_01

            //8.11.2
            group Trace_Failure_Indication{
            } // End of group Trace_Failure_Indication
            //8.11.3
            group Deactivate_Trace{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_aMF_TRP_02
               */
               function f_TC_NGAP_AMF_TRP_02() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   action("Trigger DEACTIVATE TRACE!");

                   f_recv_NGAP_PDU(
                     mw_ngap_initMsg(
                       mw_n2_DeactivateTrace(
                         ?,
                         ?,
                         ?
                       )
                     )
                   );

                   f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                   // Postamble
                   f_postamble_NGAP_AMF();
                   f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

                } // End of function f_TC_NGAP_AMF_TRP_02

            //8.11.4
            group Cell_Traffic_Trace{
            } // End of group Cell_Traffic_Trace
        } // End of group Trace_Procedures
        //8.12
        group Location_Reporting_Procedures{
            //8.12.1
            group Location_Reporting_Control{
            } // End of group Location_Reporting_Control
            //8.12.2
            group Location_Reporting_Failure_Indication{
            } // End of group Location_Reporting_Failure_Indication
            //8.12.3
            group Location_Report{
            } // End of group Location_Report
        } // End of group Location_Reporting_Procedures
        //8.13
        group UE_TNLA_Binding_Procedures{
            //8.13.1
            group UE_TNLA_Binding_Release{
juvancic's avatar
juvancic committed

              /**
               * @desc Testcase function for TC_NGAP_aMF_UBP_01
               */
               function f_TC_NGAP_AMF_UBP_01() runs on gNBNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");