diff --git a/OneM2M_TestControl.ttcn b/OneM2M_TestControl.ttcn index 2f8ab112dccbccffb711982c552671b5198a4fe1..4596e1f6fb3804b8278cfa8bb62351f361205ca1 100644 --- a/OneM2M_TestControl.ttcn +++ b/OneM2M_TestControl.ttcn @@ -45,6 +45,7 @@ module OneM2M_TestControl { execute(TC_CSE_REG_CRE_023()); execute(TC_CSE_REG_CRE_025()); execute(TC_CSE_REG_CRE_028()); + execute(TC_CSE_REG_CRE_029()); execute(TC_CSE_REG_RET_001()); execute(TC_CSE_REG_RET_005()); execute(TC_CSE_REG_RET_008()); diff --git a/OneM2M_Testcases.ttcn b/OneM2M_Testcases.ttcn index 42f96810820c0aebc89d2e5078b61424f63123a7..b21238c43952f8670a62405777df91b541d7e5c8 100644 --- a/OneM2M_Testcases.ttcn +++ b/OneM2M_Testcases.ttcn @@ -968,7 +968,7 @@ module OneM2M_Testcases { //Preambule //vc_remoteCseIndex := f_cse_registrationRemoteCse(mw_createRemoteCSEBase); //TODO: create serviceSubscribedProfile, Node, and serviceSubscribedAppRule - v_cseBaseIndex := f_cse_preamble_createServiceSubscribedProfile(-);//c_CRUDNDi); + //v_cseBaseIndex := f_cse_preamble_createServiceSubscribedProfile(-);//c_CRUDNDi); //Test Body //v_request := valueof(m_createAe(PX_APP_ID, omit, "C-AE-ID-STEM")); @@ -1632,6 +1632,50 @@ module OneM2M_Testcases { } + /** + * @desc Check that IUT sends a CSE registration request with attributes multiplicity equals to 1 + * + */ + testcase TC_CSE_REG_CRE_029() runs on CseSimu system CseSystem { + + //var MsgIn v_response; + var RequestPrimitive v_request; + var RequestPrimitive v_createRequestPrimitive := valueof(m_createRemoteCSEBase); + var ResourceType v_resourceType := int16; + + // Test control + + // Test component configuration + f_cf04Up(); + + // Test adapter configuration + + // Preamble + v_request := f_getCreateRequestPrimitive(v_resourceType, v_createRequestPrimitive, -1); + + mccPort.send(m_request(v_request)); + tc_ac.start; + alt { + [] mccPort.receive(mw_response(mw_responsePrimitiveOK)) { + tc_ac.stop; + setverdict(pass, __SCOPE__ & ": Resource type remoteCSE created successfully"); + } + [] mccPort.receive(mw_response(mw_responsePrimitiveKO)) { + tc_ac.stop; + setverdict(fail, __SCOPE__ & ": Error while creating resource type remoteCSE"); + } + [] tc_ac.timeout { + setverdict(fail, __SCOPE__ & ": No answer while creating resource type remoteCSE"); + } + } + + // Postamble + f_cse_postamble_deleteResourcesCSE(); + + // Tear down + f_cf04Down(); + + } } //end group Create