forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YAML for OpState TC 1.1. First draft. (project-chip#26769)
* YAML for OpState TC 1.1. First draft. * Address review comments: - copyright date - command id correction (should be pause=0, stop=1, start=2, resume=3) * Correct the PICS code and Command ID for Pause and Start * Restyled by whitespace * Restyled by prettier-yaml --------- Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
16ef279
commit b611144
Showing
1 changed file
with
138 additions
and
0 deletions.
There are no files selected for viewing
138 changes: 138 additions & 0 deletions
138
src/app/tests/suites/certification/Test_TC_OPSTATE_1_1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
# Copyright (c) 2023 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: xx.1.1. [TC-OPSTATE-1.1] Global attributes with server as DUT | ||
|
||
PICS: | ||
- OPSTATE.S | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "Operational State" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
arguments: | ||
values: | ||
- name: "nodeId" | ||
value: nodeId | ||
|
||
- label: "TH reads the ClusterRevision attribute from the DUT" | ||
PICS: OPSTATE.S.Afffd | ||
command: "readAttribute" | ||
attribute: "ClusterRevision" | ||
response: | ||
value: 1 | ||
constraints: | ||
type: int16u | ||
|
||
- label: "TH reads the FeatureMap attribute from the DUT" | ||
PICS: OPSTATE.S.Afffc | ||
command: "readAttribute" | ||
attribute: "FeatureMap" | ||
response: | ||
value: 0 | ||
constraints: | ||
type: bitmap32 | ||
|
||
- label: "TH reads the AttributeList attribute from the DUT" | ||
PICS: OPSTATE.S.Afffb | ||
command: "readAttribute" | ||
attribute: "AttributeList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: | ||
[0, 1, 3, 4, 5, 65528, 65529, 65530, 65531, 65532, 65533] | ||
|
||
- label: | ||
"TH reads from the DUT the optional attribute(CountdownTime) in the | ||
AttributeList from the DUT" | ||
PICS: OPSTATE.S.A0002 && OPSTATE.S.Afffb | ||
command: "readAttribute" | ||
attribute: "AttributeList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [2] | ||
|
||
- label: "TH reads from the DUT the EventList attribute." | ||
PICS: OPSTATE.S.Afffa | ||
command: "readAttribute" | ||
attribute: "EventList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0x00] | ||
|
||
- label: | ||
"TH reads from the DUT the optional event(OperationCompletion) in | ||
EventList." | ||
PICS: OPSTATE.S.E01 && OPSTATE.S.Afffa | ||
command: "readAttribute" | ||
attribute: "EventList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0x01] | ||
|
||
- label: "Read the optional command(Start) in AcceptedCommandList" | ||
PICS: OPSTATE.S.C02 && OPSTATE.S.Afff9 | ||
command: "readAttribute" | ||
attribute: "AcceptedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [1, 2] | ||
|
||
- label: "Read the optional command(Stop) in AcceptedCommandList" | ||
PICS: OPSTATE.S.C01 && OPSTATE.S.Afff9 | ||
command: "readAttribute" | ||
attribute: "AcceptedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [1] | ||
|
||
- label: "Read the optional command(Pause) in AcceptedCommandList" | ||
PICS: OPSTATE.S.C00 && OPSTATE.S.Afff9 | ||
command: "readAttribute" | ||
attribute: "AcceptedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0, 3] | ||
|
||
- label: "Read the optional command(Resume) in AcceptedCommandList" | ||
PICS: OPSTATE.S.C03 && OPSTATE.S.Afff9 | ||
command: "readAttribute" | ||
attribute: "AcceptedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0, 3] | ||
|
||
- label: "Read the global attribute: GeneratedCommandList" | ||
PICS: | ||
OPSTATE.S.Afff8 && (OPSTATE.S.C00 || OPSTATE.S.C01 || OPSTATE.S.C02 || | ||
OPSTATE.S.C03) | ||
command: "readAttribute" | ||
attribute: "GeneratedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [4] |