Loading LibIms_ConfigAndTigger/LibIms_ConfigAndTrigger.ttcn3 +70 −9 Original line number Diff line number Diff line Loading @@ -5,29 +5,90 @@ */ module LibIms_ConfigAndTrigger { import from LibIot_Functions {function f_sendTriggerCmd;} import from LibIot_TypesAndValues {type TriggerCommand;} import from LibIot_TestInterface {type TestCoordinator, TestDriver;} group ue { group ueTypes { group ueCommands { // device controll trigger (1000-1009) const integer c_SWITCH_ON := 1000; const integer c_SWITCH_OFF := 1001; /** * * @desc Trigger command to switch on the UE */ const TriggerCommand c_SWITCH_ON_UE := 1000; /** * * @desc Trigger command to switch off the UE */ const TriggerCommand c_SWITCH_OFF_UE := 1001; // behvaior trigger (1010-1099) const integer c_REGISTER_UE := 1010; /** * @desc Trigger command to force the registration at the UE * @remark * Note that the registration trigger command needs has * additional parameter for the public, private user id and * password. */ const TriggerCommand c_REGISTER_UE := 1010; /** * * @desc Trigger command to force the de-registration at the UE */ const TriggerCommand c_DEREGISTER_UE := 1011; } } group ueFunctions { /** * * @desc Triggers the ue to switch on the terminal * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeSwitchOn() runs on TestDriver { f_sendTriggerCmd(c_SWITCH_ON_UE, {}); } /** * * @desc Triggers the ue to swith off the terminal * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeSwitchOff() runs on TestDriver { f_sendTriggerCmd(c_SWITCH_OFF_UE, {}); } group eut { /** * * @desc Triggers the UE registration * @param p_publicId The public user name * @param p_privateId The private user name * @param p_pw The users password * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeRegistration(in charstring p_publicId, in charstring p_privateId, in charstring p_pw) runs on TestDriver { f_sendTriggerCmd(c_REGISTER_UE, {p_publicId, p_privateId, p_pw}); } /** * * @desc Triggers the de-registration at the ue * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeDeregistration() runs on TestDriver { f_sendTriggerCmd(c_DEREGISTER_UE, {}); } } } group eut { } } No newline at end of file Loading
LibIms_ConfigAndTigger/LibIms_ConfigAndTrigger.ttcn3 +70 −9 Original line number Diff line number Diff line Loading @@ -5,29 +5,90 @@ */ module LibIms_ConfigAndTrigger { import from LibIot_Functions {function f_sendTriggerCmd;} import from LibIot_TypesAndValues {type TriggerCommand;} import from LibIot_TestInterface {type TestCoordinator, TestDriver;} group ue { group ueTypes { group ueCommands { // device controll trigger (1000-1009) const integer c_SWITCH_ON := 1000; const integer c_SWITCH_OFF := 1001; /** * * @desc Trigger command to switch on the UE */ const TriggerCommand c_SWITCH_ON_UE := 1000; /** * * @desc Trigger command to switch off the UE */ const TriggerCommand c_SWITCH_OFF_UE := 1001; // behvaior trigger (1010-1099) const integer c_REGISTER_UE := 1010; /** * @desc Trigger command to force the registration at the UE * @remark * Note that the registration trigger command needs has * additional parameter for the public, private user id and * password. */ const TriggerCommand c_REGISTER_UE := 1010; /** * * @desc Trigger command to force the de-registration at the UE */ const TriggerCommand c_DEREGISTER_UE := 1011; } } group ueFunctions { /** * * @desc Triggers the ue to switch on the terminal * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeSwitchOn() runs on TestDriver { f_sendTriggerCmd(c_SWITCH_ON_UE, {}); } /** * * @desc Triggers the ue to swith off the terminal * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeSwitchOff() runs on TestDriver { f_sendTriggerCmd(c_SWITCH_OFF_UE, {}); } group eut { /** * * @desc Triggers the UE registration * @param p_publicId The public user name * @param p_privateId The private user name * @param p_pw The users password * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeRegistration(in charstring p_publicId, in charstring p_privateId, in charstring p_pw) runs on TestDriver { f_sendTriggerCmd(c_REGISTER_UE, {p_publicId, p_privateId, p_pw}); } /** * * @desc Triggers the de-registration at the ue * @verdict e2e verdict will be set depending on the result of trigger action */ function f_triggerUeDeregistration() runs on TestDriver { f_sendTriggerCmd(c_DEREGISTER_UE, {}); } } } group eut { } } No newline at end of file