| # 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: Window Covering [TC-WNCV-1.1] Global attributes with server as DUT |
| |
| PICS: |
| - WNCV.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Window Covering" |
| endpoint: 1 |
| |
| tests: |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| ### MANDATORY GLOBAL Attributes |
| ### Attribute[0xFFFD]: ClusterRevision ======================================= |
| - label: "TH reads from the DUT the (0xFFFD) ClusterRevision attribute" |
| PICS: WNCV.S.Afffd |
| command: "readAttribute" |
| attribute: "ClusterRevision" |
| response: |
| value: 5 |
| constraints: |
| type: int16u |
| minValue: 5 |
| maxValue: 200 |
| |
| - label: "TH reads from the DUT the (0xFFFC) FeatureMap attribute" |
| PICS: WNCV.S.Afffc |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| minValue: 0 |
| maxValue: 32768 |
| |
| - label: "TH reads from the DUT the (0xFFFB) AttributeList attribute" |
| PICS: WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [0, 7, 10, 13, 23, 65528, 65529, 65531, 65532, 65533] |
| |
| - label: "TH reads optional attribute(SafetyStatus) in AttributeList" |
| PICS: WNCV.S.Afffb && WNCV.S.A001a |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [26] |
| |
| - label: |
| "Read the Feature dependent(WNCV.S.F00 & WNCV.S.F02 & WNCV.S.F03) |
| attribute in AttributeList" |
| PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.F03 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [1, 3, 16, 17] |
| |
| - label: |
| "Read the Feature dependent(WNCV.S.F01 & WNCV.S.F04 & WNCV.S.F03) |
| attribute in AttributeList" |
| PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.F03 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [2, 4, 18, 19] |
| |
| - label: "Read the Feature dependent(WNCV.S.F00) attribute in AttributeList" |
| PICS: WNCV.S.F00 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [5] |
| |
| - label: "Read the Feature dependent(WNCV.S.F00) attribute in AttributeList" |
| PICS: WNCV.S.F00 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [6] |
| |
| - label: "Read the Feature dependent(WNCV.S.F01) attribute in AttributeList" |
| PICS: WNCV.S.F01 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [6] |
| |
| - label: |
| "Read the Feature dependent(WNCV.S.F00 & WNCV.S.F02 ) attribute in |
| AttributeList" |
| PICS: WNCV.S.F00 && WNCV.S.F00 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [8, 11, 14] |
| |
| - label: |
| "Read the Feature dependent(WNCV.S.F01 & WNCV.S.F04 ) attribute in |
| AttributeList" |
| PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.Afffb |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [9, 12, 15] |
| |
| - label: "TH reads from the DUT the (0xFFF9) AcceptedCommandList attribute" |
| PICS: WNCV.S.Afff9 |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [0, 1, 2] |
| |
| - label: "TH reads from the DUT the (0xFFF8) GeneratedCommandList attribute" |
| PICS: WNCV.S.Afff8 |
| command: "readAttribute" |
| attribute: "GeneratedCommandList" |
| response: |
| value: [] |
| constraints: |
| type: list |
| |
| #issue #15011 disabled steps below Global attributes missing from YAML framework |
| - label: "TH reads from the DUT the (0xFFFA) EventList attribute" |
| verification: | |
| Not implemented in chip-tool |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_USER_PROMPT && WNCV.S.Afffa |
| arguments: |
| values: |
| - name: "message" |
| value: "Please enter 'y' for success" |
| - name: "expectedValue" |
| value: "y" |