-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_CNET_4_14.yaml
265 lines (219 loc) · 10.1 KB
/
Test_TC_CNET_4_14.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# 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:
12.4.12. [TC-CNET-4.14] [Thread] Verification for ReorderNetwork command
[DUT-Server]
PICS:
- CNET.S.F01
config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
tests:
- label: "Preconditions"
verification: |
1. Commission TH and DUT on Thread setup on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET
2. The cluster Identifier 49 (0x0031) is present in the ServerList attribute
3. The FeatureMap attribute value is 2
4. MaxNetworks attribute value is at least 2 which is saved as 'MaxNetworksValue' for future use
disabled: true
- label:
"Step 1: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeco
nds set to 900"
verification: |
./chip-tool generalcommissioning arm-fail-safe 900 0 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 2: TH reads Networks attribute from the DUT and saves the number
of entries as 'NumNetworks'"
PICS: CNET.S.A0001
verification: |
./chip-tool network-commissioning read networks 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 3: TH calculates the number of remaining network slots as
'MaxNetworksValue' - 'NumNetworks' and saves as 'RemainingNetwor
kSlots'"
verification: |
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 4: TH calculates the midpoint of the network list as
floor(('MaxNetwor ksValue' + 1)/2) and saves as 'Midpoint'"
verification: |
./chip-tool networkcommissioning add-or-update-thread-network hex:1011101122222229 1 0 --Breadcrumb 1
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 5: TH sends ArmFailSafe command to the DUT with the
ExpiryLengthSeco nds field set to 900"
verification: |
./chip-tool generalcommissioning arm-fail-safe 900 0 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 5: TH sends AddOrUpdateThre adNetwork command to the DUT. This
step should be repeated 'RemainingNetwor kSlots' times using DIFFERENT
OperationalDatase t values and Breadcrumb set to 1. Note that these
credentials are NOT required to be connectable."
PICS: CNET.S.C03.Rsp && CNET.S.C05.Tx
verification: |
./chip-tool networkcommissioning add-or-update-thread-network hex:1011101122222229 1 0 --Breadcrumb 1
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 6: TH reads Networks attribute from the DUT and saves the list
as 'OriginalNetworkList'"
PICS: CNET.S.A0001
verification: |
./chip-tool networkcommissioning read networks 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 7: TH sends ReorderNetwo rk Command to the DUT with the
following fields: 1. NetworkID is the extended PAN ID of PIXIT.CNET
.THREAD_1 ST_OPERA TIONALDA TASET 2. NetworkIn dex is 'MaxNetwo
rksValue' 3. Breadcrum b is 2"
PICS: CNET.S.C08.Rsp && CNET.S.C05.Tx
verification: |
./chip-tool network-commissioning read networks 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 8: TH reads Breadcumb attribute from the General Commissioning
Cluster"
verification: |
./chip-tool generalcommissioning read breadcrumb 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 9: TH sends ReorderNetwo rk Command to the DUT with the
following fields: 1. NetworkID is a NetworkID value NOT present in
'OriginalNe tworkList' 2. NetworkIndex is 'Midpoint' 3. Breadcrum b is
2"
PICS: CNET.S.C08.Rsp && CNET.S.C05.Tx
verification: |
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 10: TH reads Breadcumb attribute from the General Commissioning
Cluster"
verification: |
./chip-tool generalcommissioning read breadcrumb 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 11: TH sends ReorderNetwo rk Command to the DUT with the
following fields: 1. NetworkID is the extended PAN ID of PIXIT.CNET
.THREAD_1 ST_OPERA TIONALDA TASET 2.NetworkIn dex is 'Midpoint' 3.
Breadcrum b is 2"
PICS: CNET.S.C08.Rsp && CNET.S.C05.Tx
verification: |
./chip-tool networkcommissioning reorder-network hex:1011101122222229 1 0 --Breadcrumb 1
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 12: TH reads Breadcumb attribute from the General Commissioning
Cluster"
verification: |
./chip-tool generalcommissioning read breadcrumb 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label: "Step 13: TH reads Networks attribute list from the DUT"
PICS: CNET.S.A0001
verification: |
./chip-tool network-commissioning read networks 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 14: TH sends ArmFailSafe command to the DUT with
ExpiryLengthSeco nds set to 0"
verification: |
./chip-tool generalcommissioning arm-fail-safe 0 0 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label: "Step 15: TH reads Networks attribute list from the DUT"
PICS: CNET.S.A0001
verification: |
./chip-tool network-commissioning read networks 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 16: TH sends ArmFailSafe command to the DUT with
ExpiryLengthSeco nds set to 900"
verification: |
./chip-tool generalcommissioning arm-fail-safe 900 0 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 17: TH sends AddOrUpdateThre adNetwork command to the DUT. This
step should be repeated 'RemainingNetwor kSlots' times using DIFFERENT
OperationalDatase t values and Breadcrumb set to 1. Note that these
credentials are NOT required to be connectable"
PICS: CNET.S.C03.Rsp && CNET.S.C05.Tx
verification: |
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 18: TH sends ReorderNetwo rk Command to the DUT with the
following fields: 1. NetworkID is the extended PAN ID of PIXIT.CNET
.THREAD_1 ST_OPERA TIONALDA TASET 2. NetworkIn dex is 'Midpoint' 3.
Breadcrum b is 2"
PICS: CNET.S.C08.Rsp && CNET.S.C05.Tx
verification: |
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label: "Step 19: TH sends the CommissioningCo mplete command to the DUT"
verification: |
./chip-tool generalcommissioning CommissioningComplete 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label:
"Step 20: TH sends ArmFailSafe command to the DUT with
ExpiryLengthSeco nds set to 0"
verification: |
./chip-tool generalcommissioning arm-fail-safe 0 0 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true
- label: "Step 21: TH reads Networks attribute list from the DUT"
PICS: CNET.S.A0001
verification: |
./chip-tool network-commissioning read networks 1 0
The test case is not verifiable in RPI platform. As MaxNetworks value is 1 but expected is 4
( Pre-Condition)
disabled: true