diff --git a/examples/placeholder/linux/apps/app1/ciTests.json b/examples/placeholder/linux/apps/app1/ciTests.json index 7d3af1e9b509ba..1b4508da3227a7 100644 --- a/examples/placeholder/linux/apps/app1/ciTests.json +++ b/examples/placeholder/linux/apps/app1/ciTests.json @@ -1,4 +1,24 @@ { - "Test": ["Test_TC_BINFO_2_3_Simulated"], + "Test": [ + "Test_TC_BINFO_2_3_Simulated", + "Test_TC_ACT_3_1_Simulated", + "Test_TC_BOOL_3_1_Simulated", + "Test_TC_DESC_2_2_Simulated", + "Test_TC_DGETH_3_1_Simulated", + "Test_TC_DGETH_3_2_Simulated", + "Test_TC_DGSW_3_1_Simulated", + "Test_TC_DGSW_3_2_Simulated", + "Test_TC_DGWIFI_3_1_Simulated", + "Test_TC_DGWIFI_3_2_Simulated", + "Test_TC_FLW_3_1_Simulated", + "Test_TC_G_3_1_Simulated", + "Test_TC_I_3_1_Simulated", + "Test_TC_PRS_3_1_Simulated", + "Test_TC_PS_3_1_Simulated", + "Test_TC_PSCFG_3_1_Simulated", + "Test_TC_RH_3_1_Simulated", + "Test_TC_SWTCH_3_1_Simulated", + "Test_TC_WNCV_5_1_Simulated" + ], "collection": ["Test"] } diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index cffcba6784369e..67d5ea70a77b02 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -590,6 +590,7 @@ PICS: id: TSUIC.S.A0002 # Software Diagnostics cluster + #Server Attributes - label: "The metrics for high watermark related to memory consumption." id: DGSW.S.F00 @@ -611,6 +612,7 @@ PICS: - label: "Does the device implement the ResetWaterMarks command?" id: DGSW.S.C00.Rsp + #Client Attributes - label: "Does the device implement the ThreadMetrics attribute" id: DGSW.C.A0000 @@ -3254,9 +3256,7 @@ PICS: - label: "Does the device implement the ResetCounts command?" id: DGETH.S.C00.Rsp - - label: "Does the device implement the ResetCounts command?" - id: DGETH.C.C00.Tx - + #Server - label: "Does the device implement the PHYRate attribute?" id: DGETH.S.A0000 @@ -3284,6 +3284,55 @@ PICS: - label: "Does the device implement the CarrierDetect attribute?" id: DGETH.S.A0008 + #Client + - label: "Does the device implement the ResetCounts command?" + id: DGETH.C.C00.Tx + + - label: + "Does the DUT(client) have access privileges for the PHYRate attribute + implemented on server" + id: DGETH.C.A0000 + + - label: + "Does the DUT(client) have access privileges for the FullDuplex + attribute implemented on server" + id: DGETH.C.A0001 + + - label: + "Does the DUT(client) have access privileges for the PacketRxCount + attribute implemented on server" + id: DGETH.C.A0002 + + - label: + "Does the DUT(client) have access privileges for the PacketTxCount + attribute implemented on server" + id: DGETH.C.A0003 + + - label: + "Does the DUT(client) have access privileges for the TxErrCount + attribute implemented on server" + id: DGETH.C.A0004 + + - label: + "Does the DUT(client) have access privileges for the CollisionCount + attribute implemented on server" + id: DGETH.C.A0005 + + - label: + "Does the DUT(client) have access privileges for the OverrunCount + attribute implemented on server" + id: DGETH.C.A0006 + + - label: + "Does the DUT(client) have access privileges for the CarrierDetect + attribute implemented on server" + id: DGETH.C.A0007 + + - label: + "Does the DUT(client) have access privileges for the CarrierDetect + attribute implemented on server" + id: DGETH.C.A0008 + #Features - label: "Counts for the number of received and transmitted packets on the @@ -3306,6 +3355,7 @@ PICS: of packets on the ethernet interface." id: DGWIFI.S.F01 + #Server - label: "Indicates the BSSID for which the Wi-Fi network the Node is currently connected. If the interface not configured, a NULL value should be @@ -3371,6 +3421,7 @@ PICS: the Node. This value should not be subscribed." id: DGWIFI.S.A000c + #Events - label: "Indicates Node’s Wi-Fi connection has been disconnected as a result of de-authenticated or dis-association and indicates the reason." @@ -3393,6 +3444,73 @@ PICS: PacketMulticastRxCount, PacketMulticastTxCount, PacketUnicastRxCount, PacketUnicastTxCount" id: DGWIFI.S.C00.Rsp + + #Client + - label: + "Does the DUT(client) have access privileges for the BSSID attribute + implemented on the server?" + id: DGWIFI.C.A0000 + + - label: + "Does the DUT(client) have access privileges for the SecurityType + attribute implemented on the server?" + id: DGWIFI.C.A0001 + + - label: + "Does the DUT(client) have access privileges for the WiFiVersion + attribute implemented on the server?" + id: DGWIFI.C.A0002 + + - label: + "Does the DUT(client) have access privileges for the ChannelNumber + attribute implemented on the server?" + id: DGWIFI.C.A0003 + + - label: + "Does the DUT(client) have access privileges for the RSSI attribute + implemented on the server?" + id: DGWIFI.C.A0004 + + - label: + "Does the DUT(client) have access privileges for the BeaconLostCount + attribute implemented on the server?" + id: DGWIFI.C.A0005 + + - label: + "Does the DUT(client) have access privileges for the BeaconRxCount + attribute implemented on the server?" + id: DGWIFI.C.A0006 + + - label: + "Does the DUT(client) have access privileges for the + PacketMulticastRxCount attribute implemented on the server?" + id: DGWIFI.C.A0007 + + - label: + "Does the DUT(client) have access privileges for the + PacketMulticastTxCount attribute implemented on the server?" + id: DGWIFI.C.A0008 + + - label: + "Does the DUT(client) have access privileges for the + PacketUnicastRxCount attribute implemented on the server?" + id: DGWIFI.C.A0009 + + - label: + "Does the DUT(client) have access privileges for the + PacketUnicastTxCount attribute implemented on the server?" + id: DGWIFI.C.A000a + + - label: + "Does the DUT(client) have access privileges for the CurrentMaxRate + attribute implemented on the server?" + id: DGWIFI.C.A000b + + - label: + "Does the DUT(client) have access privileges for the OverrunCount + attribute implemented on the server?" + id: DGWIFI.C.A000c + #Actions Cluster - label: "Does the device implement the ActionList attribute?" id: ACT.S.A0000 diff --git a/src/app/tests/suites/certification/Test_TC_ACT_3_1.yaml b/src/app/tests/suites/certification/Test_TC_ACT_3_1.yaml deleted file mode 100644 index 9bbfbe56d38ea5..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_ACT_3_1.yaml +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 77.2.3. [TC-ACT-3.1] GLobal attributes with client as DUT - -PICS: - - ACT.C - - ACT.C.AM-READ - - ACT.C.AO-READ - - ACT.C.AM-WRITE - - ACT.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool actions read action-list 1 1 - - Verify read command is received on TH(bridge-app) - - [1658848323.188336][28392:28392] CHIP:IM: Received Read request - [1658848323.188433][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658848323.188470][28392:28392] CHIP:DMG: { - [1658848323.188500][28392:28392] CHIP:DMG: AttributePathIBs = - [1658848323.188535][28392:28392] CHIP:DMG: [ - [1658848323.188568][28392:28392] CHIP:DMG: AttributePathIB = - [1658848323.188605][28392:28392] CHIP:DMG: { - [1658848323.188643][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658848323.188690][28392:28392] CHIP:DMG: Cluster = 0x25, - [1658848323.188733][28392:28392] CHIP:DMG: Attribute = 0x0000_0000, - [1658848323.188774][28392:28392] CHIP:DMG: } - [1658848323.188812][28392:28392] CHIP:DMG: - [1658848323.188846][28392:28392] CHIP:DMG: ], - [1658848323.188884][28392:28392] CHIP:DMG: - [1658848323.188919][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658848323.188954][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658848323.188985][28392:28392] CHIP:DMG: }, - [1658848323.189080][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658848323.189190][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658848323.189229][28392:28392] CHIP:DMG: Cluster 25, Attribute 0 is dirty - - - - ./chip-tool actions read endpoint-lists 1 1 - - Verify read command is received on TH(all-clusters-app - ) - [1658848398.260378][28392:28392] CHIP:IM: Received Read request - [1658848398.260455][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658848398.260483][28392:28392] CHIP:DMG: { - [1658848398.260505][28392:28392] CHIP:DMG: AttributePathIBs = - [1658848398.260531][28392:28392] CHIP:DMG: [ - [1658848398.260555][28392:28392] CHIP:DMG: AttributePathIB = - [1658848398.260583][28392:28392] CHIP:DMG: { - [1658848398.260611][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658848398.260642][28392:28392] CHIP:DMG: Cluster = 0x25, - [1658848398.260673][28392:28392] CHIP:DMG: Attribute = 0x0000_0001, - [1658848398.260702][28392:28392] CHIP:DMG: } - [1658848398.260731][28392:28392] CHIP:DMG: - [1658848398.260756][28392:28392] CHIP:DMG: ], - [1658848398.260784][28392:28392] CHIP:DMG: - [1658848398.260810][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658848398.260836][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658848398.260859][28392:28392] CHIP:DMG: }, - [1658848398.260930][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658848398.261011][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658848398.261040][28392:28392] CHIP:DMG: Cluster 25, Attribute 1 is dirty - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - Optional attibute - - ./chip-tool actions read setup-url 1 1 - - Verify read command is received on TH(bridge-app) - - [1658848453.728775][28392:28392] CHIP:IM: Received Read request - [1658848453.728895][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658848453.728927][28392:28392] CHIP:DMG: { - [1658848453.728950][28392:28392] CHIP:DMG: AttributePathIBs = - [1658848453.728975][28392:28392] CHIP:DMG: [ - [1658848453.728999][28392:28392] CHIP:DMG: AttributePathIB = - [1658848453.729046][28392:28392] CHIP:DMG: { - [1658848453.729081][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658848453.729118][28392:28392] CHIP:DMG: Cluster = 0x25, - [1658848453.729157][28392:28392] CHIP:DMG: Attribute = 0x0000_0002, - [1658848453.729191][28392:28392] CHIP:DMG: } - [1658848453.729223][28392:28392] CHIP:DMG: - [1658848453.729251][28392:28392] CHIP:DMG: ], - [1658848453.729280][28392:28392] CHIP:DMG: - [1658848453.729307][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658848453.729332][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658848453.729358][28392:28392] CHIP:DMG: }, - [1658848453.729436][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658848453.729538][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658848453.729570][28392:28392] CHIP:DMG: Cluster 25, Attribute 2 is dirty - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - ./chip-tool actions read attribute-list 1 1 - - Verify attribute-list attribute contains 7 entries on TH(all-clusters-minimal-app) - [1658393025.602745][13481:13486] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_FFFB DataVersion: 2868144574 - [1658393025.602867][13481:13486] CHIP:TOO: AttributeList: 7 entries - [1658393025.602917][13481:13486] CHIP:TOO: [1]: 0 - [1658393025.602945][13481:13486] CHIP:TOO: [2]: 1 - [1658393025.602997][13481:13486] CHIP:TOO: [3]: 65528 - [1658393025.603023][13481:13486] CHIP:TOO: [4]: 65529 - [1658393025.603049][13481:13486] CHIP:TOO: [5]: 65531 - [1658393025.603094][13481:13486] CHIP:TOO: [6]: 65532 - [1658393025.603121][13481:13486] CHIP:TOO: [7]: 65533 - [1658393025.603258][13481:13486] CHIP:EM: Sending Standalone Ack for MessageCounter:114510707 on exchange 23501i - - - ./chip-tool actions read action-list 1 1 - - Verify read command is received on TH(all-clusters-minimal-app) Log - - [1658848323.188336][28392:28392] CHIP:IM: Received Read request - [1658848323.188433][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658848323.188470][28392:28392] CHIP:DMG: { - [1658848323.188500][28392:28392] CHIP:DMG: AttributePathIBs = - [1658848323.188535][28392:28392] CHIP:DMG: [ - [1658848323.188568][28392:28392] CHIP:DMG: AttributePathIB = - [1658848323.188605][28392:28392] CHIP:DMG: { - [1658848323.188643][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658848323.188690][28392:28392] CHIP:DMG: Cluster = 0x25, - [1658848323.188733][28392:28392] CHIP:DMG: Attribute = 0x0000_0000, - [1658848323.188774][28392:28392] CHIP:DMG: } - [1658848323.188812][28392:28392] CHIP:DMG: - [1658848323.188846][28392:28392] CHIP:DMG: ], - [1658848323.188884][28392:28392] CHIP:DMG: - [1658848323.188919][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658848323.188954][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658848323.188985][28392:28392] CHIP:DMG: }, - [1658848323.189080][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658848323.189190][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658848323.189229][28392:28392] CHIP:DMG: Cluster 25, Attribute 0 is dirty - - - - ./chip-tool actions read endpoint-lists 1 1 - - Verify read command is received on TH(all-clusters-minimal-app) - - [1658848398.260378][28392:28392] CHIP:IM: Received Read request - [1658848398.260455][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658848398.260483][28392:28392] CHIP:DMG: { - [1658848398.260505][28392:28392] CHIP:DMG: AttributePathIBs = - [1658848398.260531][28392:28392] CHIP:DMG: [ - [1658848398.260555][28392:28392] CHIP:DMG: AttributePathIB = - [1658848398.260583][28392:28392] CHIP:DMG: { - [1658848398.260611][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658848398.260642][28392:28392] CHIP:DMG: Cluster = 0x25, - [1658848398.260673][28392:28392] CHIP:DMG: Attribute = 0x0000_0001, - [1658848398.260702][28392:28392] CHIP:DMG: } - [1658848398.260731][28392:28392] CHIP:DMG: - [1658848398.260756][28392:28392] CHIP:DMG: ], - [1658848398.260784][28392:28392] CHIP:DMG: - [1658848398.260810][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658848398.260836][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658848398.260859][28392:28392] CHIP:DMG: }, - [1658848398.260930][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658848398.261011][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658848398.261040][28392:28392] CHIP:DMG: Cluster 25, Attribute 1 is dirty - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - Optional attibute - - ./chip-tool actions read setup-url 1 1 - - General error: 0x86 (UNSUPPORTED_ATTRIBUTE) - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_ACT_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_ACT_3_1_Simulated.yaml new file mode 100644 index 00000000000000..bed71722748201 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ACT_3_1_Simulated.yaml @@ -0,0 +1,37 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 77.2.3. [TC-ACT-3.1] GLobal attributes with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Actions" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: ActionList" + wait: "readAttribute" + attribute: "ActionList" + + - label: "Read attribute: EndpointLists" + wait: "readAttribute" + attribute: "EndpointLists" + + - label: "Read attribute: SetupURL" + wait: "readAttribute" + attribute: "SetupURL" diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_3_1.yaml deleted file mode 100644 index 4e736f9e19211e..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_BOOL_3_1.yaml +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 68.3.1. [TC-BOOL-3.1] Attributes with Client as DUT - -PICS: - - BOOL.C - - BOOL.C.AM-READ - - BOOL.C.AO-READ - - BOOL.C.AM-WRITE - - BOOL.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool booleanstate read state-value 1 1 - - Verify read command is received on TH(all-clusters-app) Log successfully - - [1658847009.838448][28392:28392] CHIP:IM: Received Read request - [1658847009.838537][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658847009.838570][28392:28392] CHIP:DMG: { - [1658847009.838598][28392:28392] CHIP:DMG: AttributePathIBs = - [1658847009.838630][28392:28392] CHIP:DMG: [ - [1658847009.838660][28392:28392] CHIP:DMG: AttributePathIB = - [1658847009.838694][28392:28392] CHIP:DMG: { - [1658847009.838728][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658847009.838766][28392:28392] CHIP:DMG: Cluster = 0x45, - [1658847009.838806][28392:28392] CHIP:DMG: Attribute = 0x0000_0000, - [1658847009.838843][28392:28392] CHIP:DMG: } - [1658847009.838878][28392:28392] CHIP:DMG: - [1658847009.838909][28392:28392] CHIP:DMG: ], - [1658847009.838943][28392:28392] CHIP:DMG: - [1658847009.838975][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658847009.839006][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658847009.839034][28392:28392] CHIP:DMG: }, - [1658847009.839120][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658847009.839332][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658847009.839386][28392:28392] CHIP:DMG: Cluster 45, Attribute 0 is dirty - [1658847009.839426][28392:28392] CHIP:DMG: Reading attribute: Cluster=0x0000_0045 Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - [1658847009.839474][28392:28392] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0045 e=1 p=v - [1658847009.839528][28392:28392] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - This cluster doesn"t have any optional attribute - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - ./chip-tool booleanstate read attribute-list 1 1 - - Verify none of the optional attributes of the server-side of the cluster is listed on TH(all-clusters-app) Log - [1654244313219] [91456:3997555] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0045 Attribute 0x0000_FFFB DataVersion: 2739318439 - [1654244313220] [91456:3997555] CHIP: [TOO] AttributeList: 6 entries - [1654244313220] [91456:3997555] CHIP: [TOO] [1]: 0 - [1654244313220] [91456:3997555] CHIP: [TOO] [2]: 65528 - [1654244313220] [91456:3997555] CHIP: [TOO] [3]: 65529 - [1654244313220] [91456:3997555] CHIP: [TOO] [4]: 65531 - [1654244313220] [91456:3997555] CHIP: [TOO] [5]: 65532 - [1654244313220] [91456:3997555] CHIP: [TOO] [6]: 65533 - - ./chip-tool booleanstate read state-value 1 1 - - Verify read command is received on TH (all-clusters-minimal-app) Log - - [1658847009.838448][28392:28392] CHIP:IM: Received Read request - [1658847009.838537][28392:28392] CHIP:DMG: ReadRequestMessage = - [1658847009.838570][28392:28392] CHIP:DMG: { - [1658847009.838598][28392:28392] CHIP:DMG: AttributePathIBs = - [1658847009.838630][28392:28392] CHIP:DMG: [ - [1658847009.838660][28392:28392] CHIP:DMG: AttributePathIB = - [1658847009.838694][28392:28392] CHIP:DMG: { - [1658847009.838728][28392:28392] CHIP:DMG: Endpoint = 0x1, - [1658847009.838766][28392:28392] CHIP:DMG: Cluster = 0x45, - [1658847009.838806][28392:28392] CHIP:DMG: Attribute = 0x0000_0000, - [1658847009.838843][28392:28392] CHIP:DMG: } - [1658847009.838878][28392:28392] CHIP:DMG: - [1658847009.838909][28392:28392] CHIP:DMG: ], - [1658847009.838943][28392:28392] CHIP:DMG: - [1658847009.838975][28392:28392] CHIP:DMG: isFabricFiltered = true, - [1658847009.839006][28392:28392] CHIP:DMG: InteractionModelRevision = 1 - [1658847009.839034][28392:28392] CHIP:DMG: }, - [1658847009.839120][28392:28392] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658847009.839332][28392:28392] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658847009.839386][28392:28392] CHIP:DMG: Cluster 45, Attribute 0 is dirty - [1658847009.839426][28392:28392] CHIP:DMG: Reading attribute: Cluster=0x0000_0045 Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - [1658847009.839474][28392:28392] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0045 e=1 p=v - [1658847009.839528][28392:28392] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - This cluster doesn"t have any optional attribute - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any optional attribute - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_3_1_Simulated.yaml new file mode 100644 index 00000000000000..695ee104f8eed9 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_BOOL_3_1_Simulated.yaml @@ -0,0 +1,29 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 68.3.1. [TC-BOOL-3.1] Attributes with Client as DUT + +config: + nodeId: 0x12344321 + cluster: "Boolean State" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: StateValue" + wait: "readAttribute" + attribute: "StateValue" diff --git a/src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml deleted file mode 100644 index b31816c2524a44..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DESC_2_2.yaml +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 84.2.2. [TC-DESC-2.2] Descriptor Cluster Attributes [DUT-Client] - -PICS: - - DESC.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Pre-Conditions" - verification: | - Commission TH to DUT - disabled: true - - - label: "DUT reads DeviceTypeList from TH." - PICS: DESC.C.A0000 - verification: | - Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client) - - ./chip-tool descriptor read device-list 1 0 - - verify the " device-list response" on the TH (all-cluster-app) log: - - [1660049876.238277][36511:36511] CHIP:IM: Received Read request - [1660049876.238408][36511:36511] CHIP:DMG: ReadRequestMessage = - [1660049876.238477][36511:36511] CHIP:DMG: { - [1660049876.238525][36511:36511] CHIP:DMG: AttributePathIBs = - [1660049876.238602][36511:36511] CHIP:DMG: [ - [1660049876.238677][36511:36511] CHIP:DMG: AttributePathIB = - [1660049876.238766][36511:36511] CHIP:DMG: { - [1660049876.238857][36511:36511] CHIP:DMG: Endpoint = 0x0, - [1660049876.238963][36511:36511] CHIP:DMG: Cluster = 0x1d, - [1660049876.239062][36511:36511] CHIP:DMG: Attribute = 0x0000_0000, - [1660049876.239156][36511:36511] CHIP:DMG: } - [1660049876.239246][36511:36511] CHIP:DMG: - [1660049876.239331][36511:36511] CHIP:DMG: ], - [1660049876.239408][36511:36511] CHIP:DMG: - [1660049876.239490][36511:36511] CHIP:DMG: isFabricFiltered = true, - [1660049876.239568][36511:36511] CHIP:DMG: InteractionModelRevision = 1 - [1660049876.239639][36511:36511] CHIP:DMG: }, - disabled: true - - - label: "DUT reads ServerList from the TH" - PICS: DESC.C.A0001 - verification: | - ./chip-tool descriptor read server-list 1 0 - - verify the " server-list response" on the TH (all-cluster-app) log: - - [1657095388.496869][3451:3456] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 2880250959 - [1660049905.629940][36511:36511] CHIP:IM: Received Read request - [1660049905.630388][36511:36511] CHIP:DMG: ReadRequestMessage = - [1660049905.630834][36511:36511] CHIP:DMG: { - [1660049905.631175][36511:36511] CHIP:DMG: AttributePathIBs = - [1660049905.631815][36511:36511] CHIP:DMG: [ - [1660049905.632509][36511:36511] CHIP:DMG: AttributePathIB = - [1660049905.633291][36511:36511] CHIP:DMG: { - [1660049905.634105][36511:36511] CHIP:DMG: Endpoint = 0x0, - [1660049905.634422][36511:36511] CHIP:DMG: Cluster = 0x1d, - [1660049905.634714][36511:36511] CHIP:DMG: Attribute = 0x0000_0001, - [1660049905.635065][36511:36511] CHIP:DMG: } - [1660049905.635366][36511:36511] CHIP:DMG: - [1660049905.635466][36511:36511] CHIP:DMG: ], - [1660049905.635925][36511:36511] CHIP:DMG: - [1660049905.636339][36511:36511] CHIP:DMG: isFabricFiltered = true, - [1660049905.636431][36511:36511] CHIP:DMG: InteractionModelRevision = 1 - [1660049905.636651][36511:36511] CHIP:DMG: }, - disabled: true - - - label: "DUT reads ClientList from the TH" - PICS: DESC.C.A0002 - verification: | - ./chip-tool descriptor read client-list 1 0 - - verify the " client-list response" on the TH (all-cluster-app) log: - [1660049929.094511][36511:36511] CHIP:IM: Received Read request - [1660049929.094621][36511:36511] CHIP:DMG: ReadRequestMessage = - [1660049929.094659][36511:36511] CHIP:DMG: { - [1660049929.094680][36511:36511] CHIP:DMG: AttributePathIBs = - [1660049929.094706][36511:36511] CHIP:DMG: [ - [1660049929.094729][36511:36511] CHIP:DMG: AttributePathIB = - [1660049929.094761][36511:36511] CHIP:DMG: { - [1660049929.094788][36511:36511] CHIP:DMG: Endpoint = 0x0, - [1660049929.094821][36511:36511] CHIP:DMG: Cluster = 0x1d, - [1660049929.094855][36511:36511] CHIP:DMG: Attribute = 0x0000_0002, - [1660049929.094886][36511:36511] CHIP:DMG: } - [1660049929.094914][36511:36511] CHIP:DMG: - [1660049929.094940][36511:36511] CHIP:DMG: ], - [1660049929.094966][36511:36511] CHIP:DMG: - [1660049929.094993][36511:36511] CHIP:DMG: isFabricFiltered = true, - [1660049929.095019][36511:36511] CHIP:DMG: InteractionModelRevision = 1 - [1660049929.095041][36511:36511] CHIP:DMG: }, - disabled: true - - - label: "DUT reads PartsList from the TH" - PICS: DESC.C.A0003 - verification: | - ./chip-tool descriptor read parts-list 1 0 - - verify the " parts-list response" on the TH (all-cluster-app) log: - - [1660049948.708577][36511:36511] CHIP:IM: Received Read request - [1660049948.708668][36511:36511] CHIP:DMG: ReadRequestMessage = - [1660049948.708701][36511:36511] CHIP:DMG: { - [1660049948.708723][36511:36511] CHIP:DMG: AttributePathIBs = - [1660049948.708748][36511:36511] CHIP:DMG: [ - [1660049948.708771][36511:36511] CHIP:DMG: AttributePathIB = - [1660049948.708832][36511:36511] CHIP:DMG: { - [1660049948.708925][36511:36511] CHIP:DMG: Endpoint = 0x0, - [1660049948.709818][36511:36511] CHIP:DMG: Cluster = 0x1d, - [1660049948.710771][36511:36511] CHIP:DMG: Attribute = 0x0000_0003, - [1660049948.711682][36511:36511] CHIP:DMG: } - [1660049948.712502][36511:36511] CHIP:DMG: - [1660049948.713252][36511:36511] CHIP:DMG: ], - [1660049948.713823][36511:36511] CHIP:DMG: - [1660049948.714389][36511:36511] CHIP:DMG: isFabricFiltered = true, - [1660049948.714998][36511:36511] CHIP:DMG: InteractionModelRevision = 1 - [1660049948.715573][36511:36511] CHIP:DMG: }, - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DESC_2_2_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DESC_2_2_Simulated.yaml new file mode 100644 index 00000000000000..71904d370d0dc4 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DESC_2_2_Simulated.yaml @@ -0,0 +1,48 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 84.2.2. [TC-DESC-2.2] Descriptor Cluster Attributes [DUT-Client] + +PICS: + - DESC.C + +config: + nodeId: 0x12344321 + cluster: "Descriptor" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "DUT reads DeviceTypeList from TH." + PICS: DESC.C.A0000 + wait: "readAttribute" + attribute: "DeviceTypeList" + + - label: "DUT reads ServerList from the TH" + PICS: DESC.C.A0001 + wait: "readAttribute" + attribute: "ServerList" + + - label: "DUT reads ClientList attribute from the TH" + PICS: DESC.C.A0002 + wait: "readAttribute" + attribute: "ClientList" + + - label: "DUT reads PartsList attribute from the TH" + PICS: DESC.C.A0003 + wait: "readAttribute" + attribute: "PartsList" diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml deleted file mode 100644 index 9d6ce69da622cc..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DGETH_3_1.yaml +++ /dev/null @@ -1,324 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.3.1. [TC-DGETH-3.1] Attributes [{DUT_Client}] - -PICS: - - DGETH.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "DUT reads PHYRate attribute from TH." - PICS: DGETH.S.A0000 - verification: | - ./chip-tool ethernetnetworkdiagnostics read phyrate 1 0 - - Verify the value of PHYRate is in range of PHYRate enum in TH(all-clusters-app)Log - - [1659971284.056816][3458:3458] CHIP:IM: Received Read request - [1659971284.056893][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971284.056920][3458:3458] CHIP:DMG: { - [1659971284.056942][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971284.056968][3458:3458] CHIP:DMG: [ - [1659971284.056992][3458:3458] CHIP:DMG: AttributePathIB = - [1659971284.057036][3458:3458] CHIP:DMG: { - [1659971284.057066][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971284.057097][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971284.057126][3458:3458] CHIP:DMG: Attribute = 0x0000_0000, - [1659971284.057157][3458:3458] CHIP:DMG: } - [1659971284.057185][3458:3458] CHIP:DMG: - [1659971284.057209][3458:3458] CHIP:DMG: ], - [1659971284.057237][3458:3458] CHIP:DMG: - [1659971284.057263][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971284.057287][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971284.057310][3458:3458] CHIP:DMG: }, - [1659971284.057384][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971284.057468][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971284.057497][3458:3458] CHIP:DMG: Cluster 37, Attribute 0 is dirty - [1659971284.057518][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0000 (expanded=0) - [1659971284.057545][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971284.057577][3458:3458] CHIP:DMG: AccessControl: allowed - [1659971284.057707][3458:3458] CHIP:ZCL: The current nominal, usable speed at the top of the physical layer of the Node: 1 - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0001 - verification: | - ./chip-tool ethernetnetworkdiagnostics read full-duplex 1 0 - - Verify the value of FullDuplex is boolean in TH(all-clusters-app) Log - - [1659971415.211787][3458:3458] CHIP:IM: Received Read request - [1659971415.211891][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971415.211931][3458:3458] CHIP:DMG: { - [1659971415.211963][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971415.212001][3458:3458] CHIP:DMG: [ - [1659971415.212036][3458:3458] CHIP:DMG: AttributePathIB = - [1659971415.212084][3458:3458] CHIP:DMG: { - [1659971415.212126][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971415.212171][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971415.212219][3458:3458] CHIP:DMG: Attribute = 0x0000_0001, - [1659971415.212262][3458:3458] CHIP:DMG: } - [1659971415.212303][3458:3458] CHIP:DMG: - [1659971415.212340][3458:3458] CHIP:DMG: ], - [1659971415.212380][3458:3458] CHIP:DMG: - [1659971415.212419][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971415.212456][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971415.212490][3458:3458] CHIP:DMG: }, - [1659971415.212590][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971415.212704][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971415.212746][3458:3458] CHIP:DMG: Cluster 37, Attribute 1 is dirty - [1659971415.212777][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0001 (expanded=0) - [1659971415.212816][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971415.212862][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0002 - verification: | - ./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 0 - - Verify the value of PacketRxCount is in range uint64 on TH(all-clusters-app) Log - - [1659971446.614287][3458:3458] CHIP:IM: Received Read request - [1659971446.614366][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971446.614393][3458:3458] CHIP:DMG: { - [1659971446.614414][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971446.614441][3458:3458] CHIP:DMG: [ - [1659971446.614464][3458:3458] CHIP:DMG: AttributePathIB = - [1659971446.614492][3458:3458] CHIP:DMG: { - [1659971446.614519][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971446.614551][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971446.614582][3458:3458] CHIP:DMG: Attribute = 0x0000_0002, - [1659971446.614610][3458:3458] CHIP:DMG: } - [1659971446.614637][3458:3458] CHIP:DMG: - [1659971446.614661][3458:3458] CHIP:DMG: ], - [1659971446.614689][3458:3458] CHIP:DMG: - [1659971446.614713][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971446.614738][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971446.614761][3458:3458] CHIP:DMG: }, - [1659971446.614831][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971446.614913][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971446.614942][3458:3458] CHIP:DMG: Cluster 37, Attribute 2 is dirty - [1659971446.614963][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0002 (expanded=0) - [1659971446.614991][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971446.615023][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0003 - verification: | - ./chip-tool ethernetnetworkdiagnostics read packet-tx-count 1 0 - - Verify the value of PacketTxCount is in range uint64 on TH(all-clusters-app) Log - - [1659971467.437214][3458:3458] CHIP:IM: Received Read request - [1659971467.437292][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971467.437318][3458:3458] CHIP:DMG: { - [1659971467.437339][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971467.437365][3458:3458] CHIP:DMG: [ - [1659971467.437388][3458:3458] CHIP:DMG: AttributePathIB = - [1659971467.437423][3458:3458] CHIP:DMG: { - [1659971467.437451][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971467.437482][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971467.437513][3458:3458] CHIP:DMG: Attribute = 0x0000_0003, - [1659971467.437542][3458:3458] CHIP:DMG: } - [1659971467.437569][3458:3458] CHIP:DMG: - [1659971467.437594][3458:3458] CHIP:DMG: ], - [1659971467.437622][3458:3458] CHIP:DMG: - [1659971467.437648][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971467.437672][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971467.437693][3458:3458] CHIP:DMG: }, - [1659971467.437765][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971467.437848][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971467.437877][3458:3458] CHIP:DMG: Cluster 37, Attribute 3 is dirty - [1659971467.437898][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659971467.437926][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971467.437958][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0004 - verification: | - ./chip-tool ethernetnetworkdiagnostics read tx-err-count 1 0 - - Verify the value of TxErrCount is in range uint64 on TH(all-clusters-app) Log - - [1659971467.437214][3458:3458] CHIP:IM: Received Read request - [1659971467.437292][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971467.437318][3458:3458] CHIP:DMG: { - [1659971467.437339][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971467.437365][3458:3458] CHIP:DMG: [ - [1659971467.437388][3458:3458] CHIP:DMG: AttributePathIB = - [1659971467.437423][3458:3458] CHIP:DMG: { - [1659971467.437451][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971467.437482][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971467.437513][3458:3458] CHIP:DMG: Attribute = 0x0000_0004, - [1659971467.437542][3458:3458] CHIP:DMG: } - [1659971467.437569][3458:3458] CHIP:DMG: - [1659971467.437594][3458:3458] CHIP:DMG: ], - [1659971467.437622][3458:3458] CHIP:DMG: - [1659971467.437648][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971467.437672][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971467.437693][3458:3458] CHIP:DMG: }, - [1659971467.437765][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971467.437848][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971467.437877][3458:3458] CHIP:DMG: Cluster 37, Attribute 3 is dirty - [1659971467.437898][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659971467.437926][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971467.437958][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0005 - verification: | - ./chip-tool ethernetnetworkdiagnostics read collision-count 1 0 - - Verify the value of CollisionCount is in range uint64 on TH(all-clusters-app) Log - - [1659971467.437214][3458:3458] CHIP:IM: Received Read request - [1659971467.437292][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971467.437318][3458:3458] CHIP:DMG: { - [1659971467.437339][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971467.437365][3458:3458] CHIP:DMG: [ - [1659971467.437388][3458:3458] CHIP:DMG: AttributePathIB = - [1659971467.437423][3458:3458] CHIP:DMG: { - [1659971467.437451][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971467.437482][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971467.437513][3458:3458] CHIP:DMG: Attribute = 0x0000_0005, - [1659971467.437542][3458:3458] CHIP:DMG: } - [1659971467.437569][3458:3458] CHIP:DMG: - [1659971467.437594][3458:3458] CHIP:DMG: ], - [1659971467.437622][3458:3458] CHIP:DMG: - [1659971467.437648][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971467.437672][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971467.437693][3458:3458] CHIP:DMG: }, - [1659971467.437765][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971467.437848][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971467.437877][3458:3458] CHIP:DMG: Cluster 37, Attribute 3 is dirty - [1659971467.437898][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659971467.437926][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971467.437958][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0006 - verification: | - ./chip-tool ethernetnetworkdiagnostics read overrun-count 1 0 - - Verify the value of OverrunCount is in range uint64 on TH(all-clusters-app) Log - - [1659971467.437214][3458:3458] CHIP:IM: Received Read request - [1659971467.437292][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971467.437318][3458:3458] CHIP:DMG: { - [1659971467.437339][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971467.437365][3458:3458] CHIP:DMG: [ - [1659971467.437388][3458:3458] CHIP:DMG: AttributePathIB = - [1659971467.437423][3458:3458] CHIP:DMG: { - [1659971467.437451][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971467.437482][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971467.437513][3458:3458] CHIP:DMG: Attribute = 0x0000_0006, - [1659971467.437542][3458:3458] CHIP:DMG: } - [1659971467.437569][3458:3458] CHIP:DMG: - [1659971467.437594][3458:3458] CHIP:DMG: ], - [1659971467.437622][3458:3458] CHIP:DMG: - [1659971467.437648][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971467.437672][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971467.437693][3458:3458] CHIP:DMG: }, - [1659971467.437765][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971467.437848][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971467.437877][3458:3458] CHIP:DMG: Cluster 37, Attribute 3 is dirty - [1659971467.437898][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659971467.437926][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971467.437958][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0007 - verification: | - ./chip-tool ethernetnetworkdiagnostics read carrier-detect 1 0 - - Verify the value of CarrierDetect is either bool or null on TH(all-clusters-app) Log - - [1659971467.437214][3458:3458] CHIP:IM: Received Read request - [1659971467.437292][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971467.437318][3458:3458] CHIP:DMG: { - [1659971467.437339][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971467.437365][3458:3458] CHIP:DMG: [ - [1659971467.437388][3458:3458] CHIP:DMG: AttributePathIB = - [1659971467.437423][3458:3458] CHIP:DMG: { - [1659971467.437451][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971467.437482][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971467.437513][3458:3458] CHIP:DMG: Attribute = 0x0000_0007, - [1659971467.437542][3458:3458] CHIP:DMG: } - [1659971467.437569][3458:3458] CHIP:DMG: - [1659971467.437594][3458:3458] CHIP:DMG: ], - [1659971467.437622][3458:3458] CHIP:DMG: - [1659971467.437648][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971467.437672][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971467.437693][3458:3458] CHIP:DMG: }, - [1659971467.437765][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971467.437848][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971467.437877][3458:3458] CHIP:DMG: Cluster 37, Attribute 3 is dirty - [1659971467.437898][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659971467.437926][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971467.437958][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads a attribute value from TH." - PICS: DGETH.S.A0008 - verification: | - ./chip-tool ethernetnetworkdiagnostics read time-since-reset 1 0 - - Verify the value of TimeSinceReset is in range uint64 on TH(all-clusters-app) Log - - [1659971467.437214][3458:3458] CHIP:IM: Received Read request - [1659971467.437292][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971467.437318][3458:3458] CHIP:DMG: { - [1659971467.437339][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971467.437365][3458:3458] CHIP:DMG: [ - [1659971467.437388][3458:3458] CHIP:DMG: AttributePathIB = - [1659971467.437423][3458:3458] CHIP:DMG: { - [1659971467.437451][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971467.437482][3458:3458] CHIP:DMG: Cluster = 0x37, - [1659971467.437513][3458:3458] CHIP:DMG: Attribute = 0x0000_0008, - [1659971467.437542][3458:3458] CHIP:DMG: } - [1659971467.437569][3458:3458] CHIP:DMG: - [1659971467.437594][3458:3458] CHIP:DMG: ], - [1659971467.437622][3458:3458] CHIP:DMG: - [1659971467.437648][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971467.437672][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971467.437693][3458:3458] CHIP:DMG: }, - [1659971467.437765][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971467.437848][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971467.437877][3458:3458] CHIP:DMG: Cluster 37, Attribute 3 is dirty - [1659971467.437898][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0037 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659971467.437926][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0037 e=0 p=v - [1659971467.437958][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_1_Simulated.yaml new file mode 100644 index 00000000000000..da51a18383597e --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGETH_3_1_Simulated.yaml @@ -0,0 +1,73 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 47.3.1. [TC-DGETH-3.1] Attributes [DUT as Client] + +PICS: + - DGETH.C + +config: + nodeId: 0x12344321 + cluster: "Ethernet Network Diagnostics" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: PHYRate" + PICS: DGETH.C.A0000 + wait: "readAttribute" + attribute: "PHYRate" + + - label: "Read attribute: FullDuplex" + PICS: DGETH.C.A0001 + wait: "readAttribute" + attribute: "FullDuplex" + + - label: "Read attribute: PacketRxCount" + PICS: DGETH.C.A0002 + wait: "readAttribute" + attribute: "PacketRxCount" + + - label: "Read attribute: PacketTxCount" + PICS: DGETH.C.A0003 + wait: "readAttribute" + attribute: "PacketTxCount" + + - label: "Read attribute: TxErrCount" + PICS: DGETH.C.A0004 + wait: "readAttribute" + attribute: "TxErrCount" + + - label: "Read attribute: CollisionCount" + PICS: DGETH.C.A0005 + wait: "readAttribute" + attribute: "CollisionCount" + + - label: "Read attribute: OverrunCount" + PICS: DGETH.C.A0006 + wait: "readAttribute" + attribute: "OverrunCount" + + - label: "Read attribute: CarrierDetect" + PICS: DGETH.C.A0007 + wait: "readAttribute" + attribute: "CarrierDetect" + + - label: "Read attribute: TimeSinceReset" + PICS: DGETH.C.A0008 + wait: "readAttribute" + attribute: "TimeSinceReset" diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml deleted file mode 100644 index d3e780fe83dfb7..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DGETH_3_2.yaml +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.3.2. [TC-DGETH-3.2] Command Generated {DUT_Client}] - -PICS: - - DGETH.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "DUT sends ResetCounts to TH." - PICS: DGETH.C.C00.Tx - verification: | - Verify Command data recieved from running the below command is a success - - ./chip-tool ethernetnetworkdiagnostics reset-counts 1 0 - - Verify Command data recieved from running the below command is a success on TH(all-clusters-app) Log - - [1659960382.148753][4826:4826] CHIP:DMG: InvokeRequestMessage = - [1659960382.148777][4826:4826] CHIP:DMG: { - [1659960382.148798][4826:4826] CHIP:DMG: suppressResponse = false, - [1659960382.148822][4826:4826] CHIP:DMG: timedRequest = false, - [1659960382.148856][4826:4826] CHIP:DMG: InvokeRequests = - [1659960382.148889][4826:4826] CHIP:DMG: [ - [1659960382.148921][4826:4826] CHIP:DMG: CommandDataIB = - [1659960382.148948][4826:4826] CHIP:DMG: { - [1659960382.148981][4826:4826] CHIP:DMG: CommandPathIB = - [1659960382.149013][4826:4826] CHIP:DMG: { - [1659960382.149051][4826:4826] CHIP:DMG: EndpointId = 0x0, - [1659960382.149081][4826:4826] CHIP:DMG: ClusterId = 0x37, - [1659960382.149119][4826:4826] CHIP:DMG: CommandId = 0x0, - [1659960382.149149][4826:4826] CHIP:DMG: }, - [1659960382.149178][4826:4826] CHIP:DMG: - [1659960382.149212][4826:4826] CHIP:DMG: CommandFields = - [1659960382.149239][4826:4826] CHIP:DMG: { - [1659960382.149276][4826:4826] CHIP:DMG: }, - [1659960382.149302][4826:4826] CHIP:DMG: }, - [1659960382.149337][4826:4826] CHIP:DMG: - [1659960382.149358][4826:4826] CHIP:DMG: ], - [1659960382.149392][4826:4826] CHIP:DMG: - [1659960382.149413][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960382.149433][4826:4826] CHIP:DMG: }, - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGETH_3_2_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGETH_3_2_Simulated.yaml new file mode 100644 index 00000000000000..8f9fec3dc82f91 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGETH_3_2_Simulated.yaml @@ -0,0 +1,32 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 47.3.2. [TC-DGETH-3.2] Command Generated DUT as Client] + +PICS: + - DGETH.C + +config: + nodeId: 0x12344321 + cluster: "Ethernet Network Diagnostics" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "DUT sends ResetCounts to TH" + PICS: DGETH.C.C00.Tx + wait: "ResetCounts" diff --git a/src/app/tests/suites/certification/Test_TC_DGSW_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGSW_3_1.yaml deleted file mode 100644 index f59e19c6b8c057..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DGSW_3_1.yaml +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.3.1. [TC-DGSW-3.1] Attributes [{DUT_Client}] - -PICS: - - DGSW.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "DUT reads a list of ThreadMetrics struct attribute from TH." - PICS: DGSW.C.A0000 - verification: | - ./chip-tool softwarediagnostics read thread-metrics 1 0 - - Verify the thread-metrics attribute has entries with ThreadMetrics Struct on TH(all-clusters-app) Log: - - [1659971993.647303][3458:3458] CHIP:IM: Received Read request - [1659971993.647386][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659971993.647414][3458:3458] CHIP:DMG: { - [1659971993.647436][3458:3458] CHIP:DMG: AttributePathIBs = - [1659971993.647462][3458:3458] CHIP:DMG: [ - [1659971993.647486][3458:3458] CHIP:DMG: AttributePathIB = - [1659971993.647514][3458:3458] CHIP:DMG: { - [1659971993.647542][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659971993.647578][3458:3458] CHIP:DMG: Cluster = 0x34, - [1659971993.647607][3458:3458] CHIP:DMG: Attribute = 0x0000_0000, - [1659971993.647634][3458:3458] CHIP:DMG: } - [1659971993.647663][3458:3458] CHIP:DMG: - [1659971993.647687][3458:3458] CHIP:DMG: ], - [1659971993.647716][3458:3458] CHIP:DMG: - [1659971993.647742][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659971993.647767][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659971993.647791][3458:3458] CHIP:DMG: }, - [1659971993.647866][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659971993.647967][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659971993.647998][3458:3458] CHIP:DMG: Cluster 34, Attribute 0 is dirty - [1659971993.648020][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0034 Endpoint=0 AttributeId=0x0000_0000 (expanded=0) - [1659971993.648047][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1659971993.648080][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads an attribute value from TH." - PICS: DGSW.C.A0001 - verification: | - ./chip-tool softwarediagnostics read current-heap-free 1 0 - - Verify the value of CurrentHeapFree is in range uint64 on TH(all-clusters-app) Log: - - [1659972026.540043][3458:3458] CHIP:IM: Received Read request - [1659972026.540208][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659972026.540273][3458:3458] CHIP:DMG: { - [1659972026.540325][3458:3458] CHIP:DMG: AttributePathIBs = - [1659972026.540387][3458:3458] CHIP:DMG: [ - [1659972026.540444][3458:3458] CHIP:DMG: AttributePathIB = - [1659972026.540510][3458:3458] CHIP:DMG: { - [1659972026.540577][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659972026.540661][3458:3458] CHIP:DMG: Cluster = 0x34, - [1659972026.540737][3458:3458] CHIP:DMG: Attribute = 0x0000_0001, - [1659972026.540810][3458:3458] CHIP:DMG: } - [1659972026.540878][3458:3458] CHIP:DMG: - [1659972026.540939][3458:3458] CHIP:DMG: ], - [1659972026.541006][3458:3458] CHIP:DMG: - [1659972026.541118][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659972026.541182][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659972026.541239][3458:3458] CHIP:DMG: }, - [1659972026.541397][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659972026.541584][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659972026.541651][3458:3458] CHIP:DMG: Cluster 34, Attribute 1 is dirty - [1659972026.541702][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0034 Endpoint=0 AttributeId=0x0000_0001 (expanded=0) - [1659972026.541773][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1659972026.541845][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads an attribute value from TH." - PICS: DGSW.C.A0002 - verification: | - ./chip-tool softwarediagnostics read current-heap-used 1 0 - - Verify the value of CurrentHeapUsed is in range uint64 on TH(all-clusters-app) Log: - - [1659972063.411625][3458:3458] CHIP:IM: Received Read request - [1659972063.411702][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659972063.411740][3458:3458] CHIP:DMG: { - [1659972063.411763][3458:3458] CHIP:DMG: AttributePathIBs = - [1659972063.411789][3458:3458] CHIP:DMG: [ - [1659972063.411822][3458:3458] CHIP:DMG: AttributePathIB = - [1659972063.411852][3458:3458] CHIP:DMG: { - [1659972063.411892][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659972063.411932][3458:3458] CHIP:DMG: Cluster = 0x34, - [1659972063.411964][3458:3458] CHIP:DMG: Attribute = 0x0000_0002, - [1659972063.412003][3458:3458] CHIP:DMG: } - [1659972063.412032][3458:3458] CHIP:DMG: - [1659972063.412069][3458:3458] CHIP:DMG: ], - [1659972063.412106][3458:3458] CHIP:DMG: - [1659972063.412133][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659972063.412165][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659972063.412191][3458:3458] CHIP:DMG: }, - [1659972063.412273][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659972063.412375][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659972063.412403][3458:3458] CHIP:DMG: Cluster 34, Attribute 2 is dirty - [1659972063.412424][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0034 Endpoint=0 AttributeId=0x0000_0002 (expanded=0) - [1659972063.412451][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1659972063.412483][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true - - - label: "DUT reads an attribute value from TH." - PICS: DGSW.C.A0003 - verification: | - ./chip-tool softwarediagnostics read current-heap-high-watermark 1 0 - - Verify the value of CurrentHeapHighWatermark is in range uint64 on TH(all-clusters-app) Log: - - [1659972088.497642][3458:3458] CHIP:IM: Received Read request - [1659972088.497747][3458:3458] CHIP:DMG: ReadRequestMessage = - [1659972088.497787][3458:3458] CHIP:DMG: { - [1659972088.497816][3458:3458] CHIP:DMG: AttributePathIBs = - [1659972088.497854][3458:3458] CHIP:DMG: [ - [1659972088.497889][3458:3458] CHIP:DMG: AttributePathIB = - [1659972088.497928][3458:3458] CHIP:DMG: { - [1659972088.497970][3458:3458] CHIP:DMG: Endpoint = 0x0, - [1659972088.498016][3458:3458] CHIP:DMG: Cluster = 0x34, - [1659972088.498061][3458:3458] CHIP:DMG: Attribute = 0x0000_0003, - [1659972088.498103][3458:3458] CHIP:DMG: } - [1659972088.498144][3458:3458] CHIP:DMG: - [1659972088.498180][3458:3458] CHIP:DMG: ], - [1659972088.498219][3458:3458] CHIP:DMG: - [1659972088.498257][3458:3458] CHIP:DMG: isFabricFiltered = true, - [1659972088.498294][3458:3458] CHIP:DMG: InteractionModelRevision = 1 - [1659972088.498328][3458:3458] CHIP:DMG: }, - [1659972088.498431][3458:3458] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659972088.498545][3458:3458] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659972088.498587][3458:3458] CHIP:DMG: Cluster 34, Attribute 3 is dirty - [1659972088.498618][3458:3458] CHIP:DMG: Reading attribute: Cluster=0x0000_0034 Endpoint=0 AttributeId=0x0000_0003 (expanded=0) - [1659972088.498657][3458:3458] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0034 e=0 p=v - [1659972088.498702][3458:3458] CHIP:DMG: AccessControl: allowed - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGSW_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGSW_3_1_Simulated.yaml new file mode 100644 index 00000000000000..8481a256324e49 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGSW_3_1_Simulated.yaml @@ -0,0 +1,48 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 44.3.1. [TC-DGSW-3.1] Attributes [DUT as Client] + +PICS: + - DGSW.C + +config: + nodeId: 0x12344321 + cluster: "Software Diagnostics" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: ThreadMetrics" + PICS: DGSW.C.A0000 + wait: "readAttribute" + attribute: "ThreadMetrics" + + - label: "Read attribute: CurrentHeapFree" + PICS: DGSW.C.A0001 + wait: "readAttribute" + attribute: "CurrentHeapFree" + + - label: "Read attribute: CurrentHeapUsed" + PICS: DGSW.C.A0002 + wait: "readAttribute" + attribute: "CurrentHeapUsed" + + - label: "Read attribute: CurrentHeapHighWatermark" + PICS: DGSW.C.A0003 + wait: "readAttribute" + attribute: "CurrentHeapHighWatermark" diff --git a/src/app/tests/suites/certification/Test_TC_DGSW_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGSW_3_2.yaml deleted file mode 100644 index 8e04e498052098..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DGSW_3_2.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.3.2. [TC-DGSW-3.2] Commands Generated [{DUT_Client}] - -PICS: - - DGSW.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "DUT sends ResetWatermarks to TH." - PICS: DGSW.C.C00.Tx - verification: | - ./chip-tool softwarediagnostics reset-watermarks 1 0 - - Verify the success response on TH(all-clusters-app) Log: - - [1659960382.148753][4826:4826] CHIP:DMG: InvokeRequestMessage = - [1659960382.148777][4826:4826] CHIP:DMG: { - [1659960382.148798][4826:4826] CHIP:DMG: suppressResponse = false, - [1659960382.148822][4826:4826] CHIP:DMG: timedRequest = false, - [1659960382.148856][4826:4826] CHIP:DMG: InvokeRequests = - [1659960382.148889][4826:4826] CHIP:DMG: [ - [1659960382.148921][4826:4826] CHIP:DMG: CommandDataIB = - [1659960382.148948][4826:4826] CHIP:DMG: { - [1659960382.148981][4826:4826] CHIP:DMG: CommandPathIB = - [1659960382.149013][4826:4826] CHIP:DMG: { - [1659960382.149051][4826:4826] CHIP:DMG: EndpointId = 0x0, - [1659960382.149081][4826:4826] CHIP:DMG: ClusterId = 0x34, - [1659960382.149119][4826:4826] CHIP:DMG: CommandId = 0x0, - [1659960382.149149][4826:4826] CHIP:DMG: }, - [1659960382.149178][4826:4826] CHIP:DMG: - [1659960382.149212][4826:4826] CHIP:DMG: CommandFields = - [1659960382.149239][4826:4826] CHIP:DMG: { - [1659960382.149276][4826:4826] CHIP:DMG: }, - [1659960382.149302][4826:4826] CHIP:DMG: }, - [1659960382.149337][4826:4826] CHIP:DMG: - [1659960382.149358][4826:4826] CHIP:DMG: ], - [1659960382.149392][4826:4826] CHIP:DMG: - [1659960382.149413][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960382.149433][4826:4826] CHIP:DMG: }, - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGSW_3_2_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGSW_3_2_Simulated.yaml new file mode 100644 index 00000000000000..221e0a80ab17a1 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGSW_3_2_Simulated.yaml @@ -0,0 +1,32 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 44.3.2. [TC-DGSW-3.2] Commands Generated [DUT as Client] + +PICS: + - DGSW.C + +config: + nodeId: 0x12344321 + cluster: "Software Diagnostics" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "DUT sends ResetWatermarks to TH" + PICS: DGSW.C.C00.Tx + wait: "ResetWatermarks" diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml deleted file mode 100644 index ff255ad58bd966..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1.yaml +++ /dev/null @@ -1,372 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.3.1. [TC-DGWIFI-3.1]Attributes [DUT as Client] - -PICS: - - DGWIFI.C.A - - DGWIFI.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "TH reads BSSID attribute from DUT." - PICS: DGWIFI.S.A0000 - verification: | - ./chip-tool wifinetworkdiagnostics read bssid 1 0 - - verify the " bssid Received Read response" on the TH (all-cluster-app) log: - - [1659959901.791873][4826:4826] CHIP:IM: Received Read request - [1659959901.791946][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659959901.791970][4826:4826] CHIP:DMG: { - [1659959901.791989][4826:4826] CHIP:DMG: AttributePathIBs = - [1659959901.792012][4826:4826] CHIP:DMG: [ - [1659959901.792033][4826:4826] CHIP:DMG: AttributePathIB = - [1659959901.792064][4826:4826] CHIP:DMG: { - [1659959901.792091][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659959901.792121][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659959901.792151][4826:4826] CHIP:DMG: Attribute = 0x0000_0000, - [1659959901.792178][4826:4826] CHIP:DMG: } - [1659959901.792203][4826:4826] CHIP:DMG: - [1659959901.792227][4826:4826] CHIP:DMG: ], - [1659959901.792251][4826:4826] CHIP:DMG: - [1659959901.792274][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659959901.792296][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659959901.792316][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a SecurityType attribute value from TH." - PICS: DGWIFI.S.A0001 - verification: | - ./chip-tool wifinetworkdiagnostics read security-type 1 0 - - verify the " security-type Received Read response" on the TH (all-cluster-app) log: - - [1659959989.666920][4826:4826] CHIP:IM: Received Read request - [1659959989.667091][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659959989.667158][4826:4826] CHIP:DMG: { - [1659959989.667214][4826:4826] CHIP:DMG: AttributePathIBs = - [1659959989.667279][4826:4826] CHIP:DMG: [ - [1659959989.667342][4826:4826] CHIP:DMG: AttributePathIB = - [1659959989.667419][4826:4826] CHIP:DMG: { - [1659959989.667491][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659959989.667582][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659959989.667668][4826:4826] CHIP:DMG: Attribute = 0x0000_0001, - [1659959989.667746][4826:4826] CHIP:DMG: } - [1659959989.667817][4826:4826] CHIP:DMG: - [1659959989.667881][4826:4826] CHIP:DMG: ], - [1659959989.667950][4826:4826] CHIP:DMG: - [1659959989.668017][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659959989.668082][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659959989.668143][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a WiFiVersion attribute value from TH." - PICS: DGWIFI.S.A0002 - verification: | - ./chip-tool wifinetworkdiagnostics read wi-fi-version 1 0 - - verify the " wi-fi-version Received Read response" on the TH (all-cluster-app) log: - [1659960013.130130][4826:4826] CHIP:IM: Received Read request - [1659960013.130211][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960013.130252][4826:4826] CHIP:DMG: { - [1659960013.130276][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960013.130303][4826:4826] CHIP:DMG: [ - [1659960013.130339][4826:4826] CHIP:DMG: AttributePathIB = - [1659960013.130371][4826:4826] CHIP:DMG: { - [1659960013.130413][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960013.130450][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960013.130492][4826:4826] CHIP:DMG: Attribute = 0x0000_0002, - [1659960013.130523][4826:4826] CHIP:DMG: } - [1659960013.130561][4826:4826] CHIP:DMG: - [1659960013.130590][4826:4826] CHIP:DMG: ], - [1659960013.130619][4826:4826] CHIP:DMG: - [1659960013.130657][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960013.130683][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960013.130716][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a ChannelNumber attribute value from TH." - PICS: DGWIFI.S.A0003 - verification: | - ./chip-tool wifinetworkdiagnostics read channel-number 1 0 - - verify the " channel-number Received Read response" on the TH (all-cluster-app) log: - [1659960026.962902][4826:4826] CHIP:IM: Received Read request - [1659960026.962973][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960026.963007][4826:4826] CHIP:DMG: { - [1659960026.963026][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960026.963058][4826:4826] CHIP:DMG: [ - [1659960026.963080][4826:4826] CHIP:DMG: AttributePathIB = - [1659960026.963111][4826:4826] CHIP:DMG: { - [1659960026.963143][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960026.963172][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960026.963209][4826:4826] CHIP:DMG: Attribute = 0x0000_0003, - [1659960026.963234][4826:4826] CHIP:DMG: } - [1659960026.963271][4826:4826] CHIP:DMG: - [1659960026.963295][4826:4826] CHIP:DMG: ], - [1659960026.963326][4826:4826] CHIP:DMG: - [1659960026.963350][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960026.963372][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960026.963400][4826:4826] CHIP:DMG: }, - [1659960026.963475][4826:4826] CHIP:DMG: IM RH moving to [GeneratingReports] - disabled: true - - - label: "DUT reads a RSSI attribute value from TH." - PICS: DGWIFI.S.A0004 - verification: | - ./chip-tool wifinetworkdiagnostics read rssi 1 0 - - verify the " rssi Received Read response" on the TH (all-cluster-app) log: - - [1659960043.760899][4826:4826] CHIP:IM: Received Read request - [1659960043.760997][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960043.761024][4826:4826] CHIP:DMG: { - [1659960043.761046][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960043.761071][4826:4826] CHIP:DMG: [ - [1659960043.761095][4826:4826] CHIP:DMG: AttributePathIB = - [1659960043.761130][4826:4826] CHIP:DMG: { - [1659960043.761158][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960043.761188][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960043.761219][4826:4826] CHIP:DMG: Attribute = 0x0000_0004, - [1659960043.761248][4826:4826] CHIP:DMG: } - [1659960043.761275][4826:4826] CHIP:DMG: - [1659960043.761302][4826:4826] CHIP:DMG: ], - [1659960043.761329][4826:4826] CHIP:DMG: - [1659960043.761354][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960043.761378][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960043.761401][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a BeaconLostCount attribute value from TH." - PICS: DGWIFI.S.A0005 - verification: | - ./chip-tool wifinetworkdiagnostics read beacon-lost-count 1 0 - - verify the " beacon-lost-count Received Read response" on the TH (all-cluster-app) log: - [1659960064.667073][4826:4826] CHIP:IM: Received Read request - [1659960064.667144][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960064.667168][4826:4826] CHIP:DMG: { - [1659960064.667203][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960064.667227][4826:4826] CHIP:DMG: [ - [1659960064.667258][4826:4826] CHIP:DMG: AttributePathIB = - [1659960064.667290][4826:4826] CHIP:DMG: { - [1659960064.667325][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960064.667356][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960064.667392][4826:4826] CHIP:DMG: Attribute = 0x0000_0005, - [1659960064.667419][4826:4826] CHIP:DMG: } - [1659960064.667451][4826:4826] CHIP:DMG: - [1659960064.667475][4826:4826] CHIP:DMG: ], - [1659960064.667508][4826:4826] CHIP:DMG: - [1659960064.667531][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960064.667553][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960064.667580][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a BeaconRxCount attribute value from TH." - PICS: DGWIFI.S.A0006 - verification: | - ./chip-tool wifinetworkdiagnostics read beacon-rx-count 1 0 - - verify the " beacon-rx-count Received Read response" on the TH (all-cluster-app) log: - [1659960081.979736][4826:4826] CHIP:IM: Received Read request - [1659960081.979809][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960081.979832][4826:4826] CHIP:DMG: { - [1659960081.979851][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960081.979874][4826:4826] CHIP:DMG: [ - [1659960081.979895][4826:4826] CHIP:DMG: AttributePathIB = - [1659960081.979924][4826:4826] CHIP:DMG: { - [1659960081.979950][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960081.979979][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960081.980007][4826:4826] CHIP:DMG: Attribute = 0x0000_0006, - [1659960081.980032][4826:4826] CHIP:DMG: } - [1659960081.980059][4826:4826] CHIP:DMG: - [1659960081.980082][4826:4826] CHIP:DMG: ], - [1659960081.980106][4826:4826] CHIP:DMG: - [1659960081.980129][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960081.980151][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960081.980171][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a PacketMultiRxCount attribute value from TH." - PICS: DGWIFI.S.A0007 - verification: | - ./chip-tool wifinetworkdiagnostics read packet-multicast-rx-count 1 0 - - verify the " packet-multicast-rx-count Received Read response" on the TH (all-cluster-app) log: - - [1659960106.003457][4826:4826] CHIP:IM: Received Read request - [1659960106.003544][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960106.003573][4826:4826] CHIP:DMG: { - [1659960106.003597][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960106.003626][4826:4826] CHIP:DMG: [ - [1659960106.003654][4826:4826] CHIP:DMG: AttributePathIB = - [1659960106.003691][4826:4826] CHIP:DMG: { - [1659960106.003725][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960106.003762][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960106.003800][4826:4826] CHIP:DMG: Attribute = 0x0000_0007, - [1659960106.003830][4826:4826] CHIP:DMG: } - [1659960106.003860][4826:4826] CHIP:DMG: - [1659960106.003890][4826:4826] CHIP:DMG: ], - [1659960106.003921][4826:4826] CHIP:DMG: - [1659960106.003950][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960106.003977][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960106.004007][4826:4826] CHIP:DMG: }, - [1659960106.004085][4826:4826] CHIP:DMG: IM RH moving to [GeneratingReports] - disabled: true - - - label: "DUT reads a PacketMultiTxCount attribute value from TH." - PICS: DGWIFI.S.A0008 - verification: | - ./chip-tool wifinetworkdiagnostics read packet-multicast-tx-count 1 0 - - verify the " packet-multicast-tx-count Received Read response" on the TH (all-cluster-app) log: - - [1659960130.770866][4826:4826] CHIP:IM: Received Read request - [1659960130.770973][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960130.771002][4826:4826] CHIP:DMG: { - [1659960130.771025][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960130.771052][4826:4826] CHIP:DMG: [ - [1659960130.771077][4826:4826] CHIP:DMG: AttributePathIB = - [1659960130.771106][4826:4826] CHIP:DMG: { - [1659960130.771143][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960130.771176][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960130.771212][4826:4826] CHIP:DMG: Attribute = 0x0000_0008, - [1659960130.771244][4826:4826] CHIP:DMG: } - [1659960130.771272][4826:4826] CHIP:DMG: - [1659960130.771301][4826:4826] CHIP:DMG: ], - [1659960130.771330][4826:4826] CHIP:DMG: - [1659960130.771357][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960130.771382][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960130.771409][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a PacketUniRxCount attribute value from TH." - PICS: DGWIFI.S.A0009 - verification: | - ./chip-tool wifinetworkdiagnostics read packet-unicast-rx-count 1 0 - - - verify the " packet-unicast-rx-count Received Read response" on the TH (all-cluster-app) log: - - [1659960152.073162][4826:4826] CHIP:IM: Received Read request - [1659960152.073238][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960152.073264][4826:4826] CHIP:DMG: { - [1659960152.073283][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960152.073307][4826:4826] CHIP:DMG: [ - [1659960152.073328][4826:4826] CHIP:DMG: AttributePathIB = - [1659960152.073400][4826:4826] CHIP:DMG: { - [1659960152.073455][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960152.073504][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960152.073560][4826:4826] CHIP:DMG: Attribute = 0x0000_0009, - [1659960152.073595][4826:4826] CHIP:DMG: } - [1659960152.073638][4826:4826] CHIP:DMG: - [1659960152.073688][4826:4826] CHIP:DMG: ], - [1659960152.073722][4826:4826] CHIP:DMG: - [1659960152.073746][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960152.073768][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960152.073797][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a PacketUniTxCount attribute value from TH." - PICS: DGWIFI.S.A000a - verification: | - ./chip-tool wifinetworkdiagnostics read packet-unicast-tx-count 1 0 - - verify the " packet-unicast-tx-count Received Read response" on the TH (all-cluster-app) log: - - [1659960169.216377][4826:4826] CHIP:IM: Received Read request - [1659960169.216476][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960169.216504][4826:4826] CHIP:DMG: { - [1659960169.216527][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960169.216554][4826:4826] CHIP:DMG: [ - [1659960169.216579][4826:4826] CHIP:DMG: AttributePathIB = - [1659960169.216611][4826:4826] CHIP:DMG: { - [1659960169.216642][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960169.216677][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960169.216711][4826:4826] CHIP:DMG: Attribute = 0x0000_000A, - [1659960169.216742][4826:4826] CHIP:DMG: } - [1659960169.216773][4826:4826] CHIP:DMG: - [1659960169.216801][4826:4826] CHIP:DMG: ], - [1659960169.216830][4826:4826] CHIP:DMG: - [1659960169.216857][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960169.216883][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960169.216907][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads CurrentMaxRate attribute value from TH." - PICS: DGWIFI.S.A000b - verification: | - ./chip-tool wifinetworkdiagnostics read current-max-rate 1 0 - - verify the " current-max-rate Received Read response" on the TH (all-cluster-app) log: - [1659960187.413661][4826:4826] CHIP:IM: Received Read request - [1659960187.413732][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960187.413755][4826:4826] CHIP:DMG: { - [1659960187.413774][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960187.413797][4826:4826] CHIP:DMG: [ - [1659960187.413818][4826:4826] CHIP:DMG: AttributePathIB = - [1659960187.413846][4826:4826] CHIP:DMG: { - [1659960187.413871][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960187.413902][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960187.413932][4826:4826] CHIP:DMG: Attribute = 0x0000_000B, - [1659960187.413959][4826:4826] CHIP:DMG: } - [1659960187.413985][4826:4826] CHIP:DMG: - [1659960187.414009][4826:4826] CHIP:DMG: ], - [1659960187.414034][4826:4826] CHIP:DMG: - [1659960187.414056][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960187.414078][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960187.414098][4826:4826] CHIP:DMG: }, - disabled: true - - - label: "DUT reads a OverrunCount attribute value from TH." - PICS: DGWIFI.S.A000c - verification: | - ./chip-tool wifinetworkdiagnostics read overrun-count 1 0 - - verify the " overrun-count Received Read response" on the TH (all-cluster-app) log: - - [1659960222.155944][4826:4826] CHIP:IM: Received Read request - [1659960222.156039][4826:4826] CHIP:DMG: ReadRequestMessage = - [1659960222.156073][4826:4826] CHIP:DMG: { - [1659960222.156101][4826:4826] CHIP:DMG: AttributePathIBs = - [1659960222.156134][4826:4826] CHIP:DMG: [ - [1659960222.156165][4826:4826] CHIP:DMG: AttributePathIB = - [1659960222.156206][4826:4826] CHIP:DMG: { - [1659960222.156243][4826:4826] CHIP:DMG: Endpoint = 0x0, - [1659960222.156290][4826:4826] CHIP:DMG: Cluster = 0x36, - [1659960222.156333][4826:4826] CHIP:DMG: Attribute = 0x0000_000C, - [1659960222.156372][4826:4826] CHIP:DMG: } - [1659960222.156411][4826:4826] CHIP:DMG: - [1659960222.156489][4826:4826] CHIP:DMG: ], - [1659960222.156526][4826:4826] CHIP:DMG: - [1659960222.156560][4826:4826] CHIP:DMG: isFabricFiltered = true, - [1659960222.156593][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960222.156629][4826:4826] CHIP:DMG: }, - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1_Simulated.yaml new file mode 100644 index 00000000000000..eae91de4b5e79d --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_1_Simulated.yaml @@ -0,0 +1,94 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 53.3.1. [TC-DGWIFI-3.1] Attributes [DUT as Client] + +PICS: + - DGWIFI.C.A + - DGWIFI.C + +config: + nodeId: 0x12344321 + cluster: "WiFi Network Diagnostics" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: BSSID" + PICS: DGWIFI.C.A0000 + wait: "readAttribute" + attribute: "BSSID" + + - label: "Read attribute: SecurityType" + PICS: DGWIFI.C.A0001 + wait: "readAttribute" + attribute: "SecurityType" + + - label: "Read attribute: WiFiVersion" + PICS: DGWIFI.C.A0002 + wait: "readAttribute" + attribute: "WiFiVersion" + + - label: "Read attribute: ChannelNumber" + PICS: DGWIFI.C.A0003 + wait: "readAttribute" + attribute: "ChannelNumber" + + - label: "Read attribute: RSSI" + PICS: DGWIFI.C.A0004 + wait: "readAttribute" + attribute: "RSSI" + + - label: "Read attribute: BeaconLostCount" + PICS: DGWIFI.C.A0005 + wait: "readAttribute" + attribute: "BeaconLostCount" + + - label: "Read attribute: BeaconRxCount" + PICS: DGWIFI.C.A0006 + wait: "readAttribute" + attribute: "BeaconRxCount" + + - label: "Read attribute: PacketMulticastRxCount" + PICS: DGWIFI.C.A0007 + wait: "readAttribute" + attribute: "PacketMulticastRxCount" + + - label: "Read attribute: PacketMulticastTxCount" + PICS: DGWIFI.C.A0008 + wait: "readAttribute" + attribute: "PacketMulticastTxCount" + + - label: "Read attribute: PacketUnicastRxCount" + PICS: DGWIFI.C.A0009 + wait: "readAttribute" + attribute: "PacketUnicastRxCount" + + - label: "Read attribute: PacketUnicastTxCount" + PICS: DGWIFI.C.A000a + wait: "readAttribute" + attribute: "PacketUnicastTxCount" + + - label: "Read attribute: CurrentMaxRate" + PICS: DGWIFI.C.A000b + wait: "readAttribute" + attribute: "CurrentMaxRate" + + - label: "Read attribute: OverrunCount" + PICS: DGWIFI.C.A000c + wait: "readAttribute" + attribute: "OverrunCount" diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml deleted file mode 100644 index eb07eb87f07f0b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.2.2. [TC-DGWIFI-3.2]Command Generated [DUT as Client] - -PICS: - - DGWIFI.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Commission TH to DUT" - verification: | - - disabled: true - - - label: "DUT sends ResetCounts command to TH" - PICS: DGWIFI.S.C00.Rsp - verification: | - ./chip-tool wifinetworkdiagnostics reset-counts 1 0 - - verify the " reset-count command receives request response" on the TH (all-cluster-app) log: - - [1659960382.148753][4826:4826] CHIP:DMG: InvokeRequestMessage = - [1659960382.148777][4826:4826] CHIP:DMG: { - [1659960382.148798][4826:4826] CHIP:DMG: suppressResponse = false, - [1659960382.148822][4826:4826] CHIP:DMG: timedRequest = false, - [1659960382.148856][4826:4826] CHIP:DMG: InvokeRequests = - [1659960382.148889][4826:4826] CHIP:DMG: [ - [1659960382.148921][4826:4826] CHIP:DMG: CommandDataIB = - [1659960382.148948][4826:4826] CHIP:DMG: { - [1659960382.148981][4826:4826] CHIP:DMG: CommandPathIB = - [1659960382.149013][4826:4826] CHIP:DMG: { - [1659960382.149051][4826:4826] CHIP:DMG: EndpointId = 0x0, - [1659960382.149081][4826:4826] CHIP:DMG: ClusterId = 0x36, - [1659960382.149119][4826:4826] CHIP:DMG: CommandId = 0x0, - [1659960382.149149][4826:4826] CHIP:DMG: }, - [1659960382.149178][4826:4826] CHIP:DMG: - [1659960382.149212][4826:4826] CHIP:DMG: CommandFields = - [1659960382.149239][4826:4826] CHIP:DMG: { - [1659960382.149276][4826:4826] CHIP:DMG: }, - [1659960382.149302][4826:4826] CHIP:DMG: }, - [1659960382.149337][4826:4826] CHIP:DMG: - [1659960382.149358][4826:4826] CHIP:DMG: ], - [1659960382.149392][4826:4826] CHIP:DMG: - [1659960382.149413][4826:4826] CHIP:DMG: InteractionModelRevision = 1 - [1659960382.149433][4826:4826] CHIP:DMG: }, - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml new file mode 100644 index 00000000000000..9da6957d7982f5 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_3_2_Simulated.yaml @@ -0,0 +1,32 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 53.3.2. [TC-DGWIFI-3.2] Command Generated [DUT as Client] + +PICS: + - DGWIFI.C + +config: + nodeId: 0x12344321 + cluster: "WiFi Network Diagnostics" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "DUT sends ResetCounts command to TH" + PICS: DGTHREAD.C.C00.Tx + wait: "ResetCounts" diff --git a/src/app/tests/suites/certification/Test_TC_FLABEL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_FLABEL_3_1.yaml deleted file mode 100644 index e3cb71eea950d0..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_FLABEL_3_1.yaml +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 98.3.1. [TC-FLABEL-3.1] Fixed Label cluster [DUT-client] - -PICS: - - FLABEL.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "DUT reads LabelList from the TH" - PICS: FLABEL.C.A0000 - verification: | - Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client) - - ./chip-tool fixedlabel read label-list 1 0 - Verify DUT receives LabelList attribute response on the TH(all-clusters-app) Log: - - [1659609299.722973][2409:2409] CHIP:IM: Received Read request - [1659609299.723073][2409:2409] CHIP:DMG: ReadRequestMessage = - [1659609299.723107][2409:2409] CHIP:DMG: { - [1659609299.723135][2409:2409] CHIP:DMG: AttributePathIBs = - [1659609299.723164][2409:2409] CHIP:DMG: [ - [1659609299.723190][2409:2409] CHIP:DMG: AttributePathIB = - [1659609299.723224][2409:2409] CHIP:DMG: { - [1659609299.723261][2409:2409] CHIP:DMG: Endpoint = 0x0, - [1659609299.723357][2409:2409] CHIP:DMG: Cluster = 0x40, - [1659609299.723404][2409:2409] CHIP:DMG: Attribute = 0x0000_0000, - [1659609299.723444][2409:2409] CHIP:DMG: } - [1659609299.723483][2409:2409] CHIP:DMG: - [1659609299.723518][2409:2409] CHIP:DMG: ], - [1659609299.723555][2409:2409] CHIP:DMG: - [1659609299.723589][2409:2409] CHIP:DMG: isFabricFiltered = true, - [1659609299.723624][2409:2409] CHIP:DMG: InteractionModelRevision = 1 - [1659609299.723654][2409:2409] CHIP:DMG: }, - [1659609299.723746][2409:2409] CHIP:DMG: IM RH moving to [GeneratingReports] - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_FLABEL_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_FLABEL_3_1_Simulated.yaml new file mode 100644 index 00000000000000..9ee8c4e4d44963 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_FLABEL_3_1_Simulated.yaml @@ -0,0 +1,33 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 98.3.1. [TC-FLABEL-3.1] Fixed Label cluster [DUT-client] + +PICS: + - FLABEL.C + +config: + nodeId: 0x12344321 + cluster: "Fixed Label" + endpoint: 1 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "DUT reads LabelList from the TH" + PICS: FLABEL.C.A0000 + wait: "readAttribute" + attribute: "label list" diff --git a/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml deleted file mode 100644 index 50538c9862287b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_FLW_3_1.yaml +++ /dev/null @@ -1,348 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.3.1. [TC-FLW-3.1] Attributes with client as DUT - -PICS: - - FLW.C - - FLW.C.AM-READ - - FLW.C.AO-READ - - FLW.C.AM-WRITE - - FLW.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool flowmeasurement read measured-value 1 1 - - Verify read command is received on TH(all-clusters-app) log - - [1658853801.750840][29347:29347] CHIP:IM: Received Read request - [1658853801.750918][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853801.750945][29347:29347] CHIP:DMG: { - [1658853801.750968][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853801.750993][29347:29347] CHIP:DMG: [ - [1658853801.751017][29347:29347] CHIP:DMG: AttributePathIB = - [1658853801.751044][29347:29347] CHIP:DMG: { - [1658853801.751072][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853801.751105][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853801.751137][29347:29347] CHIP:DMG: Attribute = 0x0000_0000, - [1658853801.751167][29347:29347] CHIP:DMG: } - [1658853801.751195][29347:29347] CHIP:DMG: - [1658853801.751220][29347:29347] CHIP:DMG: ], - [1658853801.751248][29347:29347] CHIP:DMG: - [1658853801.751275][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853801.751300][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853801.751323][29347:29347] CHIP:DMG: }, - [1658853801.751396][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853801.751480][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853801.751510][29347:29347] CHIP:DMG: Cluster 404, Attribute 0 is dirty - [1658853801.751532][29347:29347] CHIP:DMG: Reading attribute: Cluster=0x0000_0404 Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - - - - - - "./chip-tool flowmeasurement read min-measured-value 1 1 - - Verify read command is received on TH(all-clusters-app) log - - [1658853849.969073][29347:29347] CHIP:IM: Received Read request - [1658853849.969151][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853849.969192][29347:29347] CHIP:DMG: { - [1658853849.969214][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853849.969240][29347:29347] CHIP:DMG: [ - [1658853849.969272][29347:29347] CHIP:DMG: AttributePathIB = - [1658853849.969301][29347:29347] CHIP:DMG: { - [1658853849.969337][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853849.969369][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853849.969410][29347:29347] CHIP:DMG: Attribute = 0x0000_0001, - [1658853849.969447][29347:29347] CHIP:DMG: } - [1658853849.969476][29347:29347] CHIP:DMG: - [1658853849.969511][29347:29347] CHIP:DMG: ], - [1658853849.969539][29347:29347] CHIP:DMG: - [1658853849.969574][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853849.969600][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853849.969628][29347:29347] CHIP:DMG: }, - [1658853849.969697][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853849.969791][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853849.969831][29347:29347] CHIP:DMG: Cluster 404, Attribute 1 is dirty - - - - "./chip-tool flowmeasurement read max-measured-value 1 1 - - Verify read command is received on TH(all-clusters-app) log - - [1658853898.416395][29347:29347] CHIP:IM: Received Read request - [1658853898.416472][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853898.416513][29347:29347] CHIP:DMG: { - [1658853898.416536][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853898.416571][29347:29347] CHIP:DMG: [ - [1658853898.416596][29347:29347] CHIP:DMG: AttributePathIB = - [1658853898.416633][29347:29347] CHIP:DMG: { - [1658853898.416662][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853898.416703][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853898.416746][29347:29347] CHIP:DMG: Attribute = 0x0000_0002, - [1658853898.416776][29347:29347] CHIP:DMG: } - [1658853898.416813][29347:29347] CHIP:DMG: - [1658853898.416839][29347:29347] CHIP:DMG: ], - [1658853898.416876][29347:29347] CHIP:DMG: - [1658853898.416903][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853898.416937][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853898.416960][29347:29347] CHIP:DMG: }, - [1658853898.417051][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853898.417141][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853898.417179][29347:29347] CHIP:DMG: Cluster 404, Attribute 2 is dirty - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - chip-tool flowmeasurement read tolerance 1 1 - - Verify read command is received on TH(all-clusters-app) log - - [1658853991.266232][29347:29347] CHIP:IM: Received Read request - [1658853991.266328][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853991.266382][29347:29347] CHIP:DMG: { - [1658853991.266413][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853991.266461][29347:29347] CHIP:DMG: [ - [1658853991.266494][29347:29347] CHIP:DMG: AttributePathIB = - [1658853991.266545][29347:29347] CHIP:DMG: { - [1658853991.266584][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853991.266640][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853991.266694][29347:29347] CHIP:DMG: Attribute = 0x0000_0003, - [1658853991.266736][29347:29347] CHIP:DMG: } - [1658853991.266785][29347:29347] CHIP:DMG: - [1658853991.266820][29347:29347] CHIP:DMG: ], - [1658853991.266869][29347:29347] CHIP:DMG: - [1658853991.266905][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853991.266952][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853991.266984][29347:29347] CHIP:DMG: }, - [1658853991.267091][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853991.267218][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853991.267257][29347:29347] CHIP:DMG: Cluster 404, Attribute 3 is dirty - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - ./chip-tool flowmeasurement read attribute-list 1 1 - - Verify DUT receives AttributeList response on the TH(all-clusters-minimal-app) Log: - - Received Read request - [1663067480.162780][4200:4200] CHIP:DMG: ReadRequestMessage = - [1663067480.162811][4200:4200] CHIP:DMG: { - [1663067480.162845][4200:4200] CHIP:DMG: AttributePathIBs = - [1663067480.162885][4200:4200] CHIP:DMG: [ - [1663067480.162912][4200:4200] CHIP:DMG: AttributePathIB = - [1663067480.162946][4200:4200] CHIP:DMG: { - [1663067480.162980][4200:4200] CHIP:DMG: Endpoint = 0x1, - [1663067480.163018][4200:4200] CHIP:DMG: Cluster = 0x404, - [1663067480.163055][4200:4200] CHIP:DMG: Attribute = 0x0000_FFFB, - [1663067480.163088][4200:4200] CHIP:DMG: } - [1663067480.163121][4200:4200] CHIP:DMG: - [1663067480.163154][4200:4200] CHIP:DMG: ], - [1663067480.163185][4200:4200] CHIP:DMG: - [1663067480.163213][4200:4200] CHIP:DMG: isFabricFiltered = true, - [1663067480.163243][4200:4200] CHIP:DMG: InteractionModelRevision = 1 - [1663067480.163268][4200:4200] CHIP:DMG: }, - [1663067480.163351][4200:4200] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663067480.163457][4200:4200] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663067480.163488][4200:4200] CHIP:DMG: Cluster 404, Attribute fffb is dirty - [1663067480.163512][4200:4200] CHIP:DMG: Reading attribute: Cluster=0x0000_0404 Endpoint=1 AttributeId=0x0000_FFFB (expanded=0) - - - ./chip-tool flowmeasurement read feature-map 1 1 - - Verify DUT receives FeatureMap attribute response on the TH(all-clusters-minimal-app) Log: - - Received Read request - [1663067626.167648][4200:4200] CHIP:DMG: ReadRequestMessage = - [1663067626.167697][4200:4200] CHIP:DMG: { - [1663067626.167722][4200:4200] CHIP:DMG: AttributePathIBs = - [1663067626.167759][4200:4200] CHIP:DMG: [ - [1663067626.167788][4200:4200] CHIP:DMG: AttributePathIB = - [1663067626.167823][4200:4200] CHIP:DMG: { - [1663067626.167855][4200:4200] CHIP:DMG: Endpoint = 0x1, - [1663067626.167899][4200:4200] CHIP:DMG: Cluster = 0x404, - [1663067626.167937][4200:4200] CHIP:DMG: Attribute = 0x0000_FFFC, - [1663067626.167981][4200:4200] CHIP:DMG: } - [1663067626.168014][4200:4200] CHIP:DMG: - [1663067626.168053][4200:4200] CHIP:DMG: ], - [1663067626.168087][4200:4200] CHIP:DMG: - [1663067626.168116][4200:4200] CHIP:DMG: isFabricFiltered = true, - [1663067626.168155][4200:4200] CHIP:DMG: InteractionModelRevision = 1 - [1663067626.168181][4200:4200] CHIP:DMG: }, - [1663067626.168275][4200:4200] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663067626.168394][4200:4200] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663067626.168438][4200:4200] CHIP:DMG: Cluster 404, Attribute fffc is dirty - [1663067626.168462][4200:4200] CHIP:DMG: Reading attribute: Cluster=0x0000_0404 Endpoint=1 AttributeId=0x0000_FFFC (expanded=0) - - - - ./chip-tool flowmeasurement read measured-value 1 1 - - Verify DUT receives MeasuredValue response on the TH(all-clusters-minimal-app) Log: - - [1658853801.750840][29347:29347] CHIP:IM: Received Read request - [1658853801.750918][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853801.750945][29347:29347] CHIP:DMG: { - [1658853801.750968][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853801.750993][29347:29347] CHIP:DMG: [ - [1658853801.751017][29347:29347] CHIP:DMG: AttributePathIB = - [1658853801.751044][29347:29347] CHIP:DMG: { - [1658853801.751072][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853801.751105][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853801.751137][29347:29347] CHIP:DMG: Attribute = 0x0000_0000, - [1658853801.751167][29347:29347] CHIP:DMG: } - [1658853801.751195][29347:29347] CHIP:DMG: - [1658853801.751220][29347:29347] CHIP:DMG: ], - [1658853801.751248][29347:29347] CHIP:DMG: - [1658853801.751275][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853801.751300][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853801.751323][29347:29347] CHIP:DMG: }, - [1658853801.751396][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853801.751480][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853801.751510][29347:29347] CHIP:DMG: Cluster 404, Attribute 0 is dirty - [1658853801.751532][29347:29347] CHIP:DMG: Reading attribute: Cluster=0x0000_0404 Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - - - - - - ./chip-tool flowmeasurement read min-measured-value 1 1 - - Verify DUT receives MinMeasuredValue response on the TH(all-clusters-minimal-app) Log: - - [1658853849.969073][29347:29347] CHIP:IM: Received Read request - [1658853849.969151][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853849.969192][29347:29347] CHIP:DMG: { - [1658853849.969214][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853849.969240][29347:29347] CHIP:DMG: [ - [1658853849.969272][29347:29347] CHIP:DMG: AttributePathIB = - [1658853849.969301][29347:29347] CHIP:DMG: { - [1658853849.969337][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853849.969369][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853849.969410][29347:29347] CHIP:DMG: Attribute = 0x0000_0001, - [1658853849.969447][29347:29347] CHIP:DMG: } - [1658853849.969476][29347:29347] CHIP:DMG: - [1658853849.969511][29347:29347] CHIP:DMG: ], - [1658853849.969539][29347:29347] CHIP:DMG: - [1658853849.969574][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853849.969600][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853849.969628][29347:29347] CHIP:DMG: }, - [1658853849.969697][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853849.969791][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853849.969831][29347:29347] CHIP:DMG: Cluster 404, Attribute 1 is dirty - - - - ./chip-tool flowmeasurement read max-measured-value 1 1 - - Verify DUT receives MaxMeasured Value response on the TH(all-clusters-minimal-app) Log: - - [1658853898.416395][29347:29347] CHIP:IM: Received Read request - [1658853898.416472][29347:29347] CHIP:DMG: ReadRequestMessage = - [1658853898.416513][29347:29347] CHIP:DMG: { - [1658853898.416536][29347:29347] CHIP:DMG: AttributePathIBs = - [1658853898.416571][29347:29347] CHIP:DMG: [ - [1658853898.416596][29347:29347] CHIP:DMG: AttributePathIB = - [1658853898.416633][29347:29347] CHIP:DMG: { - [1658853898.416662][29347:29347] CHIP:DMG: Endpoint = 0x1, - [1658853898.416703][29347:29347] CHIP:DMG: Cluster = 0x404, - [1658853898.416746][29347:29347] CHIP:DMG: Attribute = 0x0000_0002, - [1658853898.416776][29347:29347] CHIP:DMG: } - [1658853898.416813][29347:29347] CHIP:DMG: - [1658853898.416839][29347:29347] CHIP:DMG: ], - [1658853898.416876][29347:29347] CHIP:DMG: - [1658853898.416903][29347:29347] CHIP:DMG: isFabricFiltered = true, - [1658853898.416937][29347:29347] CHIP:DMG: InteractionModelRevision = 1 - [1658853898.416960][29347:29347] CHIP:DMG: }, - [1658853898.417051][29347:29347] CHIP:DMG: IM RH moving to [GeneratingReports] - [1658853898.417141][29347:29347] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1658853898.417179][29347:29347] CHIP:DMG: Cluster 404, Attribute 2 is dirty - " - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool flowmeasurement read tolerance 1 1 - - Verify DUT receives Tolerance response on the TH(all-clusters-minimal-app) Log: - - Received Read request - [1663067899.776588][4200:4200] CHIP:DMG: ReadRequestMessage = - [1663067899.776657][4200:4200] CHIP:DMG: { - [1663067899.776715][4200:4200] CHIP:DMG: AttributePathIBs = - [1663067899.776792][4200:4200] CHIP:DMG: [ - [1663067899.776849][4200:4200] CHIP:DMG: AttributePathIB = - [1663067899.776929][4200:4200] CHIP:DMG: { - [1663067899.777008][4200:4200] CHIP:DMG: Endpoint = 0x1, - [1663067899.777083][4200:4200] CHIP:DMG: Cluster = 0x404, - [1663067899.777163][4200:4200] CHIP:DMG: Attribute = 0x0000_0003, - [1663067899.777247][4200:4200] CHIP:DMG: } - [1663067899.777326][4200:4200] CHIP:DMG: - [1663067899.777397][4200:4200] CHIP:DMG: ], - [1663067899.777467][4200:4200] CHIP:DMG: - [1663067899.777533][4200:4200] CHIP:DMG: isFabricFiltered = true, - [1663067899.777596][4200:4200] CHIP:DMG: InteractionModelRevision = 1 - [1663067899.777654][4200:4200] CHIP:DMG: }, - [1663067899.777873][4200:4200] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663067899.778081][4200:4200] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663067899.778151][4200:4200] CHIP:DMG: Cluster 404, Attribute 3 is dirty - [1663067899.778209][4200:4200] CHIP:DMG: Reading attribute: Cluster=0x0000_0404 Endpoint=1 AttributeId=0x0000_0003 (expanded=0) - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_FLW_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_FLW_3_1_Simulated.yaml new file mode 100644 index 00000000000000..ff5b1af3164f41 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_FLW_3_1_Simulated.yaml @@ -0,0 +1,41 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 31.3.1. [TC-FLW-3.1] Attributes with Client as DUT + +config: + nodeId: 0x12344321 + cluster: "Flow Measurement" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: MeasuredValue" + wait: "readAttribute" + attribute: "MeasuredValue" + + - label: "Read attribute: MinMeasuredValue" + wait: "readAttribute" + attribute: "MinMeasuredValue" + + - label: "Read attribute: MaxMeasuredValue" + wait: "readAttribute" + attribute: "MaxMeasuredValue" + + - label: "Read attribute: Tolerance" + wait: "readAttribute" + attribute: "Tolerance" diff --git a/src/app/tests/suites/certification/Test_TC_G_3_1.yaml b/src/app/tests/suites/certification/Test_TC_G_3_1.yaml deleted file mode 100644 index 36dbb0a9d89400..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_G_3_1.yaml +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 121.3.1. [TC-G-3.1] Attributes [DUT-Client] - -PICS: - - G.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "DUT reads NameSupport attribute from TH" - PICS: G.C.A0000 - verification: | - Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client) - - - ./chip-tool groups read name-support 1 1 - - Verify the "NameSupport attribute response" on the TH(Allcluster-app) Log: - - [1659609024.739969][3355:3355] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:210252834 on exchange 15944r - [1659609024.740058][3355:3355] CHIP:EM: Handling via exchange: 15944r, Delegate: 0xaaaac00e4f08 - [1659609024.740133][3355:3355] CHIP:IM: Received Read request - [1659609024.740275][3355:3355] CHIP:DMG: ReadRequestMessage = - [1659609024.740330][3355:3355] CHIP:DMG: { - [1659609024.740375][3355:3355] CHIP:DMG: AttributePathIBs = - [1659609024.740429][3355:3355] CHIP:DMG: [ - [1659609024.740479][3355:3355] CHIP:DMG: AttributePathIB = - [1659609024.740535][3355:3355] CHIP:DMG: { - [1659609024.740594][3355:3355] CHIP:DMG: Endpoint = 0x1, - [1659609024.740659][3355:3355] CHIP:DMG: Cluster = 0x4, - [1659609024.740725][3355:3355] CHIP:DMG: Attribute = 0x0000_0000, - [1659609024.740810][3355:3355] CHIP:DMG: } - [1659609024.740872][3355:3355] CHIP:DMG: - [1659609024.740925][3355:3355] CHIP:DMG: ], - [1659609024.740983][3355:3355] CHIP:DMG: - [1659609024.741037][3355:3355] CHIP:DMG: isFabricFiltered = true, - [1659609024.741091][3355:3355] CHIP:DMG: InteractionModelRevision = 1 - [1659609024.741140][3355:3355] CHIP:DMG: }, - [1659609024.741283][3355:3355] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659609024.741436][3355:3355] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659609024.741494][3355:3355] CHIP:DMG: Cluster 4, Attribute 0 is dirty - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_G_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_G_3_1_Simulated.yaml new file mode 100644 index 00000000000000..94d80faf410903 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_G_3_1_Simulated.yaml @@ -0,0 +1,33 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 120.3.1. [TC-G-3.1] Attributes [DUT-Client] + +PICS: + - G.C + +config: + nodeId: 0x12344321 + cluster: "Groups" + endpoint: 1 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "DUT reads NameSupport attribute value from TH" + PICS: G.C.A0000 + wait: "readAttribute" + attribute: "NameSupport" diff --git a/src/app/tests/suites/certification/Test_TC_I_2_1.yaml b/src/app/tests/suites/certification/Test_TC_I_2_1.yaml index db05abf1a10ac1..a92583c1313e96 100644 --- a/src/app/tests/suites/certification/Test_TC_I_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_I_2_1.yaml @@ -32,6 +32,7 @@ tests: value: nodeId - label: "TH reads the IdentifyTime attribute from the DUT" + PICS: I.S.A0000 command: "readAttribute" attribute: "identify time" response: @@ -41,6 +42,7 @@ tests: maxValue: 65535 - label: "TH reads the IdentifyType attribute from the DUT" + PICS: I.S.A0001 command: "readAttribute" attribute: "identify type" response: diff --git a/src/app/tests/suites/certification/Test_TC_I_3_1.yaml b/src/app/tests/suites/certification/Test_TC_I_3_1.yaml deleted file mode 100644 index 89a498be75b090..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_I_3_1.yaml +++ /dev/null @@ -1,200 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 59.3.1. [TC-I-3.1] Attributes with Client as DUT - -PICS: - - I.C - - I.C.AM-READ - - I.C.AO-READ - - I.C.AM-WRITE - - I.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - Chip-tool command used below are an example to verify the DUT as client test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client) - ./chip-tool identify read identify-time 1 1 - Verify DUT receives identify-time attribute response on the TH(all-clusters-app) Log: - - [1648015371.159715][2506:2506] CHIP:IM: Received Read request - [1648015371.159805][2506:2506] CHIP:DMG: ReadRequestMessage = - [1648015371.159840][2506:2506] CHIP:DMG: { - [1648015371.159866][2506:2506] CHIP:DMG: AttributePathIBs = - [1648015371.159903][2506:2506] CHIP:DMG: [ - [1648015371.159932][2506:2506] CHIP:DMG: AttributePathIB = - [1648015371.159968][2506:2506] CHIP:DMG: { - [1648015371.160006][2506:2506] CHIP:DMG: Endpoint = 0x1, - [1648015371.160047][2506:2506] CHIP:DMG: Cluster = 0x3, - [1648015371.160087][2506:2506] CHIP:DMG: Attribute = 0x0000_0000, - [1648015371.160127][2506:2506] CHIP:DMG: } - [1648015371.160164][2506:2506] CHIP:DMG: - [1648015371.160201][2506:2506] CHIP:DMG: ], - [1648015371.160238][2506:2506] CHIP:DMG: - [1648015371.160270][2506:2506] CHIP:DMG: isFabricFiltered = true, - [1648015371.160300][2506:2506] CHIP:DMG: InteractionModelRevision = 1 - [1648015371.160324][2506:2506] CHIP:DMG: }, - - - ./chip-tool identify read identify-type 1 1 - Verify DUT receives identify-type attribute response on the TH(all-clusters-app) Log: - - [1648015519.017225][2506:2506] CHIP:IM: Received Read request - [1648015519.017293][2506:2506] CHIP:DMG: ReadRequestMessage = - [1648015519.017332][2506:2506] CHIP:DMG: { - [1648015519.017363][2506:2506] CHIP:DMG: AttributePathIBs = - [1648015519.017403][2506:2506] CHIP:DMG: [ - [1648015519.017437][2506:2506] CHIP:DMG: AttributePathIB = - [1648015519.017577][2506:2506] CHIP:DMG: { - [1648015519.017624][2506:2506] CHIP:DMG: Endpoint = 0x1, - [1648015519.017673][2506:2506] CHIP:DMG: Cluster = 0x3, - [1648015519.017721][2506:2506] CHIP:DMG: Attribute = 0x0000_0001, - [1648015519.017768][2506:2506] CHIP:DMG: } - [1648015519.017813][2506:2506] CHIP:DMG: - [1648015519.017853][2506:2506] CHIP:DMG: ], - [1648015519.017894][2506:2506] CHIP:DMG: - [1648015519.017932][2506:2506] CHIP:DMG: isFabricFiltered = true, - [1648015519.017969][2506:2506] CHIP:DMG: InteractionModelRevision = 1 - [1648015519.018003][2506:2506] CHIP:DMG: }, - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - There is no optional attibute for this cluster - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client) - - ./chip-tool identify write identify-time 1 1 1 - - Verify DUT receives identify-time attribute write response on the TH(all-clusters-app) Log: - [1646012277.591912][33190:33190] CHIP:IM: Received Write request - [1646012277.591936][33190:33190] CHIP:DMG: IM WH moving to [Initialized] - [1646012277.591987][33190:33190] CHIP:DMG: WriteRequestMessage = - [1646012277.592013][33190:33190] CHIP:DMG: { - [1646012277.592036][33190:33190] CHIP:DMG: timedRequest = false, - [1646012277.592064][33190:33190] CHIP:DMG: AttributeDataIBs = - [1646012277.592094][33190:33190] CHIP:DMG: [ - [1646012277.592118][33190:33190] CHIP:DMG: AttributeDataIB = - [1646012277.592149][33190:33190] CHIP:DMG: { - [1646012277.592175][33190:33190] CHIP:DMG: AttributePathIB = - [1646012277.592208][33190:33190] CHIP:DMG: { - [1646012277.592239][33190:33190] CHIP:DMG: Endpoint = 0x1, - [1646012277.592273][33190:33190] CHIP:DMG: Cluster = 0x3, - [1646012277.592306][33190:33190] CHIP:DMG: Attribute = 0x0000_0000, - [1646012277.592336][33190:33190] CHIP:DMG: } - [1646012277.592368][33190:33190] CHIP:DMG: - [1646012277.592400][33190:33190] CHIP:DMG: Data = 60, - [1646012277.592433][33190:33190] CHIP:DMG: }, - [1646012277.592463][33190:33190] CHIP:DMG: - [1646012277.592488][33190:33190] CHIP:DMG: ], - [1646012277.592516][33190:33190] CHIP:DMG: - [1646012277.592540][33190:33190] CHIP:DMG: moreChunkedMessages = false, - [1646012277.592566][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646012277.592589][33190:33190] CHIP:DMG: }, - [1646012277.592669][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0003 e=1 p=o - [1646012277.592721][33190:33190] CHIP:DMG: Endpoint 1, Cluster 0x0000_0003 update version to d4fdf520 - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - There is no write optional attibute for this cluster - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - Product maker needs to provide instructions for how to trigger the command on the DUT. For comparison, the DUT behavior for this test step can be simulated using chip-tool (when DUT is a commissioner/Client) - - ./chip-tool identify read identify-time 1 1 - Verify DUT receives identify-time attribute response on theTH(all-clusters-minimal-app) - - [1648015371.159715][2506:2506] CHIP:IM: Received Read request - [1648015371.159805][2506:2506] CHIP:DMG: ReadRequestMessage = - [1648015371.159840][2506:2506] CHIP:DMG: { - [1648015371.159866][2506:2506] CHIP:DMG: AttributePathIBs = - [1648015371.159903][2506:2506] CHIP:DMG: [ - [1648015371.159932][2506:2506] CHIP:DMG: AttributePathIB = - [1648015371.159968][2506:2506] CHIP:DMG: { - [1648015371.160006][2506:2506] CHIP:DMG: Endpoint = 0x1, - [1648015371.160047][2506:2506] CHIP:DMG: Cluster = 0x3, - [1648015371.160087][2506:2506] CHIP:DMG: Attribute = 0x0000_0000, - [1648015371.160127][2506:2506] CHIP:DMG: } - [1648015371.160164][2506:2506] CHIP:DMG: - [1648015371.160201][2506:2506] CHIP:DMG: ], - [1648015371.160238][2506:2506] CHIP:DMG: - [1648015371.160270][2506:2506] CHIP:DMG: isFabricFiltered = true, - [1648015371.160300][2506:2506] CHIP:DMG: InteractionModelRevision = 1 - [1648015371.160324][2506:2506] CHIP:DMG: }, - - - ./chip-tool identify read identify-type 1 1 - Verify DUT receives identify-type attribute response on theTH(all-clusters-minimal-app) - - [1648015519.017225][2506:2506] CHIP:IM: Received Read request - [1648015519.017293][2506:2506] CHIP:DMG: ReadRequestMessage = - [1648015519.017332][2506:2506] CHIP:DMG: { - [1648015519.017363][2506:2506] CHIP:DMG: AttributePathIBs = - [1648015519.017403][2506:2506] CHIP:DMG: [ - [1648015519.017437][2506:2506] CHIP:DMG: AttributePathIB = - [1648015519.017577][2506:2506] CHIP:DMG: { - [1648015519.017624][2506:2506] CHIP:DMG: Endpoint = 0x1, - [1648015519.017673][2506:2506] CHIP:DMG: Cluster = 0x3, - [1648015519.017721][2506:2506] CHIP:DMG: Attribute = 0x0000_0001, - [1648015519.017768][2506:2506] CHIP:DMG: } - [1648015519.017813][2506:2506] CHIP:DMG: - [1648015519.017853][2506:2506] CHIP:DMG: ], - [1648015519.017894][2506:2506] CHIP:DMG: - [1648015519.017932][2506:2506] CHIP:DMG: isFabricFiltered = true, - [1648015519.017969][2506:2506] CHIP:DMG: InteractionModelRevision = 1 - [1648015519.018003][2506:2506] CHIP:DMG: }, - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - There is no optional attibute for this cluster - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - There is no optional write attibute for this cluster - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_I_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_I_3_1_Simulated.yaml new file mode 100644 index 00000000000000..3c3b4ea6afa18d --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_I_3_1_Simulated.yaml @@ -0,0 +1,43 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 59.3.1. [TC-I-3.1] Attributes with Client as DUT + +config: + nodeId: 0x12344321 + cluster: "Identify" + endpoint: 1 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: identify time" + wait: "readAttribute" + attribute: "identify time" + + - label: "write attribute: identify time" + wait: "writeAttribute" + attribute: "identify time" + arguments: + value: + + - label: "Readback attribute: identify time" + wait: "readAttribute" + attribute: "identify time" + + - label: "Read attribute: identifytype" + wait: "readAttribute" + attribute: "identify type" diff --git a/src/app/tests/suites/certification/Test_TC_PRS_3_1.yaml b/src/app/tests/suites/certification/Test_TC_PRS_3_1.yaml deleted file mode 100644 index e2afec23eb8851..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PRS_3_1.yaml +++ /dev/null @@ -1,261 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 34.3.1. [TC-PRS-3.1] Attributes with Client as DUT - -PICS: - - PRS.C - - PRS.C.AM-READ - - PRS.C.AO-READ - - PRS.C.AM-WRITE - - PRS.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool pressuremeasurement read measured-value 1 1 - - verify the " measured-value response" on the TH (all-cluster-app) log: - - [1653992317.047323][2347:2347] CHIP:IM: Received Read request - [1653992317.047382][2347:2347] CHIP:DMG: ReadRequestMessage = - [1653992317.047457][2347:2347] CHIP:DMG: { - [1653992317.047480][2347:2347] CHIP:DMG: AttributePathIBs = - [1653992317.047507][2347:2347] CHIP:DMG: [ - [1653992317.047531][2347:2347] CHIP:DMG: AttributePathIB = - [1653992317.047563][2347:2347] CHIP:DMG: { - [1653992317.047592][2347:2347] CHIP:DMG: Endpoint = 0x1, - [1653992317.047657][2347:2347] CHIP:DMG: Cluster = 0x403, - [1653992317.047695][2347:2347] CHIP:DMG: Attribute = 0x0000_0000, - [1653992317.047725][2347:2347] CHIP:DMG: } - [1653992317.047774][2347:2347] CHIP:DMG: - [1653992317.047803][2347:2347] CHIP:DMG: ], - [1653992317.047831][2347:2347] CHIP:DMG: - [1653992317.047859][2347:2347] CHIP:DMG: isFabricFiltered = true, - [1653992317.047884][2347:2347] CHIP:DMG: InteractionModelRevision = 1 - [1653992317.047908][2347:2347] CHIP:DMG: }, - [1653992317.047995][2347:2347] CHIP:DMG: IM RH moving to [GeneratingReports] - - ./chip-tool pressuremeasurement read min-measured-value 1 1 - - verify the " min-measured-value response" on the TH (all-cluster-app) log: - - [1653992385.759474][2347:2347] CHIP:IM: Received Read request - [1653992385.759533][2347:2347] CHIP:DMG: ReadRequestMessage = - [1653992385.759561][2347:2347] CHIP:DMG: { - [1653992385.759584][2347:2347] CHIP:DMG: AttributePathIBs = - [1653992385.759618][2347:2347] CHIP:DMG: [ - [1653992385.759647][2347:2347] CHIP:DMG: AttributePathIB = - [1653992385.759678][2347:2347] CHIP:DMG: { - [1653992385.759745][2347:2347] CHIP:DMG: Endpoint = 0x1, - [1653992385.759781][2347:2347] CHIP:DMG: Cluster = 0x403, - [1653992385.759859][2347:2347] CHIP:DMG: Attribute = 0x0000_0001, - [1653992385.759918][2347:2347] CHIP:DMG: } - [1653992385.759971][2347:2347] CHIP:DMG: - [1653992385.760000][2347:2347] CHIP:DMG: ], - [1653992385.760049][2347:2347] CHIP:DMG: - [1653992385.760100][2347:2347] CHIP:DMG: isFabricFiltered = true, - [1653992385.760125][2347:2347] CHIP:DMG: InteractionModelRevision = 1 - [1653992385.760168][2347:2347] CHIP:DMG: } - - - ./chip-tool pressuremeasurement read max-measured-value 1 1 - - verify the " max-measured-value response" on the TH (all-cluster-app) log: - - [1653992415.580348][2347:2347] CHIP:IM: Received Read request - [1653992415.580414][2347:2347] CHIP:DMG: ReadRequestMessage = - [1653992415.580442][2347:2347] CHIP:DMG: { - [1653992415.580473][2347:2347] CHIP:DMG: AttributePathIBs = - [1653992415.580501][2347:2347] CHIP:DMG: [ - [1653992415.580534][2347:2347] CHIP:DMG: AttributePathIB = - [1653992415.580563][2347:2347] CHIP:DMG: { - [1653992415.580602][2347:2347] CHIP:DMG: Endpoint = 0x1, - [1653992415.580674][2347:2347] CHIP:DMG: Cluster = 0x403, - [1653992415.580713][2347:2347] CHIP:DMG: Attribute = 0x0000_0002, - [1653992415.580746][2347:2347] CHIP:DMG: } - [1653992415.580786][2347:2347] CHIP:DMG: - [1653992415.580812][2347:2347] CHIP:DMG: ], - [1653992415.580852][2347:2347] CHIP:DMG: - [1653992415.580879][2347:2347] CHIP:DMG: isFabricFiltered = true, - [1653992415.580913][2347:2347] CHIP:DMG: InteractionModelRevision = 1 - [1653992415.580936][2347:2347] CHIP:DMG: } - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - OPTIONAL ATTRIBUTES ARE NOT IMPLEMENTED IN SDK - - ./chip-tool pressuremeasurement read tolerance 1 1 - ./chip-tool pressuremeasurement read scaled-value 1 1 - ./chip-tool pressuremeasurement read min-scaled-value 1 1 - ./chip-tool pressuremeasurement read max-scaled-value 1 1 - ./chip-tool pressuremeasurement read scaled-tolerance 1 1 - ./chip-tool pressuremeasurement read scale 1 1 - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - ./chip-tool pressuremeasurement read attribute-list 1 1 - - verify the " attribute-list response" on the TH (all-cluster-minimal-app) log: - - [1659606175.282588][7312:7312] CHIP:EM: Handling via exchange: 12368r, Delegate: 0xaaaaad2c4f68 - [1659606175.282635][7312:7312] CHIP:IM: Received Read request - [1659606175.282718][7312:7312] CHIP:DMG: ReadRequestMessage = - [1659606175.282746][7312:7312] CHIP:DMG: { - [1659606175.282768][7312:7312] CHIP:DMG: AttributePathIBs = - [1659606175.282794][7312:7312] CHIP:DMG: [ - [1659606175.282818][7312:7312] CHIP:DMG: AttributePathIB = - [1659606175.282846][7312:7312] CHIP:DMG: { - [1659606175.282874][7312:7312] CHIP:DMG: Endpoint = 0x1, - [1659606175.282910][7312:7312] CHIP:DMG: Cluster = 0x403, - [1659606175.282946][7312:7312] CHIP:DMG: Attribute = 0x0000_FFFB, - [1659606175.282975][7312:7312] CHIP:DMG: } - [1659606175.283004][7312:7312] CHIP:DMG: - [1659606175.283029][7312:7312] CHIP:DMG: ], - [1659606175.283056][7312:7312] CHIP:DMG: - [1659606175.283083][7312:7312] CHIP:DMG: isFabricFiltered = true, - [1659606175.283108][7312:7312] CHIP:DMG: InteractionModelRevision = 1 - [1659606175.283132][7312:7312] CHIP:DMG: }, - [1659606175.283211][7312:7312] CHIP:DMG: IM RH moving to [GeneratingReports] - [1659606175.283312][7312:7312] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1659606175.283343][7312:7312] CHIP:DMG: Cluster 403, Attribute fffb is dirty - [1659606175.283364][7312:7312] CHIP:DMG: Reading attribute: Cluster=0x0000_0403 Endpoint=1 AttributeId=0x0000_FFFB (expanded=0) - - - - - ./chip-tool pressuremeasurement read measured-value 1 1 - - verify the " measured-value response" on the TH (all-cluster-minimal-app) log: - - [1653992317.047323][2347:2347] CHIP:IM: Received Read request - [1653992317.047382][2347:2347] CHIP:DMG: ReadRequestMessage = - [1653992317.047457][2347:2347] CHIP:DMG: { - [1653992317.047480][2347:2347] CHIP:DMG: AttributePathIBs = - [1653992317.047507][2347:2347] CHIP:DMG: [ - [1653992317.047531][2347:2347] CHIP:DMG: AttributePathIB = - [1653992317.047563][2347:2347] CHIP:DMG: { - [1653992317.047592][2347:2347] CHIP:DMG: Endpoint = 0x1, - [1653992317.047657][2347:2347] CHIP:DMG: Cluster = 0x403, - [1653992317.047695][2347:2347] CHIP:DMG: Attribute = 0x0000_0000, - [1653992317.047725][2347:2347] CHIP:DMG: } - [1653992317.047774][2347:2347] CHIP:DMG: - [1653992317.047803][2347:2347] CHIP:DMG: ], - [1653992317.047831][2347:2347] CHIP:DMG: - [1653992317.047859][2347:2347] CHIP:DMG: isFabricFiltered = true, - [1653992317.047884][2347:2347] CHIP:DMG: InteractionModelRevision = 1 - [1653992317.047908][2347:2347] CHIP:DMG: }, - [1653992317.047995][2347:2347] CHIP:DMG: IM RH moving to [GeneratingReports] - - ./chip-tool pressuremeasurement read min-measured-value 1 1 - - verify the " min-measured-value response" on the TH (all-cluster-minimal-app) log: - - [1653992385.759474][2347:2347] CHIP:IM: Received Read request - [1653992385.759533][2347:2347] CHIP:DMG: ReadRequestMessage = - [1653992385.759561][2347:2347] CHIP:DMG: { - [1653992385.759584][2347:2347] CHIP:DMG: AttributePathIBs = - [1653992385.759618][2347:2347] CHIP:DMG: [ - [1653992385.759647][2347:2347] CHIP:DMG: AttributePathIB = - [1653992385.759678][2347:2347] CHIP:DMG: { - [1653992385.759745][2347:2347] CHIP:DMG: Endpoint = 0x1, - [1653992385.759781][2347:2347] CHIP:DMG: Cluster = 0x403, - [1653992385.759859][2347:2347] CHIP:DMG: Attribute = 0x0000_0001, - [1653992385.759918][2347:2347] CHIP:DMG: } - [1653992385.759971][2347:2347] CHIP:DMG: - [1653992385.760000][2347:2347] CHIP:DMG: ], - [1653992385.760049][2347:2347] CHIP:DMG: - [1653992385.760100][2347:2347] CHIP:DMG: isFabricFiltered = true, - [1653992385.760125][2347:2347] CHIP:DMG: InteractionModelRevision = 1 - [1653992385.760168][2347:2347] CHIP:DMG: }, - - - ./chip-tool pressuremeasurement read max-measured-value 1 1 - - verify the " max-measured-value response" on the TH (all-cluster-minimal-app) log: - - [1653992415.580348][2347:2347] CHIP:IM: Received Read request - [1653992415.580414][2347:2347] CHIP:DMG: ReadRequestMessage = - [1653992415.580442][2347:2347] CHIP:DMG: { - [1653992415.580473][2347:2347] CHIP:DMG: AttributePathIBs = - [1653992415.580501][2347:2347] CHIP:DMG: [ - [1653992415.580534][2347:2347] CHIP:DMG: AttributePathIB = - [1653992415.580563][2347:2347] CHIP:DMG: { - [1653992415.580602][2347:2347] CHIP:DMG: Endpoint = 0x1, - [1653992415.580674][2347:2347] CHIP:DMG: Cluster = 0x403, - [1653992415.580713][2347:2347] CHIP:DMG: Attribute = 0x0000_0002, - [1653992415.580746][2347:2347] CHIP:DMG: } - [1653992415.580786][2347:2347] CHIP:DMG: - [1653992415.580812][2347:2347] CHIP:DMG: ], - [1653992415.580852][2347:2347] CHIP:DMG: - [1653992415.580879][2347:2347] CHIP:DMG: isFabricFiltered = true, - [1653992415.580913][2347:2347] CHIP:DMG: InteractionModelRevision = 1 - [1653992415.580936][2347:2347] CHIP:DMG: }," - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - TH all-clusters-minimal-app does not support optional attributes - - ./chip-tool pressuremeasurement read tolerance 1 1 - ./chip-tool pressuremeasurement read scaled-value 1 1 - ./chip-tool pressuremeasurement read min-scaled-value 1 1 - ./chip-tool pressuremeasurement read max-scaled-value 1 1 - ./chip-tool pressuremeasurement read scaled-tolerance 1 1 - ./chip-tool pressuremeasurement read scale 1 1 - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PRS_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_PRS_3_1_Simulated.yaml new file mode 100644 index 00000000000000..a5e6f833da62c4 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_PRS_3_1_Simulated.yaml @@ -0,0 +1,61 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 34.3.1. [TC-PRS-3.1] Attributes with Client as DUT + +config: + nodeId: 0x12344321 + cluster: "Pressure Measurement" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: MeasuredValue" + wait: "readAttribute" + attribute: "MeasuredValue" + + - label: "Read attribute: MinMeasuredValue" + wait: "readAttribute" + attribute: "MinMeasuredValue" + + - label: "Read attribute: MaxMeasuredValue" + wait: "readAttribute" + attribute: "MaxMeasuredValue" + + - label: "Read attribute: Tolerance" + wait: "readAttribute" + attribute: "Tolerance" + + - label: "Read attribute: ScaledValue" + wait: "readAttribute" + attribute: "ScaledValue" + + - label: "Read attribute: MinScaledValue" + wait: "readAttribute" + attribute: "MinScaledValue" + + - label: "Read attribute: MaxScaledValue" + wait: "readAttribute" + attribute: "MaxScaledValue" + + - label: "Read attribute: ScaledTolerance" + wait: "readAttribute" + attribute: "ScaledTolerance" + + - label: "Read attribute: Scale" + wait: "readAttribute" + attribute: "Scale" diff --git a/src/app/tests/suites/certification/Test_TC_PSCFG_3_1.yaml b/src/app/tests/suites/certification/Test_TC_PSCFG_3_1.yaml deleted file mode 100644 index 4af8ab15bb3c27..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PSCFG_3_1.yaml +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 65.3.1. [TC-PSCFG-3.1] Attributes with client as DUT - -PICS: - - PSCFG.C - - PSCFG.C.AM-READ - - PSCFG.C.AO-READ - - PSCFG.C.AM-WRITE - - PSCFG.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: - "DUT reads all supported mandatory attributes from TH once at a time - in a manufacturer specific order" - verification: | - ./chip-tool powersourceconfiguration read sources 1 0 - - verify the " sources response" on the TH (all-cluster-app) log: - - [1650881032.387446][2715:2715] CHIP:IM: Received Read request - [1650881032.387500][2715:2715] CHIP:DMG: ReadRequestMessage = - [1650881032.387527][2715:2715] CHIP:DMG: { - [1650881032.387549][2715:2715] CHIP:DMG: AttributePathIBs = - [1650881032.387578][2715:2715] CHIP:DMG: [ - [1650881032.387602][2715:2715] CHIP:DMG: AttributePathIB = - [1650881032.387629][2715:2715] CHIP:DMG: { - [1650881032.387657][2715:2715] CHIP:DMG: Endpoint = 0x0, - [1650881032.387690][2715:2715] CHIP:DMG: Cluster = 0x2e, - [1650881032.387722][2715:2715] CHIP:DMG: Attribute = 0x0000_0000, - [1650881032.387750][2715:2715] CHIP:DMG: } - [1650881032.387781][2715:2715] CHIP:DMG: - [1650881032.387807][2715:2715] CHIP:DMG: ], - [1650881032.387836][2715:2715] CHIP:DMG: - [1650881032.387862][2715:2715] CHIP:DMG: isFabricFiltered = true, - [1650881032.387887][2715:2715] CHIP:DMG: InteractionModelRevision = 1 - [1650881032.387910][2715:2715] CHIP:DMG: }, - [1650881032.387979][2715:2715] CHIP:DMG: IM RH moving to [GeneratingReports] - [1650881032.388058][2715:2715] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1650881032.388087][2715:2715] CHIP:DMG: Cluster 2e, Attribute 0 is dirty - [1650881032.388109][2715:2715] CHIP:DMG: Reading attribute: Cluster=0x0000_002E Endpoint=0 AttributeId=0x0000_0000 (expanded=0) - disabled: true - - - label: - "DUT reads all supported optional attributes from TH once at a time in - a manufacturer specific order" - verification: | - This cluster doesn"t have any optional attribute - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH once at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH once at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server- side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH aga" - verification: | - ./chip-tool powersourceconfiguration read attribute-list 1 0 - - Verify the ReadRequestMessage the TH (all-cluster-minimal-app) log: - - [1663147271.622589][2750:2750] CHIP:IM: Received Read request - [1663147271.622666][2750:2750] CHIP:DMG: ReadRequestMessage = - [1663147271.622692][2750:2750] CHIP:DMG: { - [1663147271.622714][2750:2750] CHIP:DMG: AttributePathIBs = - [1663147271.622739][2750:2750] CHIP:DMG: [ - [1663147271.622789][2750:2750] CHIP:DMG: AttributePathIB = - [1663147271.622821][2750:2750] CHIP:DMG: { - [1663147271.622849][2750:2750] CHIP:DMG: Endpoint = 0x0, - [1663147271.622880][2750:2750] CHIP:DMG: Cluster = 0x2e, - [1663147271.622914][2750:2750] CHIP:DMG: Attribute = 0x0000_FFFB, - [1663147271.622943][2750:2750] CHIP:DMG: } - [1663147271.622971][2750:2750] CHIP:DMG: - [1663147271.622996][2750:2750] CHIP:DMG: ], - [1663147271.623023][2750:2750] CHIP:DMG: - [1663147271.623049][2750:2750] CHIP:DMG: isFabricFiltered = true, - [1663147271.623074][2750:2750] CHIP:DMG: InteractionModelRevision = 1 - [1663147271.623097][2750:2750] CHIP:DMG: }, - [1663147271.623168][2750:2750] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663147271.623246][2750:2750] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663147271.623274][2750:2750] CHIP:DMG: Cluster 2e, Attribute fffb is dirty - - - ./chip-tool powersourceconfiguration read sources 1 0 - - verify the " sources response" on the TH (all-cluster-minimal-app) log: - - [1650881032.387446][2715:2715] CHIP:IM: Received Read request - [1650881032.387500][2715:2715] CHIP:DMG: ReadRequestMessage = - [1650881032.387527][2715:2715] CHIP:DMG: { - [1650881032.387549][2715:2715] CHIP:DMG: AttributePathIBs = - [1650881032.387578][2715:2715] CHIP:DMG: [ - [1650881032.387602][2715:2715] CHIP:DMG: AttributePathIB = - [1650881032.387629][2715:2715] CHIP:DMG: { - [1650881032.387657][2715:2715] CHIP:DMG: Endpoint = 0x0, - [1650881032.387690][2715:2715] CHIP:DMG: Cluster = 0x2e, - [1650881032.387722][2715:2715] CHIP:DMG: Attribute = 0x0000_0000, - [1650881032.387750][2715:2715] CHIP:DMG: } - [1650881032.387781][2715:2715] CHIP:DMG: - [1650881032.387807][2715:2715] CHIP:DMG: ], - [1650881032.387836][2715:2715] CHIP:DMG: - [1650881032.387862][2715:2715] CHIP:DMG: isFabricFiltered = true, - [1650881032.387887][2715:2715] CHIP:DMG: InteractionModelRevision = 1 - [1650881032.387910][2715:2715] CHIP:DMG: }, - [1650881032.387979][2715:2715] CHIP:DMG: IM RH moving to [GeneratingReports] - [1650881032.388058][2715:2715] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1650881032.388087][2715:2715] CHIP:DMG: Cluster 2e, Attribute 0 is dirty - [1650881032.388109][2715:2715] CHIP:DMG: Reading attribute: Cluster=0x0000_002E Endpoint=0 AttributeId=0x0000_0000 (expanded=0) - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific orde" - verification: | - This cluster doesn"t have any optional attribute - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific orde" - verification: | - This cluster doesn"t have any writable attributes - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PSCFG_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_PSCFG_3_1_Simulated.yaml new file mode 100644 index 00000000000000..c73331ebd59b57 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_PSCFG_3_1_Simulated.yaml @@ -0,0 +1,29 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 65.3.1. [TC-PSCFG-3.1] Attributes with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Power Source Configuration" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: Sources" + wait: "readAttribute" + attribute: "Sources" diff --git a/src/app/tests/suites/certification/Test_TC_PS_3_1.yaml b/src/app/tests/suites/certification/Test_TC_PS_3_1.yaml deleted file mode 100644 index 9d3a4c8e265b61..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PS_3_1.yaml +++ /dev/null @@ -1,403 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 62.3.1. [TC-PS-3.1] Attributes with client as DUT - -PICS: - - PS.C - - PS.C.AM-READ - - PS.C.AO-READ - - PS.C.AM-WRITE - - PS.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool powersource read status 1 1 - - verify the " status response" on the TH (all-cluster-app) log: - - - [1646155382.977445][33190:33190] CHIP:EM: Received message of type 0x2 with protocolId (0, 1) and MessageCounter:685127 on exchange 16568r - [1646155382.977534][33190:33190] CHIP:EM: Handling via exchange: 16568r, Delegate: 0xaaaace1730c8 - [1646155382.978021][33190:33190] CHIP:IM: Received Read request - [1646155382.978109][33190:33190] CHIP:DMG: ReadRequestMessage = - [1646155382.978143][33190:33190] CHIP:DMG: { - [1646155382.978167][33190:33190] CHIP:DMG: AttributePathIBs = - [1646155382.978204][33190:33190] CHIP:DMG: [ - [1646155382.978309][33190:33190] CHIP:DMG: AttributePathIB = - [1646155382.978369][33190:33190] CHIP:DMG: { - [1646155382.978408][33190:33190] CHIP:DMG: Endpoint = 0x1, - [1646155382.978459][33190:33190] CHIP:DMG: Cluster = 0x2f, - [1646155382.978513][33190:33190] CHIP:DMG: Attribute = 0x0000_0000, - [1646155382.978545][33190:33190] CHIP:DMG: } - [1646155382.978767][33190:33190] CHIP:DMG: - [1646155382.978804][33190:33190] CHIP:DMG: ], - [1646155382.978836][33190:33190] CHIP:DMG: - [1646155382.978872][33190:33190] CHIP:DMG: isFabricFiltered = false, - [1646155382.978901][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646155382.978927][33190:33190] CHIP:DMG: }, - [1646155382.978998][33190:33190] CHIP:DMG: IM RH moving to [GeneratingReports] - [1646155382.979658][33190:33190] CHIP:DMG: Cluster 2f, Attribute 0 is dirty - [1646155382.979729][33190:33190] CHIP:DMG: Reading attribute: Cluster=0x0000_002F Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - [1646155382.979764][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_002F e=1 p=v - [1646010346.974150][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0003 e=1 p=v - - ./chip-tool powersource read order 1 1 - - verify the " order response" on the TH (all-cluster-app) log: - - [1653395573.862606][19412:19412] CHIP:IM: Received Read request - [1653395573.862690][19412:19412] CHIP:DMG: ReadRequestMessage = - [1653395573.862739][19412:19412] CHIP:DMG: { - [1653395573.862779][19412:19412] CHIP:DMG: AttributePathIBs = - [1653395573.862827][19412:19412] CHIP:DMG: [ - [1653395573.862872][19412:19412] CHIP:DMG: AttributePathIB = - [1653395573.862928][19412:19412] CHIP:DMG: { - [1653395573.862980][19412:19412] CHIP:DMG: Endpoint = 0x1, - [1653395573.863037][19412:19412] CHIP:DMG: Cluster = 0x2f, - [1653395573.863101][19412:19412] CHIP:DMG: Attribute = 0x0000_0001, - [1653395573.863161][19412:19412] CHIP:DMG: } - [1653395573.863217][19412:19412] CHIP:DMG: - [1653395573.863267][19412:19412] CHIP:DMG: ], - [1653395573.863319][19412:19412] CHIP:DMG: - [1653395573.863367][19412:19412] CHIP:DMG: isFabricFiltered = true, - [1653395573.863413][19412:19412] CHIP:DMG: InteractionModelRevision = 1 - [1653395573.863456][19412:19412] CHIP:DMG: }, - [1653395573.863589][19412:19412] CHIP:DMG: IM RH moving to [GeneratingReports] - [1653395573.863720][19412:19412] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 - - ./chip-tool powersource read description 1 1 - - verify the " description response" on the TH (all-cluster-app) log: - - CHIP:IM: Received Read request - [1653395620.020314][19412:19412] CHIP:DMG: ReadRequestMessage = - [1653395620.020364][19412:19412] CHIP:DMG: { - [1653395620.020406][19412:19412] CHIP:DMG: AttributePathIBs = - [1653395620.020463][19412:19412] CHIP:DMG: [ - [1653395620.020511][19412:19412] CHIP:DMG: AttributePathIB = - [1653395620.020576][19412:19412] CHIP:DMG: { - [1653395620.020635][19412:19412] CHIP:DMG: Endpoint = 0x1, - [1653395620.020703][19412:19412] CHIP:DMG: Cluster = 0x2f, - [1653395620.020770][19412:19412] CHIP:DMG: Attribute = 0x0000_0002, - [1653395620.020833][19412:19412] CHIP:DMG: } - [1653395620.020893][19412:19412] CHIP:DMG: - [1653395620.020945][19412:19412] CHIP:DMG: ], - [1653395620.020999][19412:19412] CHIP:DMG: - [1653395620.021052][19412:19412] CHIP:DMG: isFabricFiltered = true, - [1653395620.021104][19412:19412] CHIP:DMG: InteractionModelRevision = 1 - [1653395620.021153][19412:19412] CHIP:DMG: }, - [1653395620.021252][19412:19412] CHIP:DMG: IM RH moving to [GeneratingReports] - - - ./chip-tool powersource read bat-charge-level 1 1 - - Verify the ReadRequestMessage on TH(all-clusters-app) log) - - [1663140804.059599][2414:2414] CHIP:IM: Received Read request - [1663140804.059679][2414:2414] CHIP:DMG: ReadRequestMessage = - [1663140804.059706][2414:2414] CHIP:DMG: { - [1663140804.059728][2414:2414] CHIP:DMG: AttributePathIBs = - [1663140804.059754][2414:2414] CHIP:DMG: [ - [1663140804.059779][2414:2414] CHIP:DMG: AttributePathIB = - [1663140804.059828][2414:2414] CHIP:DMG: { - [1663140804.059861][2414:2414] CHIP:DMG: Endpoint = 0x1, - [1663140804.059913][2414:2414] CHIP:DMG: Cluster = 0x2f, - [1663140804.059946][2414:2414] CHIP:DMG: Attribute = 0x0000_000E, - [1663140804.059976][2414:2414] CHIP:DMG: } - [1663140804.060006][2414:2414] CHIP:DMG: - [1663140804.060033][2414:2414] CHIP:DMG: ], - [1663140804.060060][2414:2414] CHIP:DMG: - [1663140804.060087][2414:2414] CHIP:DMG: isFabricFiltered = true, - [1663140804.060111][2414:2414] CHIP:DMG: InteractionModelRevision = 1 - [1663140804.060136][2414:2414] CHIP:DMG: }, - - - ./chip-tool powersource read bat-replacement-needed 1 1 - - Verify the ReadRequestMessage on TH(all-clusters-app) log) - - [1663141268.348233][2414:2414] CHIP:IM: Received Read request - [1663141268.348332][2414:2414] CHIP:DMG: ReadRequestMessage = - [1663141268.348388][2414:2414] CHIP:DMG: { - [1663141268.348418][2414:2414] CHIP:DMG: AttributePathIBs = - [1663141268.348465][2414:2414] CHIP:DMG: [ - [1663141268.348498][2414:2414] CHIP:DMG: AttributePathIB = - [1663141268.348545][2414:2414] CHIP:DMG: { - [1663141268.348584][2414:2414] CHIP:DMG: Endpoint = 0x1, - [1663141268.348637][2414:2414] CHIP:DMG: Cluster = 0x2f, - [1663141268.348685][2414:2414] CHIP:DMG: Attribute = 0x0000_000F, - [1663141268.348735][2414:2414] CHIP:DMG: } - [1663141268.348774][2414:2414] CHIP:DMG: - [1663141268.348820][2414:2414] CHIP:DMG: ], - [1663141268.348857][2414:2414] CHIP:DMG: - [1663141268.348904][2414:2414] CHIP:DMG: isFabricFiltered = true, - [1663141268.348938][2414:2414] CHIP:DMG: InteractionModelRevision = 1 - [1663141268.348982][2414:2414] CHIP:DMG: }, - [1663141268.349086][2414:2414] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663141268.349214][2414:2414] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663141268.349251][2414:2414] CHIP:DMG: Cluster 2f, Attribute f is dirty - - - ./chip-tool powersource read bat-replaceability 1 1 - - Verify the ReadRequestMessage on TH(all-clusters-app) log - - - [1663141378.115928][2414:2414] CHIP:DMG: ReadRequestMessage = - [1663141378.115978][2414:2414] CHIP:DMG: { - [1663141378.116006][2414:2414] CHIP:DMG: AttributePathIBs = - [1663141378.116050][2414:2414] CHIP:DMG: [ - [1663141378.116080][2414:2414] CHIP:DMG: AttributePathIB = - [1663141378.116124][2414:2414] CHIP:DMG: { - [1663141378.116160][2414:2414] CHIP:DMG: Endpoint = 0x1, - [1663141378.116208][2414:2414] CHIP:DMG: Cluster = 0x2f, - [1663141378.116247][2414:2414] CHIP:DMG: Attribute = 0x0000_0010, - [1663141378.116294][2414:2414] CHIP:DMG: } - [1663141378.116330][2414:2414] CHIP:DMG: - [1663141378.116372][2414:2414] CHIP:DMG: ], - [1663141378.116407][2414:2414] CHIP:DMG: - [1663141378.116450][2414:2414] CHIP:DMG: isFabricFiltered = true, - [1663141378.116481][2414:2414] CHIP:DMG: InteractionModelRevision = 1 - [1663141378.116521][2414:2414] CHIP:DMG: }, - [1663141378.116621][2414:2414] CHIP:DMG: IM RH moving to [GeneratingReports] - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - This cluster doesn"t have any optional attribute - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - ./chip-tool powersource read attribute-list 1 0 - - verify the " attribute-list response" on the TH (all-cluster-minimal-app) log: - - [1659596771.124636][2409:2409] CHIP:IM: Received Read request - [1659596771.124765][2409:2409] CHIP:DMG: ReadRequestMessage = - [1659596771.124795][2409:2409] CHIP:DMG: { - [1659596771.124814][2409:2409] CHIP:DMG: AttributePathIBs = - [1659596771.124838][2409:2409] CHIP:DMG: [ - [1659596771.124859][2409:2409] CHIP:DMG: AttributePathIB = - [1659596771.124901][2409:2409] CHIP:DMG: { - [1659596771.124928][2409:2409] CHIP:DMG: Endpoint = 0x0, - [1659596771.124963][2409:2409] CHIP:DMG: Cluster = 0x2f, - [1659596771.124989][2409:2409] CHIP:DMG: Attribute = 0x0000_FFFB, - [1659596771.125020][2409:2409] CHIP:DMG: } - [1659596771.125045][2409:2409] CHIP:DMG: - [1659596771.125077][2409:2409] CHIP:DMG: ], - [1659596771.125102][2409:2409] CHIP:DMG: - [1659596771.125134][2409:2409] CHIP:DMG: isFabricFiltered = true, - [1659596771.125156][2409:2409] CHIP:DMG: InteractionModelRevision = 1 - [1659596771.125177][2409:2409] CHIP:DMG: }, - - - - ./chip-tool powersource read status 1 1 - - verify the " status response" on the TH (all-cluster-minimal-app) log: - - [1646155382.977534][33190:33190] CHIP:EM: Handling via exchange: 16568r, Delegate: 0xaaaace1730c8 - [1646155382.978021][33190:33190] CHIP:IM: Received Read request - [1646155382.978109][33190:33190] CHIP:DMG: ReadRequestMessage = - [1646155382.978143][33190:33190] CHIP:DMG: { - [1646155382.978167][33190:33190] CHIP:DMG: AttributePathIBs = - [1646155382.978204][33190:33190] CHIP:DMG: [ - [1646155382.978309][33190:33190] CHIP:DMG: AttributePathIB = - [1646155382.978369][33190:33190] CHIP:DMG: { - [1646155382.978408][33190:33190] CHIP:DMG: Endpoint = 0x1, - [1646155382.978459][33190:33190] CHIP:DMG: Cluster = 0x2f, - [1646155382.978513][33190:33190] CHIP:DMG: Attribute = 0x0000_0000, - [1646155382.978545][33190:33190] CHIP:DMG: } - [1646155382.978767][33190:33190] CHIP:DMG: - [1646155382.978804][33190:33190] CHIP:DMG: ], - [1646155382.978836][33190:33190] CHIP:DMG: - [1646155382.978872][33190:33190] CHIP:DMG: isFabricFiltered = false, - [1646155382.978901][33190:33190] CHIP:DMG: InteractionModelRevision = 1 - [1646155382.978927][33190:33190] CHIP:DMG: }, - [1646155382.978998][33190:33190] CHIP:DMG: IM RH moving to [GeneratingReports] - [1646155382.979658][33190:33190] CHIP:DMG: Cluster 2f, Attribute 0 is dirty - [1646155382.979729][33190:33190] CHIP:DMG: Reading attribute: Cluster=0x0000_002F Endpoint=1 AttributeId=0x0000_0000 (expanded=0) - [1646155382.979764][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_002F e=1 p=v - [1646010346.974150][33190:33190] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0003 e=1 p=v - - ./chip-tool powersource read order 1 1 - - verify the " order response" on the TH (all-cluster-minimal-app) log: - - [1653395573.862606][19412:19412] CHIP:IM: Received Read request - [1653395573.862690][19412:19412] CHIP:DMG: ReadRequestMessage = - [1653395573.862739][19412:19412] CHIP:DMG: { - [1653395573.862779][19412:19412] CHIP:DMG: AttributePathIBs = - [1653395573.862827][19412:19412] CHIP:DMG: [ - [1653395573.862872][19412:19412] CHIP:DMG: AttributePathIB = - [1653395573.862928][19412:19412] CHIP:DMG: { - [1653395573.862980][19412:19412] CHIP:DMG: Endpoint = 0x1, - [1653395573.863037][19412:19412] CHIP:DMG: Cluster = 0x2f, - [1653395573.863101][19412:19412] CHIP:DMG: Attribute = 0x0000_0001, - [1653395573.863161][19412:19412] CHIP:DMG: } - [1653395573.863217][19412:19412] CHIP:DMG: - [1653395573.863267][19412:19412] CHIP:DMG: ], - [1653395573.863319][19412:19412] CHIP:DMG: - [1653395573.863367][19412:19412] CHIP:DMG: isFabricFiltered = true, - [1653395573.863413][19412:19412] CHIP:DMG: InteractionModelRevision = 1 - [1653395573.863456][19412:19412] CHIP:DMG: }, - [1653395573.863589][19412:19412] CHIP:DMG: IM RH moving to [GeneratingReports] - [1653395573.863720][19412:19412] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 - - ./chip-tool powersource read description 1 1 - - verify the " description response" on the TH (all-cluster-minimal-app) log: - - CHIP:IM: Received Read request - [1653395620.020314][19412:19412] CHIP:DMG: ReadRequestMessage = - [1653395620.020364][19412:19412] CHIP:DMG: { - [1653395620.020406][19412:19412] CHIP:DMG: AttributePathIBs = - [1653395620.020463][19412:19412] CHIP:DMG: [ - [1653395620.020511][19412:19412] CHIP:DMG: AttributePathIB = - [1653395620.020576][19412:19412] CHIP:DMG: { - [1653395620.020635][19412:19412] CHIP:DMG: Endpoint = 0x1, - [1653395620.020703][19412:19412] CHIP:DMG: Cluster = 0x2f, - [1653395620.020770][19412:19412] CHIP:DMG: Attribute = 0x0000_0002, - [1653395620.020833][19412:19412] CHIP:DMG: } - [1653395620.020893][19412:19412] CHIP:DMG: - [1653395620.020945][19412:19412] CHIP:DMG: ], - [1653395620.020999][19412:19412] CHIP:DMG: - [1653395620.021052][19412:19412] CHIP:DMG: isFabricFiltered = true, - [1653395620.021104][19412:19412] CHIP:DMG: InteractionModelRevision = 1 - [1653395620.021153][19412:19412] CHIP:DMG: }, - [1653395620.021252][19412:19412] CHIP:DMG: IM RH moving to [GeneratingReports] - - - ./chip-tool powersource read bat-charge-level 1 1 - - Verify the ReadRequestMessage on TH(all-clusters-minimal-app) log - - [1663140804.059599][2414:2414] CHIP:IM: Received Read request - [1663140804.059679][2414:2414] CHIP:DMG: ReadRequestMessage = - [1663140804.059706][2414:2414] CHIP:DMG: { - [1663140804.059728][2414:2414] CHIP:DMG: AttributePathIBs = - [1663140804.059754][2414:2414] CHIP:DMG: [ - [1663140804.059779][2414:2414] CHIP:DMG: AttributePathIB = - [1663140804.059828][2414:2414] CHIP:DMG: { - [1663140804.059861][2414:2414] CHIP:DMG: Endpoint = 0x1, - [1663140804.059913][2414:2414] CHIP:DMG: Cluster = 0x2f, - [1663140804.059946][2414:2414] CHIP:DMG: Attribute = 0x0000_000E, - [1663140804.059976][2414:2414] CHIP:DMG: } - [1663140804.060006][2414:2414] CHIP:DMG: - [1663140804.060033][2414:2414] CHIP:DMG: ], - [1663140804.060060][2414:2414] CHIP:DMG: - [1663140804.060087][2414:2414] CHIP:DMG: isFabricFiltered = true, - [1663140804.060111][2414:2414] CHIP:DMG: InteractionModelRevision = 1 - [1663140804.060136][2414:2414] CHIP:DMG: }, - - - ./chip-tool powersource read bat-replacement-needed 1 1 - - Verify the ReadRequestMessage on TH(all-clusters-minimal-app) log - - [1663141268.348233][2414:2414] CHIP:IM: Received Read request - [1663141268.348332][2414:2414] CHIP:DMG: ReadRequestMessage = - [1663141268.348388][2414:2414] CHIP:DMG: { - [1663141268.348418][2414:2414] CHIP:DMG: AttributePathIBs = - [1663141268.348465][2414:2414] CHIP:DMG: [ - [1663141268.348498][2414:2414] CHIP:DMG: AttributePathIB = - [1663141268.348545][2414:2414] CHIP:DMG: { - [1663141268.348584][2414:2414] CHIP:DMG: Endpoint = 0x1, - [1663141268.348637][2414:2414] CHIP:DMG: Cluster = 0x2f, - [1663141268.348685][2414:2414] CHIP:DMG: Attribute = 0x0000_000F, - [1663141268.348735][2414:2414] CHIP:DMG: } - [1663141268.348774][2414:2414] CHIP:DMG: - [1663141268.348820][2414:2414] CHIP:DMG: ], - [1663141268.348857][2414:2414] CHIP:DMG: - [1663141268.348904][2414:2414] CHIP:DMG: isFabricFiltered = true, - [1663141268.348938][2414:2414] CHIP:DMG: InteractionModelRevision = 1 - [1663141268.348982][2414:2414] CHIP:DMG: }, - [1663141268.349086][2414:2414] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663141268.349214][2414:2414] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663141268.349251][2414:2414] CHIP:DMG: Cluster 2f, Attribute f is dirty - - - ./chip-tool powersource read bat-replaceability 1 1 - - Verify the ReadRequestMessage on TH(all-clusters-minimal-app) log - - - [1663141378.115928][2414:2414] CHIP:DMG: ReadRequestMessage = - [1663141378.115978][2414:2414] CHIP:DMG: { - [1663141378.116006][2414:2414] CHIP:DMG: AttributePathIBs = - [1663141378.116050][2414:2414] CHIP:DMG: [ - [1663141378.116080][2414:2414] CHIP:DMG: AttributePathIB = - [1663141378.116124][2414:2414] CHIP:DMG: { - [1663141378.116160][2414:2414] CHIP:DMG: Endpoint = 0x1, - [1663141378.116208][2414:2414] CHIP:DMG: Cluster = 0x2f, - [1663141378.116247][2414:2414] CHIP:DMG: Attribute = 0x0000_0010, - [1663141378.116294][2414:2414] CHIP:DMG: } - [1663141378.116330][2414:2414] CHIP:DMG: - [1663141378.116372][2414:2414] CHIP:DMG: ], - [1663141378.116407][2414:2414] CHIP:DMG: - [1663141378.116450][2414:2414] CHIP:DMG: isFabricFiltered = true, - [1663141378.116481][2414:2414] CHIP:DMG: InteractionModelRevision = 1 - [1663141378.116521][2414:2414] CHIP:DMG: }, - [1663141378.116621][2414:2414] CHIP:DMG: IM RH moving to [GeneratingReports] - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - This cluster doesn"t have any optional attribute - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_PS_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_PS_3_1_Simulated.yaml new file mode 100644 index 00000000000000..f64cafc465ba4f --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_PS_3_1_Simulated.yaml @@ -0,0 +1,149 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 62.3.1. [TC-PS-3.1] Attributes with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Power Source" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute: Status" + wait: "readAttribute" + attribute: "Status" + + - label: "Read attribute: Order" + wait: "readAttribute" + attribute: "Order" + + - label: "Read attribute: Description" + wait: "readAttribute" + attribute: "Description" + + - label: "Read attribute: WiredAssessedInputVoltage" + wait: "readAttribute" + attribute: "WiredAssessedInputVoltage" + + - label: "Read attribute: WiredAssessedInputFrequency" + wait: "readAttribute" + attribute: "WiredAssessedInputFrequency" + + - label: "Read attribute: WiredCurrentType" + wait: "readAttribute" + attribute: "WiredCurrentType" + + - label: "Read attribute: WiredAssessedCurrent" + wait: "readAttribute" + attribute: "WiredAssessedCurrent" + + - label: "Read attribute: WiredNominalVoltage" + wait: "readAttribute" + attribute: "WiredNominalVoltage" + + - label: "Read attribute: WiredPresent" + wait: "readAttribute" + attribute: "WiredPresent" + + - label: "Read attribute: WiredMaximumCurrent" + wait: "readAttribute" + attribute: "WiredMaximumCurrent" + + - label: "Read attribute: ActiveWiredFaults" + wait: "readAttribute" + attribute: "ActiveWiredFaults" + + - label: "Read attribute: BatVoltage" + wait: "readAttribute" + attribute: "BatVoltage" + + - label: "Read attribute: BatPercentRemaining" + wait: "readAttribute" + attribute: "BatPercentRemaining" + + - label: "Read attribute: BatTimeRemaining" + wait: "readAttribute" + attribute: "BatTimeRemaining" + + - label: "Read attribute: BatChargeLevel" + wait: "readAttribute" + attribute: "BatChargeLevel" + + - label: "Read attribute: BatReplacementNeeded" + wait: "readAttribute" + attribute: "BatReplacementNeeded" + + - label: "Read attribute: BatReplaceability" + wait: "readAttribute" + attribute: "BatReplaceability" + + - label: "Read attribute: BatPresent" + wait: "readAttribute" + attribute: "BatPresent" + + - label: "Read attribute: ActiveBatFaults" + wait: "readAttribute" + attribute: "ActiveBatFaults" + + - label: "Read attribute: BatReplacementDescription" + wait: "readAttribute" + attribute: "BatReplacementDescription" + + - label: "Read attribute: BatCommonDesignation" + wait: "readAttribute" + attribute: "BatCommonDesignation" + + - label: "Read attribute: BatANSIDesignation" + wait: "readAttribute" + attribute: "BatANSIDesignation" + + - label: "Read attribute: BatIECDesignation" + wait: "readAttribute" + attribute: "BatIECDesignation" + + - label: "Read attribute: BatApprovedChemistry" + wait: "readAttribute" + attribute: "BatApprovedChemistry" + + - label: "Read attribute: BatCapacity" + wait: "readAttribute" + attribute: "BatCapacity" + + - label: "Read attribute: BatQuantity" + wait: "readAttribute" + attribute: "BatQuantity" + + - label: "Read attribute: BatChargeState" + wait: "readAttribute" + attribute: "BatChargeState" + + - label: "Read attribute: BatTimeToFullCharge" + wait: "readAttribute" + attribute: "BatTimeToFullCharge" + + - label: "Read attribute: BatFunctionalWhileCharging" + wait: "readAttribute" + attribute: "BatFunctionalWhileCharging" + + - label: "Read attribute: BatChargingCurrent" + wait: "readAttribute" + attribute: "BatChargingCurrent" + + - label: "Read attribute: ActiveBatChargeFaults" + wait: "readAttribute" + attribute: "ActiveBatChargeFaults" diff --git a/src/app/tests/suites/certification/Test_TC_RH_3_1.yaml b/src/app/tests/suites/certification/Test_TC_RH_3_1.yaml deleted file mode 100644 index 1159f992a3fb7b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_RH_3_1.yaml +++ /dev/null @@ -1,306 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 10.3.1. [TC-RH-3.1] Attributes with Client as DUT - -PICS: - - RH.C - - RH.C.AM-READ - - RH.C.AO-READ - - RH.C.AM-WRITE - - RH.C.AO-WRITE - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: - "DUT reads all supported mandatory attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool relativehumiditymeasurement read measured-value 1 1 - - verify the "measured-value response" on the TH (all-cluster-app) log: - - [1651147639.252032][2336:2336] CHIP:IM: Received Read request - [1651147639.252086][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651147639.252136][2336:2336] CHIP:DMG: { - [1651147639.252159][2336:2336] CHIP:DMG: AttributePathIBs = - [1651147639.252185][2336:2336] CHIP:DMG: [ - [1651147639.252209][2336:2336] CHIP:DMG: AttributePathIB = - [1651147639.252278][2336:2336] CHIP:DMG: { - [1651147639.252313][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651147639.252346][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651147639.252408][2336:2336] CHIP:DMG: Attribute = 0x0000_0000, - [1651147639.252437][2336:2336] CHIP:DMG: } - [1651147639.252494][2336:2336] CHIP:DMG: - [1651147639.252521][2336:2336] CHIP:DMG: ], - [1651147639.252576][2336:2336] CHIP:DMG: - [1651147639.252602][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651147639.252627][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651147639.252651][2336:2336] CHIP:DMG: }, - [1651147639.252772][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651147639.252925][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - ./chip-tool relativehumiditymeasurement read min-measured-value 1 1 - - verify the "min-measured-value response" on the TH (all-cluster-app) log: - - 1651147834.075387][2336:2336] CHIP:IM: Received Read request - [1651147834.075454][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651147834.075481][2336:2336] CHIP:DMG: { - [1651147834.075502][2336:2336] CHIP:DMG: AttributePathIBs = - [1651147834.075528][2336:2336] CHIP:DMG: [ - [1651147834.075552][2336:2336] CHIP:DMG: AttributePathIB = - [1651147834.075579][2336:2336] CHIP:DMG: { - [1651147834.075625][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651147834.075662][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651147834.075694][2336:2336] CHIP:DMG: Attribute = 0x0000_0001, - [1651147834.075734][2336:2336] CHIP:DMG: } - [1651147834.075763][2336:2336] CHIP:DMG: - [1651147834.075796][2336:2336] CHIP:DMG: ], - [1651147834.075825][2336:2336] CHIP:DMG: - [1651147834.075863][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651147834.075888][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651147834.075920][2336:2336] CHIP:DMG: }, - [1651147834.076001][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651147834.076111][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - ./chip-tool relativehumiditymeasurement read max-measured-value 1 1 - - verify the "max-measured-value response" on the TH (all-cluster-app) log: - - [1651147902.966904][2336:2336] CHIP:IM: Received Read request - [1651147902.966980][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651147902.967012][2336:2336] CHIP:DMG: { - [1651147902.967033][2336:2336] CHIP:DMG: AttributePathIBs = - [1651147902.967061][2336:2336] CHIP:DMG: [ - [1651147902.967088][2336:2336] CHIP:DMG: AttributePathIB = - [1651147902.967177][2336:2336] CHIP:DMG: { - [1651147902.967233][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651147902.967280][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651147902.967317][2336:2336] CHIP:DMG: Attribute = 0x0000_0002, - [1651147902.967360][2336:2336] CHIP:DMG: } - [1651147902.967397][2336:2336] CHIP:DMG: - [1651147902.967436][2336:2336] CHIP:DMG: ], - [1651147902.967479][2336:2336] CHIP:DMG: - [1651147902.967510][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651147902.967549][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651147902.967577][2336:2336] CHIP:DMG: }, - [1651147902.967669][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651147902.967790][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1651147902.967823][2336:2336] CHIP:DMG: Cluster 405, Attribute 2 is dirty - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - ./chip-tool relativehumiditymeasurement read tolerance 1 1 - - verify the "tolerance response" on the TH (all-cluster-app) log: - - [1651148035.585189][2336:2336] CHIP:IM: Received Read request - [1651148035.585247][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651148035.585276][2336:2336] CHIP:DMG: { - [1651148035.585301][2336:2336] CHIP:DMG: AttributePathIBs = - [1651148035.585330][2336:2336] CHIP:DMG: [ - [1651148035.585358][2336:2336] CHIP:DMG: AttributePathIB = - [1651148035.585396][2336:2336] CHIP:DMG: { - [1651148035.585431][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651148035.585470][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651148035.585507][2336:2336] CHIP:DMG: Attribute = 0x0000_0003, - [1651148035.585541][2336:2336] CHIP:DMG: } - [1651148035.585577][2336:2336] CHIP:DMG: - [1651148035.585610][2336:2336] CHIP:DMG: ], - [1651148035.585642][2336:2336] CHIP:DMG: - [1651148035.585672][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651148035.585701][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651148035.585727][2336:2336] CHIP:DMG: }, - [1651148035.585807][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651148035.585899][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - disabled: true - - - label: - "DUT writes a suitable value to all supported mandatory attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true - - - label: - "Configure TH such that it implements mandatory and none of the - optional attributes of the server-side of the cluster, and that it - also reflects this in global attributes such as FeatureMap and - AttributeList. Commission DUT to TH again" - verification: | - ./chip-tool relativehumiditymeasurement read feature-map 1 1 - - verify the "feature-map response" on the TH (all-cluster-minimal-app) log: - - [1663157920.343837][6214:6214] CHIP:IM: Received Read request - [1663157920.343910][6214:6214] CHIP:DMG: ReadRequestMessage = - [1663157920.343933][6214:6214] CHIP:DMG: { - [1663157920.343952][6214:6214] CHIP:DMG: AttributePathIBs = - [1663157920.343974][6214:6214] CHIP:DMG: [ - [1663157920.343994][6214:6214] CHIP:DMG: AttributePathIB = - [1663157920.344021][6214:6214] CHIP:DMG: { - [1663157920.344048][6214:6214] CHIP:DMG: Endpoint = 0x1, - [1663157920.344076][6214:6214] CHIP:DMG: Cluster = 0x405, - [1663157920.344104][6214:6214] CHIP:DMG: Attribute = 0x0000_FFFC, - [1663157920.344128][6214:6214] CHIP:DMG: } - [1663157920.344154][6214:6214] CHIP:DMG: - [1663157920.344177][6214:6214] CHIP:DMG: ], - [1663157920.344202][6214:6214] CHIP:DMG: - [1663157920.344225][6214:6214] CHIP:DMG: isFabricFiltered = true, - [1663157920.344246][6214:6214] CHIP:DMG: InteractionModelRevision = 1 - [1663157920.344266][6214:6214] CHIP:DMG: }, - [1663157920.344332][6214:6214] CHIP:DMG: IM RH moving to [GeneratingReports] - [1663157920.344414][6214:6214] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1663157920.344440][6214:6214] CHIP:DMG: Cluster 405, Attribute fffc is dirty - - - ./chip-tool relativehumiditymeasurement read attribute-list 1 1 - - - verify the "attribute-list response" on the TH (all-cluster-minimal-app) log: - - [1659607458.517237][7312:7312] CHIP:IM: Received Read request - [1659607458.517318][7312:7312] CHIP:DMG: ReadRequestMessage = - [1659607458.517345][7312:7312] CHIP:DMG: { - [1659607458.517367][7312:7312] CHIP:DMG: AttributePathIBs = - [1659607458.517392][7312:7312] CHIP:DMG: [ - [1659607458.517415][7312:7312] CHIP:DMG: AttributePathIB = - [1659607458.517443][7312:7312] CHIP:DMG: { - [1659607458.517470][7312:7312] CHIP:DMG: Endpoint = 0x1, - [1659607458.517506][7312:7312] CHIP:DMG: Cluster = 0x405, - [1659607458.517536][7312:7312] CHIP:DMG: Attribute = 0x0000_FFFB, - [1659607458.517564][7312:7312] CHIP:DMG: } - [1659607458.517591][7312:7312] CHIP:DMG: - [1659607458.517616][7312:7312] CHIP:DMG: ], - [1659607458.517643][7312:7312] CHIP:DMG: - [1659607458.517670][7312:7312] CHIP:DMG: isFabricFiltered = true, - [1659607458.517695][7312:7312] CHIP:DMG: InteractionModelRevision = 1 - [1659607458.517718][7312:7312] CHIP:DMG: }, - - - - - ./chip-tool relativehumiditymeasurement read measured-value 1 1 - - verify the "measured-value response" on the TH (all-cluster-minimal-app) log: - - [1651147639.252032][2336:2336] CHIP:IM: Received Read request - - [1651147639.252086][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651147639.252136][2336:2336] CHIP:DMG: { - [1651147639.252159][2336:2336] CHIP:DMG: AttributePathIBs = - [1651147639.252185][2336:2336] CHIP:DMG: [ - [1651147639.252209][2336:2336] CHIP:DMG: AttributePathIB = - [1651147639.252278][2336:2336] CHIP:DMG: { - [1651147639.252313][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651147639.252346][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651147639.252408][2336:2336] CHIP:DMG: Attribute = 0x0000_0000, - [1651147639.252437][2336:2336] CHIP:DMG: } - [1651147639.252494][2336:2336] CHIP:DMG: - [1651147639.252521][2336:2336] CHIP:DMG: ], - [1651147639.252576][2336:2336] CHIP:DMG: - [1651147639.252602][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651147639.252627][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651147639.252651][2336:2336] CHIP:DMG: }, - [1651147639.252772][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651147639.252925][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - ./chip-tool relativehumiditymeasurement read min-measured-value 1 1 - - verify the "min-measured-value response" on the TH (all-cluster-minimal-app) log: - - 1651147834.075387][2336:2336] CHIP:IM: Received Read request - - [1651147834.075454][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651147834.075481][2336:2336] CHIP:DMG: { - [1651147834.075502][2336:2336] CHIP:DMG: AttributePathIBs = - [1651147834.075528][2336:2336] CHIP:DMG: [ - [1651147834.075552][2336:2336] CHIP:DMG: AttributePathIB = - [1651147834.075579][2336:2336] CHIP:DMG: { - [1651147834.075625][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651147834.075662][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651147834.075694][2336:2336] CHIP:DMG: Attribute = 0x0000_0001, - [1651147834.075734][2336:2336] CHIP:DMG: } - [1651147834.075763][2336:2336] CHIP:DMG: - [1651147834.075796][2336:2336] CHIP:DMG: ], - [1651147834.075825][2336:2336] CHIP:DMG: - [1651147834.075863][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651147834.075888][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651147834.075920][2336:2336] CHIP:DMG: }, - [1651147834.076001][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651147834.076111][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - - ./chip-tool relativehumiditymeasurement read max-measured-value 1 1 - - verify the "max-measured-value response" on the TH (all-cluster-minimal-app) log: - - [1651147902.966904][2336:2336] CHIP:IM: Received Read request - [1651147902.966980][2336:2336] CHIP:DMG: ReadRequestMessage = - [1651147902.967012][2336:2336] CHIP:DMG: { - [1651147902.967033][2336:2336] CHIP:DMG: AttributePathIBs = - [1651147902.967061][2336:2336] CHIP:DMG: [ - [1651147902.967088][2336:2336] CHIP:DMG: AttributePathIB = - [1651147902.967177][2336:2336] CHIP:DMG: { - [1651147902.967233][2336:2336] CHIP:DMG: Endpoint = 0x1, - [1651147902.967280][2336:2336] CHIP:DMG: Cluster = 0x405, - [1651147902.967317][2336:2336] CHIP:DMG: Attribute = 0x0000_0002, - [1651147902.967360][2336:2336] CHIP:DMG: } - [1651147902.967397][2336:2336] CHIP:DMG: - [1651147902.967436][2336:2336] CHIP:DMG: ], - [1651147902.967479][2336:2336] CHIP:DMG: - [1651147902.967510][2336:2336] CHIP:DMG: isFabricFiltered = true, - [1651147902.967549][2336:2336] CHIP:DMG: InteractionModelRevision = 1 - [1651147902.967577][2336:2336] CHIP:DMG: }, - [1651147902.967669][2336:2336] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651147902.967790][2336:2336] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0 - [1651147902.967823][2336:2336] CHIP:DMG: Cluster 405, Attribute 2 is dirty" - disabled: true - - - label: - "DUT reads all supported optional attributes from TH one at a time in - a manufacturer specific order" - verification: | - TH all-clusters-minimal-app does not support optional attributes - - - ./chip-tool relativehumiditymeasurement read tolerance 1 1 - disabled: true - - - label: - "DUT writes a suitable value to all supported optional attributes on - the TH one at a time in a manufacturer specific order" - verification: | - This cluster doesn"t have any writable attributes - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_RH_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_RH_3_1_Simulated.yaml new file mode 100644 index 00000000000000..2ed1b3166de5f3 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_RH_3_1_Simulated.yaml @@ -0,0 +1,41 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 10.3.1. [TC-RH-3.1] Attributes with Client as DUT + +config: + nodeId: 0x12344321 + cluster: "Relative Humidity Measurement" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read attribute MeasuredValue" + wait: "readAttribute" + attribute: "measured value" + + - label: "Read attribute MinMeasuredValue" + wait: "readAttribute" + attribute: "min measured value" + + - label: "Read attribute MaxMeasuredValue" + wait: "readAttribute" + attribute: "max measured value" + + - label: "Read attribute Tolerance" + wait: "readAttribute" + attribute: "tolerance" diff --git a/src/app/tests/suites/certification/Test_TC_SWTCH_3_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_SWTCH_3_1_Simulated.yaml new file mode 100644 index 00000000000000..5abe615c0ef319 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_SWTCH_3_1_Simulated.yaml @@ -0,0 +1,37 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 74.3.1. [TC-SWTCH-3.1] Global attributes with client as DUT + +config: + nodeId: 0x12344321 + cluster: "Switch" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + - label: "Read NumberOfPositions attribute" + wait: "readAttribute" + attribute: "number of positions" + + - label: "Read CurrentPosition attribute" + wait: "readAttribute" + attribute: "current position" + + - label: "Read MultiPressMax attribute" + wait: "readAttribute" + attribute: "multi press max" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_5_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_5_1.yaml deleted file mode 100644 index 1f3e9a20e9cc76..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_WNCV_5_1.yaml +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 3.4.6. [TC-WNCV-5.1] Mandatory Attributes Verification [DUT as Client] - -PICS: - - WNCV.C - -config: - nodeId: 0x12344321 - cluster: "Basic" - endpoint: 0 - -tests: - - label: "Note" - verification: | - For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command. - disabled: true - - - label: "Check Attribute defining the cluster Features" - verification: | - - disabled: true - - - label: "DUT reads the (65532) _FeatureMap_ attribute from TH" - PICS: WNCV.C.Afffc - verification: | - On TestHarnes (all-cluster-app) a received read of feature-map looks like this: - - ./chip-tool windowcovering read feature-map 1 1 - Verify the "feature-map " read response on TH(all-cluster-app): - - [1659944836.658724][2742:2742] CHIP:IM: Received Read request - [1659944836.658804][2742:2742] CHIP:DMG: ReadRequestMessage = - [1659944836.658833][2742:2742] CHIP:DMG: { - [1659944836.658854][2742:2742] CHIP:DMG: AttributePathIBs = - [1659944836.658880][2742:2742] CHIP:DMG: [ - [1659944836.658904][2742:2742] CHIP:DMG: AttributePathIB = - [1659944836.658932][2742:2742] CHIP:DMG: { - [1659944836.658960][2742:2742] CHIP:DMG: Endpoint = 0x1, - [1659944836.658995][2742:2742] CHIP:DMG: Cluster = 0x102, - [1659944836.659031][2742:2742] CHIP:DMG: Attribute = 0x0000_FFFC, - [1659944836.659062][2742:2742] CHIP:DMG: } - [1659944836.659091][2742:2742] CHIP:DMG: - [1659944836.659116][2742:2742] CHIP:DMG: ], - [1659944836.659144][2742:2742] CHIP:DMG: - [1659944836.659171][2742:2742] CHIP:DMG: isFabricFiltered = true, - [1659944836.659196][2742:2742] CHIP:DMG: InteractionModelRevision = 1 - [1659944836.659219][2742:2742] CHIP:DMG: }, - disabled: true - - - label: "Check Attribute defining the product" - verification: | - - disabled: true - - - label: "DUT reads the Type attribute from TH" - PICS: WNCV.C.A0000 - verification: | - On TestHarnes (all-cluster-app) a received read of type looks like this: - - ./chip-tool windowcovering read type 1 1 - - Verify the "type" read response on TH(all-cluster-app): - [1659944958.215763][2742:2742] CHIP:DMG: ReadRequestMessage = - [1659944958.215792][2742:2742] CHIP:DMG: { - [1659944958.215813][2742:2742] CHIP:DMG: AttributePathIBs = - [1659944958.215839][2742:2742] CHIP:DMG: [ - [1659944958.215863][2742:2742] CHIP:DMG: AttributePathIB = - [1659944958.215892][2742:2742] CHIP:DMG: { - [1659944958.215920][2742:2742] CHIP:DMG: Endpoint = 0x1, - [1659944958.215955][2742:2742] CHIP:DMG: Cluster = 0x102, - [1659944958.215989][2742:2742] CHIP:DMG: Attribute = 0x0000_0000, - [1659944958.216019][2742:2742] CHIP:DMG: } - [1659944958.216050][2742:2742] CHIP:DMG: - [1659944958.216077][2742:2742] CHIP:DMG: ], - [1659944958.216106][2742:2742] CHIP:DMG: - [1659944958.216134][2742:2742] CHIP:DMG: isFabricFiltered = true, - [1659944958.216160][2742:2742] CHIP:DMG: InteractionModelRevision = 1 - [1659944958.216185][2742:2742] CHIP:DMG: }, - disabled: true - - - label: "DUT reads the EndProductType attribute from TH" - PICS: WNCV.C.A000d - verification: | - On TestHarnes (all-cluster-app) a received read of end-product-type looks like this: - - ./chip-tool windowcovering read end-product-type 1 1 - - Verify the "end-product-type "read response on TH(all-cluster-app): - [1659945106.066589][2742:2742] CHIP:IM: Received Read request - [1659945106.066665][2742:2742] CHIP:DMG: ReadRequestMessage = - [1659945106.066691][2742:2742] CHIP:DMG: { - [1659945106.066713][2742:2742] CHIP:DMG: AttributePathIBs = - [1659945106.066741][2742:2742] CHIP:DMG: [ - [1659945106.066765][2742:2742] CHIP:DMG: AttributePathIB = - [1659945106.066795][2742:2742] CHIP:DMG: { - [1659945106.066824][2742:2742] CHIP:DMG: Endpoint = 0x1, - [1659945106.066862][2742:2742] CHIP:DMG: Cluster = 0x102, - [1659945106.066920][2742:2742] CHIP:DMG: Attribute = 0x0000_000D, - [1659945106.066973][2742:2742] CHIP:DMG: } - [1659945106.067020][2742:2742] CHIP:DMG: - [1659945106.067065][2742:2742] CHIP:DMG: ], - [1659945106.067110][2742:2742] CHIP:DMG: - [1659945106.067154][2742:2742] CHIP:DMG: isFabricFiltered = true, - [1659945106.067196][2742:2742] CHIP:DMG: InteractionModelRevision = 1 - [1659945106.067235][2742:2742] CHIP:DMG: }, - disabled: true - - - label: "Check Attribute defining the working status" - verification: | - - disabled: true - - - label: "DUT reads the Mode attribute from TH" - PICS: WNCV.C.A0017 - verification: | - On TestHarnes (all-cluster-app) a received read of mode looks like this: - - ./chip-tool windowcovering read mode 1 1 - - Verify the "mode" read response on TH(all-cluster-app): - - [1659945146.241332][2742:2742] CHIP:IM: Received Read request - [1659945146.241409][2742:2742] CHIP:DMG: ReadRequestMessage = - [1659945146.241436][2742:2742] CHIP:DMG: { - [1659945146.241457][2742:2742] CHIP:DMG: AttributePathIBs = - [1659945146.241483][2742:2742] CHIP:DMG: [ - [1659945146.241507][2742:2742] CHIP:DMG: AttributePathIB = - [1659945146.241535][2742:2742] CHIP:DMG: { - [1659945146.241562][2742:2742] CHIP:DMG: Endpoint = 0x1, - [1659945146.241594][2742:2742] CHIP:DMG: Cluster = 0x102, - [1659945146.241625][2742:2742] CHIP:DMG: Attribute = 0x0000_0017, - [1659945146.241655][2742:2742] CHIP:DMG: } - [1659945146.241682][2742:2742] CHIP:DMG: - [1659945146.241707][2742:2742] CHIP:DMG: ], - [1659945146.241735][2742:2742] CHIP:DMG: - [1659945146.241761][2742:2742] CHIP:DMG: isFabricFiltered = true, - [1659945146.241787][2742:2742] CHIP:DMG: InteractionModelRevision = 1 - [1659945146.241810][2742:2742] CHIP:DMG: }, - disabled: true - - - label: "DUT reads the ConfigStatus attribute from TH" - PICS: WNCV.C.A0007 - verification: | - On TestHarnes (all-cluster-app) a received read of config-status looks like this: - - ./chip-tool windowcovering read config-status 1 1 - - Verify the "config-status"read response on TH(all-cluster-app): - - [1659945171.752215][2742:2742] CHIP:IM: Received Read request - [1659945171.752329][2742:2742] CHIP:DMG: ReadRequestMessage = - [1659945171.752367][2742:2742] CHIP:DMG: { - [1659945171.752389][2742:2742] CHIP:DMG: AttributePathIBs = - [1659945171.752426][2742:2742] CHIP:DMG: [ - [1659945171.752458][2742:2742] CHIP:DMG: AttributePathIB = - [1659945171.752497][2742:2742] CHIP:DMG: { - [1659945171.752536][2742:2742] CHIP:DMG: Endpoint = 0x1, - [1659945171.752569][2742:2742] CHIP:DMG: Cluster = 0x102, - [1659945171.752608][2742:2742] CHIP:DMG: Attribute = 0x0000_0007, - [1659945171.752640][2742:2742] CHIP:DMG: } - [1659945171.752680][2742:2742] CHIP:DMG: - [1659945171.752719][2742:2742] CHIP:DMG: ], - [1659945171.752750][2742:2742] CHIP:DMG: - [1659945171.752778][2742:2742] CHIP:DMG: isFabricFiltered = true, - [1659945171.752815][2742:2742] CHIP:DMG: InteractionModelRevision = 1 - [1659945171.752840][2742:2742] CHIP:DMG: }, - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_5_1_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_5_1_Simulated.yaml new file mode 100644 index 00000000000000..a4e3cb48579415 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_WNCV_5_1_Simulated.yaml @@ -0,0 +1,56 @@ +# Copyright (c) 2021 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 38.4.6. [TC-WNCV-5.1] Mandatory Attributes Verification [DUT as Client] + +PICS: + - WNCV.C + +config: + nodeId: 0x12344321 + cluster: "Window Covering" + endpoint: 0 + +tests: + - label: "Wait for the device to be commissioned" + cluster: "DelayCommands" + command: "WaitForCommissioning" + + ##Check Attribute defining the cluster Features + - label: "DUT reads the FeatureMap attribute from TH" + PICS: WNCV.C.Afffc + wait: "readAttribute" + attribute: "FeatureMap" + + ##Check Attributes defining the product + - label: "DUT reads the Type attribute from TH" + PICS: WNCV.C.A0000 + wait: "readAttribute" + attribute: "Type" + + - label: "DUT reads the EndProductType attribute from TH" + PICS: WNCV.C.A000d + wait: "readAttribute" + attribute: "EndProductType" + + ##Check Attributes defining the working status + - label: "DUT reads the Mode attribute from TH" + PICS: WNCV.C.A0017 + wait: "readAttribute" + attribute: "Mode" + + - label: "DUT reads the ConfigStatus attribute from TH" + PICS: WNCV.C.A0007 + wait: "readAttribute" + attribute: "ConfigStatus" diff --git a/src/app/tests/suites/manualTests.json b/src/app/tests/suites/manualTests.json index 1835bb8cf21eac..a70896e1adea1c 100644 --- a/src/app/tests/suites/manualTests.json +++ b/src/app/tests/suites/manualTests.json @@ -40,7 +40,6 @@ "TestGroupDemoConfig", "Test_TC_G_2_2", "Test_TC_G_2_3", - "Test_TC_G_3_1", "Test_TC_G_3_2" ], "BulkDataExchangeProtocol": [ @@ -99,15 +98,14 @@ "Test_TC_DLOG_2_2", "Test_TC_DLOG_3_1" ], - "Descriptor": ["Test_TC_DESC_2_1", "Test_TC_DESC_2_2"], - "EthernetNetworkDiagnostics": ["Test_TC_DGETH_3_1", "Test_TC_DGETH_3_2"], + "Descriptor": ["Test_TC_DESC_2_1"], "GeneralCommissioning": ["Test_TC_CGEN_2_2", "Test_TC_CGEN_2_4"], "GeneralDiagnostics": [ "Test_TC_DGGEN_2_2", "Test_TC_DGGEN_2_3", "Test_TC_DGGEN_3_1" ], - "Identify": ["Test_TC_I_3_1", "Test_TC_I_3_2"], + "Identify": ["Test_TC_I_3_2"], "IlluminanceMeasurement": ["Test_TC_ILL_3_1"], "InteractionDataModel": [ "Test_TC_IDM_1_1", @@ -206,7 +204,7 @@ "Test_TC_SU_4_1", "Test_TC_SU_4_2" ], - "PowerSourceConfiguration": ["Test_TC_PSCFG_2_2", "Test_TC_PSCFG_3_1"], + "PowerSourceConfiguration": ["Test_TC_PSCFG_2_2"], "SecureChannel": [ "Test_TC_SC_1_1", "Test_TC_SC_1_2", @@ -239,26 +237,19 @@ "SoftwareDiagnostics": [ "Test_TC_DGSW_2_1", "Test_TC_DGSW_2_2", - "Test_TC_DGSW_2_3", - "Test_TC_DGSW_3_1", - "Test_TC_DGSW_3_2" - ], - "WiFiNetworkDiagnostics": [ - "Test_TC_DGWIFI_2_2", - "Test_TC_DGWIFI_3_1", - "Test_TC_DGWIFI_3_2" + "Test_TC_DGSW_2_3" ], + "WiFiNetworkDiagnostics": ["Test_TC_DGWIFI_2_2"], "WindowCovering": ["Test_TC_WNCV_6_1", "Test_TC_WNCV_7_1"], - "FlowMeasurement": ["Test_TC_FLW_2_2", "Test_TC_FLW_3_1"], + "FlowMeasurement": ["Test_TC_FLW_2_2"], "OccupancySensing": [ "Test_TC_OCC_2_2", "Test_TC_OCC_2_3", "Test_TC_OCC_2_4", "Test_TC_OCC_3_1" ], - "PressureMeasurement": ["Test_TC_PRS_3_1"], - "PowerSource": ["Test_TC_PS_2_2", "Test_TC_PS_3_1"], - "BooleanState": ["Test_TC_BOOL_2_2", "Test_TC_BOOL_3_1"], + "PowerSource": ["Test_TC_PS_2_2"], + "BooleanState": ["Test_TC_BOOL_2_2"], "ColorControl": [ "Test_TC_CC_2_2", "Test_TC_CC_3_4", @@ -284,8 +275,8 @@ "LocalizationConfiguration": ["Test_TC_LCFG_2_1", "Test_TC_LCFG_3_1"], "LevelControl": ["Test_TC_LVL_2_3", "Test_TC_LVL_7_1", "Test_TC_LVL_8_1"], "OnOff": ["Test_TC_OO_2_3", "Test_TC_OO_3_1", "Test_TC_OO_3_2"], - "RelativeHumidityMeasurement": ["Test_TC_RH_2_2", "Test_TC_RH_3_1"], - "Switch": ["Test_TC_SWTCH_2_2", "Test_TC_SWTCH_3_1", "Test_TC_SWTCH_3_2"], + "RelativeHumidityMeasurement": ["Test_TC_RH_2_2"], + "Switch": ["Test_TC_SWTCH_2_2", "Test_TC_SWTCH_3_2"], "TemperatureMeasurement": ["Test_TC_TMP_2_2", "Test_TC_TMP_3_1"], "Thermostat": ["Test_TC_TSTAT_3_1", "Test_TC_TSTAT_3_2"], "ThermostatUserConfiguration": ["Test_TC_TSUIC_3_1"], @@ -297,12 +288,7 @@ "Test_TC_DGTHREAD_3_4", "Test_TC_DGTHREAD_3_5" ], - "Actions": [ - "Test_TC_ACT_2_1", - "Test_TC_ACT_2_2", - "Test_TC_ACT_3_1", - "Test_TC_ACT_3_2" - ], + "Actions": ["Test_TC_ACT_2_1", "Test_TC_ACT_2_2", "Test_TC_ACT_3_2"], "TimeFormatLocalization": [ "Test_TC_LTIME_1_1", "Test_TC_LTIME_2_1", @@ -313,7 +299,6 @@ "Test_TC_LUNIT_2_1", "Test_TC_LUNIT_3_1" ], - "FixedLabel": ["Test_TC_FLABEL_3_1"], "Binding": ["Test_TC_BIND_2_1", "Test_TC_BIND_2_2", "Test_TC_BIND_2_3"], "Scenes": [ "Test_TC_S_1_1", @@ -347,7 +332,6 @@ "DeviceManagement", "DiagnosticsLogs", "Descriptor", - "EthernetNetworkDiagnostics", "GeneralCommissioning", "GeneralDiagnostics", "Identify", @@ -364,7 +348,6 @@ "WindowCovering", "FlowMeasurement", "OccupancySensing", - "PressureMeasurement", "PowerSource", "BooleanState", "ColorControl", @@ -381,7 +364,6 @@ "Actions", "TimeFormatLocalization", "UnitLocalization", - "FixedLabel", "Binding", "Scenes", "PumpConfigurationControl",