Skip to content
Snippets Groups Projects
Commit a1222e32 authored by Pramod Kulkarni's avatar Pramod Kulkarni
Browse files

Implemented TC_CSE_REG_CRE_027 and corrected an issue in TC_CSE_REG_CRE_010...

Implemented TC_CSE_REG_CRE_027 and corrected an issue in TC_CSE_REG_CRE_010 found during compilation.

Signed-off-by: default avatarpkulkarni <pkulkarni75@gmail.com>
parent 0a6bc1a6
No related branches found
No related tags found
No related merge requests found
......@@ -1156,7 +1156,7 @@ module OneM2M_Testcases {
testcase TC_CSE_REG_CRE_010() runs on AeSimu system CseSystem {
var MsgIn v_response;
var ResponsePrimitive v_request;
var RequestPrimitive v_request;
var integer v_aeIndex := -1;
// Test component configuration
......@@ -1522,7 +1522,54 @@ module OneM2M_Testcases {
// Tear down
f_cf01Down();
}//end TC_CSE_REG_CRE_024
}//end TC_CSE_REG_CRE_025
/**
* @desc Check that the IUT rejects the create request of <CSEBase> resource.
*
*/
testcase TC_CSE_REG_CRE_027() runs on InCseSimu system CseSystem {
// Local variables
var RequestPrimitive v_request;
var integer v_cseBaseIndex := -1;
var ResourceType v_resourceType := int2;
// Test control
// Test component configuration
f_cf01UpCseSimuMaster();
// Test adapter configuration
// Preamble
vc_remoteCseIndex := f_cse_registrationRemoteCse(mw_createRemoteCSEBase);
// Test Body
vc_aeSimu.start(f_cse_createResource(int2, m_createAe(PX_APP_ID, omit, omit)));
tc_ac.start;
alt {
[] mccPort.receive(mw_response(mw_responsePrimitive(int2001))) {
tc_ac.stop;
setverdict(pass, __SCOPE__ & ": AE creation successful.");
}
[] mccPort.receive {
tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Error while creating AE");
}
[] tc_ac.timeout {
setverdict(fail, __SCOPE__ & ": No answer while creating AE");
}
}
// Postamble
f_cse_postamble_deleteResourcesCSE();
// Tear down
f_cf01DownCseSimuMaster();
}//end TC_CSE_REG_CRE_027
/**
* @desc Check that the IUT rejects registration of already registered AE (C-AE-ID-STEM provided by AE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment