blob: 7f42572cfa428c24409a25bf1a244c76527aac52 [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: 98.2.1. [TC-FLABEL-2.1] Fixed Label cluster [DUT-server]
PICS:
- FLABEL.S
config:
nodeId: 0x12344321
cluster: "Fixed Label"
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 LabelList from the DUT"
PICS: FLABEL.S.A0000
command: "readAttribute"
attribute: "label list"
response:
constraints:
type: list
- label:
"TH tries to write LabelList attribute of the DUT by setting Label =
Test_Label, Value= Test_Value"
PICS: FLABEL.S.A0000
command: "writeAttribute"
attribute: "label list"
arguments:
value: [{ label: "Test_Label", value: "Test_Value" }]
response:
error: UNSUPPORTED_WRITE
- label: "TH reads LabelList from the DUT"
verification: |
./chip-tool fixedlabel read label-list 1 0
On TH(all-clusters-app) Verify that the LabelList value is same as value from step 1
[1651124649.820293][2819:2824] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0040 Attribute 0x0000_0000 DataVersion: 3688229931
[1651124649.820478][2819:2824] CHIP:TOO: label list: 4 entries
[1651124649.820534][2819:2824] CHIP:TOO: [1]: {
[1651124649.820570][2819:2824] CHIP:TOO: Label: room
[1651124649.820602][2819:2824] CHIP:TOO: Value: bedroom 2
[1651124649.820636][2819:2824] CHIP:TOO: }
[1651124649.820676][2819:2824] CHIP:TOO: [2]: {
[1651124649.820709][2819:2824] CHIP:TOO: Label: orientation
[1651124649.820741][2819:2824] CHIP:TOO: Value: North
[1651124649.820773][2819:2824] CHIP:TOO: }
[1651124649.820812][2819:2824] CHIP:TOO: [3]: {
[1651124649.820845][2819:2824] CHIP:TOO: Label: floor
[1651124649.820875][2819:2824] CHIP:TOO: Value: 2
[1651124649.820906][2819:2824] CHIP:TOO: }
[1651124649.820945][2819:2824] CHIP:TOO: [4]: {
[1651124649.820977][2819:2824] CHIP:TOO: Label: direction
[1651124649.821008][2819:2824] CHIP:TOO: Value: up
[1651124649.821039][2819:2824] CHIP:TOO: }
[1651124649.821193][2819:2824] CHIP:EM: Sending Standalone Ack for MessageCounter:2439070 on exchange 10798i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && FLABEL.S.A0000
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"