Loading AtsImsIot/AtsImsIot_Functions.ttcn +104 −0 Original line number Diff line number Diff line Loading @@ -1126,6 +1126,110 @@ module AtsImsIot_Functions { return v_status; } /** * @desc Trigger UE given by p_ueRef to initiate starts file transfer * @param p_ueRef Reference to IMS UE user component * @param p_calledParty ImsUserInfo of called party * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userInitiateFt(EquipmentUser p_ueRef, ImsUserInfo p_calledParty) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO //if( p_calledParty.publicId == "dummy" ) { return true; } //v_status := f_mtc_userInitiateCallSuccessful(p_ueRef); return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that user is informed * of incoming file transfer invitation * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckFtInfo(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that user is informed * that invitation to file transfer session has reached * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckPeerFtInfo(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to accept the file transfer invitation * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userAcceptsFt(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that users perform file transfer * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckFileTransferring(EquipmentUser p_userCompRef1, EquipmentUser p_userCompRef2) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to ends the file transfer session * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_EndFt(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that user is * informed that file transfer session has ended * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckFtEnded(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger IMS Network to deregister UE given by p_ueRef Loading AtsImsIot/AtsImsIot_TestCases_RCS.ttcn +65 −0 Original line number Diff line number Diff line Loading @@ -1382,4 +1382,69 @@ module AtsImsIot_TestCases_RCS { } //end testcase TC_IMS_CHAT_0016 /** * @desc IMS network supports file transfer service and file between two users * in their home network can be performed. User B must explicitly accept * the file transfer. * @see TS 102 901-2 V0.0.1 clause 4.5.4.1.1 */ testcase TC_IMS_FILE_0001() runs on ImsTestCoordinator system IotSystemInterface { // create components var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A); var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B); var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A); var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B); var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic); var ImsInterfaceMonitor v_iscB := f_cf_create_monitor(c_isc_B); var ImsUserInfo v_userInfoA := f_getFtUser(PX_EUT_A); var ImsUserInfo v_userInfoB := f_getFtUser(PX_EUT_B); var CF_INT_AS v_config := {v_gmA, v_ic, v_gmB, omit, v_iscB}; // map/connect component ports f_cf_adapter_up(); f_cf_user_up(v_ueA); f_cf_user_up(v_ueB); f_cf_int_as_up(v_config); // preamble f_mtc_userRegistration(v_ueA, v_userInfoA); f_mtc_userRegistration(v_ueB, v_userInfoB); // test body f_mtc_userInitiateFt (v_ueA, v_userInfoB); //Test Sequence Step 1 // check 1 (INVITE) f_mtc_check_TP_IMS_5097_01_gm(v_gmA, false); // Check1 f_mtc_check_TP_IMS_5097_01_ic(v_ic, true); // Check1 f_mtc_check_TP_IMS_5108_03_ic(v_ic, false, 0);// Check2 f_mtc_check_TP_IMS_5108_03_isc(v_iscB, false, 0);// Check2 f_mtc_userCheckFtInfo(v_ueB); //Test Sequence Step 2 f_mtc_userCheckPeerFtInfo(v_ueA); //Test Sequence Step 3 f_mtc_userAcceptsFt(v_ueB); //Test Sequence Step 4 //check 3 - 200 OK f_mtc_check_TP_IMS_5115_08_isc(v_iscB, false);// Check3 f_mtc_check_TP_IMS_5115_08_ic(v_ic, false, 0);// Check3 f_mtc_userCheckFileTransferring(v_ueA, v_ueB); //Test Sequence Step 5 f_mtc_EndFt(v_ueA); //Test Sequence Step 7 f_mtc_userCheckFtEnded(v_ueB); //Test Sequence Step 8 f_mtc_userCheckFtEnded(v_ueA); //Test Sequence Step 9 // postamble f_PO_user_home_deregistration(v_ueA); f_PO_user_home_deregistration(v_ueB); //unmap/disconnet component ports f_cf_user_down(v_ueA); f_cf_user_down(v_ueB); f_cf_int_as_down(v_config); f_cf_adapter_down(); } //end testcase TC_IMS_FILE_0001 }//end module AtsImsIot_TestCases_RCS No newline at end of file Loading
AtsImsIot/AtsImsIot_Functions.ttcn +104 −0 Original line number Diff line number Diff line Loading @@ -1126,6 +1126,110 @@ module AtsImsIot_Functions { return v_status; } /** * @desc Trigger UE given by p_ueRef to initiate starts file transfer * @param p_ueRef Reference to IMS UE user component * @param p_calledParty ImsUserInfo of called party * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userInitiateFt(EquipmentUser p_ueRef, ImsUserInfo p_calledParty) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO //if( p_calledParty.publicId == "dummy" ) { return true; } //v_status := f_mtc_userInitiateCallSuccessful(p_ueRef); return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that user is informed * of incoming file transfer invitation * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckFtInfo(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that user is informed * that invitation to file transfer session has reached * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckPeerFtInfo(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to accept the file transfer invitation * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userAcceptsFt(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that users perform file transfer * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckFileTransferring(EquipmentUser p_userCompRef1, EquipmentUser p_userCompRef2) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to ends the file transfer session * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_EndFt(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger UE given by p_ueRef to verify that user is * informed that file transfer session has ended * @param p_userCompRef Reference to IMS UE user component * @return * true in case of successfull execution of the trigger command * otherwise false */ function f_mtc_userCheckFtEnded(EquipmentUser p_userCompRef) runs on TestCoordinator return boolean { var boolean v_status := true; // TODO return v_status; } /** * @desc Trigger IMS Network to deregister UE given by p_ueRef Loading
AtsImsIot/AtsImsIot_TestCases_RCS.ttcn +65 −0 Original line number Diff line number Diff line Loading @@ -1382,4 +1382,69 @@ module AtsImsIot_TestCases_RCS { } //end testcase TC_IMS_CHAT_0016 /** * @desc IMS network supports file transfer service and file between two users * in their home network can be performed. User B must explicitly accept * the file transfer. * @see TS 102 901-2 V0.0.1 clause 4.5.4.1.1 */ testcase TC_IMS_FILE_0001() runs on ImsTestCoordinator system IotSystemInterface { // create components var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A); var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B); var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A); var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B); var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic); var ImsInterfaceMonitor v_iscB := f_cf_create_monitor(c_isc_B); var ImsUserInfo v_userInfoA := f_getFtUser(PX_EUT_A); var ImsUserInfo v_userInfoB := f_getFtUser(PX_EUT_B); var CF_INT_AS v_config := {v_gmA, v_ic, v_gmB, omit, v_iscB}; // map/connect component ports f_cf_adapter_up(); f_cf_user_up(v_ueA); f_cf_user_up(v_ueB); f_cf_int_as_up(v_config); // preamble f_mtc_userRegistration(v_ueA, v_userInfoA); f_mtc_userRegistration(v_ueB, v_userInfoB); // test body f_mtc_userInitiateFt (v_ueA, v_userInfoB); //Test Sequence Step 1 // check 1 (INVITE) f_mtc_check_TP_IMS_5097_01_gm(v_gmA, false); // Check1 f_mtc_check_TP_IMS_5097_01_ic(v_ic, true); // Check1 f_mtc_check_TP_IMS_5108_03_ic(v_ic, false, 0);// Check2 f_mtc_check_TP_IMS_5108_03_isc(v_iscB, false, 0);// Check2 f_mtc_userCheckFtInfo(v_ueB); //Test Sequence Step 2 f_mtc_userCheckPeerFtInfo(v_ueA); //Test Sequence Step 3 f_mtc_userAcceptsFt(v_ueB); //Test Sequence Step 4 //check 3 - 200 OK f_mtc_check_TP_IMS_5115_08_isc(v_iscB, false);// Check3 f_mtc_check_TP_IMS_5115_08_ic(v_ic, false, 0);// Check3 f_mtc_userCheckFileTransferring(v_ueA, v_ueB); //Test Sequence Step 5 f_mtc_EndFt(v_ueA); //Test Sequence Step 7 f_mtc_userCheckFtEnded(v_ueB); //Test Sequence Step 8 f_mtc_userCheckFtEnded(v_ueA); //Test Sequence Step 9 // postamble f_PO_user_home_deregistration(v_ueA); f_PO_user_home_deregistration(v_ueB); //unmap/disconnet component ports f_cf_user_down(v_ueA); f_cf_user_down(v_ueB); f_cf_int_as_down(v_config); f_cf_adapter_down(); } //end testcase TC_IMS_FILE_0001 }//end module AtsImsIot_TestCases_RCS No newline at end of file