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
a1a029a0
Commit
a1a029a0
authored
7 years ago
by
acverdugo
Browse files
Options
Downloads
Plain Diff
Trigger RemoteCSE creation on f_cse_registrationRemoteCse
Fixed m_utCreateRemoteCSE Typo issues
parents
33d63291
c553fb27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LibOneM2M/OneM2M_Functions.ttcn
+1
-17
1 addition, 17 deletions
LibOneM2M/OneM2M_Functions.ttcn
OneM2M_Testcases_CSE.ttcn
+15
-16
15 additions, 16 deletions
OneM2M_Testcases_CSE.ttcn
with
16 additions
and
33 deletions
LibOneM2M/OneM2M_Functions.ttcn
+
1
−
17
View file @
a1a029a0
...
...
@@ -2749,28 +2749,12 @@ module OneM2M_Functions {
group
CommonFunctions
{
/**
* @desc Boolean to charstring
* @param p_bool
* @verdict
*/
function
f_bool2str
(
in
boolean
p_bool
)
runs
on
Tester
return
charstring
{
var
charstring
v_bool
;
if
(
p_bool
){
v_bool
:=
"true"
;
}
else
{
v_bool
:=
"false"
;
}
return
v_bool
;
}
/**
* @desc Sending of an Adapter Control primitive
* @param event Action to be performed by TA
* @param data Corresponding information for the correct execution of the given action
* @verdict
*/
function
f_checkAeSimuStatus
()
runs
on
AeSimu
{
if
(
getverdict
!=
pass
)
{
...
...
This diff is collapsed.
Click to expand it.
OneM2M_Testcases_CSE.ttcn
+
15
−
16
View file @
a1a029a0
...
...
@@ -3028,11 +3028,11 @@ module OneM2M_Testcases_CSE {
testcase TC_CSE_REG_UPD_003_ET() runs on Tester system CseSystem {
// Local variables
var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;
var Attribute
Aux
c_optionalAttribute;
var Attribute
List
c_optionalAttribute;
var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
v_updateRequest.primitiveContent.remoteCSE.expirationTime := "20301231T012345";
c_optionalAttribute := {"expirationTime"
, valueof(v_updateRequest).primitiveContent.remoteCSE.expirationTime
};
c_optionalAttribute := {"expirationTime"};
v_cse1.start(f_CSE_REG_UPD_003(v_updateRequest, c_optionalAttribute));
v_cse1.done;
...
...
@@ -3042,11 +3042,11 @@ module OneM2M_Testcases_CSE {
testcase TC_CSE_REG_UPD_003_LBL() runs on Tester system CseSystem {
// Local variables
var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;
var Attribute
Aux
c_optionalAttribute;
var Attribute
List
c_optionalAttribute;
var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
v_updateRequest.primitiveContent.remoteCSE.labels := {"MyLabel"};
c_optionalAttribute := {"labels"
, valueof(v_updateRequest).primitiveContent.remoteCSE.labels[0]
};
c_optionalAttribute := {"labels"};
v_cse1.start(f_CSE_REG_UPD_003(v_updateRequest, c_optionalAttribute));
v_cse1.done;
...
...
@@ -3056,11 +3056,11 @@ module OneM2M_Testcases_CSE {
testcase TC_CSE_REG_UPD_003_POA() runs on Tester system CseSystem {
// Local variables
var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;
var Attribute
Aux
c_optionalAttribute;
var Attribute
List
c_optionalAttribute;
var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
v_updateRequest.primitiveContent.remoteCSE.pointOfAccess := {"http://" & PX_CSE1_ADDRESS & "/"};
c_optionalAttribute := {"pointofAccess"
, valueof(v_updateRequest).primitiveContent.remoteCSE.pointOfAccess[0]
};
c_optionalAttribute := {"pointofAccess"};
v_cse1.start(f_CSE_REG_UPD_003(v_updateRequest, c_optionalAttribute));
v_cse1.done;
...
...
@@ -3070,11 +3070,11 @@ module OneM2M_Testcases_CSE {
testcase TC_CSE_REG_UPD_003_NL() runs on Tester system CseSystem {
// Local variables
var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;
var Attribute
Aux
c_optionalAttribute;
var Attribute
List
c_optionalAttribute;
var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
v_updateRequest.primitiveContent.remoteCSE.nodeLink := c_defaultNodeID;
c_optionalAttribute := {"nodeLink"
, valueof(v_updateRequest).primitiveContent.remoteCSE.nodeLink
};
c_optionalAttribute := {"nodeLink"};
v_cse1.start(f_CSE_REG_UPD_003(v_updateRequest, c_optionalAttribute));
v_cse1.done;
...
...
@@ -3084,26 +3084,25 @@ module OneM2M_Testcases_CSE {
testcase TC_CSE_REG_UPD_003_RR() runs on Tester system CseSystem {
// Local variables
var template RequestPrimitive v_updateRequest := m_updateRemoteCSEBase;
var Attribute
Aux
c_optionalAttribute;
var Attribute
List
c_optionalAttribute;
var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
v_updateRequest.primitiveContent.remoteCSE.requestReachability := true;
c_optionalAttribute := {"requestReachability"
, f_bool2str(valueof(v_updateRequest).primitiveContent.remoteCSE.requestReachability)
};
c_optionalAttribute := {"requestReachability"};
v_cse1.start(f_CSE_REG_UPD_003(v_updateRequest, c_optionalAttribute));
v_cse1.done;
}
function f_CSE_REG_UPD_003(template RequestPrimitive p_requestPrimitive, in Attribute
Aux
p_
A
ttribute) runs on CseSimu {
function f_CSE_REG_UPD_003(template RequestPrimitive p_requestPrimitive, in Attribute
List
p_
a
ttribute) runs on CseSimu {
// Local variables
//Local variables
var MsgIn v_response;
var RequestPrimitive v_request;
var ResourceType v_resourceType := int16; //remoteCSE
var template UtTriggerPrimitive v_utRequest := m_utCreateRemoteCSE;
var charstring v_action := __SCOPE__ & ":" & " Please, send a valid RETRIEVE Request containing To set to " & PX_CSE1_ADDRESS & " and Content containing remoteCSE resource containing attribute " & p_Attribute.name & " set to " & p_Attribute.value_;
var charstring v_action := __SCOPE__ & ":" & " Please, send a valid RETRIEVE Request containing To set to " & PX_CSE1_ADDRESS & " and Content containing remoteCSE resource containing a valid attribute " & p_attribute[0];
// Test control
if(not(PICS_MN_CSE)) {
setverdict(inconc, __SCOPE__ & ": IUT shall be MN-CSE to run this test case");
...
...
@@ -3131,7 +3130,7 @@ module OneM2M_Testcases_CSE {
alt {
[] mccPort.receive(mw_response(mw_responsePrimitive(int2004, f_getTemplateFromPrimitiveContent(v_request.primitiveContent)))) -> value v_response {
tc_ac.stop;
setverdict(pass, __SCOPE__ & ": Accepted updation for resource type remoteCSE containing attribute " & p_
A
ttribute
.name
);
setverdict(pass, __SCOPE__ & ": Accepted updation for resource type remoteCSE containing attribute " & p_
a
ttribute
[0]
);
f_setResource(v_request.primitiveContent,int16);
}
[] mccPort.receive(mw_response(mw_responsePrimitiveOK(f_getTemplateFromPrimitiveContent(v_request.primitiveContent)))) -> value v_response {
...
...
@@ -3141,12 +3140,12 @@ module OneM2M_Testcases_CSE {
}
[] mccPort.receive(mw_response(mw_responsePrimitiveOK)) -> value v_response {
tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Accepted updation for resource type remoteCSE without containing attribute " & p_
A
ttribute
.name
);
setverdict(fail, __SCOPE__ & ": Accepted updation for resource type remoteCSE without containing attribute " & p_
a
ttribute
[0]
);
f_setResource(v_request.primitiveContent,int16);
}
[] mccPort.receive(mw_response(mw_responsePrimitiveKO)) -> value v_response {
tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Rejected updation of resource type remoteCSE containing attribute" & p_
A
ttribute
.name
);
setverdict(fail, __SCOPE__ & ": Rejected updation of resource type remoteCSE containing attribute" & p_
a
ttribute
[0]
);
}
[] tc_ac.timeout {
setverdict(fail, __SCOPE__ & ": No answer while updating resource type remoteCSE");
...
...
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