diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn index 61cb4c06f8b6774b0b2b9fdc26ce1b39f665dba9..3d0972ae1c58881fb1e83a861644417a34e8c92e 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -683,7 +683,7 @@ module OneM2M_Functions { p_ae2Index := f_getResource(vc_ae2); if(ischosen(p_createRequestPrimitive.primitiveContent.subscription)){ //this condition is necessary for Subscription TCs where notification URI is set in m_createSubscriptionAdvanced - p_createRequestPrimitive.primitiveContent.subscription.notificationURI := {f_getResourceAddress(p_ae2Index)}; + p_createRequestPrimitive.primitiveContent.subscription.notificationURI := {f_getResourceAddress(p_ae2Index)}; } vc_ae2.start(f_cse_notifyProcedure_subscriptionVerificationHandler(p_responseStatusCode)); } @@ -1648,7 +1648,6 @@ module OneM2M_Functions { var MsgIn v_response; var RequestPrimitive v_request; - var integer v_resourceIndex := -1; var integer v_localResourceIndex := -1; var PrimitiveContent v_remoteCSEResource; @@ -1661,7 +1660,7 @@ module OneM2M_Functions { tc_ac.stop; setverdict(pass, __SCOPE__&":INFO: Resource type remoteCSE created successfuly"); f_checkAttributesToBeSaved(int16, v_request, v_response.primitive.responsePrimitive); - v_resourceIndex := f_setResource(v_response.primitive.responsePrimitive.primitiveContent, int16, -1); + vc_remoteCseIndex := f_setResource(v_response.primitive.responsePrimitive.primitiveContent, int16, -1); v_remoteCSEResource := f_cse_generateLocalResource(v_response.primitive.responsePrimitive.primitiveContent, vc_cSEBaseIndex, int16); v_localResourceIndex := f_setLocalResource(v_remoteCSEResource, int16, vc_cSEBaseIndex); } @@ -1680,7 +1679,7 @@ module OneM2M_Functions { f_checkCseSimuStatus(); - return v_resourceIndex; + return vc_remoteCseIndex; } @@ -1979,7 +1978,7 @@ module OneM2M_Functions { tc_ac.start; alt { - [] mcaPort.receive(mw_request(mw_createContainer(?,?))) -> value v_request { + [] mcaPortIn.receive(mw_request(mw_createContainer(?,?))) -> value v_request { tc_ac.stop; v_rp := v_request.primitive.requestPrimitive; @@ -1987,11 +1986,11 @@ module OneM2M_Functions { v_modifiedResource := f_ae_generateLocalResource(v_rp.primitiveContent, v_parentIndex, v_rp.resourceType); v_resourceIndex := f_setLocalResource(v_modifiedResource, int2, v_parentIndex); if(v_resourceIndex != -1) { - mcaPort.send(m_response(m_responsePrimitive_content(int2001, v_rp.requestIdentifier, v_modifiedResource))); + mcaPortIn.send(m_response(m_responsePrimitive_content(int2001, v_rp.requestIdentifier, v_modifiedResource))); setverdict(pass, __SCOPE__&":INFO: Container created successfuly"); } else { - mcaPort.send(m_response(m_responsePrimitive(int5000, v_request.primitive.requestPrimitive.requestIdentifier))); + mcaPortIn.send(m_response(m_responsePrimitive(int5000, v_request.primitive.requestPrimitive.requestIdentifier))); setverdict(inconc, __SCOPE__&":INFO: Container creation failed"); } } diff --git a/LibOneM2M/OneM2M_Pixits.ttcn b/LibOneM2M/OneM2M_Pixits.ttcn index 7ac08fe32dc51df803be1e4e03654c80af55e66f..8d7d261b08f8e86cc31e89d8ae496c96c2c31edc 100644 --- a/LibOneM2M/OneM2M_Pixits.ttcn +++ b/LibOneM2M/OneM2M_Pixits.ttcn @@ -83,9 +83,9 @@ module OneM2M_Pixits { group TesterParameters { - modulepar charstring PX_AE1_ADDRESS := "127.0.0.1:3131"; + modulepar charstring PX_AE1_ADDRESS := "127.0.0.1:3141"; - modulepar charstring PX_AE2_ADDRESS := "127.0.0.1:3132"; + modulepar charstring PX_AE2_ADDRESS := "127.0.0.1:3142"; modulepar charstring PX_CSE1_ADDRESS := "127.0.0.1:3141"; diff --git a/OneM2M_Testcases_AE.ttcn b/OneM2M_Testcases_AE.ttcn index de87f75aecb91215289ba997bf9390af0c4731c5..354922c47c22d93df073b729594a999c32458753 100644 --- a/OneM2M_Testcases_AE.ttcn +++ b/OneM2M_Testcases_AE.ttcn @@ -498,7 +498,7 @@ module OneM2M_Testcases_AE { stop; } - f_AE_GEN_UPD_002(e_spRelative); + f_AE_GEN_RET_002(e_spRelative); } testcase TC_AE_GEN_RET_002_ABS() runs on CseSimu system AeSystem { @@ -1456,19 +1456,19 @@ module OneM2M_Testcases_AE { alt{ [] mcaPortIn.receive(mw_request(p_expectedUpdateRequest)) -> value v_request { tc_ac.stop; - setverdict(pass, __SCOPE__, " : AE registration update request is accepted!"); + setverdict(pass, __SCOPE__, " : AE update request is accepted!"); v_parentIndex := f_getResourceIndex(v_request.primitive.requestPrimitive.to_); v_modifiedResource := f_ae_generateLocalResource(v_request.primitive.requestPrimitive.primitiveContent, v_parentIndex, v_request.primitive.requestPrimitive.resourceType); v_resourceIndex := f_setLocalResource(v_modifiedResource, v_request.primitive.requestPrimitive.resourceType, v_parentIndex); if(v_resourceIndex != -1) { - mcaPort.send(m_response(m_responsePrimitive_content(int2004, v_request.primitive.requestPrimitive.requestIdentifier, v_modifiedResource))); + mcaPortIn.send(m_response(m_responsePrimitive_content(int2004, v_request.primitive.requestPrimitive.requestIdentifier, v_modifiedResource))); } //send back responsePrimitive - mcaPortIn.send(m_response(v_responsePrimitive)); + //mcaPortIn.send(m_response(v_responsePrimitive)); } [] mcaPortIn.receive(mw_request(?)) -> value v_request { tc_ac.stop; - setverdict(fail, __SCOPE__, " : AE registration update request is rejected due to not including the optional attribute!"); + setverdict(fail, __SCOPE__, " : AE update request is rejected due to not including the optional attribute!"); } [] tc_ac.timeout{ setverdict(fail, __SCOPE__, " : Timeout due to no response received from requested SUT!"); @@ -1637,7 +1637,7 @@ module OneM2M_Testcases_AE { alt{ [] mcaPortIn.receive(mw_request(mw_retrieveResource(p_address))) -> value v_request { tc_ac.stop; - setverdict(pass, __SCOPE__, " : retrieve ressource type " & int2str(enum2int(v_request.primitive.requestPrimitive.resourceType)) & " request is accepted!!"); + setverdict(pass, __SCOPE__, " : retrieve resource type request is accepted!!"); //set responseStatusCode back to SUT v_responsePrimitive := valueof(m_responsePrimitive(int2000, "To_be_defined", omit)); @@ -1648,7 +1648,7 @@ module OneM2M_Testcases_AE { } [] mcaPortIn.receive { tc_ac.stop; - setverdict(fail, __SCOPE__, " : error while retrieving ressource !"); + setverdict(fail, __SCOPE__, " : error while retrieving resource !"); } [] tc_ac.timeout{ setverdict(fail, __SCOPE__, " : Timeout due to no response received from requested SUT!"); @@ -1784,7 +1784,7 @@ module OneM2M_Testcases_AE { alt{ [] mcaPortIn.receive(mw_request(mw_retrieveResource(v_address))) -> value v_request { tc_ac.stop; - setverdict(pass, __SCOPE__, " : retrieve ressource type " & int2str(enum2int(v_request.primitive.requestPrimitive.resourceType)) & " request is accepted!!"); + setverdict(pass, __SCOPE__, " : retrieve resource type request is accepted!!"); //set responseStatusCode back to SUT v_responsePrimitive := valueof(m_responsePrimitive(int2000, "To_be_defined", omit)); @@ -1795,7 +1795,7 @@ module OneM2M_Testcases_AE { } [] mcaPortIn.receive { tc_ac.stop; - setverdict(fail, __SCOPE__, " : error while retrieving ressource !"); + setverdict(fail, __SCOPE__, " : error while retrieving resource !"); } [] tc_ac.timeout{ setverdict(fail, __SCOPE__, " : Timeout due to no response received from requested SUT!"); @@ -1833,7 +1833,7 @@ module OneM2M_Testcases_AE { alt{ [] mcaPortIn.receive(mw_request(mw_retrieveResource(v_address))) -> value v_request { tc_ac.stop; - setverdict(pass, __SCOPE__, " : retrieve ressource type " & int2str(enum2int(v_request.primitive.requestPrimitive.resourceType)) & " request is accepted!!"); + setverdict(pass, __SCOPE__, " : retrieve resource type request is accepted!!"); //set responseStatusCode back to SUT v_responsePrimitive := valueof(m_responsePrimitive(int2000, "To_be_defined", omit)); @@ -1844,7 +1844,7 @@ module OneM2M_Testcases_AE { } [] mcaPortIn.receive { tc_ac.stop; - setverdict(fail, __SCOPE__, " : error while retrieving ressource !"); + setverdict(fail, __SCOPE__, " : error while retrieving resource !"); } [] tc_ac.timeout{ setverdict(fail, __SCOPE__, " : Timeout due to no response received from requested SUT!"); @@ -1982,7 +1982,7 @@ module OneM2M_Testcases_AE { alt{ [] mcaPortIn.receive(mw_request(mw_deleteRequest(v_address))) -> value v_request { tc_ac.stop; - setverdict(pass, __SCOPE__, " : delete ressource type " & int2str(enum2int(v_request.primitive.requestPrimitive.resourceType)) & " request is accepted!!"); + setverdict(pass, __SCOPE__, " : delete resource type request is accepted!!"); //set responseStatusCode back to SUT v_responsePrimitive := valueof(m_responsePrimitive(int2002, "To_be_defined", omit)); @@ -1993,7 +1993,7 @@ module OneM2M_Testcases_AE { } [] mcaPortIn.receive { tc_ac.stop; - setverdict(fail, __SCOPE__, " : error while deleting ressource !"); + setverdict(fail, __SCOPE__, " : error while deleting resource !"); } [] tc_ac.timeout{ setverdict(fail, __SCOPE__, " : Timeout due to no response received from requested SUT!"); @@ -2031,7 +2031,7 @@ module OneM2M_Testcases_AE { alt{ [] mcaPortIn.receive(mw_request(mw_deleteRequest(v_address))) -> value v_request { tc_ac.stop; - setverdict(pass, __SCOPE__, " : delete ressource type " & int2str(enum2int(v_request.primitive.requestPrimitive.resourceType)) & " request is accepted!!"); + setverdict(pass, __SCOPE__, " : delete resource type request is accepted!!"); //set responseStatusCode back to SUT v_responsePrimitive := valueof(m_responsePrimitive(int2002, "To_be_defined", omit)); @@ -2042,7 +2042,7 @@ module OneM2M_Testcases_AE { } [] mcaPortIn.receive { tc_ac.stop; - setverdict(fail, __SCOPE__, " : error while deleting ressource !"); + setverdict(fail, __SCOPE__, " : error while deleting resource !"); } [] tc_ac.timeout{ setverdict(fail, __SCOPE__, " : Timeout due to no response received from requested SUT!"); diff --git a/OneM2M_Testcases_CSE.ttcn b/OneM2M_Testcases_CSE.ttcn index 5b2c3936f875ee81a6c394f8e125ba302cca7026..0b0f7af5dbcd965624a85f5c250056bcdb9c7f49 100644 --- a/OneM2M_Testcases_CSE.ttcn +++ b/OneM2M_Testcases_CSE.ttcn @@ -4379,7 +4379,7 @@ module OneM2M_Testcases_CSE { vc_ae2.start(f_cse_createResource(int2, m_createAe(PX_APP_ID, -, PX_AE2_ID_STEM, c_defaultAE2Name, v_poaList), -1)); // AE2 is registred vc_ae2.done; v_ae2Index := f_getResource(vc_ae2); - p_parentRequestPrimitive.primitiveContent.subscription.notificationURI := {f_getResourceAddress(v_ae2Index)}; + p_parentRequestPrimitive.primitiveContent.subscription.notificationURI := {f_getResourceAddress(v_ae2Index)}; vc_ae2.start(f_cse_notifyProcedure_subscriptionVerificationHandler()); } if(ischosen(p_parentRequestPrimitive.primitiveContent.group_)){ @@ -8479,7 +8479,7 @@ module OneM2M_Testcases_CSE { v_ae1.start(f_CSE_DMR_RET_014(int23, m_createSubscriptionBase));//Subscription v_ae1.done; - } + } function f_CSE_DMR_RET_014(ResourceType p_resourceType, template RequestPrimitive p_requestPrimitive) runs on AeSimu { @@ -11980,7 +11980,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_007_CNT_CT() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_creationTime := "20001231T012345"; + var Timestamp v_creationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateContainerBase; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12004,7 +12004,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_007_GRP_CT() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_creationTime := "20001231T012345"; + var Timestamp v_creationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateGroupBase; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12028,7 +12028,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_007_ACP_CT() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_creationTime := "20001231T012345"; + var Timestamp v_creationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateAcpBase; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12052,7 +12052,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_007_SCH_CT() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_creationTime := "20001231T012345"; + var Timestamp v_creationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateScheduleBase; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12076,7 +12076,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_007_PCH_CT() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_creationTime := "20001231T012345"; + var Timestamp v_creationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updatePollingChannelBase; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12100,7 +12100,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_007_SUB_CT() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_creationTime := "20001231T012345"; + var Timestamp v_creationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateSubscriptionBase; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12188,7 +12188,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_008_CNT_ET() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateContainerBase; var AttributeAux_list v_nullFields; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12214,7 +12214,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_008_GRP_ET() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateGroupBase; var AttributeAux_list v_nullFields; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12240,7 +12240,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_008_ACP_ET() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateAcpBase; var AttributeAux_list v_nullFields; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12266,7 +12266,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_008_SCH_ET() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateScheduleBase; var AttributeAux_list v_nullFields; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12292,7 +12292,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_008_PCH_ET() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updatePollingChannelBase; var AttributeAux_list v_nullFields; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -12318,7 +12318,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_008_SUB_ET() runs on Tester system CseSystem { // Local variables var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateSubscriptionBase; var AttributeAux_list v_nullFields; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -14764,7 +14764,7 @@ module OneM2M_Testcases_CSE { */ testcase TC_CSE_DMR_UPD_016_CSR_ET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase; var ResponsePrimitive v_responsePrimitive; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -14830,7 +14830,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_016_NOD_ET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateNodeBase; var ResponsePrimitive v_responsePrimitive; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -14898,7 +14898,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_016_AE_ET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateAE; var ResponsePrimitive v_responsePrimitive; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -15100,7 +15100,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_016_SUB_ET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateSubscriptionBase; var ResponsePrimitive v_responsePrimitive; var PrimitiveContent v_primitiveContentRetrieveResource; @@ -15203,7 +15203,7 @@ module OneM2M_Testcases_CSE { testcase TC_CSE_DMR_UPD_016_GRP_ET() runs on Tester system CseSystem { var AeSimu v_ae1 := AeSimu.create("AE1") alive; - var Timestamp v_expirationTime := "20001231T012345"; + var Timestamp v_expirationTime := "21001231T012345"; var template RequestPrimitive v_updateRequest := m_updateGroupBase; var ResponsePrimitive v_responsePrimitive; var PrimitiveContent v_primitiveContentRetrieveResource;