Skip to content

Commit 3fb86f8

Browse files
Fixes manual script issues (#29727)
* Fixes manual script issues 676, 682, 684, 685, 686, 690, 691, 692 * Restyled by whitespace * Modified scripts: TC_CNET_4_1 TC_CNET_4_10 TC_CNET_4_11 TC_CNET_4_12 TC_CNET_4_13 TC_CNET_4_14 TC_CNET_4_15 TC_CNET_4_16 TC_CNET_4_2 TC_CNET_4_20 TC_CNET_4_21 TC_CNET_4_22 TC_CNET_4_3 TC_CNET_4_4 TC_CNET_4_5 TC_CNET_4_6 TC_CNET_4_9 TC_DA_1_4 TC_OPSTATE_2_2 TC_WNCV_5_1_Simulated TC_WNCV_6_1_Simulated TC_WNCV_7_1_Simulated * Restyled by whitespace * Fixing CNET manual YAML's * Modified test TC-CNET-4.15 --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 752046c commit 3fb86f8

38 files changed

+3482
-735
lines changed

src/app/tests/suites/certification/PICS.yaml

-30
Original file line numberDiff line numberDiff line change
@@ -7584,36 +7584,6 @@ PICS:
75847584
attribute implemented on the server ?"
75857585
id: WNCV.C.A001a
75867586

7587-
- label:
7588-
"Does the DUT(client) have access privileges for the (0xFFF8)
7589-
GeneratedCommandList attribute implemented on the server ?"
7590-
id: WNCV.C.Afff8
7591-
7592-
- label:
7593-
"Does the DUT(client) have access privileges for the (0xFFF9)
7594-
AcceptedCommandList attribute implemented on the server ?"
7595-
id: WNCV.C.Afff9
7596-
7597-
- label:
7598-
"Does the DUT(client) have access privileges for the (0xFFFA)
7599-
EventList attribute implemented on the server ?"
7600-
id: WNCV.C.Afffa
7601-
7602-
- label:
7603-
"Does the DUT(client) have access privileges for the (0xFFFB)
7604-
AttributeList attribute implemented on the server ?"
7605-
id: WNCV.C.Afffb
7606-
7607-
- label:
7608-
"Does the DUT(client) have access privileges for the (0xFFFC)
7609-
FeatureMap attribute implemented on the server ?"
7610-
id: WNCV.C.Afffc
7611-
7612-
- label:
7613-
"Does the DUT(client) have access privileges for the (0xFFFD)
7614-
ClusterRevision attribute implemented on the server ?"
7615-
id: WNCV.C.Afffd
7616-
76177587
#
76187588
# client / commandsGenerated
76197589
#

src/app/tests/suites/certification/Test_TC_CNET_4_1.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ config:
2525
endpoint: 0
2626

2727
tests:
28+
- label: "Preconditions"
29+
verification: |
30+
1. DUT supports CNET.S.F00(WI)
31+
2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1
32+
3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
33+
4. TH can communicate with the DUT
34+
disabled: true
35+
2836
- label: "Step 1: Factory reset the DUT"
2937
verification: |
3038

src/app/tests/suites/certification/Test_TC_CNET_4_10.yaml

+11-14
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ config:
2626
endpoint: 0
2727

2828
tests:
29-
- label: "Precondition"
29+
- label: "Preconditions"
3030
verification: |
31-
Commission TH and DUT on Thread setup
32-
33-
The cluster Identifier 49 (0x0031) is present in the ServerList attribute
34-
35-
The FeatureMap attribute value is 2
36-
37-
MaxNetworks attribute value is at least 1 which is saved as 'MaxNetworksValue' for future use
31+
1. DUT supports CNET.S.F01(TH)
32+
2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2
33+
3. DUT is commissioned on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET
34+
4. TH can communicate with the DUT on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET
3835
disabled: true
3936

4037
- label:
@@ -92,7 +89,7 @@ tests:
9289
9390
Below is an example:
9491
95-
./chip-tool networkcommissioning remove-network hex:1850171990782922 62 0
92+
./chip-tool networkcommissioning remove-network hex:1850171990782922 62 0 --Breadcrumb 1
9693
9794
Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success).
9895
@@ -230,7 +227,7 @@ tests:
230227
disabled: true
231228

232229
- label:
233-
"Step 11: TH sends ArmFailSafe command to the DUT with
230+
"Step 13: TH sends ArmFailSafe command to the DUT with
234231
ExpiryLengthSeconds set to 900"
235232
verification: |
236233
./chip-tool generalcommissioning arm-fail-safe 900 1 1 0
@@ -248,7 +245,7 @@ tests:
248245
disabled: true
249246

250247
- label:
251-
"Step 12: TH sends RemoveNetwork Command to the DUT with NetworkID
248+
"Step 14: TH sends RemoveNetwork Command to the DUT with NetworkID
252249
field set to extended PAN ID of
253250
PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 1"
254251
PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx
@@ -271,7 +268,7 @@ tests:
271268
[1657791030.762608][5336:5341] CHIP:EM: Sending Standalone Ack for MessageCounter:266194732 on exchange 7795i
272269
disabled: true
273270

274-
- label: "Step 13: TH sends the CommissioningComplete command to the DUT"
271+
- label: "Step 15: TH sends the CommissioningComplete command to the DUT"
275272
PICS: CNET.S.C04.Rsp
276273
verification: |
277274
./chip-tool generalcommissioning commissioning-complete 1 0
@@ -289,7 +286,7 @@ tests:
289286
disabled: true
290287

291288
- label:
292-
"Step 14: TH sends ArmFailSafe command to the DUT with
289+
"Step 16: TH sends ArmFailSafe command to the DUT with
293290
ExpiryLengthSeconds set to 0 to ensure the CommissioningComplete call
294291
properly persisted the failsafe context. This call should have no
295292
effect if Commissioning Complete call is handled correctly"
@@ -309,7 +306,7 @@ tests:
309306
[1657626274.219632][2802:2807] CHIP:EM: Sending Standalone Ack for MessageCounter:52231112 on exchange 13160i
310307
disabled: true
311308

312-
- label: "Step 15: TH reads Networks attribute from the DUT"
309+
- label: "Step 17: TH reads Networks attribute from the DUT"
313310
PICS: CNET.S.A0001
314311
verification: |
315312
./chip-tool networkcommissioning read networks 1 0

src/app/tests/suites/certification/Test_TC_CNET_4_11.yaml

+6-48
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,17 @@ config:
2626
endpoint: 0
2727

2828
tests:
29-
- label: "Commission TH and DUT over BLE to setup the Wi-Fi"
29+
- label: "Preconditions"
3030
verification: |
31-
All the below commands are to check the Pre-Condition note mentioned in D column.
31+
1. DUT supports CNET.S.F00(WI)
32+
2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1
33+
3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
34+
4. TH can connect to two valid Wi-Fi access points: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID
3235
disabled: true
3336

34-
- label:
35-
"The cluster Identifier 49 (0x0031) is present in the ServerList
36-
attribute"
37-
verification: |
38-
./chip-tool descriptor read server-list 1 0
39-
40-
Verify the "descriptor" on the TH(Chip-tool) log
41-
42-
[1653478221.662178][27661:27666] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1626448966
43-
[1653478221.662314][27661:27666] CHIP:TOO: server list: 26 entries
44-
[1653478221.662350][27661:27666] CHIP:TOO: [1]: 3
45-
[1653478221.662376][27661:27666] CHIP:TOO: [2]: 4
46-
[1653478221.662401][27661:27666] CHIP:TOO: [3]: 29
47-
[1653478221.662426][27661:27666] CHIP:TOO: [4]: 30
48-
[1653478221.662450][27661:27666] CHIP:TOO: [5]: 31
49-
[1653478221.662474][27661:27666] CHIP:TOO: [6]: 40
50-
[1653478221.662499][27661:27666] CHIP:TOO: [7]: 42
51-
[1653478221.662523][27661:27666] CHIP:TOO: [8]: 43
52-
[1653478221.662548][27661:27666] CHIP:TOO: [9]: 44
53-
[1653478221.662572][27661:27666] CHIP:TOO: [10]: 45
54-
[1653478221.662596][27661:27666] CHIP:TOO: [11]: 46
55-
[1653478221.662621][27661:27666] CHIP:TOO: [12]: 47
56-
[1653478221.662645][27661:27666] CHIP:TOO: [13]: 48
57-
[1653478221.662669][27661:27666] CHIP:TOO: [14]: 49
58-
[1653478221.662693][27661:27666] CHIP:TOO: [15]: 50
59-
[1653478221.662717][27661:27666] CHIP:TOO: [16]: 51
60-
[1653478221.662742][27661:27666] CHIP:TOO: [17]: 52
61-
[1653478221.662766][27661:27666] CHIP:TOO: [18]: 53
62-
[1653478221.662791][27661:27666] CHIP:TOO: [19]: 54
63-
[1653478221.662815][27661:27666] CHIP:TOO: [20]: 55
64-
[1653478221.662839][27661:27666] CHIP:TOO: [21]: 60
65-
[1653478221.662863][27661:27666] CHIP:TOO: [22]: 62
66-
[1653478221.662888][27661:27666] CHIP:TOO: [23]: 63
67-
[1653478221.662912][27661:27666] CHIP:TOO: [24]: 64
68-
[1653478221.662937][27661:27666] CHIP:TOO: [25]: 65
69-
[1653478221.662962][27661:27666] CHIP:TOO: [26]: 1029
70-
disabled: true
71-
72-
- label: "The FeatureMap attribute value is 1"
37+
- label: "Commission TH and DUT over BLE to setup the Wi-Fi"
7338
verification: |
74-
./chip-tool networkcommissioning read feature-map 1 0
75-
76-
Verify the "feature-map" on the TH(Chip-tool) log
7739
78-
[1653478255.044168][27668:27673] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 3424382863
79-
[1653478255.044240][27668:27673] CHIP:TOO: FeatureMap: 1
80-
[1653478255.044352][27668:27673] CHIP:EM: Sending Standalone Ack for MessageCounter:8977728 on exchange 59777i
81-
[1653478255.044428][27668:27673] CHIP:IN: Prepared secure message 0xffffa77ed958 to 0x0000000000000001 (1) of type 0x10 and protocolId (0, 0) on exchange 5
8240
disabled: true
8341

8442
- label:

src/app/tests/suites/certification/Test_TC_CNET_4_12.yaml

+7-10
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,16 @@ config:
2626
endpoint: 0
2727

2828
tests:
29-
- label: "Commission TH and DUT on Thread setup"
30-
verification: |
31-
32-
disabled: true
33-
34-
- label:
35-
"The cluster Identifier 49 (0x0031) is present in the ServerList
36-
attribute"
29+
- label: "Preconditions"
3730
verification: |
38-
31+
1. DUT supports CNET.S.F01(TH)
32+
2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2
33+
3. TH has can communicate to two valid thread PANs: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET
34+
4. TH can connect to two valid Wi-Fi access points: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID
35+
5. XPANID of PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET is saved as th_xpan and the XPANID of PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET is saved as th_xpan1
3936
disabled: true
4037

41-
- label: "The FeatureMap attribute value is 2"
38+
- label: "Commission TH and DUT on Thread setup"
4239
verification: |
4340
4441
disabled: true

src/app/tests/suites/certification/Test_TC_CNET_4_13.yaml

+6-60
Original file line numberDiff line numberDiff line change
@@ -26,71 +26,17 @@ config:
2626
endpoint: 0
2727

