Loading ttcn/AtsBCF/AtsBCF_TestCases.ttcn +119 −0 Original line number Diff line number Diff line Loading @@ -1361,6 +1361,125 @@ module AtsBCF_TestCases { } // End of group f_TC_BCF_SIP_MESSAGE_BV_05 group Security { /** * @desc "IUT successfully handles an incoming SIP MESSAGE" */ testcase TC_BCF_TLS_BI_01( in CSeq p_cSeq_s ) runs on HttpImsComponent system TestAdapter { // Local variables var ImsComponent v_callerNetwork; var ImsComponent v_psap; var CSeq v_cSeq_s := p_cSeq_s; // Test control if ((PICS_BCF_USE_TLS)) { log("*** " & testcasename() & ": PICS_BCF_TLS not required (unsecured connection) for executing the TC ***"); setverdict(inconc); stop; } // Test component configuration f_cf_09_up(v_callerNetwork, v_psap); // Test adapter configuration // Preamble // Test Body f_incCSeq(v_cSeq_s); v_callerNetwork.start(f_TC_BCF_TLS_BI_01_callerNetwork(v_cSeq_s)); f_incCSeq(v_cSeq_s); v_psap.start(f_TC_BCF_TLS_BI_01_psap(v_cSeq_s)); f_serverSyncNClientsAndStop(2, {c_prDone, c_tbDone, c_poDone}); // Postamble f_cf_09_down(v_callerNetwork, v_psap); } // End of testcase TC_BCF_TLS_BI_01 group f_TC_BCF_TLS_BI_01 { function f_TC_BCF_TLS_BI_01_callerNetwork( in CSeq p_cSeq_s ) runs on ImsComponent { // Local variables // Test control // Test component configuration f_init_userprofile(c_userProfile_UE1atSUThome); f_initSipUrl(c_userProfile_UE1atSUThome); f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_PCSCF1); // Test adapter configuration // Preamble f_IMS_preamble_woRegistration(p_cSeq_s); f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success); LibIms_Steps.f_setHeadersMESSAGE(p_cSeq_s, f_initSipUrl(c_serviceProfile_EMERGENCY), f_initSipUrl(c_userProfile_UE1atSUThome)); f_init_sdp_userprofile(vc_sdp_local, c_userProfile_UE1atSUThome, c_userProfile_Huawei); // Test Body f_SendMESSAGE(m_MESSAGE_Request_IMS_Ng112(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, m_Require_100rel, -, m_Supported_100rel, m_mBody_plainText("MESSAGE TEXT"),//m_MBody_SDP(vc_sdp_local), m_geolocation({ scheme:= "https", components := {other := PX_GEOLOCATION_ID }, urlParameters := omit, headers := omit }, omit), // TODO Add a LIS component to do a request for location by reference m_geolocation_routing, { fieldName := USER_AGENT_E, userAgentBody := { "ETSI_Conf_testing" } } )); tc_resp.start; alt { [] SIPP.receive { tc_resp.stop; f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_error); } [] tc_resp.timeout { f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success); } } // End of 'alt' statement // Postamble f_clientSyncAndVerdictPostamble(c_poDone, e_success); } // End of function f_TC_BCF_TLS_BI_01_callerNetwork function f_TC_BCF_TLS_BI_01_psap( in CSeq p_cSeq_s ) runs on ImsComponent { // Local variables // Test control f_init_userprofile(c_userProfile_UE1atSUThome); f_initSipUrl(c_serviceProfile_EMERGENCY); f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_BCF); // Test component configuration // Test adapter configuration // Preamble f_IMS_preamble_woRegistration(p_cSeq_s) f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success); // Postamble f_clientSyncAndVerdictPostamble(c_poDone, e_success); } // End of function f_TC_BCF_TLS_BI_01__psap } // End of testcase TC_BCF_TLS_BI_01 } // End of group Security } // End of group bcf_role } // End of module AtsBCF_TestCases Loading
ttcn/AtsBCF/AtsBCF_TestCases.ttcn +119 −0 Original line number Diff line number Diff line Loading @@ -1361,6 +1361,125 @@ module AtsBCF_TestCases { } // End of group f_TC_BCF_SIP_MESSAGE_BV_05 group Security { /** * @desc "IUT successfully handles an incoming SIP MESSAGE" */ testcase TC_BCF_TLS_BI_01( in CSeq p_cSeq_s ) runs on HttpImsComponent system TestAdapter { // Local variables var ImsComponent v_callerNetwork; var ImsComponent v_psap; var CSeq v_cSeq_s := p_cSeq_s; // Test control if ((PICS_BCF_USE_TLS)) { log("*** " & testcasename() & ": PICS_BCF_TLS not required (unsecured connection) for executing the TC ***"); setverdict(inconc); stop; } // Test component configuration f_cf_09_up(v_callerNetwork, v_psap); // Test adapter configuration // Preamble // Test Body f_incCSeq(v_cSeq_s); v_callerNetwork.start(f_TC_BCF_TLS_BI_01_callerNetwork(v_cSeq_s)); f_incCSeq(v_cSeq_s); v_psap.start(f_TC_BCF_TLS_BI_01_psap(v_cSeq_s)); f_serverSyncNClientsAndStop(2, {c_prDone, c_tbDone, c_poDone}); // Postamble f_cf_09_down(v_callerNetwork, v_psap); } // End of testcase TC_BCF_TLS_BI_01 group f_TC_BCF_TLS_BI_01 { function f_TC_BCF_TLS_BI_01_callerNetwork( in CSeq p_cSeq_s ) runs on ImsComponent { // Local variables // Test control // Test component configuration f_init_userprofile(c_userProfile_UE1atSUThome); f_initSipUrl(c_userProfile_UE1atSUThome); f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_PCSCF1); // Test adapter configuration // Preamble f_IMS_preamble_woRegistration(p_cSeq_s); f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success); LibIms_Steps.f_setHeadersMESSAGE(p_cSeq_s, f_initSipUrl(c_serviceProfile_EMERGENCY), f_initSipUrl(c_userProfile_UE1atSUThome)); f_init_sdp_userprofile(vc_sdp_local, c_userProfile_UE1atSUThome, c_userProfile_Huawei); // Test Body f_SendMESSAGE(m_MESSAGE_Request_IMS_Ng112(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, m_Require_100rel, -, m_Supported_100rel, m_mBody_plainText("MESSAGE TEXT"),//m_MBody_SDP(vc_sdp_local), m_geolocation({ scheme:= "https", components := {other := PX_GEOLOCATION_ID }, urlParameters := omit, headers := omit }, omit), // TODO Add a LIS component to do a request for location by reference m_geolocation_routing, { fieldName := USER_AGENT_E, userAgentBody := { "ETSI_Conf_testing" } } )); tc_resp.start; alt { [] SIPP.receive { tc_resp.stop; f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_error); } [] tc_resp.timeout { f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success); } } // End of 'alt' statement // Postamble f_clientSyncAndVerdictPostamble(c_poDone, e_success); } // End of function f_TC_BCF_TLS_BI_01_callerNetwork function f_TC_BCF_TLS_BI_01_psap( in CSeq p_cSeq_s ) runs on ImsComponent { // Local variables // Test control f_init_userprofile(c_userProfile_UE1atSUThome); f_initSipUrl(c_serviceProfile_EMERGENCY); f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_BCF); // Test component configuration // Test adapter configuration // Preamble f_IMS_preamble_woRegistration(p_cSeq_s) f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success); // Postamble f_clientSyncAndVerdictPostamble(c_poDone, e_success); } // End of function f_TC_BCF_TLS_BI_01__psap } // End of testcase TC_BCF_TLS_BI_01 } // End of group Security } // End of group bcf_role } // End of module AtsBCF_TestCases