forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_BR_3.yaml
100 lines (81 loc) · 3.83 KB
/
Test_TC_BR_3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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: 3.1.3. [TC-BR-3] Changing name and state of a bridged device
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"Get the name of a bridged device: Read the NodeLabel attribute of the
Bridged Device Basic Information cluster on the applicable endpoint"
PICS: MCORE.BRIDGE && MCORE.BRIDGE.AllowDeviceRename
verification: |
Verify in TH Log
./chip-tool bridgeddevicebasic read node-label 1 3
[1657013337.140125][5753:5758] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0039 Attribute 0x0000_0005 DataVersion: 3293551312
[1657013337.140235][5753:5758] CHIP:TOO: NodeLabel: Light 1
disabled: true
- label:
"Using manufacturer provided means (i.e. NOT using Matter protocol),
update the name of this bridged device"
PICS: MCORE.BRIDGE && MCORE.BRIDGE.AllowDeviceRename
verification: |
Press b in bridge-app
b
[1657013342.067936][16436:16443] CHIP:DL: Device[Light 1]: New Name="Light 1b"
disabled: true
- label:
"Read the NodeLabel attribute of the Bridged Device Basic Information
cluster on the same endpoint as in 1a"
PICS: MCORE.BRIDGE && MCORE.BRIDGE.AllowDeviceRename
verification: |
Verify in TH Log
./chip-tool bridgeddevicebasic read node-label 1 3
[1657013347.277584][5759:5764] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0039 Attribute 0x0000_0005 DataVersion: 3293551313
[1657013347.277631][5759:5764] CHIP:TOO: NodeLabel: Light 1b
disabled: true
- label:
"Choose a bridged device for which the state can be changed through a
non-Matter interface (example: bridge manufacturer provides an app
which can change the state of the bridged devices, e.g. change a
lights brightness)"
PICS: MCORE.BRIDGE && MCORE.BRIDGE.OtherControl
verification: |
Choose on-off cluster
disabled: true
- label: "Read the state (e.g. on/off, brightness) of that bridged device"
PICS: MCORE.BRIDGE & MCORE.BRIDGE.OtherControl
verification: |
Verify in TH Log
./chip-tool onoff read on-off 1 3
[1657004565.254591][4804:4809] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 3808303316
[1657004565.254635][4804:4809] CHIP:TOO: OnOff: TRUE
disabled: true
- label:
'Change the state (e.g. on/off, brightness) of that bridged device
with this "other" interface.'
PICS: MCORE.BRIDGE & MCORE.BRIDGE.OtherControl
verification: |
Press c on bridge-app to change the state
disabled: true
- label: "Read the state of that bridged device again (as in 2b)"
PICS: MCORE.BRIDGE & MCORE.BRIDGE.OtherControl
verification: |
Verify in TH Log
./chip-tool onoff read on-off 1 3
[1657004454.213279][4792:4798] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_0006 Attribute 0x0000_0000 DataVersion: 3808303315
[1657004454.213319][4792:4798] CHIP:TOO: OnOff: FALSE
disabled: true