2828
tests:
29-
- label: "Commission TH and DUT over BLE to setup the Wi-Fi"
30-
verification: |
31-
32-
disabled: true
33-
34-
- label:
35-
"The cluster Identifier 49 (0x0031) is present in the ServerList
36-
attribute"
37-
verification: |
38-
./chip-tool descriptor read server-list 1 0
39-
40-
Verify the "server-list" on the TH(Chip-tool) log
41-
42-
[1653474860.462391][29901:29906] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1237231415
43-
[1653474860.462487][29901:29906] CHIP:TOO: server list: 25 entries
44-
[1653474860.462524][29901:29906] CHIP:TOO: [1]: 3
45-
[1653474860.462549][29901:29906] CHIP:TOO: [2]: 4
46-
[1653474860.462574][29901:29906] CHIP:TOO: [3]: 29
47-
[1653474860.462598][29901:29906] CHIP:TOO: [4]: 30
48-
[1653474860.462622][29901:29906] CHIP:TOO: [5]: 31
49-
[1653474860.462646][29901:29906] CHIP:TOO: [6]: 40
50-
[1653474860.462670][29901:29906] CHIP:TOO: [7]: 42
51-
[1653474860.462693][29901:29906] CHIP:TOO: [8]: 43
52-
[1653474860.462717][29901:29906] CHIP:TOO: [9]: 44
53-
[1653474860.462741][29901:29906] CHIP:TOO: [10]: 45
54-
[1653474860.462765][29901:29906] CHIP:TOO: [11]: 46
55-
[1653474860.462788][29901:29906] CHIP:TOO: [12]: 48
56-
[1653474860.462812][29901:29906] CHIP:TOO: [13]: 49
57-
[1653474860.462836][29901:29906] CHIP:TOO: [14]: 50
58-
[1653474860.462859][29901:29906] CHIP:TOO: [15]: 51
59-
[1653474860.462883][29901:29906] CHIP:TOO: [16]: 52
60-
[1653474860.462906][29901:29906] CHIP:TOO: [17]: 53
61-
[1653474860.462930][29901:29906] CHIP:TOO: [18]: 54
62-
[1653474860.462954][29901:29906] CHIP:TOO: [19]: 55
63-
[1653474860.462977][29901:29906] CHIP:TOO: [20]: 60
64-
[1653474860.463001][29901:29906] CHIP:TOO: [21]: 62
65-
[1653474860.463024][29901:29906] CHIP:TOO: [22]: 63
66-
[1653474860.463048][29901:29906] CHIP:TOO: [23]: 64
67-
[1653474860.463071][29901:29906] CHIP:TOO: [24]: 65
68-
[1653474860.463095][29901:29906] CHIP:TOO: [25]: 1029
69-
[1653474860.463296][29901:29906] CHIP:EM: Sending Standalone Ack for MessageCounter:10703464 on exchange 2435i
70-
disabled: true
71-
72-
- label: "The FeatureMap attribute value is 1"
29+
- label: "Preconditions"
7330
verification: |
74-
./chip-tool networkcommissioning read feature-map 1 0
75-
76-
Verify the "feature-map" on the TH(Chip-tool) log
77-
78-
[1653474932.055513][29920:29925] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 1600858167
79-
[1653474932.055578][29920:29925] CHIP:TOO: FeatureMap: 1
80-
[1653474932.055675][29920:29925] CHIP:EM: Sending Standalone Ack for MessageCounter:1494059 on exchange 5482i
31+
1. Commission TH and DUT over BLE to setup the Wi-Fi on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
32+
2. The cluster Identifier 49 (0x0031) is present in the ServerList attribute
33+
3. The FeatureMap attribute value is 1
34+
4. MaxNetworks attribute value is at least 2 which is saved as 'MaxNetworksValue' for future use
8135
disabled: true
8236

83-
- label:
84-
"MaxNetworks attribute value is at least 4 which is saved as
85-
MaxNetworksValue for future use"
37+
- label: "Commission TH and DUT over BLE to setup the Wi-Fi"
8638
verification: |
87-
The test case is not verifiable. As MaxNetworks value is 1 but expected is 4
88-
89-
./chip-tool networkcommissioning read max-networks 1 0
9039
91-
[1653476960.303444][30164:30169] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0000 DataVersion: 1600858167
92-
[1653476960.303531][30164:30169] CHIP:TOO: MaxNetworks: 1
93-
[1653476960.303641][30164:30169] CHIP:EM: Sending Standalone Ack for MessageCounter:2083922 on exchange 45120i
9440
disabled: true
9541

9642
- label:

src/app/tests/suites/certification/Test_TC_CNET_4_14.yaml

