-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_DD_3_20.yaml
151 lines (131 loc) · 7.65 KB
/
Test_TC_DD_3_20.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# 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.3.20. [TC-DD-3.20] Commissioning Flow - Commission, Unpair and
Re-commission Device [DUT - Commissioner]
PICS:
- MCORE.ROLE.COMMISSIONER
- MCORE.DD.QR_COMMISSIONING
config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
tests:
- label: "Note"
verification: |
Chip-tool command used below are an example to verify the DUT as commissioner test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command.
disabled: true
- label: "Preconditions"
verification: |
1 - DUT is on an operational network and has accurate date, time, timezone, regulatory, and fabric information available.
2 - 5.1.3 - QR code is printed on the Commissionee device or in additional provided materials (ex: manual).
disabled: true
- label:
"Step 1: Place TH into commissioning mode using the TH manufacturers
means to be discovered by the DUT Commissioner"
verification: |
./chip-all-clusters-app --discriminator 3840
Verify on TH (All-cluster-app):
[1651109580.413197][31207:31207] CHIP:DL: Device Configuration:
[1651109580.413259][31207:31207] CHIP:DL: Serial Number: TEST_SN
[1651109580.413294][31207:31207] CHIP:DL: Vendor Id: 65521 (0xFFF1)
[1651109580.413327][31207:31207] CHIP:DL: Product Id: 32769 (0x8001)
[1651109580.413358][31207:31207] CHIP:DL: Hardware Version: 0
[1651109580.413380][31207:31207] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
[1651109580.413401][31207:31207] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
[1651109580.413428][31207:31207] CHIP:DL: Manufacturing Date: (not set)
[1651109580.413450][31207:31207] CHIP:DL: Device Type: 65535 (0xFFFF)
[1651109580.413470][31207:31207] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ====
[1651109580.413525][31207:31207] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00]
disabled: true
- label: "Step 2a: Scan THs QR code using the DUT Commissioner."
PICS: MCORE.DD.SCAN_QR_CODE
verification: |
1. Verify the QR code is scanned by DUT
Note: chip-tool does not support physically scanning QR codes
disabled: true
- label:
"Step 2b: DUT parses THs QR code. Follow any steps needed for the
Commissioner/Commissionee to complete the commissioning process over
the TH Commissionees method of device discovery"
verification: |
Verify on TH (All-cluster-app):
[1651109784.452770][31207:31207] CHIP:SVR: Commissioning completed successfully
[1651109784.452813][31207:31207] CHIP:DIS: Updating services using commissioning mode 0
Verify on DUT (Chip-tool):
./chip-tool pairing code 1 MT:-24J0AFN00KA0648G00
[1651109784376] [95553:65657838] CHIP: [CTL] Received CommissioningComplete response
[1651109784376] [95553:65657838] CHIP: [CTL] Successfully finished commissioning step 'SendComplete'
[1651109784376] [95553:65657838] CHIP: [CTL] Commissioning stage next step: 'SendComplete' -> 'Cleanup'
[1651109784376] [95553:65657838] CHIP: [CTL] Performing next commissioning step 'Cleanup'
[1651109784376] [95553:65657838] CHIP: [CTL] Successfully finished commissioning step 'Cleanup'
[1651109784376] [95553:65657838] CHIP: [TOO] Device commissioning completed with success
disabled: true
- label:
"Step 3: Using DUT Commissioner, unpair the TH Commissionee from the
Matter network."
verification: |
./chip-tool operationalcredentials remove-fabric 1 1 0
Verify on DUT (Chip-tool):
CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008
CHIP:TOO: NOCResponse: {
CHIP:TOO: statusCode: 0
CHIP:TOO: fabricIndex: 2
CHIP:TOO: }
CHIP:DMG: ICR moving to [AwaitingDe]
disabled: true
- label:
"Step 4: Place TH Commissionee back into commissioning mode using the
TH manufacturers means to be discovered by the DUT Commissioner"
verification: |
1. Place the TH into commissioning mode by launching the app again
./chip-all-clusters-app --discriminator 3840
Verify on TH (All-cluster-app):
[1651110721.112368][31791:31791] CHIP:DL: Device Configuration:
[1651110721.112448][31791:31791] CHIP:DL: Serial Number: TEST_SN
[1651110721.112501][31791:31791] CHIP:DL: Vendor Id: 65521 (0xFFF1)
[1651110721.112552][31791:31791] CHIP:DL: Product Id: 32769 (0x8001)
[1651110721.112597][31791:31791] CHIP:DL: Hardware Version: 0
[1651110721.112630][31791:31791] CHIP:DL: Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
[1651110721.112662][31791:31791] CHIP:DL: Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
[1651110721.112703][31791:31791] CHIP:DL: Manufacturing Date: (not set)
[1651110721.112737][31791:31791] CHIP:DL: Device Type: 65535 (0xFFFF)
[1651110721.112767][31791:31791] CHIP:-: ==== Onboarding payload for Standard Commissioning Flow ====
[1651110721.112838][31791:31791] CHIP:SVR: SetupQRCode: [MT:-24J0AFN00KA0648G00]
disabled: true
- label: "Step 5a: Scan THs QR code using the DUT Commissioner."
PICS: MCORE.DD.SCAN_QR_CODE
verification: |
1. Verify the QR code is scanned by DUT
Note: chip-tool does not support physically scanning QR codes
disabled: true
- label:
"Step 5b: DUT parses THs QR code. Follow any steps needed for the
Commissioner/Commissionee to complete the commissioning process over
the TH Commissionees method of device discovery"
verification: |
Verify on TH (All-cluster-app):
[1651110724.759825][31791:31791] CHIP:SVR: Commissioning completed successfully
[1651110724.759869][31791:31791] CHIP:DIS: Updating services using commissioning mode 0
Verify on DUT (Chip-tool):
./chip-tool pairing code 1 MT:-24J0AFN00KA0648G00
[1651110724689] [95810:65669790] CHIP: [CTL] Received CommissioningComplete response
[1651110724689] [95810:65669790] CHIP: [CTL] Successfully finished commissioning step 'SendComplete'
[1651110724689] [95810:65669790] CHIP: [CTL] Commissioning stage next step: 'SendComplete' -> 'Cleanup'
[1651110724689] [95810:65669790] CHIP: [CTL] Performing next commissioning step 'Cleanup'
[1651110724689] [95810:65669790] CHIP: [CTL] Successfully finished commissioning step 'Cleanup'
[1651110724689] [95810:65669790] CHIP: [TOO] Device commissioning completed with success
disabled: true