[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
group Create{
// Tear down
f_cf01Down();
/**
* @desc Check that the IUT accepts an AE registration (allowed App-ID, C-AE-ID-STEM not provided by AE)
*
*/
testcase TC_CSE_REG_CRE_001() runs on CseTester system CseSystem {
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
}
testcase TC_CSE_REG_BV_005() runs on CseTester system CseSystem {
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int2001))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
}
testcase TC_CSE_REG_BV_006() runs on CseTester system CseSystem {
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4105))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}
/**
* @desc Check that the IUT rejects an AE registration (not allowed App-ID)
*
*/
testcase TC_CSE_REG_CRE_018() runs on CseTester system CseSystem {
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}
/**
* @desc Check that the IUT rejects an AE registration (allowed App-ID, not allowed C-AE-ID-STEM provided by AE)
*
*/
testcase TC_CSE_REG_CRE_004() runs on CseTester system CseSystem {
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4005))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
}
/**
* @desc Check that the IUT accepts an AE registration (allowed App-ID, S-AE-ID-STEM not provided by AE)
*
*/
testcase TC_CSE_REG_CRE_005() runs on CseTester system CseSystem {
[] mcaPort.receive(mw_response(mw_responsePrimitiveInverse(int4105))) -> value v_response{
tc_ac.stop;
setverdict(fail, testcasename() & ": Error while creating AE with status code " & int2str(enum2int(v_response.primitive.responsePrimitive.responseStatusCode)));
}
[] tc_ac.timeout {
setverdict(inconc, testcasename() & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResources();
// Tear down
f_cf01Down();
// Tear down
f_cf02Down();
}
/**
* @desc Check that the IUT accepts an AE re-registration (allowed M2M-SP-assigned AE-ID, S-AE-ID-STEM provided by AE), transfer request to the IN-CSE
*
*/
testcase TC_CSE_REG_CRE_008() runs on CseTester system CseSystem {
* @desc Check that the IUT accepts an AE re-registration (allowed M2M-SP-assigned AE-ID, S-AE-ID-STEM provided by AE), communication between MN-CSE and IN-CSE
*
*/
testcase TC_CSE_REG_CRE_009() runs on CseTester system CseSystem {
var MsgIn v_response;
var RequestPrimitive v_request;
var integer v_cseBaseIndex := -1;
var ResourceType v_resourceType := int2;
// Test component configuration
f_cf02Up();
//Preambule
v_cseBaseIndex := f_cse_preamble_registerAe();
f_cse_postamble_deleteResources(); //to deregister the AE, I don't know if it's correct like this?
//Test Body
v_request := valueof(m_createAEAnnc(-, "CSE_ID", "/S", "APP_ID", "S-AE-ID-STEM")); //TODO to double check all parameters
function f_CSE_REG_CRE_BV_015(template RequestPrimitive p_requestPrimitive, in AttributeAux p_optionalAttribute) runs on CseTester {
function f_CSE_REG_CRE_015(template RequestPrimitive p_requestPrimitive, in AttributeAux p_optionalAttribute) runs on CseTester {
// Local variables
var MsgIn v_response;
...
...
@@ -1410,7 +1463,11 @@ module OneM2M_Testcases {
group Retrieve{
testcase TC_CSE_REG_RET_BV_001() runs on CseTester system CseSystem {
/**
* @desc Check that the IUT accepts an retrieval request of <CSEBase> resource and responds with all attributes that have multiplicity equals to 1.
*
*/
testcase TC_CSE_REG_RET_001() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
...
...
@@ -1457,9 +1514,13 @@ module OneM2M_Testcases {
// Tear down
f_cf01Down();
}//end TC_CSE_REG_RET_BV_005
}//end TC_CSE_REG_RET_001
testcase TC_CSE_REG_RET_BV_005() runs on CseTester system CseSystem {
/**
* @desc Check that if the IUT is IN-CSE, it accepts an retrieval request of <CSEBase> resource and returns the cseType attribute. cseType Attribute is mandatory for IN-CSE
*
*/
testcase TC_CSE_REG_RET_005() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
...
...
@@ -1522,7 +1583,11 @@ module OneM2M_Testcases {
}//end TC_CSE_REG_RET_BV_005
testcase TC_CSE_REG_RET_BV_006() runs on CseTester system CseSystem {
/**
* @desc Check that the IUT accepts a retrieval request of <CSEBase> resource and responds with supportedResourceTypes attribute containing a list of the supported resources and pointOfAccess containing the list of physical addresses to be used by Registree to connect to this CSE (e.g. IP address, FQDN).
*
*/
testcase TC_CSE_REG_RET_008() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
...
...
@@ -1582,13 +1647,17 @@ module OneM2M_Testcases {
// Tear down
f_cf01Down();
}//end TC_CSE_REG_RET_BV_006
}//end TC_CSE_REG_RET_008
} //end group Retrieve
group Update{
testcase TC_CSE_REG_UPD_BI_001() runs on CseTester system CseSystem {
/**
* @desc Check that the IUT rejects the update request of <CSEBase> resource.
*
*/
testcase TC_CSE_REG_UPD_001() runs on CseTester system CseSystem {
// Local variables
var MsgIn v_response;
var RequestPrimitive v_request;
...
...
@@ -1638,7 +1707,11 @@ module OneM2M_Testcases {
group Delete{
testcase TC_CSE_REG_DEL_BI_001() runs on CseTester system CseSystem {
/**
* @desc Check that the IUT rejects the delete request of <CSEBase> resource.
*
*/
testcase TC_CSE_REG_DEL_001() runs on CseTester system CseSystem {