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
7143e5f0
Commit
7143e5f0
authored
6 years ago
by
acverdugo
Browse files
Options
Downloads
Patches
Plain Diff
TC_CSE_PCH_006
parent
842605d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!49
Stf531 polling channel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
OneM2M_Testcases_CSE_Release_2.ttcn
+66
-0
66 additions, 0 deletions
OneM2M_Testcases_CSE_Release_2.ttcn
with
66 additions
and
0 deletions
OneM2M_Testcases_CSE_Release_2.ttcn
+
66
−
0
View file @
7143e5f0
...
@@ -7504,6 +7504,72 @@ module OneM2M_Testcases_CSE_Release_2 {
...
@@ -7504,6 +7504,72 @@ module OneM2M_Testcases_CSE_Release_2 {
}
}
}
//end group g_CSE_PCH_005
}
//end group g_CSE_PCH_005
/**
* @desc Check that the IUT sends the response with a status to the CSE1 when the request expires according to its Request Expiration Timestamp
*
*/
testcase
TC_CSE_PCH_006
()
runs
on
Tester
system
CseSystem
{
var
CseSimu
v_cse1
:=
CseSimu
.
create
(
"CSE1"
)
alive
;
v_cse1
.
start
(
f_CSE_PCH_006
());
v_cse1
.
done
;
}
function
f_CSE_PCH_006
()
runs
on
CseSimu
{
// Local variables
var
integer
v_aeIndex
:=
-
1
;
var
integer
v_resourceIndex
:=
-
1
;
var
RequestPrimitive
v_request
;
var
MsgIn
v_response
;
var
RequestPrimitive
v_requestNotify
;
// Test control
// Test component configuration
f_cf02UpCseSimuMaster
();
// Test adapter configuration
// Preamble
vc_remoteCseIndex
:=
f_cse_registerRemoteCse
(
m_createRemoteCSEBase
);
vc_ae1
.
start
(
f_cse_preamble_registerAe
());
//AE1 is registred;
vc_ae1
.
done
;
f_cseSimu_checkComponentDoneAndGetVerdict
(
vc_ae1
);
v_aeIndex
:=
f_getResource
(
vc_ae1
);
vc_ae1
.
start
(
f_cse_createResource
(
int15
,
m_createPollingChannelBase
,
v_aeIndex
));
//PollingChannel is created;
vc_ae1
.
done
;
v_requestNotify
:=
valueof
(
m_notify
(
f_getResourceAddress
(
v_aeIndex
)));
v_request
.
from_
:=
PX_CSE1_ID
;
mccPort
.
send
(
m_request
(
v_request
));
tc_ac
.
start
;
alt
{
[]
mccPort
.
receive
(
mw_response
(
mw_responsePrimitive
(
int4108
)))
->
value
vc_response
{
tc_ac
.
stop
;
setverdict
(
pass
,
__SCOPE__
&
":Response status code set to 4108 (REQUEST_TIMEOUT)"
);
}
[]
mccPort
.
receive
(
mw_response
())
{
tc_ac
.
stop
;
setverdict
(
inconc
,
__SCOPE__
&
":INFO: Unexpected message received"
);
}
[]
tc_ac
.
timeout
{
setverdict
(
inconc
,
__SCOPE__
&
":INFO: No answer while performing notification"
);
}
}
// Postamble
f_cse_postamble_deleteResourcesCSE
();
// Tear down
f_cf02DownCseSimuMaster
();
}
// end f_CSE_PCH_006
}
//end group PollingChannel
}
//end group PollingChannel
...
...
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