Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
TST
ATS
Commits
7f689b92
Commit
7f689b92
authored
Mar 29, 2019
by
Miguel Angel Reina Ortega
Browse files
TC_CSE_REG_DEL_005 implemented
Signed-off-by:
reinaortega
<
miguelangel.reinaortega@etsi.org
>
parent
41592783
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
OneM2M_Testcases_CSE_Release_1.ttcn
OneM2M_Testcases_CSE_Release_1.ttcn
+67
-0
No files found.
OneM2M_Testcases_CSE_Release_1.ttcn
View file @
7f689b92
...
...
@@ -3219,6 +3219,73 @@ module OneM2M_Testcases_CSE_Release_1 {
}
//end TC_CSE_REG_DEL_004
/**
* @desc Check that the IUT accepts an AE de-registration when AE-ID is starting with “S”
*
*/
testcase
TC_CSE_REG_DEL_005
()
runs
on
Tester
system
CseSystem
{
var
AeSimu
v_ae1
:=
AeSimu
.
create
(
"AE1"
)
alive
;
v_ae1
.
start
(
f_setProtocolBinding
(
PX_PROTOCOL_BINDING_AE1
));
v_ae1
.
done
;
v_ae1
.
start
(
f_CSE_REG_DEL_005
());
v_ae1
.
done
;
}
function
f_CSE_REG_DEL_005
()
runs
on
AeSimu
{
//Local variables
var
RequestPrimitive
v_request
;
var
integer
v_aeIndex
:=
-
1
;
//Test control
if
(
not
(
PICS_IN_CSE
))
{
setverdict
(
inconc
,
__SCOPE__
&
": IUT shall be IN-CSE to run this test case"
);
stop
;
}
// Test component configuration
f_cf01Up
();
// Test adapter configuration
// Preamble
v_aeIndex
:=
f_cse_createResource
(
int2
,
m_createAe
(
PX_APP_ID
,
omit
,
"S"
));
//c_CRUDNDi);
// Test Body
v_request
:=
valueof
(
m_delete
(
f_getResourceAddress
(
v_aeIndex
),
f_getOriginator
(
v_aeIndex
)));
mcaPort
.
send
(
f_getMsgOutPrimitive
(
m_request
(
v_request
)));
tc_ac
.
start
;
alt
{
[]
mcaPort
.
receive
(
mw_response
(
mw_responsePrimitive
(
int2002
)))
{
tc_ac
.
stop
;
setverdict
(
pass
,
__SCOPE__
&
": AE has been de-registered successfully"
);
f_removeElementFromList
(
vc_resourcesIndexToBeDeleted
,
v_aeIndex
);
}
[]
mcaPort
.
receive
(
mw_response
(
mw_responsePrimitiveOK
))
{
tc_ac
.
stop
;
setverdict
(
fail
,
__SCOPE__
&
": Wrong response status code in the response"
);
}
[]
mcaPort
.
receive
(
mw_response
(
mw_responsePrimitiveKO
))
{
tc_ac
.
stop
;
setverdict
(
fail
,
__SCOPE__
&
": Error while de-registering AE"
);
}
[]
tc_ac
.
timeout
{
setverdict
(
fail
,
__SCOPE__
&
": No answer while de-registering AE"
);
}
}
// Postamble
f_cse_postamble_deleteResources
();
// Tear down
f_cf01Down
();
}
//end TC_CSE_REG_DEL_005
}
// end group Delete
}
//end Registration
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment