-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_CNET_4_13.yaml
275 lines (226 loc) · 10.5 KB
/
Test_TC_CNET_4_13.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
266
267
268
269
270
271
272
273
274
275
# 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.11. [TC-CNET-4.13] [WiFi] Verification for ReorderNetwork command
[DUT-Server]
PICS:
- CNET.S.F00
config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
tests:
- label: "Preconditions"
verification: |
1. Commission TH and DUT over BLE to setup the Wi-Fi on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
2. The cluster Identifier 49 (0x0031) is present in the ServerList attribute
3. The FeatureMap attribute value is 1
4. MaxNetworks attribute value is at least 2 which is saved as 'MaxNetworksValue' for future use
disabled: true
- label: "Commission TH and DUT over BLE to setup the Wi-Fi"
verification: |
disabled: true
- label:
"Step 1: TH sendsArmFailSafecommand to theDUT withExpiryLengthSeconds
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 readsNetworksattribute from theDUT and saves thenumber 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 thenumber ofremainingnetwork slots
as'MaxNetworksValue' -'NumNetworks'and saves as'RemainingNetworkSlots'"
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: TH1 sends AddOrUpdateWiFiNetwork command to the DUT with SSID
argument value as 'Userwifi_ssid2', Credentials argument value as
'Userwifi_Credentials' and Breadcrumb argument value as 1"
verification: |
./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivate092010 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 4: TH calculates the midpoint of the network list as
floor(('MaxNetwor ksValue' + 1)/2) and saves as 'Midpoint'"
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 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 2: TH sendsAddOrUpdateWiFiNetworkcommand to theDUT. This
stepshould be repeated'RemainingNetworkSlots' times usingDIFFERENT
SSIDand credentialvalues and theBreadcrumb fieldset to 1. Note
thatthese credentialsare NOT requiredto be connectable."
PICS: CNET.S.C02.Rsp && CNET.S.C05.Tx
verification: |
./chip-tool networkcommissioning add-or-update-wi-fi-network hex:63686970736574757035 matter123 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 readsNetworksattribute from theDUT and saves thelist
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 PIXIT.CNET .WIFI_1ST_ ACCESSPOI
NT_SSID 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 sendsReorderNetwork Commandto the DUTwith
thefollowingfields: 1. NetworkIDis aNetworkIDvalue NOTpresent
in'OriginalNetworkList'2.NetworkIn dex is'Midpoint'3.Breadcrumb 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 PIXIT.CNET .WIFI_1ST_ ACCESSPOI
NT_SSID 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:47524C50726976617465 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 readsBreadcumbattribute from
theGeneralCommissioningCluster"
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 readsNetworksattribute list fromthe 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 sendsArmFailSafecommand to theDUT withExpiryLengthSeconds
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 readsNetworksattribute list fromthe 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 sendsAddOrUpdateWiFiNetworkcommand to theDUT. This
stepshould be repeated'RemainingNetworkSlots' times usingDIFFERENT
SSIDand credentialvalues and Breadcrumb fieldset to 1. Note thatthese
credentialsare NOT requiredto be connectable."
PICS: CNET.S.C02.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 sendsReorderNetwork Commandto the DUTwith
thefollowingfields: 1.
NetworkIDisPIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID2.NetworkIndex is
'Midpoint'3.Breadcrumb 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 sendsArmFailSafecommand to theDUT withExpiryLengthSeconds
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 readsNetworksattribute list fromthe 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