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
1513114e
Commit
1513114e
authored
7 years ago
by
Pramod Kulkarni
Browse files
Options
Downloads
Patches
Plain Diff
TTCN corrections for TC_CSE_REG_CRE_005
parent
abd21d77
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LibOneM2M/OneM2M_Templates.ttcn
+1
-1
1 addition, 1 deletion
LibOneM2M/OneM2M_Templates.ttcn
OneM2M_Testcases.ttcn
+25
-10
25 additions, 10 deletions
OneM2M_Testcases.ttcn
with
26 additions
and
11 deletions
LibOneM2M/OneM2M_Templates.ttcn
+
1
−
1
View file @
1513114e
...
@@ -591,7 +591,7 @@ module OneM2M_Templates {
...
@@ -591,7 +591,7 @@ module OneM2M_Templates {
/**
/**
* @desc CREATE request primitive for remoteCSE resource
* @desc CREATE request primitive for remoteCSE resource
*/
*/
template
RequestPrimitive
mw_createRemoteCSEBase
()
modifies
mw_create
:=
{
template
RequestPrimitive
mw_createRemoteCSEBase
(
template
XSD
.
ID
p_from
:=
*
,
template
XSD
.
ID
p_to
:=
?
)
modifies
mw_create
:=
{
resourceType
:=
int16
,
resourceType
:=
int16
,
primitiveContent
:=
?
//{remoteCSE := m_contentCreateRemoteCSE(p_resourceName, p_accessControlPolicyIds,p_cSEBase, p_cSE_ID)}
primitiveContent
:=
?
//{remoteCSE := m_contentCreateRemoteCSE(p_resourceName, p_accessControlPolicyIds,p_cSEBase, p_cSE_ID)}
};
};
...
...
This diff is collapsed.
Click to expand it.
OneM2M_Testcases.ttcn
+
25
−
10
View file @
1513114e
...
@@ -1001,33 +1001,48 @@ module OneM2M_Testcases {
...
@@ -1001,33 +1001,48 @@ module OneM2M_Testcases {
* @desc Check that the IUT accepts an AE registration (allowed App-ID, S-AE-ID-STEM not provided by AE)
* @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
A
eSimu system CseSystem {
testcase TC_CSE_REG_CRE_005() runs on
InCs
eSimu system CseSystem {
var RequestPrimitive v_request;
var RequestPrimitive v_request;
var integer v_cseBaseIndex := -1;
var integer v_cseBaseIndex := -1;
var ResourceType v_resourceType := int2;
var ResourceType v_resourceType := int2;
// Test component configuration
// Test component configuration
f_cf02Up();
f_cf02Up
CseSimuMaster
();
//Preambule
//Preambule
v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule({"S"});//c_CRUDNDi);
//v_cseBaseIndex := f_cse_preamble_createServiceSubscribedAppRule({"S"});//c_CRUDNDi);
vc_remoteCseIndex := f_cse_registrationRemoteCse(mw_createRemoteCSEBase);
//Test Body
//Test Body
v
_request := valueof(
m_createAe(PX_APP_ID, omit,
"C-AE-ID-STEM"
));
v
c_aeSimu.start(f_cse_createResource(int2,
m_createAe(PX_APP_ID, omit,
omit)
));
v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, v_cseBaseIndex);
//
v_request := f_getCreateRequestPrimitive(v_resourceType, v_request, v_cseBaseIndex);
mcaPort.send(m_request(v_request));
//mcaPort.send(m_request(v_request));
tc_ac.start;
alt{
[]mccPort.receive(mw_request(mw_createAEAnnc("/S", "CSE_ID", -))){
tc_ac.stop;
setverdict(pass, __SCOPE__ & ": AE creation redirected.");
}
[] mccPort.receive {
tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Error while creating AE");
}
[] tc_ac.timeout {
setverdict(fail, __SCOPE__ & ": No answer while creating AE");
}
}
vc_cseSimu.start(f_cse_receiveCreateRequest(mw_createAEAnnc(-, -, -)));
/*
vc_cseSimu.start(f_cse_receiveCreateRequest(mw_createAEAnnc(-, -, -)));
vc_cseSimu.done;
vc_cseSimu.done;
*/
// Postamble
// Postamble
f_cse_postamble_deleteResources();
f_cse_postamble_deleteResources
CSE
();
// Tear down
// Tear down
f_cf0
1
Down();
f_cf0
2
Down
CseSimuMaster
();
}
}
...
...
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