Skip to content

Commit

Permalink
Modified tests Feb 07 (#14836)
Browse files Browse the repository at this point in the history
* Modified testcases
1.TC-DIAG-TH-NW-1.1
2.TC-MC-1.1
3.TC-OCC-1.1
4.TC-TM-1.1
5.TC-TSTAT-2.1

* Adding auto generated files
  • Loading branch information
ManjunathRA authored and pull[bot] committed Dec 19, 2023
1 parent 10da702 commit 1556852
Show file tree
Hide file tree
Showing 10 changed files with 282 additions and 743 deletions.
2 changes: 1 addition & 1 deletion examples/chip-tool/templates/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function getTests()
];

const ThreadNetworkDiagnostics = [
'Test_TC_DIAGTH_1_1',
'Test_TC_DIAG_TH_NW_1_1',
];

const WiFiNetworkDiagnostics = [
Expand Down
116 changes: 0 additions & 116 deletions src/app/tests/suites/certification/Test_TC_DIAGTH_1_1.yaml

This file was deleted.

33 changes: 33 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DIAG_TH_NW_1_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: 51.1. TC-DIAG-TH_NW-1.1 ResetCounts Command[DUT Server]

config:
cluster: "Thread Network Diagnostics"
endpoint: 0

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"

- label: "Sends ResetCounts command"
command: "ResetCounts"

- label: "Read the Overruncount attribute"
command: "readAttribute"
attribute: "OverrunCount"
response:
value: 0
2 changes: 0 additions & 2 deletions src/app/tests/suites/certification/Test_TC_MC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ tests:
command: "WaitForCommissionee"

- label: "read the global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
Expand All @@ -48,7 +47,6 @@ tests:
error: UNSUPPORTED_WRITE

- label: "reads back global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
Expand Down
7 changes: 4 additions & 3 deletions src/app/tests/suites/certification/Test_TC_OCC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ tests:

#issue #12190 as per spec default value is 3 but expecting 2
- label: "read the global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 2
value: 3

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
Expand All @@ -43,7 +44,7 @@ tests:
command: "writeAttribute"
attribute: "ClusterRevision"
arguments:
value: 2
value: 3
response:
error: UNSUPPORTED_WRITE

Expand All @@ -52,7 +53,7 @@ tests:
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 2
value: 3

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand Down
8 changes: 5 additions & 3 deletions src/app/tests/suites/certification/Test_TC_TM_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ tests:

#issue #12190 as per spec default value is 4 but expecting 3
- label: "read the global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 3
value: 4

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
Expand All @@ -43,15 +44,16 @@ tests:
command: "writeAttribute"
attribute: "ClusterRevision"
arguments:
value: 3
value: 4
response:
error: UNSUPPORTED_WRITE

- label: "reads back global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 3
value: 4

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand Down
Loading

0 comments on commit 1556852

Please sign in to comment.