Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ATS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TST
ATS
Commits
7f689b92
Commit
7f689b92
authored
6 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
TC_CSE_REG_DEL_005 implemented
Signed-off-by:
reinaortega
<
miguelangel.reinaortega@etsi.org
>
parent
41592783
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
OneM2M_Testcases_CSE_Release_1.ttcn
+67
-0
67 additions, 0 deletions
OneM2M_Testcases_CSE_Release_1.ttcn
with
67 additions
and
0 deletions
OneM2M_Testcases_CSE_Release_1.ttcn
+
67
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment