blob: 1fc5adcf73697ce89528b47d1ff5f61bc2c13d40 [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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
name: 80.1.2. [TC-MOD-1.2] Cluster attributes with server as DUT
PICS:
- MOD.S
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label: "TH reads the SupportedModes attribute from DUT"
PICS: MOD.S.A0002
verification: |
./chip-tool modeselect read supported-modes 1 1
Verify on TH(chip-tool) logs supported modes provides a list of mode, each mode should be a struct containing a label and All of these values should be no larger than 16 bits
[1654595167.600241][14362:14367] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 366231602
[1654595167.600345][14362:14367] CHIP:TOO: SupportedModes: 3 entries
[1654595167.600403][14362:14367] CHIP:TOO: [1]: {
[1654595167.600430][14362:14367] CHIP:TOO: Label: Black
[1654595167.600466][14362:14367] CHIP:TOO: Mode: 0
[1654595167.600495][14362:14367] CHIP:TOO: SemanticTags: 1 entries
[1654595167.600564][14362:14367] CHIP:TOO: [1]: {
[1654595167.600589][14362:14367] CHIP:TOO: MfgCode: 0
[1654595167.600612][14362:14367] CHIP:TOO: Value: 0
[1654595167.600637][14362:14367] CHIP:TOO: }
[1654595167.600662][14362:14367] CHIP:TOO: }
[1654595167.600695][14362:14367] CHIP:TOO: [2]: {
[1654595167.600719][14362:14367] CHIP:TOO: Label: Cappuccino
[1654595167.600742][14362:14367] CHIP:TOO: Mode: 4
[1654595167.600768][14362:14367] CHIP:TOO: SemanticTags: 1 entries
[1654595167.600796][14362:14367] CHIP:TOO: [1]: {
[1654595167.600820][14362:14367] CHIP:TOO: MfgCode: 0
[1654595167.600842][14362:14367] CHIP:TOO: Value: 0
[1654595167.600865][14362:14367] CHIP:TOO: }
[1654595167.600889][14362:14367] CHIP:TOO: }
[1654595167.600921][14362:14367] CHIP:TOO: [3]: {
[1654595167.600945][14362:14367] CHIP:TOO: Label: Espresso
[1654595167.600968][14362:14367] CHIP:TOO: Mode: 7
[1654595167.600993][14362:14367] CHIP:TOO: SemanticTags: 1 entries
[1654595167.601022][14362:14367] CHIP:TOO: [1]: {
[1654595167.601046][14362:14367] CHIP:TOO: MfgCode: 0
[1654595167.601068][14362:14367] CHIP:TOO: Value: 0
[1654595167.601091][14362:14367] CHIP:TOO: }
[1654595167.601115][14362:14367] CHIP:TOO: }
disabled: true
- label: "TH reads the CurrentMode attribute from the DUT"
PICS: MOD.S.A0003
verification: |
./chip-tool modeselect read current-mode 1 1
Verify on TH(chip-tool) logs ,current-mode value is in the list of modes from step 1
[1645776767.611140][4667:4672] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469718
[1645776767.611214][4667:4672] CHIP:TOO: CurrentMode: 0
disabled: true
- label: "TH reads the OnMode attribute from the DUT"
PICS: MOD.S.A0005
verification: |
./chip-tool modeselect read on-mode 1 1
Verify on TH(chip-tool) logs ,onmode value is listed in the supported modes or null is also acceptable
[1649676072.465968][10754:10759] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0005 DataVersion: 4277065072
[1649676072.466094][10754:10759] CHIP:TOO: OnMode: null
disabled: true
- label: "TH reads the StartUpMode attribute from the DUT"
PICS: MOD.S.A0004
verification: |
./chip-tool modeselect read start-up-mode 1 1
Verify on TH(chip-tool) logs ,start-up-mode value is in the list of modes from step 1
[1649677014.496348][10778:10784] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0004 DataVersion: 4277065072
[1649677014.496469][10778:10784] CHIP:TOO: StartUpMode: 0
disabled: true
- label: "TH reads the Description attribute from the DUT"
PICS: MOD.S.A0000
verification: |
./chip-tool modeselect read description 1 1
Verify on TH(chip-tool) logs , Description value has human readable text string
[1649677114.614974][10787:10792] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000 DataVersion: 4277065072
[1649677114.615110][10787:10792] CHIP:TOO: Description: Coffee
disabled: true
- label: "TH reads the StandardNamespace attribute from the DUT"
PICS: MOD.S.A0001
verification: |
./chip-tool modeselect read standard-namespace 1 1
Verify on TH(chip-tool) logs ,standard-namespace value is listed in the supported modes from step 1 or null is also acceptable
[1649677167.900539][10795:10801] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0001 DataVersion: 4277065072
[1649677167.900660][10795:10801] CHIP:TOO: StandardNamespace: 0
disabled: true