blob: e57e5b424496a8d1d0bc792a908eaee2531a6754 [file] [log] [blame]
# 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: 3.3.1. [TC-OO-3.1] Attributes with client as DUT
PICS:
- OO.C
- OO.C.AM-READ
- OO.C.AO-READ
- OO.C.AM-WRITE
- OO.C.AO-WRITE
config:
nodeId: 0x12344321
cluster: "On/Off"
endpoint: 1
tests:
#- label: "Wait for the device to be commissioned"
# cluster: "DelayCommands"
# command: "WaitForCommissioning"
- label: "Read attribute OnOff"
wait: "readAttribute"
attribute: "OnOff"
- label: "Read attribute GlobalSceneControl"
wait: "readAttribute"
attribute: "GlobalSceneControl"
- label: "Read attribute OnTime"
wait: "readAttribute"
attribute: "OnTime"
- label: "Read attribute OffWaitTime"
wait: "readAttribute"
attribute: "OffWaitTime"
- label: "Read attribute StartUpOnOff"
wait: "readAttribute"
attribute: "StartUpOnOff"
- label: "Write attribute OnTime"
wait: "writeAttribute"
attribute: "OnTime"
arguments:
value:
- label: "Write attribute OffWaitTime"
wait: "writeAttribute"
attribute: "OffWaitTime"
arguments:
value:
- label: "Write attribute StartUpOnOff"
wait: "writeAttribute"
attribute: "StartUpOnOff"
arguments:
value:
- label:
"Configure TH such that it implements mandatory and none of the
optional attributes of the server-side of the cluster, and that it
also reflects this in global attributes such as FeatureMap and
AttributeList.Commission DUT to TH again"
verification: |
Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client)
./chip-tool onoff read attribute-list 1 1
Verify the " attribute-list response" on the TH (all-cluster-minimal-app) log:
[1676891564.236044][13681:13681] CHIP:DMG: }
[1676891564.236047][13681:13681] CHIP:DMG:
[1676891564.236099][13681:13681] CHIP:DMG: ReportDataMessage =
[1676891564.236103][13681:13681] CHIP:DMG: {
[1676891564.236105][13681:13681] CHIP:DMG: AttributeReportIBs =
[1676891564.236111][13681:13681] CHIP:DMG: [
[1676891564.236114][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236120][13681:13681] CHIP:DMG: {
[1676891564.236123][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236127][13681:13681] CHIP:DMG: {
[1676891564.236131][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236135][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236139][13681:13681] CHIP:DMG: {
[1676891564.236144][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236148][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236153][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236157][13681:13681] CHIP:DMG: }
[1676891564.236162][13681:13681] CHIP:DMG:
[1676891564.236166][13681:13681] CHIP:DMG: Data = [
[1676891564.236170][13681:13681] CHIP:DMG:
[1676891564.236175][13681:13681] CHIP:DMG: ],
[1676891564.236179][13681:13681] CHIP:DMG: },
[1676891564.236184][13681:13681] CHIP:DMG:
[1676891564.236188][13681:13681] CHIP:DMG: },
[1676891564.236195][13681:13681] CHIP:DMG:
[1676891564.236199][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236205][13681:13681] CHIP:DMG: {
[1676891564.236208][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236212][13681:13681] CHIP:DMG: {
[1676891564.236216][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236220][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236225][13681:13681] CHIP:DMG: {
[1676891564.236229][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236233][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236238][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236243][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236247][13681:13681] CHIP:DMG: }
[1676891564.236252][13681:13681] CHIP:DMG:
[1676891564.236257][13681:13681] CHIP:DMG: Data = 0,
[1676891564.236260][13681:13681] CHIP:DMG: },
[1676891564.236266][13681:13681] CHIP:DMG:
[1676891564.236269][13681:13681] CHIP:DMG: },
[1676891564.236277][13681:13681] CHIP:DMG:
[1676891564.236280][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236286][13681:13681] CHIP:DMG: {
[1676891564.236290][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236294][13681:13681] CHIP:DMG: {
[1676891564.236299][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236306][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236314][13681:13681] CHIP:DMG: {
[1676891564.236321][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236330][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236337][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236344][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236348][13681:13681] CHIP:DMG: }
[1676891564.236354][13681:13681] CHIP:DMG:
[1676891564.236358][13681:13681] CHIP:DMG: Data = 65528,
[1676891564.236362][13681:13681] CHIP:DMG: },
[1676891564.236367][13681:13681] CHIP:DMG:
[1676891564.236372][13681:13681] CHIP:DMG: },
[1676891564.236380][13681:13681] CHIP:DMG:
[1676891564.236384][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236389][13681:13681] CHIP:DMG: {
[1676891564.236393][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236400][13681:13681] CHIP:DMG: {
[1676891564.236407][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236414][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236421][13681:13681] CHIP:DMG: {
[1676891564.236427][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236433][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236439][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236445][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236450][13681:13681] CHIP:DMG: }
[1676891564.236457][13681:13681] CHIP:DMG:
[1676891564.236463][13681:13681] CHIP:DMG: Data = 65529,
[1676891564.236468][13681:13681] CHIP:DMG: },
[1676891564.236475][13681:13681] CHIP:DMG:
[1676891564.236480][13681:13681] CHIP:DMG: },
[1676891564.236491][13681:13681] CHIP:DMG:
[1676891564.236495][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236503][13681:13681] CHIP:DMG: {
[1676891564.236507][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236513][13681:13681] CHIP:DMG: {
[1676891564.236518][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236523][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236529][13681:13681] CHIP:DMG: {
[1676891564.236534][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236540][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236546][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236551][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236557][13681:13681] CHIP:DMG: }
[1676891564.236563][13681:13681] CHIP:DMG:
[1676891564.236569][13681:13681] CHIP:DMG: Data = 65530,
[1676891564.236574][13681:13681] CHIP:DMG: },
[1676891564.236581][13681:13681] CHIP:DMG:
[1676891564.236586][13681:13681] CHIP:DMG: },
[1676891564.236596][13681:13681] CHIP:DMG:
[1676891564.236601][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236609][13681:13681] CHIP:DMG: {
[1676891564.236614][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236619][13681:13681] CHIP:DMG: {
[1676891564.236624][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236629][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236635][13681:13681] CHIP:DMG: {
[1676891564.236640][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236646][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236652][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236658][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236663][13681:13681] CHIP:DMG: }
[1676891564.236670][13681:13681] CHIP:DMG:
[1676891564.236675][13681:13681] CHIP:DMG: Data = 65531,
[1676891564.236681][13681:13681] CHIP:DMG: },
[1676891564.236688][13681:13681] CHIP:DMG:
[1676891564.236693][13681:13681] CHIP:DMG: },
[1676891564.236706][13681:13681] CHIP:DMG:
[1676891564.236711][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236720][13681:13681] CHIP:DMG: {
[1676891564.236728][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236736][13681:13681] CHIP:DMG: {
[1676891564.236743][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236749][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236757][13681:13681] CHIP:DMG: {
[1676891564.236765][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236772][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236780][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236787][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236793][13681:13681] CHIP:DMG: }
[1676891564.236802][13681:13681] CHIP:DMG:
[1676891564.236810][13681:13681] CHIP:DMG: Data = 65532,
[1676891564.236816][13681:13681] CHIP:DMG: },
[1676891564.236825][13681:13681] CHIP:DMG:
[1676891564.236832][13681:13681] CHIP:DMG: },
[1676891564.236846][13681:13681] CHIP:DMG:
[1676891564.236851][13681:13681] CHIP:DMG: AttributeReportIB =
[1676891564.236858][13681:13681] CHIP:DMG: {
[1676891564.236863][13681:13681] CHIP:DMG: AttributeDataIB =
[1676891564.236868][13681:13681] CHIP:DMG: {
[1676891564.236875][13681:13681] CHIP:DMG: DataVersion = 0x1b431685,
[1676891564.236883][13681:13681] CHIP:DMG: AttributePathIB =
[1676891564.236890][13681:13681] CHIP:DMG: {
[1676891564.236897][13681:13681] CHIP:DMG: Endpoint = 0x1,
[1676891564.236903][13681:13681] CHIP:DMG: Cluster = 0x6,
[1676891564.236911][13681:13681] CHIP:DMG: Attribute = 0x0000_FFFB,
[1676891564.236918][13681:13681] CHIP:DMG: ListIndex = Null,
[1676891564.236926][13681:13681] CHIP:DMG: }
[1676891564.236936][13681:13681] CHIP:DMG:
[1676891564.236942][13681:13681] CHIP:DMG: Data = 65533,
[1676891564.236947][13681:13681] CHIP:DMG: },
[1676891564.236955][13681:13681] CHIP:DMG:
[1676891564.236959][13681:13681] CHIP:DMG: },
[1676891564.236967][13681:13681] CHIP:DMG:
[1676891564.236971][13681:13681] CHIP:DMG: ],
[1676891564.236999][13681:13681] CHIP:DMG:
[1676891564.237003][13681:13681] CHIP:DMG: SuppressResponse = true,
[1676891564.237008][13681:13681] CHIP:DMG: InteractionModelRevision = 1
[1676891564.237012][13681:13681] CHIP:DMG: }
./chip-tool onoff read feature-map 1 1
Verify the " feature-map response" on the TH (all-cluster-minimal-app) log:
[1666943673.928358][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943673.928360][12769:12769] CHIP:DMG: {
[1666943673.928362][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943673.928367][12769:12769] CHIP:DMG: [
[1666943673.928369][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943673.928374][12769:12769] CHIP:DMG: {
[1666943673.928376][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943673.928379][12769:12769] CHIP:DMG: {
[1666943673.928382][12769:12769] CHIP:DMG: DataVersion = 0xfcb17157,
[1666943673.928385][12769:12769] CHIP:DMG: AttributePathIB =
[1666943673.928388][12769:12769] CHIP:DMG: {
[1666943673.928392][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943673.928395][12769:12769] CHIP:DMG: Cluster = 0x6,
[1666943673.928398][12769:12769] CHIP:DMG: Attribute = 0x0000_FFFC,
[1666943673.928401][12769:12769] CHIP:DMG: }
[1666943673.928404][12769:12769] CHIP:DMG:
[1666943673.928407][12769:12769] CHIP:DMG: Data = 0,
[1666943673.928410][12769:12769] CHIP:DMG: },
[1666943673.928413][12769:12769] CHIP:DMG:
[1666943673.928416][12769:12769] CHIP:DMG: },
[1666943673.928419][12769:12769] CHIP:DMG:
[1666943673.928422][12769:12769] CHIP:DMG: ],
[1666943673.928425][12769:12769] CHIP:DMG:
[1666943673.928428][12769:12769] CHIP:DMG: SuppressResponse = true,
[1666943673.928430][12769:12769] CHIP:DMG: InteractionModelRevision = 1
[1666943673.928432][12769:12769] CHIP:DMG: }
./chip-tool onoff read on-off 1 1
Verify the " on-off response" on the TH (all-cluster-minimal-app) log:
[1666943688.655282][12769:12769] CHIP:DMG: ReportDataMessage =
[1666943688.655285][12769:12769] CHIP:DMG: {
[1666943688.655286][12769:12769] CHIP:DMG: AttributeReportIBs =
[1666943688.655290][12769:12769] CHIP:DMG: [
[1666943688.655291][12769:12769] CHIP:DMG: AttributeReportIB =
[1666943688.655294][12769:12769] CHIP:DMG: {
[1666943688.655296][12769:12769] CHIP:DMG: AttributeDataIB =
[1666943688.655299][12769:12769] CHIP:DMG: {
[1666943688.655301][12769:12769] CHIP:DMG: DataVersion = 0xfcb17157,
[1666943688.655303][12769:12769] CHIP:DMG: AttributePathIB =
[1666943688.655305][12769:12769] CHIP:DMG: {
[1666943688.655307][12769:12769] CHIP:DMG: Endpoint = 0x1,
[1666943688.655309][12769:12769] CHIP:DMG: Cluster = 0x6,
[1666943688.655312][12769:12769] CHIP:DMG: Attribute = 0x0000_0000,
[1666943688.655314][12769:12769] CHIP:DMG: }
[1666943688.655316][12769:12769] CHIP:DMG:
[1666943688.655319][12769:12769] CHIP:DMG: Data = false,
[1666943688.655321][12769:12769] CHIP:DMG: },
[1666943688.655323][12769:12769] CHIP:DMG:
[1666943688.655325][12769:12769] CHIP:DMG: },
[1666943688.655328][12769:12769] CHIP:DMG:
[1666943688.655330][12769:12769] CHIP:DMG: ],
[1666943688.655333][12769:12769] CHIP:DMG:
[1666943688.655335][12769:12769] CHIP:DMG: SuppressResponse = true,
[1666943688.655336][12769:12769] CHIP:DMG: InteractionModelRevision = 1
[1666943688.655338][12769:12769] CHIP:DMG: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"DUT reads all supported optional attributes from TH one at a time in
a manufacturer specific order"
verification: |
./chip-tool onoff read global-scene-control 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
./chip-tool onoff read on-time 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
./chip-tool onoff read off-wait-time 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
./chip-tool onoff read start-up-on-off 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"DUT writes a suitable value to all supported optional attributes on
the TH one at a time in a manufacturer specific order"
verification: |
./chip-tool onoff write on-time 1 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
./chip-tool onoff write off-wait-time 22 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
./chip-tool onoff write start-up-on-off 2 1 1
on TH all-clusters-minimal-app verify status response a UNSUPPORTED_ATTRIBUTE
General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"