+4-63
Original file line numberDiff line numberDiff line change
@@ -28,69 +28,10 @@ config:
2828
tests:
2929
- label: "Preconditions"
3030
verification: |
31-
Commission TH and DUT on Thread setup
32-
disabled: true
33-
34-
- label:
35-
"Preconditions: The cluster Identifier 49 (0x0031) is present in the
36-
ServerList attribute"
37-
verification: |
38-
./chip-tool descriptor read server-list 1 0
39-
40-
Verify the "server-list" on the TH(Chip-tool) log
41-
42-
[1653474860.462391][29901:29906] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1237231415
43-
[1653474860.462487][29901:29906] CHIP:TOO: server list: 25 entries
44-
[1653474860.462524][29901:29906] CHIP:TOO: [1]: 3
45-
[1653474860.462549][29901:29906] CHIP:TOO: [2]: 4
46-
[1653474860.462574][29901:29906] CHIP:TOO: [3]: 29
47-
[1653474860.462598][29901:29906] CHIP:TOO: [4]: 30
48-
[1653474860.462622][29901:29906] CHIP:TOO: [5]: 31
49-
[1653474860.462646][29901:29906] CHIP:TOO: [6]: 40
50-
[1653474860.462670][29901:29906] CHIP:TOO: [7]: 42
51-
[1653474860.462693][29901:29906] CHIP:TOO: [8]: 43
52-
[1653474860.462717][29901:29906] CHIP:TOO: [9]: 44
53-
[1653474860.462741][29901:29906] CHIP:TOO: [10]: 45
54-
[1653474860.462765][29901:29906] CHIP:TOO: [11]: 46
55-
[1653474860.462788][29901:29906] CHIP:TOO: [12]: 48
56-
[1653474860.462812][29901:29906] CHIP:TOO: [13]: 49
57-
[1653474860.462836][29901:29906] CHIP:TOO: [14]: 50
58-
[1653474860.462859][29901:29906] CHIP:TOO: [15]: 51
59-
[1653474860.462883][29901:29906] CHIP:TOO: [16]: 52
60-
[1653474860.462906][29901:29906] CHIP:TOO: [17]: 53
61-
[1653474860.462930][29901:29906] CHIP:TOO: [18]: 54
62-
[1653474860.462954][29901:29906] CHIP:TOO: [19]: 55
63-
[1653474860.462977][29901:29906] CHIP:TOO: [20]: 60
64-
[1653474860.463001][29901:29906] CHIP:TOO: [21]: 62
65-
[1653474860.463024][29901:29906] CHIP:TOO: [22]: 63
66-
[1653474860.463048][29901:29906] CHIP:TOO: [23]: 64
67-
[1653474860.463071][29901:29906] CHIP:TOO: [24]: 65
68-
[1653474860.463095][29901:29906] CHIP:TOO: [25]: 1029
69-
[1653474860.463296][29901:29906] CHIP:EM: Sending Standalone Ack for MessageCounter:10703464 on exchange 2435i
70-
disabled: true
71-
72-
- label: "Preconditions: The FeatureMap attribute value is 2"
73-
verification: |
74-
./chip-tool networkcommissioning read feature-map 1 0
75-
76-
Verify the "feature-map" on the TH(Chip-tool) log
77-
78-
[1653474932.055513][29920:29925] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 1600858167
79-
[1653474932.055578][29920:29925] CHIP:TOO: FeatureMap: 1
80-
[1653474932.055675][29920:29925] CHIP:EM: Sending Standalone Ack for MessageCounter:1494059 on exchange 5482i
81-
disabled: true
82-
83-
- label:
84-
"Preconditions: MaxNetworks attribute value is at least 4 which is
85-
saved as 'MaxNetworksValue' for future use"
86-
verification: |
87-
The test case is not verifiable. As MaxNetworks value is 1 but expected is 4
88-
89-
./chip-tool networkcommissioning read max-networks 1 0
90-
91-
[1653476960.303444][30164:30169] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0000 DataVersion: 1600858167
92-
[1653476960.303531][30164:30169] CHIP:TOO: MaxNetworks: 1
93-
[1653476960.303641][30164:30169] CHIP:EM: Sending Standalone Ack for MessageCounter:2083922 on exchange 45120i
31+
1. Commission TH and DUT on Thread setup on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET
32+
2. The cluster Identifier 49 (0x0031) is present in the ServerList attribute
33+
3. The FeatureMap attribute value is 2
34+
4. MaxNetworks attribute value is at least 2 which is saved as 'MaxNetworksValue' for future use
9435
disabled: true
9536

9637
- label:

0 commit comments

Comments
 (0)