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
e3b58f9c
Commit
e3b58f9c
authored
8 years ago
by
Axel Rennoch
Browse files
Options
Downloads
Patches
Plain Diff
updates due to issues
#4
and
#5
parent
2c245cc4
No related branches found
No related tags found
1 merge request
!25
Ae fixes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
OneM2M_Testcases.ttcn
+8
-6
8 additions, 6 deletions
OneM2M_Testcases.ttcn
with
8 additions
and
6 deletions
OneM2M_Testcases.ttcn
+
8
−
6
View file @
e3b58f9c
...
...
@@ -4274,7 +4274,9 @@ module OneM2M_Testcases {
// Preamble
v_aeIndex
:=
f_cse_preamble_registerAe
();
//c_CRUDNDi
v_resourceIndex
:=
f_cse_createResource
(
int9
,
v_createRequest
,
v_aeIndex
);
//v_resourceIndex := f_cse_createResource(int9, v_createRequest, v_aeIndex); // not used anymore -> Issue #4
v_request
:=
f_getCreateRequestPrimitive
(
int9
,
v_createRequest
,
v_aeIndex
);
// Test Body
...
...
@@ -4742,7 +4744,7 @@ module OneM2M_Testcases {
var
integer
v_aeIndex
:=
-
1
;
var
integer
v_resourceIndex
:=
-
1
;
var
template
RequestPrimitive
v_createRequest
:=
m_createGroupBase
;
var
ResponsePrimitive
.
primitiveContent
v_responsePrimitive
;
//
var ResponsePrimitive.primitiveContent v_responsePrimitive;
// not used anymore -> issue #5
// Test control
...
...
@@ -4766,18 +4768,18 @@ module OneM2M_Testcases {
setverdict
(
pass
,
testcasename
()
&
": Resource created successfuly"
);
// check for memberTypeValidated
if
(
not
ispresent
(
v_response
Primitive
.
any_1
[
0
].
Group_optional
.
memberTypeValidated
)){
if
(
not
ispresent
(
v_response
.
primitive
.
responsePrimitive
.
primitiveContent
.
any_1
[
0
].
Group_optional
.
memberTypeValidated
)){
setverdict
(
fail
,
testcasename
(),
": Error, memberTypeValidated attribute not provided"
);
}
else
{
if
(
v_response
Primitive
.
any_1
[
0
].
Group_optional
.
memberTypeValidated
==
false
){
if
(
v_response
.
primitive
.
responsePrimitive
.
primitiveContent
.
any_1
[
0
].
Group_optional
.
memberTypeValidated
==
false
){
setverdict
(
fail
,
testcasename
(),
": Error, memberTypeValidated attribute not correct"
);
}
}
// check for membersId
if
(
not
ispresent
(
v_response
Primitive
.
any_1
[
0
].
Group_optional
.
memberIDs
)){
if
(
not
ispresent
(
v_response
.
primitive
.
responsePrimitive
.
primitiveContent
.
any_1
[
0
].
Group_optional
.
memberIDs
)){
setverdict
(
fail
,
testcasename
(),
": Error, memberIDs attribute not provided"
);
}
else
{
if
(
v_response
Primitive
.
any_1
[
0
].
Group_optional
.
memberIDs
[
0
]
!=
c_memberRessourceAddress1
){
if
(
v_response
.
primitive
.
responsePrimitive
.
primitiveContent
.
any_1
[
0
].
Group_optional
.
memberIDs
[
0
]
!=
c_memberRessourceAddress1
){
setverdict
(
fail
,
testcasename
(),
": Error, memberTypeValidated attribute not correct"
);
}
}
...
...
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