From 55523426d8829eb113cac0799d62396f4736b98f Mon Sep 17 00:00:00 2001 From: manjunath-grl <102359958+manjunath-grl@users.noreply.github.com> Date: Sat, 4 Nov 2023 12:14:52 +0530 Subject: [PATCH] Semi-automated testcases Nov 03 (#30197) * Manual-->Semi-automated testcases TC-CNET-4.1 TC-CNET-4.2 TC-CNET-4.3 TC-CNET-4.4 TC-CNET-4.5 TC-CNET-4.6 TC-CNET-4.9 TC-CNET-4.10 TC-CNET-4.11 TC-CNET-4.15 TC-CNET-4.16 TC-CNET-4.22 * Restyled by whitespace * Modified Darwin ciTests.json disabled CNET-4.3 * Modifed ciTests.json file --------- Co-authored-by: Restyled.io --- .../certification/Test_TC_CNET_4_1.yaml | 289 +++++----- .../certification/Test_TC_CNET_4_10.yaml | 445 +++++++------- .../certification/Test_TC_CNET_4_11.yaml | 543 ++++++++++-------- .../certification/Test_TC_CNET_4_15.yaml | 164 ++++-- .../certification/Test_TC_CNET_4_16.yaml | 171 +++--- .../certification/Test_TC_CNET_4_2.yaml | 317 +++++----- .../certification/Test_TC_CNET_4_22.yaml | 314 +++++----- .../certification/Test_TC_CNET_4_3.yaml | 243 ++++---- .../certification/Test_TC_CNET_4_4.yaml | 314 ++++------ .../certification/Test_TC_CNET_4_5.yaml | 118 ++-- .../certification/Test_TC_CNET_4_6.yaml | 126 ++-- .../certification/Test_TC_CNET_4_9.yaml | 445 +++++++------- 12 files changed, 1772 insertions(+), 1717 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_1.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_1.yaml index b4d15c1bc8a879..ce3979c6f5b09a 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_1.yaml @@ -11,7 +11,6 @@ # 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.1. [TC-CNET-4.1] [WiFi] Verification for attributes check [DUT-Server] @@ -21,197 +20,169 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" endpoint: 0 + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:47524C50726976617465" tests: - - label: "Preconditions" - verification: | - 1. DUT supports CNET.S.F00(WI) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1 - 3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID - 4. TH can communicate with the DUT - disabled: true - - label: "Step 1: Factory reset the DUT" verification: | - - disabled: true - + Reset Devices to factory defaults + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Factory Reset the DUT and enter 'y' after success" + - name: "expectedValue" + value: "y" + + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 - label: "Step 2: Commission TH and DUT over BLE to setup the Wi-Fi" verification: | - - disabled: true + ./chip-tool pairing ble-wifi 0x12344321 + + [1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170 + [1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction' + [1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170 + [1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success + [1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after successfull Commission" + - name: "expectedValue" + value: "y" - label: "Step 3: TH reads Descriptor Cluster from the DUT with EP0 TH reads ServerList from the DUT" - verification: | - ./chip-tool descriptor read server-list 1 0 - - Via the TH (chip-tool), verify that the server list has value as 49. - - [1654250292.680821][5262:5267] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 812190876 - [1654250292.681079][5262:5267] CHIP:TOO: server list: 26 entries - [1654250292.681196][5262:5267] CHIP:TOO: [1]: 3 - [1654250292.681264][5262:5267] CHIP:TOO: [2]: 4 - [1654250292.681327][5262:5267] CHIP:TOO: [3]: 29 - [1654250292.681389][5262:5267] CHIP:TOO: [4]: 30 - [1654250292.681450][5262:5267] CHIP:TOO: [5]: 31 - [1654250292.681525][5262:5267] CHIP:TOO: [6]: 40 - [1654250292.681578][5262:5267] CHIP:TOO: [7]: 42 - [1654250292.681629][5262:5267] CHIP:TOO: [8]: 43 - [1654250292.681680][5262:5267] CHIP:TOO: [9]: 44 - [1654250292.681731][5262:5267] CHIP:TOO: [10]: 45 - [1654250292.681782][5262:5267] CHIP:TOO: [11]: 46 - [1654250292.681833][5262:5267] CHIP:TOO: [12]: 47 - [1654250292.681911][5262:5267] CHIP:TOO: [13]: 48 - [1654250292.681977][5262:5267] CHIP:TOO: [14]: 49 - [1654250292.682038][5262:5267] CHIP:TOO: [15]: 50 - [1654250292.682100][5262:5267] CHIP:TOO: [16]: 51 - [1654250292.682160][5262:5267] CHIP:TOO: [17]: 52 - [1654250292.682220][5262:5267] CHIP:TOO: [18]: 53 - [1654250292.682281][5262:5267] CHIP:TOO: [19]: 54 - [1654250292.682342][5262:5267] CHIP:TOO: [20]: 55 - [1654250292.682404][5262:5267] CHIP:TOO: [21]: 60 - [1654250292.682467][5262:5267] CHIP:TOO: [22]: 62 - [1654250292.682528][5262:5267] CHIP:TOO: [23]: 63 - [1654250292.682590][5262:5267] CHIP:TOO: [24]: 64 - [1654250292.682651][5262:5267] CHIP:TOO: [25]: 65 - [1654250292.682714][5262:5267] CHIP:TOO: [26]: 1029 - disabled: true + cluster: "Descriptor" + command: "readAttribute" + attribute: "ServerList" + response: + constraints: + type: list + contains: [49] - label: "Step 4: TH reads FeatureMap attribute from the DUT" - verification: | - ./chip-tool networkcommissioning read feature-map 1 0 - - Via the TH (chip-tool), verify that FeatureMap attribute value as 1 for WiFiNetworkInterface. - - [1653473169.784344][29771:29776] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 1600858167 - [1653473169.784413][29771:29776] CHIP:TOO: FeatureMap: 1 - [1653473169.784516][29771:29776] CHIP:EM: Sending Standalone Ack for MessageCounter:3349837 on exchange 7603i - disabled: true - - - label: "Step 5: TH reads the MaxNetworks attribute from the DUT" - PICS: CNET.S.A0000 - verification: | - ./chip-tool networkcommissioning read max-networks 1 0 - - Via the TH (chip-tool), Verify the MaxNetworks attribute that contains value in the range of 1 to 255. - - [1653473181.407542][29777:29782] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0000 DataVersion: 1600858167 - [1653473181.407621][29777:29782] CHIP:TOO: MaxNetworks: 1 - [1653473181.407725][29777:29782] CHIP:EM: Sending Standalone Ack for MessageCounter:15199397 on exchange 5841i - disabled: true + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 1 + constraints: + type: bitmap32 - label: - "Step 6: TH saves the MaxNetworks attribute value as - 'MaxNetworksValue' for future use" - verification: | - - disabled: true + "Step 5 & 6: TH reads the MaxNetworks attribute from the DUT. TH saves + the MaxNetworks attribute value as 'MaxNetworksValue' for future use" + PICS: CNET.S.A0000 + command: "readAttribute" + attribute: "MaxNetworks" + response: + saveAs: MaxNetworksValue + constraints: + type: int8u + minValue: 1 + maxValue: 255 - label: "Step 7: TH reads the Networks attribute list from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that should the type of octstr with a length range of 1 to 32. - -that the connected status is in tthe type of bool value as TRUE. - - [1654250379.881780][5309:5314] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3741733376 - [1654250379.881974][5309:5314] CHIP:TOO: Networks: 1 entries - [1654250379.882123][5309:5314] CHIP:TOO: [1]: { - [1654250379.882196][5309:5314] CHIP:TOO: NetworkID: 47524C50726976617465 - [1654250379.882257][5309:5314] CHIP:TOO: Connected: TRUE - [1654250379.882312][5309:5314] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 8: TH reads ScanMaxTimeSeconds attribute from the DUT" PICS: CNET.S.A0002 - verification: | - ./chip-tool networkcommissioning read scan-max-time-seconds 1 0 - - Via the TH (chip-tool), Verify the ScanMaxTimeSeconds attribute that contains value in the range of 1 to 255 secs. - - [1653473784.850830][29813:29818] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0002 DataVersion: 1600858167 - [1653473784.850916][29813:29818] CHIP:TOO: ScanMaxTimeSeconds: 10 - [1653473784.851029][29813:29818] CHIP:EM: Sending Standalone Ack for MessageCounter:16671548 on exchange 37205i - disabled: true - - - label: "Step 9: TH reads ConnectMaxTimeSeconds Attribute from the DUT" + command: "readAttribute" + attribute: "ScanMaxTimeSeconds" + response: + constraints: + type: int8u + minValue: 1 + maxValue: 255 + + - label: "Step 9: TH reads ConnectMaxTimeSeconds attribute from the DUT" PICS: CNET.S.A0003 - verification: | - ./chip-tool networkcommissioning read connect-max-time-seconds 1 0 - - Via the TH (chip-tool), Verify the ConnectMaxTimeSeconds attribute that contains value in the range of 1 to 255 secs. - - [1653473821.367214][29821:29826] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0003 DataVersion: 1600858167 - [1653473821.367283][29821:29826] CHIP:TOO: ConnectMaxTimeSeconds: 20 - [1653473821.367379][29821:29826] CHIP:EM: Sending Standalone Ack for MessageCounter:187119 on exchange 50022i - disabled: true + command: "readAttribute" + attribute: "ConnectMaxTimeSeconds" + response: + constraints: + type: int8u + minValue: 1 + maxValue: 255 - label: "Step 10: TH reads InterfaceEnabled attribute from the DUT" PICS: CNET.S.A0004 - verification: | - ./chip-tool networkcommissioning read interface-enabled 1 0 - - Via the TH (chip-tool), Verify the InterfaceEnabled attribute that contains bool value as True. - - [1653473893.275901][29834:29839] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0004 DataVersion: 1600858167 - [1653473893.275964][29834:29839] CHIP:TOO: InterfaceEnabled: TRUE - [1653473893.276084][29834:29839] CHIP:EM: Sending Standalone Ack for MessageCounter:13157245 on exchange 55578i - disabled: true + command: "readAttribute" + attribute: "InterfaceEnabled" + response: + value: true + constraints: + type: boolean - label: "Step 11: TH reads LastNetworkingStatus attribute from the DUT" PICS: CNET.S.A0005 - verification: | - ./chip-tool networkcommissioning read last-networking-status 1 0 - - Via the TH (chip-tool), Verify the LastNetworkingStatus attribute that contains value as 0 that mentions success. - - [1653473918.484769][29840:29845] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0005 DataVersion: 1600858167 - [1653473918.484843][29840:29845] CHIP:TOO: LastNetworkingStatus: 0 - [1653473918.484940][29840:29845] CHIP:EM: Sending Standalone Ack for MessageCounter:10161085 on exchange 18769 - disabled: true + command: "readAttribute" + attribute: "LastNetworkingStatus" + response: + value: 0 + constraints: + type: NetworkCommissioningStatusEnum - label: - "Step 12: TH reads the LastNetworkID attribute from the DUT TH reads + "Step 12a: TH reads the LastNetworkID attribute from the DUT. TH reads the Networks attribute from the DUT" PICS: CNET.S.A0006 - verification: | - ./chip-tool networkcommissioning read last-network-id 1 0 - - Via the TH (chip-tool), Verify: - -that the LastNetworkID attribute that contains NetworkID that should be the type of octstr with a length range 1 to 32. - -if the Networks attribute list is Empty, then LastNetworkID attribute value is null. - - [1653474059.383553][27286:27291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 1912591449 - [1653474059.383618][27286:27291] CHIP:TOO: LastNetworkID: 47524C50726976617465 - [1653474059.383723][27286:27291] CHIP:EM: Sending Standalone Ack for MessageCounter:6975079 on exchange 34674i - - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify the lastnetworkID is present in the NetworkID in the entries of Network. - - [1654250379.881780][5309:5314] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3741733376 - [1654250379.881974][5309:5314] CHIP:TOO: Networks: 1 entries - [1654250379.882123][5309:5314] CHIP:TOO: [1]: { - [1654250379.882196][5309:5314] CHIP:TOO: NetworkID: 47524C50726976617465 - [1654250379.882257][5309:5314] CHIP:TOO: Connected: TRUE - [1654250379.882312][5309:5314] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "LastNetworkID" + response: + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + constraints: + type: octet_string + minLength: 1 + maxLength: 32 + + - label: "Step 12b: TH reads the Networks attribute list from the DUT" + PICS: CNET.S.A0001 + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 13: TH reads the LastConnectErrorValue attribute from the DUT" PICS: CNET.S.A0007 - verification: | - ./chip-tool networkcommissioning read last-connect-error-value 1 0 - - Via the TH (chip-tool), Verify the LastConnectErrorValue attribute that contains value as null. - - [1653474102.061746][29860:29865] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007 DataVersion: 1600858167 - [1653474102.061812][29860:29865] CHIP:TOO: LastConnectErrorValue: null - [1653474102.061934][29860:29865] CHIP:EM: Sending Standalone Ack for MessageCounter:5193529 on exchange 29546i - disabled: true + command: "readAttribute" + attribute: "LastConnectErrorValue" + response: + value: null + constraints: + type: int32s diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_10.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_10.yaml index 0bdd84f83d5ab7..1320f1f2c1d8a3 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_10.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.8. [TC-CNET-4.10] [Thread] Verification for RemoveNetwork Command @@ -22,298 +21,304 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_THREAD endpoint: 0 + PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET: + type: octet_string + defaultValue: "hex:1111111122222222" tests: - - label: "Preconditions" + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on Thread network " verification: | - 1. DUT supports CNET.S.F01(TH) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2 - 3. DUT is commissioned on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - 4. TH can communicate with the DUT on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - disabled: true + ./chip-tool pairing ble-thread 0x12344321 + + [1698660637.937566][6429:6431] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698660637.937644][6429:6431] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698660637.937705][6429:6431] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698660637.937750][6429:6431] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698660637.937812][6429:6431] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698660637.937863][6429:6431] CHIP:DIS: Closing all BLE connections + [1698660637.937911][6429:6431] CHIP:IN: Clearing BLE pending packets. + [1698660637.938582][6429:6431] CHIP:BLE: Auto-closing end point's BLE connection. + [1698660637.938645][6429:6431] CHIP:DL: Closing BLE GATT connection (con 0xffff9c034bb0) + [1698660637.938805][6429:6430] CHIP:DL: BluezDisconnect peer=F7:D4:24:D2:4A:1F + [1698660638.365208][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: MarkForEviction Type:1 LSID:62220 + [1698660638.365311][6429:6431] CHIP:SC: SecureSession[0xffff9400f900, LSID:62220]: State change 'kActive' --> 'kPendingEviction' + [1698660638.365440][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: Released - Type:1 LSID:62220 + [1698660638.365529][6429:6431] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698660638.365598][6429:6431] CHIP:TOO: Device commissioning completed with success + [1698660638.365873][6429:6431] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 2 + constraints: + type: bitmap32 - label: "Step 1: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 900" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 1 62 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH. - - [1650391404.723087][10042:10047] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1650391404.723164][10042:10047] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1650391404.723269][10042:10047] CHIP:TOO: ArmFailSafeResponse: { - [1650391404.723342][10042:10047] CHIP:TOO: errorCode: 0 - [1650391404.723381][10042:10047] CHIP:TOO: debugText: - [1650391404.723419][10042:10047] CHIP:TOO: } - [1650391404.723479][10042:10047] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 2: TH1 reads Networks attribute from the DUT and save the number of entries as 'NumNetworks'" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that should be as PIXIT.CNET .THREAD_1 ST_OPERA TIONALDA TASET. - -that the connected status should be the type of bool value as TRUE. - - [1657790578.359665][5247:5252] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 2276799582 - [1657790578.359820][5247:5252] CHIP:TOO: Networks: 1 entries - [1657790578.359925][5247:5252] CHIP:TOO: [1]: { - [1657790578.359992][5247:5252] CHIP:TOO: NetworkID: 1850171990782922 - [1657790578.360049][5247:5252] CHIP:TOO: Connected: TRUE - [1657790578.360103][5247:5252] CHIP:TOO: } - [1657790578.360277][5247:5252] CHIP:EM: Sending Standalone Ack for MessageCounter:195491393 on exchange 23374i - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + saveAs: NumNetworks + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET, + Connected: true, + }, + ] - label: "Step 3: TH finds the index of the Networks list entry with NetworkID field value PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and saves it as 'Userth_netidx'" verification: | - - disabled: true + TH finds the index of the Networks list entry with NetworkID + field value PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and saves it as + 'Userth_netidx' + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 4: TH sends RemoveNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:1850171990782922 62 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1657790635.532308][5254:5259] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1657790635.532395][5254:5259] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1657790635.532528][5254:5259] CHIP:TOO: NetworkConfigResponse: { - [1657790635.532617][5254:5259] CHIP:TOO: networkingStatus: 0 - [1657790635.532671][5254:5259] CHIP:TOO: networkIndex: 0 - [1657790635.532718][5254:5259] CHIP:TOO: } - [1657790635.532794][5254:5259] CHIP:DMG: ICR moving to [AwaitingDe] - [1657790635.532886][5254:5259] CHIP:EM: Sending Standalone Ack for MessageCounter:162806082 on exchange 55401i - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 - label: "Step 5: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify that the Networks attribute list has empty(0 entries). - - [1657625584.426746][2703:2708] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 1201757611 - [1657625584.427014][2703:2708] CHIP:TOO: Networks: 0 entries - [1657625584.427238][2703:2708] CHIP:EM: Sending Standalone Ack for MessageCounter:71370645 on exchange 9137i - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + type: list + excludes: + [ + { + NetworkID: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET, + Connected: true, + }, + ] - label: "Step 6: TH reads LastNetworkingStatus attribute from the DUT" PICS: CNET.S.A0005 - verification: | - ./chip-tool networkcommissioning read last-networking-status 1 0 - - Via the TH (chip-tool), Verify the LastNetworkingStatus attribute that contains value as 0 that mentions success. - - [1657625631.550171][2710:2715] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0005 DataVersion: 1201757611 - [1657625631.550337][2710:2715] CHIP:TOO: LastNetworkingStatus: 0 - [1657625631.550495][2710:2715] CHIP:EM: Sending Standalone Ack for MessageCounter:45041626 on exchange 48206i - disabled: true + command: "readAttribute" + attribute: "LastNetworkingStatus" + response: + value: 0 + constraints: + type: NetworkCommissioningStatusEnum - label: "Step 7: TH reads LastNetworkID attribute from the DUT" PICS: CNET.S.A0006 - verification: | - ./chip-tool networkcommissioning read last-network-id 1 0 - - Via the TH (chip-tool), Verify that the LastNetworkID has PIXIT.CNET.THRE AD_1ST_OPERATI ONALDATASET. - - [1657625691.050998][2718:2724] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 1201757611 - [1657625691.051142][2718:2724] CHIP:TOO: LastNetworkID: 1850171990782922 - [1657625691.051317][2718:2724] CHIP:EM: Sending Standalone Ack for MessageCounter:151340993 on exchange 26558i - disabled: true + command: "readAttribute" + attribute: "LastNetworkID" + response: + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - label: "Step 8: TH reads Breadcrumb attribute from the General Commissioning cluster of the DUT" PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 1. - - [1657625860.742472][2739:2744] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2669958173 - [1657625860.742607][2739:2744] CHIP:TOO: Breadcrumb: 1 - [1657625860.742764][2739:2744] CHIP:EM: Sending Standalone Ack for MessageCounter:246118803 on exchange 50195i - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 1 - label: "Step 9: TH sends ConnectNetwork command to the DUT with NetworkID field set to the extended PAN ID of PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 2" + timedInteractionTimeoutMs: 5000 PICS: CNET.S.C04.Rsp && CNET.S.C06.Rsp - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network hex:1850171990782922 1 0 --Breadcrumb 2 - - Via the TH (chip-tool), Verify the ConnectNetworkResponse that contains networkingStatus value as 3(NetworkIdNotFound). - - [1657625912.836563][2747:2752] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 - [1657625912.836768][2747:2752] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 - [1657625912.836933][2747:2752] CHIP:TOO: ConnectNetworkResponse: { - [1657625912.837012][2747:2752] CHIP:TOO: networkingStatus: 3 - [1657625912.837075][2747:2752] CHIP:TOO: errorValue: 0 - [1657625912.837131][2747:2752] CHIP:TOO: } - [1657625912.837220][2747:2752] CHIP:DMG: ICR moving to [AwaitingDe] - [1657625912.837330][2747:2752] CHIP:EM: Sending Standalone Ack for MessageCounter:259218125 on exchange 18569i - disabled: true + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + - name: "Breadcrumb" + value: 2 + response: + values: + - name: "NetworkingStatus" + value: 3 + - name: "ErrorValue" + constraints: + type: int32s - label: "Step 10: TH reads Breadcrumb attribute from the General Commissioning cluster of the DUT" PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 1. - - [1657781070.617341][4823:4828] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2383846386 - [1657781070.617458][4823:4828] CHIP:TOO: Breadcrumb: 1 - [1657781070.617656][4823:4828] CHIP:EM: Sending Standalone Ack for MessageCounter:198695370 on exchange 43070i - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 1 - label: "Step 11: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 0" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 0 0 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 0 secs to the TH. - - [1657626058.290176][2767:2772] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657626058.290276][2767:2772] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657626058.290399][2767:2772] CHIP:TOO: ArmFailSafeResponse: { - [1657626058.290501][2767:2772] CHIP:TOO: errorCode: 0 - [1657626058.290560][2767:2772] CHIP:TOO: debugText: - [1657626058.290613][2767:2772] CHIP:TOO: } - [1657626058.290699][2767:2772] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true - - - label: "Step 12: TH reads Networks attribute from the DUT" + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 0 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" + + - label: "Step 12: TH reads Networks attribute from the DUT'" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that should be as PIXIT.CNET .THREAD_1 ST_OPERA TIONALDA TASET. - -that the connected status should be the type of bool value as TRUE. - - [1657790810.454838][5308:5313] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 2276799582 - [1657790810.454996][5308:5313] CHIP:TOO: Networks: 1 entries - [1657790810.455100][5308:5313] CHIP:TOO: [1]: { - [1657790810.455168][5308:5313] CHIP:TOO: NetworkID: 1850171990782922 - [1657790810.455225][5308:5313] CHIP:TOO: Connected: TRUE - [1657790810.455280][5308:5313] CHIP:TOO: } - [1657790810.455479][5308:5313] CHIP:EM: Sending Standalone Ack for MessageCounter:256297954 on exchange 23059i - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET, + Connected: true, + }, + ] - label: "Step 13: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 900" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 1 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH. - - [1657626161.611078][2780:2785] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657626161.611183][2780:2785] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657626161.611310][2780:2785] CHIP:TOO: ArmFailSafeResponse: { - [1657626161.611412][2780:2785] CHIP:TOO: errorCode: 0 - [1657626161.611471][2780:2785] CHIP:TOO: debugText: - [1657626161.611525][2780:2785] CHIP:TOO: } - [1657626161.611613][2780:2785] CHIP:DMG: ICR moving to [AwaitingDe] - [1657626161.611722][2780:2785] CHIP:EM: Sending Standalone Ack for MessageCounter:216998470 on exchange 11517i - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 14: TH sends RemoveNetwork Command to the DUT with NetworkID field set to extended PAN ID of PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:1850171990782922 32 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1657791030.761976][5336:5341] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1657791030.762070][5336:5341] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1657791030.762217][5336:5341] CHIP:TOO: NetworkConfigResponse: { - [1657791030.762314][5336:5341] CHIP:TOO: networkingStatus: 0 - [1657791030.762375][5336:5341] CHIP:TOO: networkIndex: 0 - [1657791030.762427][5336:5341] CHIP:TOO: } - [1657791030.762511][5336:5341] CHIP:DMG: ICR moving to [AwaitingDe] - [1657791030.762608][5336:5341] CHIP:EM: Sending Standalone Ack for MessageCounter:266194732 on exchange 7795i - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 - label: "Step 15: TH sends the CommissioningComplete command to the DUT" PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool generalcommissioning commissioning-complete 1 0 - - Via the TH (chip-tool), Verify the DUT sends CommissioningComplete command and the errorCode field is 0(OK). - - [1657626243.485752][2795:2801] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 - [1657626243.485947][2795:2801] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0005 - [1657626243.486108][2795:2801] CHIP:TOO: CommissioningCompleteResponse: { - [1657626243.486232][2795:2801] CHIP:TOO: errorCode: 0 - [1657626243.486293][2795:2801] CHIP:TOO: debugText: - [1657626243.486368][2795:2801] CHIP:TOO: } - [1657626243.486455][2795:2801] CHIP:DMG: ICR moving to [AwaitingDe] - [1657626243.486572][2795:2801] CHIP:EM: Sending Standalone Ack for MessageCounter:8090042 on exchange 53943i - disabled: true + cluster: "General Commissioning" + command: "CommissioningComplete" + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 16: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 0 to ensure the CommissioningComplete call properly persisted the failsafe context. This call should have no effect if Commissioning Complete call is handled correctly" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 0 0 62 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 0 secs to the TH. - - - [1657626274.218994][2802:2807] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657626274.219096][2802:2807] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657626274.219220][2802:2807] CHIP:TOO: ArmFailSafeResponse: { - [1657626274.219322][2802:2807] CHIP:TOO: errorCode: 0 - [1657626274.219381][2802:2807] CHIP:TOO: debugText: - [1657626274.219436][2802:2807] CHIP:TOO: } - [1657626274.219522][2802:2807] CHIP:DMG: ICR moving to [AwaitingDe] - [1657626274.219632][2802:2807] CHIP:EM: Sending Standalone Ack for MessageCounter:52231112 on exchange 13160i - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 0 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 17: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify that the Networks attribute list has empty(0 entries). - - [1657626300.861344][2808:2813] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 1201757611 - [1657626300.861492][2808:2813] CHIP:TOO: Networks: 0 entries - [1657626300.861678][2808:2813] CHIP:EM: Sending Standalone Ack for MessageCounter:89835226 on exchange 41681i - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + type: list + excludes: + [ + { + NetworkID: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET, + Connected: true, + }, + ] diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_11.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_11.yaml index 64d6cacf5c05c1..3b67d6c9955190 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_11.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.9. [TC-CNET-4.11] [WiFi] Verification for ConnectNetwork Command @@ -22,86 +21,122 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_WIFI endpoint: 0 -tests: - - label: "Preconditions" - verification: | - 1. DUT supports CNET.S.F00(WI) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1 - 3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID - 4. TH can connect to two valid Wi-Fi access points: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID - disabled: true + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:47524C50726976617465" + PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:7A6967626565686F6D65" + PIXIT.CNET.WIFI_2ND_ACCESSPOINT_CREDENTIALS: + type: octet_string + defaultValue: "hex:70617373776f7264313233" - - label: "Commission TH and DUT over BLE to setup the Wi-Fi" +tests: + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on WiFi network" verification: | - - disabled: true + ./chip-tool pairing ble-wifi 0x12344321 + + [1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170 + [1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction' + [1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170 + [1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success + [1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 1 + constraints: + type: bitmap32 - label: "Step 1: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 900" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 1 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH. - - [1653479952.284160][30473:30478] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1653479952.284231][30473:30478] CHIP:TOO: ArmFailSafeResponse: { - [1653479952.284273][30473:30478] CHIP:TOO: errorCode: 0 - [1653479952.284297][30473:30478] CHIP:TOO: debugText: - [1653479952.284322][30473:30478] CHIP:TOO: } - [1653479952.284361][30473:30478] CHIP:DMG: ICR moving to [AwaitingDe] - [1653479952.284425][30473:30478] CHIP:EM: Sending Standalone Ack for MessageCounter:9947639 on exchange 30687i - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - 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 networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that contains value as PIXIT.CNET.WIFI_1ST_ ACCESSPOINT_SSID. - -that the connected status should be the type of bool value as TRUE. - - [1657733068.835240][7475:7480] CHIP:TOO: Networks: 1 entries - [1657733068.835354][7475:7480] CHIP:TOO: [1]: { - [1657733068.835434][7475:7480] CHIP:TOO: NetworkID: 47524C50726976617465 - [1657733068.835487][7475:7480] CHIP:TOO: Connected: TRUE - [1657733068.835535][7475:7480] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + saveAs: NumNetworks + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 3: TH finds the index of the Networks list entry with NetworkID for PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and saves it as 'Userwifi_netidx'" verification: | - - disabled: true + TH finds the index of the Networks list entry with NetworkID for PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and saves it as 'Userwifi_netidx' + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT && CNET.S.A0001 + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 4: TH sends RemoveNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1657290079.168208][2668:2673] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1657290079.168273][2668:2673] CHIP:TOO: NetworkConfigResponse: { - [1657290079.168311][2668:2673] CHIP:TOO: networkingStatus: 0 - [1657290079.168338][2668:2673] CHIP:TOO: networkIndex: 0 - [1657290079.168362][2668:2673] CHIP:TOO: } - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 - label: "Step 5: TH sends AddOrUpdateWiFiNetwork command to the DUT with SSID @@ -109,121 +144,125 @@ tests: set to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_CREDENTIALS and Breadcrumb field set to 1" PICS: CNET.S.C02.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning add-or-update-wi-fi-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:536265655F4D6F746F Sunsuraj 1 0 --Breadcrumb 1 ( second network) - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1657288838.207746][2455:2460] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1657288838.207816][2455:2460] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1657288838.207935][2455:2460] CHIP:TOO: NetworkConfigResponse: { - [1657288838.207990][2455:2460] CHIP:TOO: networkingStatus: 0 - [1657288838.208030][2455:2460] CHIP:TOO: networkIndex: 0 - [1657288838.208068][2455:2460] CHIP:TOO: } - disabled: true + command: "AddOrUpdateWiFiNetwork" + arguments: + values: + - name: "SSID" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID + - name: "Credentials" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_CREDENTIALS + - name: "breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 + - name: "DebugText" + constraints: + maxLength: 512 - label: "Step 6: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that contains value as PIXIT.CNET.WIFI_2ND_ ACCESSPOINT_SSID. - -that the connected status should be the type of bool value as FALSE. - - [1657733345.351745][7595:7600] CHIP:TOO: Networks: 1 entries - [1657733345.351888][7595:7600] CHIP:TOO: [1]: { - [1657733345.351952][7595:7600] CHIP:TOO: NetworkID: 536265655F4D6F746F - [1657733345.352000][7595:7600] CHIP:TOO: Connected: FALSE - [1657733345.352053][7595:7600] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID, + Connected: false, + }, + ] - label: "Step 7: TH sends ConnectNetwork command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID and Breadcrumb field set to 2" - PICS: CNET.S.C06.Rsp - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network hex:536265655F4D6F746F 1 0 --Breadcrumb 2 (second network) - - Via the TH (chip-tool), Verify the ConnectNetworkResponse that contains Networking Status value as 0 (success). - - [1653479953.633815][30491:30496] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 - [1653479953.633986][30491:30496] CHIP:TOO: ConnectNetworkResponse: { - [1653479953.634133][30491:30496] CHIP:TOO: networkingStatus: 0 - [1653479953.634195][30491:30496] CHIP:TOO: errorValue: null - [1653479953.634275][30491:30496] CHIP:TOO: } - [1653479953.634367][30491:30496] CHIP:DMG: ICR moving to [AwaitingDe] - [1653479953.634501][30491:30496] CHIP:EM: Sending Standalone Ack for MessageCounter:490923 on exchange 21425i - disabled: true + PICS: CNET.C.C06.Tx + timedInteractionTimeoutMs: 5000 + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 2 + response: + values: + - name: "NetworkingStatus" + value: 0 + - name: "ErrorValue" + constraints: + type: int32s - label: "Step 8: TH changes its WiFi connection to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID" verification: | Make sure TH also joins the 2nd Wifi network to have a connectivity to the DUT. - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 9: TH discovers and connects to DUT on the PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID operational network" - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that contains value as PIXIT.CNET.WIFI_2ND_ ACCESSPOINT_SSID. - -that the connected status should be the type of bool value as TRUE. - - [1657733596.457792][7640:7645] CHIP:TOO: Networks: 1 entries - [1657733596.457867][7640:7645] CHIP:TOO: [1]: { - [1657733596.457906][7640:7645] CHIP:TOO: NetworkID: 536265655F4D6F746F - [1657733596.457940][7640:7645] CHIP:TOO: Connected: TRUE - [1657733596.457972][7640:7645] CHIP:TOO: } - disabled: true + PICS: CNET.S.A0001 + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 10: TH reads Breadcrumb attribute from the General Commissioning cluster of the DUT" PICS: CNET.S.C06.Rsp - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 2. - - [1657733618.370511][7653:7658] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2956231097 - [1657733618.370581][7653:7658] CHIP:TOO: Breadcrumb: 2 - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 2 + constraints: + type: int64u - label: "Step 11: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 0. This forcibly disarms the fail-safe and is expected to cause the changes of configuration to NetworkCommissioning cluster done so far to be reverted." - verification: | - ./chip-tool generalcommissioning arm-fail-safe 0 0 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 0 secs to the TH. - - [1657289119.775902][2519:2524] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657289119.775973][2519:2524] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657289119.776050][2519:2524] CHIP:TOO: ArmFailSafeResponse: { - [1657289119.776102][2519:2524] CHIP:TOO: errorCode: 0 - [1657289119.776141][2519:2524] CHIP:TOO: debugText: - [1657289119.776177][2519:2524] CHIP:TOO: } - disabled: true - + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 0 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + + #Issue: https://github.com/project-chip/connectedhomeip/issues/26848 - label: "Step 12 & 13: TH changes its WiFi connection to - PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and TH discovers and connects to - DUT on the PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID operational network" + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, TH discovers and connects to DUT + on the PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID operational network" + PICS: CNET.S.A0001 && PICS_USER_PROMPT verification: | ./chip-tool networkcommissioning read networks 1 0 @@ -238,46 +277,47 @@ tests: [1684497703.596697][3941:3943] CHIP:TOO: Connected: FALSE [1684497703.596721][3941:3943] CHIP:TOO: } [1684497703.596882][3941:3943] CHIP:EM: <<< [E:51584i S:48726 M:88313254 (Ack:206238679)] (S) Msg TX to 1:0000000000000001 [3A8F] --- Type 0000:10 (SecureChannel:StandaloneAck) - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 14: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 900" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 0 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout of 900 secs to the TH. - - [1657289228.311622][2529:2534] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657289228.311668][2529:2534] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657289228.311721][2529:2534] CHIP:TOO: ArmFailSafeResponse: { - [1657289228.311758][2529:2534] CHIP:TOO: errorCode: 0 - [1657289228.311783][2529:2534] CHIP:TOO: debugText: - [1657289228.311806][2529:2534] CHIP:TOO: } - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 - label: "Step 15: TH sends RemoveNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1684497783.207292][4010:4012] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1684497783.207338][4010:4012] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1684497783.207481][4010:4012] CHIP:TOO: NetworkConfigResponse: { - [1684497783.207531][4010:4012] CHIP:TOO: networkingStatus: 0 - [1684497783.207555][4010:4012] CHIP:TOO: networkIndex: 0 - [1684497783.207578][4010:4012] CHIP:TOO: } - [1684497783.207635][4010:4012] CHIP:DMG: ICR moving to [AwaitingDe] - [1684497783.207723][4010:4012] CHIP:EM: <<< [E:60874i S:60117 M:37627612 (Ack:227520870)] (S) Msg TX to 1: - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 - label: "Step 16: TH sends AddOrUpdateWiFiNetwork command to the DUT with SSID @@ -285,96 +325,107 @@ tests: set to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_CREDENTIALS and Breadcrumb field set to 1" PICS: CNET.S.C02.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning add-or-update-wi-fi-network-network hex: 1 0 - - Below is an example: - ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:536265655F4D6F746F Sunsuraj 1 0 --Breadcrumb 1 ( second network) - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1657734444.832145][7736:7741] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1657734444.832215][7736:7741] CHIP:TOO: NetworkConfigResponse: { - [1657734444.832251][7736:7741] CHIP:TOO: networkingStatus: 0 - [1657734444.832277][7736:7741] CHIP:TOO: networkIndex: 0 - [1657734444.832299][7736:7741] CHIP:TOO: } - [1657734444.832335][7736:7741] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "AddOrUpdateWiFiNetwork" + arguments: + values: + - name: "SSID" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID + - name: "Credentials" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_CREDENTIALS + - name: "breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 + - name: "DebugText" + constraints: + maxLength: 512 - label: "Step 17: TH sends ConnectNetwork command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID and Breadcrumb field set to 3" PICS: CNET.S.C06.Rsp && CNET.S.C07.Tx - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - Below is an example: - ./chip-tool networkcommissioning connect-network hex:536265655F4D6F746F 1 0 --Breadcrumb 3 (second network) - - Via the TH (chip-tool), Verify the ConnectNetworkResponse that contains Networking Status value as 0 (success). - - [1657734624.698518][7768:7773] CHIP:TOO: ConnectNetworkResponse: { - [1657734624.698601][7768:7773] CHIP:TOO: networkingStatus: 0 - [1657734624.698661][7768:7773] CHIP:TOO: errorValue: null - [1657734624.698740][7768:7773] CHIP:TOO: } - disabled: true + command: "ConnectNetwork" + timedInteractionTimeoutMs: 5000 + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 3 + response: + values: + - name: "NetworkingStatus" + value: 0 + - name: "ErrorValue" + constraints: + type: int32s - label: - "Step 18 & 19: TH changes its WiFi connection to - PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID and TH discovers and connects to - DUT on the PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID operational network" + "Step 18: TH changes its WiFi connection to + PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID" verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that contains value as PIXIT.CNET.WIFI_2ND_ ACCESSPOINT_SSID. - -that the connected status should be the type of bool value as TRUE. + Make sure TH also joins the 2nd Wifi network to have a connectivity to the DUT. + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - [1657733596.457792][7640:7645] CHIP:TOO: Networks: 1 entries - [1657733596.457867][7640:7645] CHIP:TOO: [1]: { - [1657733596.457906][7640:7645] CHIP:TOO: NetworkID: 536265655F4D6F746F - [1657733596.457940][7640:7645] CHIP:TOO: Connected: TRUE - [1657733596.457972][7640:7645] CHIP:TOO: } - disabled: true + - label: + "Step 19: TH discovers and connects to DUT on the + PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID operational network" + PICS: CNET.S.A0001 + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 20: TH reads Breadcrumb attribute from the General Commissioning cluster of the DUT" PICS: CNET.S.C06.Rsp - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 3. - - [1657734757.740003][7793:7798] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2956231102 - [1657734757.740140][7793:7798] CHIP:TOO: Breadcrumb: 3 - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 3 + constraints: + type: int64u - label: "Step 21: TH sends the CommissioningComplete command to the DUT" - verification: | - ./chip-tool generalcommissioning commissioning-complete 1 0 - - Via the TH (chip-tool), Verify the DUT sends CommissioningComplete command and the errorCode field is 0(OK). - - [1657734803.411199][7802:7808] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0005 - [1657734803.411256][7802:7808] CHIP:TOO: CommissioningCompleteResponse: { - [1657734803.411306][7802:7808] CHIP:TOO: errorCode: 0 - [1657734803.411333][7802:7808] CHIP:TOO: debugText: - [1657734803.411356][7802:7808] CHIP:TOO: } - disabled: true - - - label: "Step 23: TH reads Networks attribute from the DUT" + cluster: "General Commissioning" + command: "CommissioningComplete" + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" + + - label: "Step 22: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that should be as PIXIT.CNET.WIFI_2ND_ ACCESSPOINT_SSID. - -that the connected status should be the type of bool value as TRUE. - - [1657734855.925075][7819:7824] CHIP:TOO: Networks: 1 entries - [1657734855.925147][7819:7824] CHIP:TOO: [1]: { - [1657734855.925185][7819:7824] CHIP:TOO: NetworkID: 536265655F4D6F746F - [1657734855.925215][7819:7824] CHIP:TOO: Connected: TRUE - [1657734855.925243][7819:7824] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID, + Connected: true, + }, + ] diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_15.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_15.yaml index df0a9776df37f5..ec89cc137f89e4 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_15.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_15.yaml @@ -11,7 +11,6 @@ # 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.13. [TC-CNET-4.15] [WiFi] NetworkIDNotFound value as @@ -22,81 +21,126 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_WIFI endpoint: 0 + PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:7A6967626565686F6D65" + tests: - - label: "Preconditions" + - label: "Precondition: DUT is factory reset" verification: | - 1. DUT supports CNET.S.F00(WI) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1 - 3. DUT is factory reset - 4. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID - 5. TH can communicate with the DUT - 6. DUT MaxNetworks attribute value is at least 1 and is saved as 'MaxNetworksValue' for future use - disabled: true - - - label: - "Step 1: TH sends ArmFailSafe command to the DUT with the - ExpiryLengthSeconds field set to 900" + Reset Devices to factory defaults + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Factory Reset the DUT and enter 'y' after success" + - name: "expectedValue" + value: "y" + + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on WiFi network" verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 0 1 0 + ./chip-tool pairing ble-wifi 0x12344321 + + [1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170 + [1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction' + [1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170 + [1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success + [1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 1 + constraints: + type: bitmap32 - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH with error code 0. + - label: + "Precondition: DUT MaxNetworks attribute value is at least 1 and is + saved as 'MaxNetworksValue' for future use" + PICS: CNET.S.A0000 + command: "readAttribute" + attribute: "MaxNetworks" + response: + saveAs: MaxNetworksValue + constraints: + type: int8u + minValue: 1 + maxValue: 255 - [1650383264.543046][44233:44238] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1650383264.543109][44233:44238] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1650383264.543212][44233:44238] CHIP:TOO: ArmFailSafeResponse: { - [1650383264.543275][44233:44238] CHIP:TOO: errorCode: 0 - [1650383264.543313][44233:44238] CHIP:TOO: debugText: - [1650383264.543348][44233:44238] CHIP:TOO: } - [1650383264.543402][44233:44238] CHIP:DMG: ICR moving to [AwaitingDe] - [1650383264.543470][44233:44238] CHIP:EM: Sending Standalone Ack for MessageCounter:6293749 on exchange 65264i - disabled: true + - label: + "Step 1: TH sends ArmFailSafe command to the DUT with + ExpiryLengthSeconds set to 900" + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 2: TH sends RemoveNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID, which does not match the provisioned network, and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 3 (NetworkIDNotFound). - - [1650383270.888700][44239:44244] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1650383270.888774][44239:44244] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1650383270.888876][44239:44244] CHIP:TOO: NetworkConfigResponse: { - [1650383270.888952][44239:44244] CHIP:TOO: networkingStatus: 3 - [1650383270.888992][44239:44244] CHIP:TOO: } - [1650383270.889044][44239:44244] CHIP:DMG: ICR moving to [AwaitingDe] - [1650383270.889125][44239:44244] CHIP:EM: Sending Standalone Ack for MessageCounter:4715093 on exchange 59014i - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 3 - label: "Step 3: TH sends ConnectNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID, which does not match the provisioned network, and Breadcrumb field set to 1" PICS: CNET.S.C06.Rsp && CNET.S.C07.Tx - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the ConnectNetworkResponse that contains Networking Status value as 3 (NetworkIDNotFound). - - [1650383278.349428][44245:44250] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 - [1650383278.349490][44245:44250] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 - [1650383278.349592][44245:44250] CHIP:TOO: ConnectNetworkResponse: { - [1650383278.349656][44245:44250] CHIP:TOO: networkingStatus: 3 - [1650383278.349693][44245:44250] CHIP:TOO: errorValue: 0 - [1650383278.349727][44245:44250] CHIP:TOO: } - [1650383278.349782][44245:44250] CHIP:DMG: ICR moving to [AwaitingDe] - [1650383278.349847][44245:44250] CHIP:EM: Sending Standalone Ack for MessageCounter:11070796 on exchange 31080i - disabled: true + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_2ND_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 3 + - name: "ErrorValue" + constraints: + type: int32s diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_16.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_16.yaml index 102e7f809ff4fe..36fa1ca62ceb30 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_16.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.14. [TC-CNET-4.16] [Thread] NetworkIDNotFound value as @@ -22,37 +21,97 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_THREAD endpoint: 0 + PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET: + type: octet_string + defaultValue: "hex:1111111122222222" + tests: - - label: "Preconditions" + - label: "Precondition : Factory reset the DUT" verification: | - 1. DUT supports CNET.S.F01(TH) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2 - 3. DUT is factory reset - 4. DUT is commissioned on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - 5. TH can communicate with the DUT on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - 6. DUT MaxNetworks attribute value is at least 1 and is saved as 'MaxNetworksValue' for future use - disabled: true - - - label: - "Step 1: TH sends ArmFailSafe command to the DUT with the - ExpiryLengthSeconds field set to 900" + Reset Devices to factory defaults + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Factory Reset the DUT and enter 'y' after success" + - name: "expectedValue" + value: "y" + + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on Thread network " verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 0 54 0 + ./chip-tool pairing ble-thread 0x12344321 + + [1698660637.937566][6429:6431] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698660637.937644][6429:6431] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698660637.937705][6429:6431] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698660637.937750][6429:6431] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698660637.937812][6429:6431] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698660637.937863][6429:6431] CHIP:DIS: Closing all BLE connections + [1698660637.937911][6429:6431] CHIP:IN: Clearing BLE pending packets. + [1698660637.938582][6429:6431] CHIP:BLE: Auto-closing end point's BLE connection. + [1698660637.938645][6429:6431] CHIP:DL: Closing BLE GATT connection (con 0xffff9c034bb0) + [1698660637.938805][6429:6430] CHIP:DL: BluezDisconnect peer=F7:D4:24:D2:4A:1F + [1698660638.365208][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: MarkForEviction Type:1 LSID:62220 + [1698660638.365311][6429:6431] CHIP:SC: SecureSession[0xffff9400f900, LSID:62220]: State change 'kActive' --> 'kPendingEviction' + [1698660638.365440][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: Released - Type:1 LSID:62220 + [1698660638.365529][6429:6431] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698660638.365598][6429:6431] CHIP:TOO: Device commissioning completed with success + [1698660638.365873][6429:6431] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after successfull Commission" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 2 + constraints: + type: bitmap32 - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH. + - label: + "Precondition: DUT MaxNetworks attribute value is at least 1 and is + saved as 'MaxNetworksValue' for future use" + PICS: CNET.S.A0000 + command: "readAttribute" + attribute: "MaxNetworks" + response: + saveAs: MaxNetworksValue + constraints: + type: int8u + minValue: 1 + maxValue: 255 - [1650392597.976230][10152:10157] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1650392597.976363][10152:10157] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1650392597.976539][10152:10157] CHIP:TOO: ArmFailSafeResponse: { - [1650392597.976665][10152:10157] CHIP:TOO: errorCode: 0 - [1650392597.976729][10152:10157] CHIP:TOO: debugText: - [1650392597.976785][10152:10157] CHIP:TOO: } - [1650392597.976874][10152:10157] CHIP:DMG: ICR moving to [AwaitingDe] - [1650392597.976987][10152:10157] CHIP:EM: Sending Standalone Ack for MessageCounter:10494017 on exchange 14665i - disabled: true + - label: + "Step 1: TH sends ArmFailSafe command to the DUT with + ExpiryLengthSeconds set to 900" + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 2: TH sends RemoveNetwork Command to the DUT with NetworkID @@ -60,27 +119,17 @@ tests: PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET, which does not match the commissioned network, and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network 2111111122222222 54 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 3 (NetworkIDNotFound). - - [1683268296.896031][12131:12134] CHIP:DMG: InteractionModelRevision = 1 - [1683268296.896239][12131:12134] CHIP:DMG: }, - [1683268296.896474][12131:12134] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1683268296.897219][12131:12134] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1683268296.897526][12131:12134] CHIP:TOO: NetworkConfigResponse: { - [1683268296.897745][12131:12134] CHIP:TOO: networkingStatus: 3 - [1683268296.898546][12131:12134] CHIP:TOO: } - [1683268296.898769][12131:12134] CHIP:DMG: ICR moving to [AwaitingDe] - [1683268296.901995][12131:12134] CHIP:EM: <<< [E:60271i S:53927 M:99281930 (Ack:250739545)] (S) Msg TX to 1:0000000000000036 [345E] --- Type 0000:10 (SecureChannel:StandaloneAck) - [1683268296.903001][12131:12134] CHIP:IN: (S) Sending msg 99281930 on secure session with LSID: 53927 - [1683268296.905843][12131:12134] CHIP:EM: Flushed pending ack for MessageCounter:250739545 on exchange 60271i - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 3 - label: "Step 3: TH sends ConnectNetwork Command to the DUT with NetworkID @@ -88,20 +137,14 @@ tests: PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET, which does not match the commissioned network, and Breadcrumb field set to 1" PICS: CNET.S.C06.Rsp && CNET.S.C07.Tx - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network 47524C50726976617465 54 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the ConnectNetworkResponse that contains Networking Status value as 3 (NetworkIDNotFound). - - [1650392982.606392][10188:10193] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 - [1650392982.606501][10188:10193] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 - [1650392982.606653][10188:10193] CHIP:TOO: ConnectNetworkResponse: { - [1650392982.606753][10188:10193] CHIP:TOO: networkingStatus: 3 - [1650392982.606815][10188:10193] CHIP:TOO: errorValue: 0 - [1650392982.606872][10188:10193] CHIP:TOO: } - [1650392982.606960][10188:10193] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_2ND_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 3 diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_2.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_2.yaml index 2fa7fd06383799..7b60871fdbc6e3 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_2.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.2. [TC-CNET-4.2] [Thread] Verification for attributes check @@ -22,217 +21,175 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_THREAD endpoint: 0 + PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET: + type: octet_string + defaultValue: "hex:1111111122222222" tests: - - label: "Preconditions" - verification: | - 1. DUT supports CNET.S.F01(TH) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2 - 3. DUT is commissioned on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - 4. TH can communicate with the DUT on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - disabled: true - - label: "Step 1: Factory reset the DUT" verification: | - - disabled: true - + Reset Devices to factory defaults + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Factory Reset the DUT and enter 'y' after success" + - name: "expectedValue" + value: "y" + + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 - label: "Step 2: Commission TH and DUT on Thread network" verification: | - - disabled: true + ./chip-tool pairing ble-thread 0x12344321 + + [1698660637.937566][6429:6431] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698660637.937644][6429:6431] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698660637.937705][6429:6431] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698660637.937750][6429:6431] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698660637.937812][6429:6431] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698660637.937863][6429:6431] CHIP:DIS: Closing all BLE connections + [1698660637.937911][6429:6431] CHIP:IN: Clearing BLE pending packets. + [1698660637.938582][6429:6431] CHIP:BLE: Auto-closing end point's BLE connection. + [1698660637.938645][6429:6431] CHIP:DL: Closing BLE GATT connection (con 0xffff9c034bb0) + [1698660637.938805][6429:6430] CHIP:DL: BluezDisconnect peer=F7:D4:24:D2:4A:1F + [1698660638.365208][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: MarkForEviction Type:1 LSID:62220 + [1698660638.365311][6429:6431] CHIP:SC: SecureSession[0xffff9400f900, LSID:62220]: State change 'kActive' --> 'kPendingEviction' + [1698660638.365440][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: Released - Type:1 LSID:62220 + [1698660638.365529][6429:6431] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698660638.365598][6429:6431] CHIP:TOO: Device commissioning completed with success + [1698660638.365873][6429:6431] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after successfull Commission" + - name: "expectedValue" + value: "y" - label: "Step 3: TH reads Descriptor Cluster from the DUT with EP0 TH reads ServerList from the DUT" - verification: | - ./chip-tool descriptor read server-list 54 0 - - Via the TH (chip-tool), verify that the server list has value as 49. - - [1686293236.629388][3601:3603] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 3777417155 - [1686293236.629594][3601:3603] CHIP:TOO: ServerList: 28 entries - [1686293236.629688][3601:3603] CHIP:TOO: [1]: 3 - [1686293236.629749][3601:3603] CHIP:TOO: [2]: 4 - [1686293236.629807][3601:3603] CHIP:TOO: [3]: 29 - [1686293236.629876][3601:3603] CHIP:TOO: [4]: 30 - [1686293236.629935][3601:3603] CHIP:TOO: [5]: 31 - [1686293236.629991][3601:3603] CHIP:TOO: [6]: 40 - [1686293236.630048][3601:3603] CHIP:TOO: [7]: 42 - [1686293236.630106][3601:3603] CHIP:TOO: [8]: 43 - [1686293236.630190][3601:3603] CHIP:TOO: [9]: 44 - [1686293236.630253][3601:3603] CHIP:TOO: [10]: 45 - [1686293236.630311][3601:3603] CHIP:TOO: [11]: 46 - [1686293236.630367][3601:3603] CHIP:TOO: [12]: 47 - [1686293236.630424][3601:3603] CHIP:TOO: [13]: 48 - [1686293236.630481][3601:3603] CHIP:TOO: [14]: 49 - [1686293236.630538][3601:3603] CHIP:TOO: [15]: 50 - [1686293236.630604][3601:3603] CHIP:TOO: [16]: 51 - [1686293236.630662][3601:3603] CHIP:TOO: [17]: 52 - [1686293236.630718][3601:3603] CHIP:TOO: [18]: 53 - [1686293236.630775][3601:3603] CHIP:TOO: [19]: 54 - [1686293236.630831][3601:3603] CHIP:TOO: [20]: 55 - [1686293236.630888][3601:3603] CHIP:TOO: [21]: 60 - [1686293236.630944][3601:3603] CHIP:TOO: [22]: 62 - [1686293236.631002][3601:3603] CHIP:TOO: [23]: 63 - [1686293236.631058][3601:3603] CHIP:TOO: [24]: 64 - [1686293236.631114][3601:3603] CHIP:TOO: [25]: 65 - [1686293236.631171][3601:3603] CHIP:TOO: [26]: 70 - [1686293236.631227][3601:3603] CHIP:TOO: [27]: 1029 - [1686293236.631285][3601:3603] CHIP:TOO: [28]: 4294048774 - [1686293236.631613][3601:3603] CHIP:EM: <<< [E:2627i S:46052 M:27080745 (Ack:161764674)] (S) Msg TX to 1:0000000000000037 [8709] --- Type 0000:10 (SecureChannel:StandaloneAck) - disabled: true + cluster: "Descriptor" + command: "readAttribute" + attribute: "ServerList" + response: + constraints: + type: list + contains: [49] - label: "Step 4: TH reads FeatureMap attribute from the DUT" - verification: | - ./chip-tool networkcommissioning read feature-map 54 0 - - Via the TH (chip-tool), verify that FeatureMap attribute value as 2 for Thread NetworkInterface. - - [1645772204.502545][3809:3814] CHIP:DMG: SuppressResponse = true, - [1645772204.502608][3809:3814] CHIP:DMG: InteractionModelRevision = 1 - [1645772204.502683][3809:3814] CHIP:DMG: } - [1645772204.503195][3809:3814] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFCDataVersion: 92121563 - [1645772204.503398][3809:3814] CHIP:TOO: FeatureMap: 2 - [1645772204.503556][3809:3814] CHIP:EM: Sending Standalone Ack for MessageCounter:5988746 on exchange 46140i - disabled: true - - - label: "Step 5: TH reads the MaxNetworks attribute from the DUT" - PICS: CNET.S.A0000 - verification: | - ./chip-tool networkcommissioning read max-networks 54 0 - - Via the TH (chip-tool), Verify the MaxNetworks attribute that contains value in the range of 1 to 255. - - [1645772548.257320][3837:3842] CHIP:DMG: SuppressResponse = true, - [1645772548.257381][3837:3842] CHIP:DMG: InteractionModelRevision = 1 - [1645772548.257437][3837:3842] CHIP:DMG: } - [1645772548.257735][3837:3842] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0000DataVersion: 92121563 - [1645772548.257878][3837:3842] CHIP:TOO: MaxNetworks: 1 - [1645772548.258032][3837:3842] CHIP:EM: Sending Standalone Ack for MessageCounter:7388528 on exchange 41499i - disabled: true + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 2 + constraints: + type: bitmap32 - label: - "Step 6: TH saves the MaxNetworks attribute value as - 'MaxNetworksValue' for future use" - verification: | - TH1 saves the MaxNetworks attribute value - disabled: true + "Step 5 & 6: TH reads the MaxNetworks attribute from the DUT. TH saves + the MaxNetworks attribute value as 'MaxNetworksValue' for future use" + PICS: CNET.S.A0000 + command: "readAttribute" + attribute: "MaxNetworks" + response: + saveAs: MaxNetworksValue + constraints: + type: int8u + minValue: 1 + maxValue: 255 - label: "Step 7: TH reads the Networks attribute list from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 54 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that should be type of octstr with a length range 1 to 32. - -that the connected status is in the type of bool value as TRUE. - - [1645772651.445097][3856:3861] CHIP:DMG: SuppressResponse = true, - [1645772651.445149][3856:3861] CHIP:DMG: InteractionModelRevision = 1 - [1645772651.445209][3856:3861] CHIP:DMG: } - [1645772651.445754][3856:3861] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001DataVersion: 92121563 - [1645772651.445875][3856:3861] CHIP:TOO: Networks: 1 entries - [1645772651.446057][3856:3861] CHIP:TOO: [1]: { - [1645772651.446120][3856:3861] CHIP:TOO: NetworkID: 1111161622222211 - [1645772651.446173][3856:3861] CHIP:TOO: Connected: TRUE - [1645772651.446228][3856:3861] CHIP:TOO: } - [1645772651.446431][3856:3861] CHIP:EM: Sending Standalone Ack for MessageCounter:12695576 on exchange 11133i - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET, + Connected: true, + }, + ] - label: "Step 8: TH reads ScanMaxTimeSeconds attribute from the DUT" PICS: CNET.S.A0002 - verification: | - ./chip-tool networkcommissioning read scan-max-time-seconds 54 0 - - Via the TH (chip-tool), Verify the ScanMaxTimeSeconds attribute that contains value in the range of 1 to 255 secs. - - [1645772820.740795][3867:3872] CHIP:DMG: SuppressResponse = true, - [1645772820.740855][3867:3872] CHIP:DMG: InteractionModelRevision = 1 - [1645772820.740903][3867:3872] CHIP:DMG: } - [1645772820.741209][3867:3872] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0002DataVersion: 92121563 - [1645772820.741357][3867:3872] CHIP:TOO: ScanMaxTimeSeconds: 10 - [1645772820.741512][3867:3872] CHIP:EM: Sending Standalone Ack for MessageCounter:10309775 on exchange 55305i - disabled: true - - - label: "Step 9: TH reads ConnectMaxTimeSeconds Attribute from the DUT" + command: "readAttribute" + attribute: "ScanMaxTimeSeconds" + response: + constraints: + type: int8u + minValue: 1 + maxValue: 255 + + - label: "Step 9: TH reads ConnectMaxTimeSeconds attribute from the DUT" PICS: CNET.S.A0003 - verification: | - ./chip-tool networkcommissioning read connect-max-time-seconds 54 0 - - Via the TH (chip-tool), Verify the ConnectMaxTimeSeconds attribute that contains value in the range of 1 to 255 secs. - - [1645772901.118880][3879:3884] CHIP:DMG: SuppressResponse = true, - [1645772901.119008][3879:3884] CHIP:DMG: InteractionModelRevision = 1 - [1645772901.119141][3879:3884] CHIP:DMG: } - [1645772901.119684][3879:3884] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0003DataVersion: 92121563 - [1645772901.119885][3879:3884] CHIP:TOO: ConnectMaxTimeSeconds: 20 - [1645772901.120100][3879:3884] CHIP:EM: Sending Standalone Ack for MessageCounter:11917538 on exchange 4188 - disabled: true + command: "readAttribute" + attribute: "ConnectMaxTimeSeconds" + response: + constraints: + type: int8u + minValue: 1 + maxValue: 255 - label: "Step 10: TH reads InterfaceEnabled attribute from the DUT" PICS: CNET.S.A0004 - verification: | - ./chip-tool networkcommissioning read interface-enabled 54 0 - - Via the TH (chip-tool), Verify the InterfaceEnabled attribute that contains bool value as True. - - [1645772984.653996][3895:3900] CHIP:DMG: SuppressResponse = true, - [1645772984.654043][3895:3900] CHIP:DMG: InteractionModelRevision = 1 - [1645772984.654084][3895:3900] CHIP:DMG: } - [1645772984.654310][3895:3900] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0004DataVersion: 92121563 - [1645772984.654388][3895:3900] CHIP:TOO: InterfaceEnabled: TRUE - [1645772984.654530][3895:3900] CHIP:EM: Sending Standalone Ack for MessageCounter:14026610 on exchange 33717i - disabled: true + command: "readAttribute" + attribute: "InterfaceEnabled" + response: + value: true + constraints: + type: boolean - label: "Step 11: TH reads LastNetworkingStatus attribute from the DUT" PICS: CNET.S.A0005 - verification: | - ./chip-tool networkcommissioning read last-networking-status 54 0 - - Via the TH (chip-tool), Verify the LastNetworkingStatus attribute that contains value as 0 that mentions success. - - [1645773078.930516][3905:3910] CHIP:DMG: SuppressResponse = true, - [1645773078.930579][3905:3910] CHIP:DMG: InteractionModelRevision = 1 - [1645773078.930635][3905:3910] CHIP:DMG: } - [1645773078.930943][3905:3910] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0005DataVersion: 92121563 - [1645773078.931067][3905:3910] CHIP:TOO: LastNetworkingStatus: 0 - [1645773078.931217][3905:3910] CHIP:EM: Sending Standalone Ack for MessageCounter:16576011 on exchange 44187i - disabled: true + command: "readAttribute" + attribute: "LastNetworkingStatus" + response: + value: 0 + constraints: + type: NetworkCommissioningStatusEnum - label: - "Step 12: TH reads the LastNetworkID attribute from the DUT TH reads + "Step 12a: TH reads the LastNetworkID attribute from the DUT. TH reads the Networks attribute from the DUT" PICS: CNET.S.A0006 - verification: | - ./chip-tool networkcommissioning read last-network-id 54 0 - - Via the TH (chip-tool), Verify: - -that the LastNetworkID attribute that contains NetworkID that should be type of octstr with a length range 1 to 32. - -if the Networks attribute list is Empty, then LastNetworkID attribute value is null. - - [1645773167.178501][3913:3918] CHIP:DMG: SuppressResponse = true, - [1645773167.178561][3913:3918] CHIP:DMG: InteractionModelRevision = 1 - [1645773167.178618][3913:3918] CHIP:DMG: } - [1645773167.178919][3913:3918] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006DataVersion: 92121563 - [1645773167.182241][3913:3918] CHIP:TOO: LastNetworkID: 1111161622222211 - [1645773167.182422][3913:3918] CHIP:EM: Sending Standalone Ack for MessageCounter:2029571 on exchange 18566i - disabled: true + command: "readAttribute" + attribute: "LastNetworkID" + response: + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + constraints: + type: octet_string + minLength: 1 + maxLength: 32 + + - label: "Step 12b: TH reads the Networks attribute list from the DUT" + PICS: CNET.S.A0001 + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET, + Connected: true, + }, + ] - label: "Step 13: TH reads the LastConnectErrorValue attribute from the DUT" PICS: CNET.S.A0007 - verification: | - ./chip-tool networkcommissioning read last-connect-error-value 54 0 - - Via the TH (chip-tool), Verify the LastConnectErrorValue attribute that contains value as null. - - [1645773318.752774][3938:3943] CHIP:DMG: SuppressResponse = true, - [1645773318.752861][3938:3943] CHIP:DMG: InteractionModelRevision = 1 - [1645773318.753043][3938:3943] CHIP:DMG: } - [1645773318.753543][3938:3943] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007DataVersion: 92121563 - [1645773318.753724][3938:3943] CHIP:TOO: LastConnectErrorValue: null - [1645773318.753985][3938:3943] CHIP:EM: Sending Standalone Ack for MessageCounter:15303417 on exchange 41937i - disabled: true + command: "readAttribute" + attribute: "LastConnectErrorValue" + response: + value: null + constraints: + type: int32s diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_22.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_22.yaml index 410a4ca2b56751..b8e82aced329fc 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_22.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_22.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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: 4.4.20. [TC-CNET-4.22] [Thread] Verification for ScanNetworks command @@ -22,179 +21,212 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_THREAD endpoint: 0 + PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET: + type: octet_string + defaultValue: "hex:1111111122222222" tests: - - label: "Preconditions" + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on Thread network " verification: | - 1. DUT supports CNET.S.F01(TH) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2 - 3. DUT is commissioned on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - 4. TH can communicate with the DUT on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - disabled: true + ./chip-tool pairing ble-thread 0x12344321 + + [1698660637.937566][6429:6431] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698660637.937644][6429:6431] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698660637.937705][6429:6431] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698660637.937750][6429:6431] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698660637.937812][6429:6431] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698660637.937863][6429:6431] CHIP:DIS: Closing all BLE connections + [1698660637.937911][6429:6431] CHIP:IN: Clearing BLE pending packets. + [1698660637.938582][6429:6431] CHIP:BLE: Auto-closing end point's BLE connection. + [1698660637.938645][6429:6431] CHIP:DL: Closing BLE GATT connection (con 0xffff9c034bb0) + [1698660637.938805][6429:6430] CHIP:DL: BluezDisconnect peer=F7:D4:24:D2:4A:1F + [1698660638.365208][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: MarkForEviction Type:1 LSID:62220 + [1698660638.365311][6429:6431] CHIP:SC: SecureSession[0xffff9400f900, LSID:62220]: State change 'kActive' --> 'kPendingEviction' + [1698660638.365440][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: Released - Type:1 LSID:62220 + [1698660638.365529][6429:6431] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698660638.365598][6429:6431] CHIP:TOO: Device commissioning completed with success + [1698660638.365873][6429:6431] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" - label: "Step 1: TH sends ScanNetworks command to the DUT with the SSID field omitted and the Breadcrumb field set to 1" PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx - verification: | - ./chip-tool networkcommissioning scan-networks 54 0 --Breadcrumb 1 + command: "ScanNetworks" + arguments: + values: + - name: "SSID" + value: "" + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + constraints: + anyOf: [0, 1, 5, 6, 12] + - name: "DebugText" + constraints: + maxLength: 512 + - name: "ThreadScanResults" + constraints: + type: list + - label: + "Step 1: Verify each element in the ThreadScanResults list will have + the following fields:" + verification: | Via the TH (all-clusters-app), verify: - -the NetworkingStatus value as 0 that mentions success. - -the PanId value is in the range of 0 to 65534. - -the ExtendedPanId value is type of uint64. - -the NetworkName value is type of string with a size of 1 to 16 bytes. - -the Channel is type of uint16 with range 0 to 65535. - -the version value is type of uint8(0 to 255). - -the ExtendedAddress is a hwaddr with a size of 8 bytes - -the RSSI is of type int8 with a range of -120 to 0. - -the LQI is type of uint8(0 to 255). - - [1658297246.000815][7679:7684] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0001 - [1658297246.001029][7679:7684] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 - [1658297246.001190][7679:7684] CHIP:TOO: ScanNetworksResponse: { - [1658297246.001270][7679:7684] CHIP:TOO: networkingStatus: 0 - [1658297246.001357][7679:7684] CHIP:TOO: threadScanResults: 1 entries - [1658297246.001485][7679:7684] CHIP:TOO: [1]: { - [1658297246.001548][7679:7684] CHIP:TOO: PanId: 64206 - [1658297246.001607][7679:7684] CHIP:TOO: ExtendedPanId: 3861484836749312 - [1658297246.001665][7679:7684] CHIP:TOO: NetworkName: GRL - [1658297246.001721][7679:7684] CHIP:TOO: Channel: 11 - [1658297246.001777][7679:7684] CHIP:TOO: Version: 4 - [1658297246.001841][7679:7684] CHIP:TOO: ExtendedAddress: 166E0A0000000001 - [1658297246.001900][7679:7684] CHIP:TOO: Rssi: -81 - [1658297246.001955][7679:7684] CHIP:TOO: Lqi: 48 - [1658297246.002010][7679:7684] CHIP:TOO: } - [1658297246.002070][7679:7684] CHIP:TOO: } - [1658297246.002181][7679:7684] CHIP:DMG: ICR moving to [AwaitingDe] - [1658297246.002298][7679:7684] CHIP:EM: Sending Standalone Ack for MessageCounter:124278362 on exchange 24525i - disabled: true + -the PanId value is in the range of 0 to 65534. + -the ExtendedPanId value is type of uint64. + -the NetworkName value is type of string with a size of 1 to 16 bytes. + -the Channel is type of uint16 with range 0 to 65535. + -the version value is type of uint8(0 to 255). + -the ExtendedAddress is a hwaddr with a size of 8 bytes + -the RSSI is of type int8 with a range of -120 to 0. + -the LQI is type of uint8(0 to 255). + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 2: TH reads Breadcrumb attribute from the General Commissioning Cluster" - verification: | - ./chip-tool generalcommissioning read breadcrumb 54 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 1. - - [1657688310.986593][1613:1618] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 829017612 - [1657688310.989412][1613:1618] CHIP:TOO: Breadcrumb: 1 - [1657688310.989586][1613:1618] CHIP:EM: Sending Standalone Ack for MessageCounter:63605306 on exchange 55886i - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 1 + constraints: + type: int64u - label: "Step 3: TH sends ScanNetworks command to the DUT with the SSID field set to null and the Breadcrumb field set to 2" PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx - verification: | - ./chip-tool networkcommissioning scan-networks 54 0 --Breadcrumb 2 + command: "ScanNetworks" + arguments: + values: + - name: "SSID" + value: null + - name: "Breadcrumb" + value: 2 + response: + values: + - name: "NetworkingStatus" + constraints: + anyOf: [0, 1, 5, 6, 12] + - name: "DebugText" + constraints: + maxLength: 512 + - name: "ThreadScanResults" + constraints: + type: list + - label: + "Step 3: Verify each element in the ThreadScanResults list will have + the following fields:" + verification: | Via the TH (all-clusters-app), verify: - -the NetworkingStatus value as 0 that mentions success. - -the PanId value is in the range of 0 to 65534. - -the ExtendedPanId value is type of uint64. - -the NetworkName value is type of string with a size of 1 to 16 bytes. - -the Channel is type of uint16 with range 0 to 65535. - -the version value is type of uint8(0 to 255). - -the ExtendedAddress is a hwaddr with a size of 8 bytes - -the RSSI is of type int8 with a range of -120 to 0. - -the LQI is type of uint8(0 to 255). - - [1658297283.141075][7695:7700] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0001 - [1658297283.141183][7695:7700] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 - [1658297283.141356][7695:7700] CHIP:TOO: ScanNetworksResponse: { - [1658297283.141438][7695:7700] CHIP:TOO: networkingStatus: 0 - [1658297283.141534][7695:7700] CHIP:TOO: threadScanResults: 2 entries - [1658297283.141663][7695:7700] CHIP:TOO: [1]: { - [1658297283.141729][7695:7700] CHIP:TOO: PanId: 64206 - [1658297283.141788][7695:7700] CHIP:TOO: ExtendedPanId: 3861484836749312 - [1658297283.141847][7695:7700] CHIP:TOO: NetworkName: GRL - [1658297283.141904][7695:7700] CHIP:TOO: Channel: 11 - [1658297283.141961][7695:7700] CHIP:TOO: Version: 4 - [1658297283.142023][7695:7700] CHIP:TOO: ExtendedAddress: 166E0A0000000001 - [1658297283.142079][7695:7700] CHIP:TOO: Rssi: -80 - [1658297283.142134][7695:7700] CHIP:TOO: Lqi: 52 - [1658297283.142188][7695:7700] CHIP:TOO: } - [1658297283.142271][7695:7700] CHIP:TOO: [2]: { - [1658297283.142331][7695:7700] CHIP:TOO: PanId: 64206 - [1658297283.142386][7695:7700] CHIP:TOO: ExtendedPanId: 3861484836749312 - [1658297283.142443][7695:7700] CHIP:TOO: NetworkName: GRL - [1658297283.142500][7695:7700] CHIP:TOO: Channel: 11 - [1658297283.142551][7695:7700] CHIP:TOO: Version: 4 - [1658297283.142609][7695:7700] CHIP:TOO: ExtendedAddress: 166E0A0000000001 - [1658297283.142665][7695:7700] CHIP:TOO: Rssi: -83 - [1658297283.142718][7695:7700] CHIP:TOO: Lqi: 44 - [1658297283.142771][7695:7700] CHIP:TOO: } - [1658297283.142828][7695:7700] CHIP:TOO: } - [1658297283.142958][7695:7700] CHIP:DMG: ICR moving to [AwaitingDe] - [1658297283.143074][7695:7700] CHIP:EM: Sending Standalone Ack for MessageCounter:115607423 on exchange 55136i - disabled: true + -the PanId value is in the range of 0 to 65534. + -the ExtendedPanId value is type of uint64. + -the NetworkName value is type of string with a size of 1 to 16 bytes. + -the Channel is type of uint16 with range 0 to 65535. + -the version value is type of uint8(0 to 255). + -the ExtendedAddress is a hwaddr with a size of 8 bytes + -the RSSI is of type int8 with a range of -120 to 0. + -the LQI is type of uint8(0 to 255). + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 4: TH reads Breadcrumb attribute from the General Commissioning Cluster" - verification: | - ./chip-tool generalcommissioning read breadcrumb 54 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 2. - - [1657688397.398564][1626:1631] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 829017613 - [1657688397.398697][1626:1631] CHIP:TOO: Breadcrumb: 2 - [1657688397.398852][1626:1631] CHIP:EM: Sending Standalone Ack for MessageCounter:129342305 on exchange 25970i - disabled: true - + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 2 + constraints: + type: int64u - label: "Step 5: TH sends ScanNetworks command to the DUT with the SSID field set to a random string of ASCII characters with a size of between 1 and 31 characters and the Breadcrumb field set to 3" PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx - verification: | - ./chip-tool networkcommissioning scan-networks 54 0 --Breadcrumb 3 + command: "ScanNetworks" + arguments: + values: + - name: "SSID" + value: "hex:1111111522222222" + - name: "Breadcrumb" + value: 3 + response: + values: + - name: "NetworkingStatus" + constraints: + anyOf: [0, 1, 5, 6, 12] + - name: "DebugText" + constraints: + maxLength: 512 + - name: "ThreadScanResults" + constraints: + type: list + - label: + "Step 5: Verify each element in the ThreadScanResults list will have + the following fields:" + verification: | Via the TH (all-clusters-app), verify: - -the NetworkingStatus value should be as 0 that mentions success. - -the PanId value should be with in the range of 0 to 65534. - -the ExtendedPanId value is type of uint64. - -the NetworkName value is type of string with a size of 1 to 16 bytes. - -the Channel is type of uint16 with range 0 to 65535. - -the version value is type of uint8(0 to 255). - -the ExtendedAddress is a hwaddr with a size of 8 bytes - -the RSSI is of type int8 with a range of -120 to 0. - -the LQI is type of uint8(0 to 255). - - [1658297312.201709][7708:7713] CHIP:DMG: }, - [1658297312.201898][7708:7713] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0001 - [1658297312.202021][7708:7713] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 - [1658297312.202196][7708:7713] CHIP:TOO: ScanNetworksResponse: { - [1658297312.202276][7708:7713] CHIP:TOO: networkingStatus: 0 - [1658297312.202359][7708:7713] CHIP:TOO: threadScanResults: 1 entries - [1658297312.202481][7708:7713] CHIP:TOO: [1]: { - [1658297312.202544][7708:7713] CHIP:TOO: PanId: 64206 - [1658297312.202604][7708:7713] CHIP:TOO: ExtendedPanId: 3861484836749312 - [1658297312.202663][7708:7713] CHIP:TOO: NetworkName: GRL - [1658297312.202718][7708:7713] CHIP:TOO: Channel: 11 - [1658297312.202775][7708:7713] CHIP:TOO: Version: 4 - [1658297312.202838][7708:7713] CHIP:TOO: ExtendedAddress: 166E0A0000000001 - [1658297312.202897][7708:7713] CHIP:TOO: Rssi: -78 - [1658297312.202952][7708:7713] CHIP:TOO: Lqi: 60 - [1658297312.203007][7708:7713] CHIP:TOO: } - [1658297312.203066][7708:7713] CHIP:TOO: } - [1658297312.203176][7708:7713] CHIP:DMG: ICR moving to [AwaitingDe] - [1658297312.203284][7708:7713] CHIP:EM: Sending Standalone Ack for MessageCounter:217378941 on exchange 37389i - disabled: true + -the PanId value is in the range of 0 to 65534. + -the ExtendedPanId value is type of uint64. + -the NetworkName value is type of string with a size of 1 to 16 bytes. + -the Channel is type of uint16 with range 0 to 65535. + -the version value is type of uint8(0 to 255). + -the ExtendedAddress is a hwaddr with a size of 8 bytes + -the RSSI is of type int8 with a range of -120 to 0. + -the LQI is type of uint8(0 to 255). + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 6: TH reads Breadcrumb attribute from the General Commissioning Cluster" - verification: | - ./chip-tool generalcommissioning read breadcrumb 54 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 3. - - [1657688489.553742][1639:1644] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 829017614 - [1657688489.553897][1639:1644] CHIP:TOO: Breadcrumb: 3 - [1657688489.554053][1639:1644] CHIP:EM: Sending Standalone Ack for MessageCounter:86525470 on exchange 7368i - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 3 + constraints: + type: int64u diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_3.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_3.yaml index e65428f1878632..aa7d545e9b4a70 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_3.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,179 +11,146 @@ # 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.3. [TC-CNET-4.3] [Ethernet] Verification for attributes check [DUT-Server] + PICS: - CNET.S.F02 config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + # PIXIT.CNET.ENDPOINT_ETHERNET endpoint: 0 + NetworkID: + type: octet_string + defaultValue: "hex:6574682D617070" + payload: + type: char_string + defaultValue: "MT:-24J042C00KA0648G00" tests: - - label: "Preconditions" - verification: | - 1. DUT supports CNET.S.F02(ET) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_ETHERNET with FeatureMap attribute of 4 - 3. DUT has a valid Ethernet connection - 4. TH can communicate with the DUT - disabled: true + - label: "Step 1: Reset Devices to factory defaults" + PICS: PICS_SDK_CI_ONLY + cluster: "SystemCommands" + command: "FactoryReset" - - label: "Step 1: Factory reset the DUT" + - label: "Step 1: Reset Devices to factory defaults" verification: | - - disabled: true + Reset Devices to factory defaults + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Factory Reset the DUT and enter 'y' after success" + - name: "expectedValue" + value: "y" - label: "Step 2: Commission TH and DUT on Ethernet setup" - verification: | - - disabled: true + cluster: "CommissionerCommands" + command: "PairWithCode" + arguments: + values: + - name: "nodeId" + value: nodeId + - name: "payload" + value: payload + + - label: "Step 2: Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId - label: "Step 3: TH reads Descriptor Cluster from the DUT with EP0 TH reads ServerList from the DUT" - verification: | - ./chip-tool descriptor read server-list 1 0 - - Via the TH (chip-tool), verify that the server list has value as 49. - - [1646226258.250313][2446:2451] CHIP:DMG: SuppressResponse = true, - [1646226258.250337][2446:2451] CHIP:DMG: InteractionModelRevision = 1 - [1646226258.250359][2446:2451] CHIP:DMG: } - [1646226258.252027][2446:2451] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001DataVersion: 3582931896 - [1646226258.252128][2446:2451] CHIP:TOO: server list: 25 entries - [1646226258.252183][2446:2451] CHIP:TOO: [1]: 3 - [1646226258.252208][2446:2451] CHIP:TOO: [2]: 4 - [1646226258.252232][2446:2451] CHIP:TOO: [3]: 29 - [1646226258.252256][2446:2451] CHIP:TOO: [4]: 30 - [1646226258.252280][2446:2451] CHIP:TOO: [5]: 31 - [1646226258.252303][2446:2451] CHIP:TOO: [6]: 40 - [1646226258.252326][2446:2451] CHIP:TOO: [7]: 42 - [1646226258.252349][2446:2451] CHIP:TOO: [8]: 43 - [1646226258.252373][2446:2451] CHIP:TOO: [9]: 44 - [1646226258.252396][2446:2451] CHIP:TOO: [10]: 45 - [1646226258.252420][2446:2451] CHIP:TOO: [11]: 46 - [1646226258.252443][2446:2451] CHIP:TOO: [12]: 48 - [1646226258.252466][2446:2451] CHIP:TOO: [13]: 49 - [1646226258.252489][2446:2451] CHIP:TOO: [14]: 50 - [1646226258.252512][2446:2451] CHIP:TOO: [15]: 51 - [1646226258.252536][2446:2451] CHIP:TOO: [16]: 52 - [1646226258.252559][2446:2451] CHIP:TOO: [17]: 53 - [1646226258.252582][2446:2451] CHIP:TOO: [18]: 54 - [1646226258.252605][2446:2451] CHIP:TOO: [19]: 55 - [1646226258.252629][2446:2451] CHIP:TOO: [20]: 60 - [1646226258.252652][2446:2451] CHIP:TOO: [21]: 62 - [1646226258.252675][2446:2451] CHIP:TOO: [22]: 63 - [1646226258.252698][2446:2451] CHIP:TOO: [23]: 64 - [1646226258.252721][2446:2451] CHIP:TOO: [24]: 65 - [1646226258.252745][2446:2451] CHIP:TOO: [25]: 1029 - [1646226258.255517][2446:2451] CHIP:EM: Sending Standalone Ack for MessageCounter:10627940 on exchange 21443i - disabled: true - - - label: "Step 4: TH reads FeatureMap attribute from the DUT" - verification: | - ./chip-tool networkcommissioning read feature-map 1 0 - - Via the TH (chip-tool), verify that FeatureMap attribute value as 4 for Ethernet NetworkInterface. - - [1649309323.273092][2611:2617] CHIP:DMG: } - [1649309323.273466][2611:2617] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 3138976789 - [1649309323.278715][2611:2617] CHIP:TOO: FeatureMap: 4 - [1649309323.278863][2611:2617] CHIP:EM: Sending Standalone Ack for MessageCounter:532597 on exchange 51560i - disabled: true - - - label: "Step 5: TH reads the MaxNetworks attribute from the DUT" - PICS: CNET.S.A0000 - verification: | - ./chip-tool networkcommissioning read max-networks 1 0 - - Via the TH (chip-tool), Verify the MaxNetworks attribute that contains value in the range of 1 to 255. - - [1646226441.815782][2475:2480] CHIP:DMG: SuppressResponse = true, - [1646226441.815849][2475:2480] CHIP:DMG: InteractionModelRevision = 1 - [1646226441.815889][2475:2480] CHIP:DMG: } - [1646226441.816092][2475:2480] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0000DataVersion: 3622667250 - [1646226441.816191][2475:2480] CHIP:TOO: MaxNetworks: 1 - [1646226441.816288][2475:2480] CHIP:EM: Sending Standalone Ack for MessageCounter:14864333 on exchange 39473i - disabled: true + cluster: "Descriptor" + command: "readAttribute" + attribute: "ServerList" + response: + constraints: + type: list + contains: [49] + + - label: "Step 4a: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 4 + constraints: + type: bitmap32 - label: - "Step 6: TH saves the MaxNetworks attribute value as - 'MaxNetworksValue' for future use" - verification: | - TH saves MaxNetworks attribute value - disabled: true + "Step 5 & 6: TH reads the MaxNetworks attribute from the DUT. TH saves + the MaxNetworks attribute value as 'MaxNetworksValue' for future use" + PICS: CNET.S.A0000 + command: "readAttribute" + attribute: "MaxNetworks" + response: + saveAs: MaxNetworksValue + constraints: + type: int8u + minValue: 1 + maxValue: 255 - label: "Step 7: TH reads the Networks attribute list from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that should be the type of octstr with a length range of 1 to 32. - -that the connected status should be type of bool and value as TRUE. - - [1654076774.294361][33659:33664] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 609053543 - [1654076774.294505][33659:33664] CHIP:TOO: Networks: 1 entries - [1654076774.294625][33659:33664] CHIP:TOO: [1]: { - [1654076774.294679][33659:33664] CHIP:TOO: NetworkID: 6368697035 - [1654076774.294726][33659:33664] CHIP:TOO: Connected: TRUE - [1654076774.294774][33659:33664] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: [{ NetworkID: NetworkID, Connected: true }] - label: "Step 8: TH reads InterfaceEnabled attribute from the DUT" PICS: CNET.S.A0004 - verification: | - ./chip-tool networkcommissioning read interface-enabled 1 0 - - Via the TH (chip-tool), Verify the InterfaceEnabled attribute that contains bool value as True. - - [1653473893.275901][29834:29839] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0004 DataVersion: 1600858167 - [1653473893.275964][29834:29839] CHIP:TOO: InterfaceEnabled: TRUE - [1653473893.276084][29834:29839] CHIP:EM: Sending Standalone Ack for MessageCounter:13157245 on exchange 55578i - disabled: true + command: "readAttribute" + attribute: "InterfaceEnabled" + response: + value: true + constraints: + type: boolean - label: "Step 9: TH reads LastNetworkingStatus attribute from the DUT" PICS: CNET.S.A0005 - verification: | - ./chip-tool networkcommissioning read last-networking-status 1 0 - - Via the TH (chip-tool), Verify the LastNetworkingStatus attribute that contains value as null as per spec. - - [1659609891.611493][3877:3882] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0005 DataVersion: 4108508964 - [1659609891.611559][3877:3882] CHIP:TOO: LastNetworkingStatus: null - [1659609891.611689][3877:3882] CHIP:EM: Sending Standalone Ack for MessageCounter:172102677 on exchange 50438i - disabled: true + command: "readAttribute" + attribute: "LastNetworkingStatus" + response: + value: null - label: - "Step 10: TH reads the LastNetworkID attribute from the DUT TH reads + "Step 10: TH reads the LastNetworkID attribute from the DUT. TH reads the Networks attribute from the DUT" PICS: CNET.S.A0006 - verification: | - ./chip-tool networkcommissioning read last-network-id 1 0 - - Via the TH (chip-tool), Verify: - -that the LastNetworkID attribute that contains NetworkID that should be the type of octstr with a length range of 1 to 32. - -if the Networks attribute list is Empty, then LastNetworkID attribute value is null. - - [1659610135.589352][3895:3900] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 4108508964 - [1659610135.589410][3895:3900] CHIP:TOO: LastNetworkID: null - [1659610135.589549][3895:3900] CHIP:EM: Sending Standalone Ack for MessageCounter:28696356 on exchange 52969i - disabled: true + command: "readAttribute" + attribute: "LastNetworkID" + response: + value: null + constraints: + type: octet_string + minLength: 1 + maxLength: 32 + + - label: "Step 10: TH reads the Networks attribute list from the DUT" + PICS: CNET.S.A0001 + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: [{ NetworkID: NetworkID, Connected: true }] - label: "Step 11: TH reads the LastConnectErrorValue attribute from the DUT" PICS: CNET.S.A0007 - verification: | - ./chip-tool networkcommissioning read last-connect-error-value 1 0 - - Via the TH (chip-tool), Verify the LastConnectErrorValue attribute that contains value as null. - - [1653483224.839873][28189:28194] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007 DataVersion: 3189790698 - [1653483224.839927][28189:28194] CHIP:TOO: LastConnectErrorValue: null - [1653483224.840028][28189:28194] CHIP:EM: Sending Standalone Ack for MessageCounter:289132 on exchange 60682i - disabled: true + command: "readAttribute" + attribute: "LastConnectErrorValue" + response: + value: null + constraints: + type: int32s diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_4.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_4.yaml index 26493ea10e7c1c..aaf348393320e1 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_4.yaml @@ -1,8 +1,8 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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 +# You may obtain a copy of the License atour sweet # # http://www.apache.org/licenses/LICENSE-2.0 # @@ -11,7 +11,6 @@ # 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.4. [TC-CNET-4.4] [WiFi] Verification for ScanNetworks command @@ -22,216 +21,153 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_WIFI endpoint: 0 + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:47524C50726976617465" tests: - - label: "Preconditions" + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition : Commission TH and DUT on WiFi network" verification: | - 1. DUT supports CNET.S.F00(WI) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1 - 3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID - 4. TH can communicate with the DUT - disabled: true - - - label: "Commission TH and DUT over BLE to setup the Wi-Fi" - verification: | - - disabled: true + ./chip-tool pairing ble-wifi 0x12344321 + + [1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170 + [1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction' + [1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170 + [1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success + [1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 1 + constraints: + type: bitmap32 - label: - "Step 1: TH sends ScanNetworks command to the DUT with the SSID field + "Step 1a: TH sends ScanNetworks command to the DUT with the SSID field set to 'null' and Breadcrumb field set to 1" PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx - verification: | - ./chip-tool networkcommissioning scan-networks 1 0 --Ssid null --Breadcrumb 1 + command: "ScanNetworks" + arguments: + values: + - name: "SSID" + value: null + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + constraints: + anyOf: [0, 1, 5, 6, 12] + - name: "DebugText" + constraints: + maxLength: 512 + - name: "WiFiScanResults" + constraints: + type: list + - label: + "Step 1a: Verify each element in the WiFiScanResults list will have + the following fields:" + verification: | Via the TH (chip-tool), verify: - -the NetworkingStatus value should be as 0 that mentions success. -the Security value is in the type of map8 with length range 0 to 254. -the SSID value is in the ype of octstr with length range 1 to 32. -the BSSID value is in the type of octstr with length range of 6. -the Channel is in the type of uint16 with range 0 to 65,535. -the WiFi Band is in the of type enum8 with a range of -128 to 127. -the RSSI is in the of type int8 with a range of -120 to 0. - - [1653475026.012811][29937:29942] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 - [1653475026.012942][29937:29942] CHIP:TOO: ScanNetworksResponse: { - [1653475026.012983][29937:29942] CHIP:TOO: networkingStatus: 0 - [1653475026.013075][29937:29942] CHIP:TOO: wiFiScanResults: 15 entries - [1653475026.013143][29937:29942] CHIP:TOO: [1]: { - [1653475026.013169][29937:29942] CHIP:TOO: Security: 8 - [1653475026.013195][29937:29942] CHIP:TOO: Ssid: 47524C507269766174655F455854 - [1653475026.013219][29937:29942] CHIP:TOO: Bssid: E01CFCE4B236 - [1653475026.013242][29937:29942] CHIP:TOO: Channel: 11 - [1653475026.013264][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.013286][29937:29942] CHIP:TOO: Rssi: -9 - [1653475026.013310][29937:29942] CHIP:TOO: } - [1653475026.013344][29937:29942] CHIP:TOO: [2]: { - [1653475026.013368][29937:29942] CHIP:TOO: Security: 8 - [1653475026.013390][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.013414][29937:29942] CHIP:TOO: Bssid: C006C3F95EEB - [1653475026.013436][29937:29942] CHIP:TOO: Channel: 153 - [1653475026.013458][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.013479][29937:29942] CHIP:TOO: Rssi: -52 - [1653475026.013500][29937:29942] CHIP:TOO: } - [1653475026.013531][29937:29942] CHIP:TOO: [3]: { - [1653475026.013556][29937:29942] CHIP:TOO: Security: 8 - [1653475026.013578][29937:29942] CHIP:TOO: Ssid: - [1653475026.013599][29937:29942] CHIP:TOO: Bssid: C606C3F95EEB - [1653475026.013621][29937:29942] CHIP:TOO: Channel: 153 - [1653475026.013642][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.013663][29937:29942] CHIP:TOO: Rssi: -52 - [1653475026.013684][29937:29942] CHIP:TOO: } - [1653475026.013715][29937:29942] CHIP:TOO: [4]: { - [1653475026.013738][29937:29942] CHIP:TOO: Security: 12 - [1653475026.013762][29937:29942] CHIP:TOO: Ssid: 7A69676265652D7468726561642D3547487A - [1653475026.013784][29937:29942] CHIP:TOO: Bssid: 6C198FC83ABE - [1653475026.013806][29937:29942] CHIP:TOO: Channel: 44 - [1653475026.013827][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.013848][29937:29942] CHIP:TOO: Rssi: -55 - [1653475026.013869][29937:29942] CHIP:TOO: } - [1653475026.013900][29937:29942] CHIP:TOO: [5]: { - [1653475026.013923][29937:29942] CHIP:TOO: Security: 8 - [1653475026.013945][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.013967][29937:29942] CHIP:TOO: Bssid: C006C3F95F31 - [1653475026.013988][29937:29942] CHIP:TOO: Channel: 48 - [1653475026.014029][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.014051][29937:29942] CHIP:TOO: Rssi: -65 - [1653475026.014073][29937:29942] CHIP:TOO: } - [1653475026.014106][29937:29942] CHIP:TOO: [6]: { - [1653475026.014129][29937:29942] CHIP:TOO: Security: 8 - [1653475026.014151][29937:29942] CHIP:TOO: Ssid: - [1653475026.014172][29937:29942] CHIP:TOO: Bssid: C606C3F95F31 - [1653475026.014194][29937:29942] CHIP:TOO: Channel: 48 - [1653475026.014215][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.014236][29937:29942] CHIP:TOO: Rssi: -65 - [1653475026.014257][29937:29942] CHIP:TOO: } - [1653475026.014288][29937:29942] CHIP:TOO: [7]: { - [1653475026.014311][29937:29942] CHIP:TOO: Security: 8 - [1653475026.014335][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.014357][29937:29942] CHIP:TOO: Bssid: C006C3F95ECF - [1653475026.014379][29937:29942] CHIP:TOO: Channel: 153 - [1653475026.014400][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.014421][29937:29942] CHIP:TOO: Rssi: -68 - [1653475026.014442][29937:29942] CHIP:TOO: } - [1653475026.014473][29937:29942] CHIP:TOO: [8]: { - [1653475026.014496][29937:29942] CHIP:TOO: Security: 8 - [1653475026.014518][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.014540][29937:29942] CHIP:TOO: Bssid: 1027F5374EC7 - [1653475026.014561][29937:29942] CHIP:TOO: Channel: 153 - [1653475026.014582][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.014603][29937:29942] CHIP:TOO: Rssi: -73 - [1653475026.014624][29937:29942] CHIP:TOO: } - [1653475026.014654][29937:29942] CHIP:TOO: [9]: { - [1653475026.014677][29937:29942] CHIP:TOO: Security: 8 - [1653475026.014698][29937:29942] CHIP:TOO: Ssid: - [1653475026.014720][29937:29942] CHIP:TOO: Bssid: 1627F5374EC7 - [1653475026.014741][29937:29942] CHIP:TOO: Channel: 153 - [1653475026.014762][29937:29942] CHIP:TOO: WiFiBand: 2 - [1653475026.014783][29937:29942] CHIP:TOO: Rssi: -72 - [1653475026.014804][29937:29942] CHIP:TOO: } - [1653475026.014834][29937:29942] CHIP:TOO: [10]: { - [1653475026.014858][29937:29942] CHIP:TOO: Security: 12 - [1653475026.014880][29937:29942] CHIP:TOO: Ssid: 4368697031 - [1653475026.014902][29937:29942] CHIP:TOO: Bssid: 0C0E764EF1C8 - [1653475026.014923][29937:29942] CHIP:TOO: Channel: 11 - [1653475026.014944][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.014965][29937:29942] CHIP:TOO: Rssi: -38 - [1653475026.014986][29937:29942] CHIP:TOO: } - [1653475026.015017][29937:29942] CHIP:TOO: [11]: { - [1653475026.015039][29937:29942] CHIP:TOO: Security: 8 - [1653475026.015061][29937:29942] CHIP:TOO: Ssid: 4368697073657475703442 - [1653475026.015083][29937:29942] CHIP:TOO: Bssid: E01CFCEA2A46 - [1653475026.015105][29937:29942] CHIP:TOO: Channel: 11 - [1653475026.015126][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.015147][29937:29942] CHIP:TOO: Rssi: -34 - [1653475026.015168][29937:29942] CHIP:TOO: } - [1653475026.015198][29937:29942] CHIP:TOO: [12]: { - [1653475026.015221][29937:29942] CHIP:TOO: Security: 8 - [1653475026.015244][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.015266][29937:29942] CHIP:TOO: Bssid: 6032B197B89E - [1653475026.015288][29937:29942] CHIP:TOO: Channel: 11 - [1653475026.015309][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.015330][29937:29942] CHIP:TOO: Rssi: -37 - [1653475026.015351][29937:29942] CHIP:TOO: } - [1653475026.015381][29937:29942] CHIP:TOO: [13]: { - [1653475026.015404][29937:29942] CHIP:TOO: Security: 12 - [1653475026.015427][29937:29942] CHIP:TOO: Ssid: 7A69676265652D746872656164 - [1653475026.015449][29937:29942] CHIP:TOO: Bssid: 6C198FC83ABC - [1653475026.015470][29937:29942] CHIP:TOO: Channel: 2 - [1653475026.015491][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.015512][29937:29942] CHIP:TOO: Rssi: -40 - [1653475026.015533][29937:29942] CHIP:TOO: } - [1653475026.015563][29937:29942] CHIP:TOO: [14]: { - [1653475026.015587][29937:29942] CHIP:TOO: Security: 8 - [1653475026.015609][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.015631][29937:29942] CHIP:TOO: Bssid: 1027F5374EC6 - [1653475026.015652][29937:29942] CHIP:TOO: Channel: 6 - [1653475026.015673][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.015694][29937:29942] CHIP:TOO: Rssi: -53 - [1653475026.015714][29937:29942] CHIP:TOO: } - [1653475026.015745][29937:29942] CHIP:TOO: [15]: { - [1653475026.015768][29937:29942] CHIP:TOO: Security: 8 - [1653475026.015789][29937:29942] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475026.015811][29937:29942] CHIP:TOO: Bssid: C006C3F95ECE - [1653475026.015832][29937:29942] CHIP:TOO: Channel: 6 - [1653475026.015853][29937:29942] CHIP:TOO: WiFiBand: 0 - [1653475026.015874][29937:29942] CHIP:TOO: Rssi: -50 - [1653475026.015896][29937:29942] CHIP:TOO: } - [1653475026.015920][29937:29942] CHIP:TOO: } - [1653475026.016050][29937:29942] CHIP:DMG: ICR moving to [AwaitingDe] - [1653475026.016114][29937:29942] CHIP:EM: Sending Standalone Ack for MessageCounter:14684023 on exchange 35456i - disabled: true + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: - "Step 1b: TH reads Breadcumb attribute from the General Commissioning + "Step 1b: TH reads Breadcrumb attribute from the General Commissioning Cluster" - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 1. - - [1657190614.753193][5241:5246] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2805642039 - [1657190614.753305][5241:5246] CHIP:TOO: Breadcrumb: 1 - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 1 + constraints: + type: int64u - label: "Step 2a: TH sends ScanNetworks Command to the DUT with SSID field set - to PIXIT.CNET.WIFI_ 1ST_ACCESSPOINT _SSID and Breadcrumb field set to - 2" + to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 2" PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx - verification: | - Below is an example: - ./chip-tool networkcommissioning scan-networks 1 0 --Ssid hex:47524C50726976617465 --Breadcrumb 2 - - Via the TH (chip-tool), verify the ScanNetworks response with first network SSID. - - [1653475824.575642][30076:30081] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0001 - [1653475824.575807][30076:30081] CHIP:TOO: ScanNetworksResponse: { - [1653475824.575888][30076:30081] CHIP:TOO: networkingStatus: 0 - [1653475824.575966][30076:30081] CHIP:TOO: wiFiScanResults: 1 entries - [1653475824.576108][30076:30081] CHIP:TOO: [1]: { - [1653475824.576168][30076:30081] CHIP:TOO: Security: 8 - [1653475824.576227][30076:30081] CHIP:TOO: Ssid: 47524C50726976617465 - [1653475824.576283][30076:30081] CHIP:TOO: Bssid: E01CFCE4B236 - [1653475824.576339][30076:30081] CHIP:TOO: Channel: 11 - [1653475824.576392][30076:30081] CHIP:TOO: WiFiBand: 0 - [1653475824.576445][30076:30081] CHIP:TOO: Rssi: -9 - [1653475824.576500][30076:30081] CHIP:TOO: } - [1653475824.576560][30076:30081] CHIP:TOO: } - [1653475824.576668][30076:30081] CHIP:DMG: ICR moving to [AwaitingDe] - [1653475824.576777][30076:30081] CHIP:EM: Sending Standalone Ack for MessageCounter:251134 on exchange 38023i - disabled: true + command: "ScanNetworks" + arguments: + values: + - name: "SSID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 2 + response: + values: + - name: "NetworkingStatus" + value: 0 + - name: "DebugText" + constraints: + maxLength: 512 + - name: "WiFiScanResults" + constraints: + type: list - label: - "Step 2b: TH reads Breadcumb attribute from the General Commissioning - Cluster" + "Step 2a: Verify each element in the WiFiScanResults list will have + the following fields: " verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 2. + Via the TH (chip-tool), verify: + -the Security value is in the type of map8 with length range 0 to 254. + -the SSID value is in the ype of octstr with length range 1 to 32. + -the BSSID value is in the type of octstr with length range of 6. + -the Channel is in the type of uint16 with range 0 to 65,535. + -the WiFi Band is in the of type enum8 with a range of -128 to 127. + -the RSSI is in the of type int8 with a range of -120 to 0. + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - [1657197542.352377][5661:5666] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2805642042 - [1657197542.352450][5661:5666] CHIP:TOO: Breadcrumb: 2 - disabled: true + - label: + "Step 2b: TH reads Breadcrumb attribute from the General Commissioning + Cluster" + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 2 + constraints: + type: int64u diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_5.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_5.yaml index 9ef9cefc40617a..3d5a732fae831b 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_5.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.5. [TC-CNET-4.5] [Wi-Fi] FAILSAFE_REQUIRED message Validation @@ -22,17 +21,50 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_WIFI endpoint: 0 + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:7A6967626565686F6D65" + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_CREDENTIALS: + type: octet_string + defaultValue: "hex:70617373776f7264313233" tests: - - label: "Preconditions" + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on WiFi network" verification: | - 1. DUT supports CNET.S.F00(WI) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1 - 3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID - 4. TH can communicate with the DUT - disabled: true + ./chip-tool pairing ble-wifi 0x12344321 + + [1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170 + [1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction' + [1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170 + [1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success + [1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 1 + constraints: + type: bitmap32 - label: "Step 1: TH sends the AddOrUpdateWiFiNetwork command to the DUT with @@ -40,54 +72,44 @@ tests: T_ACCESSPOINT_SSI D 2. Credentials field set to PIXIT.CNET.WIFI_1S T_ACCESSPOINT_CRE DENTIALS 3. Breadcrumb field set to 1" PICS: CNET.S.C02.Rsp - verification: | - ./chip-tool networkcommissioning add-or-update-wi-fi-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning add-or-update-wi-fi-network hex:47524C50726976617465 grlprivatewifi092010 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), verify the FAILSAFE_REQUIRED response for sending the AddOrUpdateWiFiNetwork command. - - [1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca - [1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED) - [1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "AddOrUpdateWiFiNetwork" + arguments: + values: + - name: "SSID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Credentials" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_CREDENTIALS + - name: "breadcrumb" + value: 1 + response: + error: FAILSAFE_REQUIRED - label: "Step 2: TH sends RemoveNetwork command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCE SSPOINT_SSID and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), verify the FAILSAFE_REQUIRED response for sending the RemoveNetwork command. - - [1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca - [1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED) - [1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + error: FAILSAFE_REQUIRED - label: "Step 3: TH sends ConnectNetwork command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCE SSPOINT_SSID and Breadcrumb field set to 1" PICS: CNET.S.C06.Rsp - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), verify the FAILSAFE_REQUIRED response for sending the ConnectNetwork command. - - [1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca - [1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED) - [1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + error: FAILSAFE_REQUIRED diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_6.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_6.yaml index e9f1368e4c79cb..aeac82e7857335 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_6.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.6. [TC-CNET-4.6] [Thread] FAILSAFE_REQUIRED message Validation @@ -22,76 +21,93 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" endpoint: 0 + PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET: + type: octet_string + defaultValue: "hex:1111111122222222" tests: - - label: "Preconditions" + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on Thread network" verification: | - 1. DUT supports CNET.S.F01(TH) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_THREAD with FeatureMap attribute of 2 - 3. DUT is commissioned on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - 4. TH can communicate with the DUT on PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET - disabled: true - - - label: "Commission TH and DUT on Thread setup" - verification: | - - disabled: true + ./chip-tool pairing ble-thread 0x12344321 + + [1698660637.937566][6429:6431] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698660637.937644][6429:6431] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698660637.937705][6429:6431] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698660637.937750][6429:6431] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698660637.937812][6429:6431] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698660637.937863][6429:6431] CHIP:DIS: Closing all BLE connections + [1698660637.937911][6429:6431] CHIP:IN: Clearing BLE pending packets. + [1698660637.938582][6429:6431] CHIP:BLE: Auto-closing end point's BLE connection. + [1698660637.938645][6429:6431] CHIP:DL: Closing BLE GATT connection (con 0xffff9c034bb0) + [1698660637.938805][6429:6430] CHIP:DL: BluezDisconnect peer=F7:D4:24:D2:4A:1F + [1698660638.365208][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: MarkForEviction Type:1 LSID:62220 + [1698660638.365311][6429:6431] CHIP:SC: SecureSession[0xffff9400f900, LSID:62220]: State change 'kActive' --> 'kPendingEviction' + [1698660638.365440][6429:6431] CHIP:IN: SecureSession[0xffff9400f900]: Released - Type:1 LSID:62220 + [1698660638.365529][6429:6431] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698660638.365598][6429:6431] CHIP:TOO: Device commissioning completed with success + [1698660638.365873][6429:6431] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 2 + constraints: + type: bitmap32 - label: "Step 1: TH sends the AddOrUpdateThreadNetwork command to the DUT with - the following fields: OperationalDataset field set to - PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET Breadcrumb field set to 1" + OperationalDataset field set to + PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 1" PICS: CNET.S.C03.Rsp - verification: | - ./chip-tool networkcommissioning add-or-update-thread-network-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning add-or-update-thread-network hex:1011101122222229 51 0 --Breadcrumb 1 - - Via the TH (chip-tool), verify the FAILSAFE_REQUIRED response for sending the AddOrUpdateThreadNetwork command. - - [1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca - [1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED) - [1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "AddOrUpdateThreadNetwork" + arguments: + values: + - name: "OperationalDataset" + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + error: FAILSAFE_REQUIRED - label: "Step 2: TH sends RemoveNetwork command to the DUT with NetworkID field set to PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:1011101122222229 51 0 --Breadcrumb 1 - - Via the TH (chip-tool), verify the FAILSAFE_REQUIRED response for sending the RemoveNetwork command. - - [1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca - [1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED) - [1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + error: FAILSAFE_REQUIRED - label: "Step 3: TH sends ConnectNetwork command to the DUT with NetworkID field set to PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET and Breadcrumb field set to 1" PICS: CNET.S.C06.Rsp - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network hex:1011101122222229 51 0 --Breadcrumb 1 - - Via the TH (chip-tool), verify the FAILSAFE_REQUIRED response for sending the ConnectNetwork command. - - [1657619600.364023][2056:2061] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0003 Status=0xca - [1657619600.364102][2056:2061] CHIP:TOO: Error: IM Error 0x000005CA: General error: 0xca (FAILSAFE_REQUIRED) - [1657619600.364186][2056:2061] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.THREAD_1ST_OPERATIONALDATASET + - name: "Breadcrumb" + value: 1 + response: + error: FAILSAFE_REQUIRED diff --git a/src/app/tests/suites/certification/Test_TC_CNET_4_9.yaml b/src/app/tests/suites/certification/Test_TC_CNET_4_9.yaml index 1bb06e91f05c31..341fe7d1cae131 100644 --- a/src/app/tests/suites/certification/Test_TC_CNET_4_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_CNET_4_9.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Project CHIP Authors +# Copyright (c) 2023 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. @@ -11,7 +11,6 @@ # 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.7. [TC-CNET-4.9] [WiFi] Verification for RemoveNetwork Command @@ -22,290 +21,302 @@ PICS: config: nodeId: 0x12344321 - cluster: "Basic Information" + cluster: "Network Commissioning" + #PIXIT.CNET.ENDPOINT_WIFI endpoint: 0 + PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID: + type: octet_string + defaultValue: "hex:7A6967626565686F6D65" tests: - - label: "Preconditions" + #Issue: https://github.com/project-chip/connectedhomeip/issues/30196 + - label: "Precondition: Commission TH and DUT on WiFi network" verification: | - 1. DUT supports CNET.S.F00(WI) - 2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1 - 3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID - 4. TH can communicate with the DUT - disabled: true - - - label: "Commission TH and DUT over BLE to setup the Wi-Fi" - verification: | - - disabled: true + ./chip-tool pairing ble-wifi 0x12344321 + + [1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 + [1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0 + [1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete' + [1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup' + [1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup' + [1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170 + [1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction' + [1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170 + [1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup' + [1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success + [1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe] + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: enter 'y' after success" + - name: "expectedValue" + value: "y" + + - label: "Precondition: TH reads FeatureMap attribute from the DUT" + command: "readAttribute" + attribute: "FeatureMap" + response: + value: 1 + constraints: + type: bitmap32 - label: "Step 1: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 900" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 1 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH. - - [1653478311.640549][30368:30373] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1653478311.640646][30368:30373] CHIP:TOO: ArmFailSafeResponse: { - [1653478311.640696][30368:30373] CHIP:TOO: errorCode: 0 - [1653478311.640729][30368:30373] CHIP:TOO: debugText: - [1653478311.640763][30368:30373] CHIP:TOO: } - [1653478311.640821][30368:30373] CHIP:DMG: ICR moving to [AwaitingDe] - [1653478311.640901][30368:30373] CHIP:EM: Sending Standalone Ack for MessageCounter:8633037 on exchange 20698i - disabled: true - - - label: - "Step 2: TH reads Networks attribute from the DUT and saves the number - of entries as 'NumNetworks'" + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" + + - label: "Step 2: TH reads Networks attribute from the DUT " PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that value as PIXIT.CNET.WIFI_1ST_ ACCESSPOINT_SSID. - -that the connected status is in the the type of bool value as TRUE. - - [1654250379.881780][5309:5314] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3741733376 - [1654250379.881974][5309:5314] CHIP:TOO: Networks: 1 entries - [1654250379.882123][5309:5314] CHIP:TOO: [1]: { - [1654250379.882196][5309:5314] CHIP:TOO: NetworkID: 47524C50726976617465 - [1654250379.882257][5309:5314] CHIP:TOO: Connected: TRUE - [1654250379.882312][5309:5314] CHIP:TOO: } - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 3: TH finds the index of the Networks list entry with NetworkID field value PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and saves it as - 'Userwifi_netidx'" + 'Userth_netidx'" verification: | - ./chip-tool networkcommissioning read last-network-id 1 0 - - Via the TH (chip-tool), Verify: - -that the LastNetworkID attribute that contains NetworkID that should be the type of octstr with a length range 1 to 32. - - [1657198553.376268][5799:5804] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 2494552649 - [1657198553.376351][5799:5804] CHIP:TOO: LastNetworkID: 47524C50726976617465 - disabled: true + TH finds the index of the Networks list entry with NetworkID + field value PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and saves it as + 'Userth_netidx' + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_USER_PROMPT + arguments: + values: + - name: "message" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Step 4: TH sends RemoveNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1653478327.351092][30388:30393] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1653478327.351200][30388:30393] CHIP:TOO: NetworkConfigResponse: { - [1653478327.351252][30388:30393] CHIP:TOO: networkingStatus: 0 - [1653478327.351288][30388:30393] CHIP:TOO: networkIndex: 0 - [1653478327.351320][30388:30393] CHIP:TOO: } - [1653478327.351373][30388:30393] CHIP:DMG: ICR moving to [AwaitingDe] - [1653478327.351449][30388:30393] CHIP:EM: Sending Standalone Ack for MessageCounter:14887098 on exchange 8676i - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 - label: "Step 5: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify that the Networks attribute list has empty(0 entries). - - [1653478331.979300][30395:30400] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 1600858167 - [1653478331.979380][30395:30400] CHIP:TOO: Networks: 0 entries - [1653478331.979496][30395:30400] CHIP:EM: Sending Standalone Ack for MessageCounter:609449 on exchange 40264i - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + type: list + excludes: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 6: TH reads LastNetworkingStatus attribute from the DUT" PICS: CNET.S.A0005 - verification: | - ./chip-tool networkcommissioning read last-networking-status 1 0 - - Via the TH (chip-tool), Verify the LastNetworkingStatus attribute that contains value as 0 that mentions success. - - [1653478850.425096][30420:30425] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0005 DataVersion: 1600858167 - [1653478850.425170][30420:30425] CHIP:TOO: LastNetworkingStatus: 0 - [1653478850.425269][30420:30425] CHIP:EM: Sending Standalone Ack for MessageCounter:8275942 on exchange 13394i - disabled: true + command: "readAttribute" + attribute: "LastNetworkingStatus" + response: + value: 0 + constraints: + type: NetworkCommissioningStatusEnum - label: "Step 7: TH reads LastNetworkID attribute from the DUT" PICS: CNET.S.A0006 - verification: | - ./chip-tool networkcommissioning read last-network-id 1 0 - - Via the TH (chip-tool), Verify that the LastNetworkID has PIXIT.CNET.WIFI_ 1ST_ACCESSPOINT _SSID. - - [1657197861.497831][5737:5742] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 2494552649 - [1657197861.497897][5737:5742] CHIP:TOO: LastNetworkID: 47524C50726976617465 - disabled: true + command: "readAttribute" + attribute: "LastNetworkID" + response: + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + constraints: + type: octet_string + minLength: 1 + maxLength: 32 - label: "Step 8: TH reads Breadcrumb attribute from the General Commissioning cluster of the DUT" PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 1. - - [1657197903.686316][5745:5750] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 2805642043 - [1657197903.686428][5745:5750] CHIP:TOO: Breadcrumb: 1 - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 1 + constraints: + type: int64u - label: "Step 9: TH sends ConnectNetwork command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 2" PICS: CNET.S.C04.Rsp && CNET.S.C06.Rsp - verification: | - ./chip-tool networkcommissioning connect-network hex: 1 0 - - Below is an example: - - ./chip-tool networkcommissioning connect-network hex:47524C50726976617465 1 0 --Breadcrumb 2 - - Via the TH (chip-tool), Verify the ConnectNetworkResponse that contains networkingStatus value as 3(NetworkIdNotFound). - - [1657288261.892249][2347:2352] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0007 - [1657288261.892304][2347:2352] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0007 - [1657288261.892430][2347:2352] CHIP:TOO: ConnectNetworkResponse: { - [1657288261.892477][2347:2352] CHIP:TOO: networkingStatus: 3 - [1657288261.892511][2347:2352] CHIP:TOO: errorValue: 0 - [1657288261.892542][2347:2352] CHIP:TOO: } - disabled: true + timedInteractionTimeoutMs: 5000 + command: "ConnectNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 2 + response: + values: + - name: "NetworkingStatus" + value: 3 + - name: "ErrorValue" + constraints: + type: int32s - label: "Step 10: TH reads Breadcrumb attribute from the General Commissioning cluster of the DUT" - PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool generalcommissioning read breadcrumb 1 0 - - Via the TH (chip-tool), verify the Breadcumb attribute that contains value as 1. - - [1657288331.671111][2360:2365] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_0000 DataVersion: 3470734109 - [1657288331.671207][2360:2365] CHIP:TOO: Breadcrumb: 1 - disabled: true + cluster: "General Commissioning" + command: "readAttribute" + attribute: "Breadcrumb" + response: + value: 1 + constraints: + type: int64u - label: "Step 11: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 0" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 0 0 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 0 secs to the TH. - - [1657288382.006035][2369:2374] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657288382.006094][2369:2374] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657288382.006157][2369:2374] CHIP:TOO: ArmFailSafeResponse: { - [1657288382.006201][2369:2374] CHIP:TOO: errorCode: 0 - [1657288382.006233][2369:2374] CHIP:TOO: debugText: - [1657288382.006263][2369:2374] CHIP:TOO: } - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 0 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 12: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify: - -the Networks attribute has NetworkID that contains value as PIXIT.CNET.WIFI_1ST_ ACCESSPOINT_SSID. - -that the connected status should be the type of bool value as TRUE. - - 1684494160.580218][15306:15308] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 130057616 - [1684494160.580248][15306:15308] CHIP:TOO: Networks: 1 entries - [1684494160.580273][15306:15308] CHIP:TOO: [1]: { - [1684494160.580288][15306:15308] CHIP:TOO: NetworkID: 47524C50726976617465 - [1684494160.580298][15306:15308] CHIP:TOO: Connected: TRUE - [1684494160.580307][15306:15308] CHIP:TOO: } - [1684494160.580360][15306:15308] CHIP:EM: <<< [E:26231i S:16056 M:263765151 (Ack:216379970)] (S) Msg TX to 1:0000000000000001 [4DB7] --- Type 0000:10 (SecureChannel:StandaloneAck) - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + contains: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ] - label: "Step 13: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 900" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 900 1 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 900 secs to the TH. - - [1657288428.409103][2382:2388] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657288428.409191][2382:2388] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657288428.409303][2382:2388] CHIP:TOO: ArmFailSafeResponse: { - [1657288428.409367][2382:2388] CHIP:TOO: errorCode: 0 - [1657288428.409435][2382:2388] CHIP:TOO: debugText: - [1657288428.409481][2382:2388] CHIP:TOO: } - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 900 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 14: TH sends RemoveNetwork Command to the DUT with NetworkID field set to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 1" PICS: CNET.S.C04.Rsp && CNET.S.C05.Tx - verification: | - ./chip-tool networkcommissioning remove-network hex: 1 0 - Below is an example: - - ./chip-tool networkcommissioning remove-network hex:47524C50726976617465 1 0 --Breadcrumb 1 - - Via the TH (chip-tool), Verify the NetworkConfigResponse that contains Networking Status value as 0 (success). - - [1687240172.756582][17509:17511] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0005 - [1687240172.756684][17509:17511] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Command 0x0000_0005 - [1687240172.756847][17509:17511] CHIP:TOO: NetworkConfigResponse: { - [1687240172.756951][17509:17511] CHIP:TOO: networkingStatus: 0 - [1687240172.757011][17509:17511] CHIP:TOO: networkIndex: 0 - [1687240172.757062][17509:17511] CHIP:TOO: } - disabled: true + command: "RemoveNetwork" + arguments: + values: + - name: "NetworkID" + value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID + - name: "Breadcrumb" + value: 1 + response: + values: + - name: "NetworkingStatus" + value: 0 - label: "Step 15: TH sends the CommissioningComplete command to the DUT" - PICS: CNET.S.C04.Rsp - verification: | - ./chip-tool generalcommissioning commissioning-complete 1 0 - - Via the TH (chip-tool), Verify the DUT sends CommissioningComplete command and the errorCode field is 0(OK). - - [1657288504.905001][2397:2402] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005 - [1657288504.905050][2397:2402] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0005 - [1657288504.905108][2397:2402] CHIP:TOO: CommissioningCompleteResponse: { - [1657288504.905145][2397:2402] CHIP:TOO: errorCode: 0 - [1657288504.905169][2397:2402] CHIP:TOO: debugText: - [1657288504.905191][2397:2402] CHIP:TOO: } - disabled: true + cluster: "General Commissioning" + command: "CommissioningComplete" + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 16: TH sends ArmFailSafe command to the DUT with ExpiryLengthSeconds set to 0 to ensure the CommissioningComplete call properly persisted the failsafe context. This call should have no effect if Commissioning Complete call is handled correctly" - verification: | - ./chip-tool generalcommissioning arm-fail-safe 0 0 1 0 - - Via the TH (chip-tool), Verify the DUT sends ArmFailSafe with timeout as 0 secs to the TH. - - [1657288529.987350][2404:2409] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0001 - [1657288529.987514][2404:2409] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Command 0x0000_0001 - [1657288529.987612][2404:2409] CHIP:TOO: ArmFailSafeResponse: { - [1657288529.987677][2404:2409] CHIP:TOO: errorCode: 0 - [1657288529.987725][2404:2409] CHIP:TOO: debugText: - [1657288529.987772][2404:2409] CHIP:TOO: } - disabled: true + cluster: "General Commissioning" + command: "ArmFailSafe" + arguments: + values: + - name: "ExpiryLengthSeconds" + value: 0 + - name: "Breadcrumb" + value: 0 + response: + values: + - name: "ErrorCode" + value: 0 + - name: "DebugText" + value: "" - label: "Step 17: TH reads Networks attribute from the DUT" PICS: CNET.S.A0001 - verification: | - ./chip-tool networkcommissioning read networks 1 0 - - Via the TH (chip-tool), Verify that the Networks attribute list has empty(0 entries). - - [1657288549.446752][2412:2417] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 1420716065 - [1657288549.446852][2412:2417] CHIP:TOO: Networks: 0 entries - disabled: true + command: "readAttribute" + attribute: "Networks" + response: + constraints: + type: list + excludes: + [ + { + NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID, + Connected: true, + }, + ]