From 29c2ed1d61456ea6ef7c9b74e37b714e92e733a0 Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Sat, 16 Jul 2022 00:27:46 +0530 Subject: [PATCH 1/4] Modified tests TC-APPLAUNCHER-1.3 TC-APPLAUNCHER-3.5 TC-APPLAUNCHER-3.6 TC-BOOL-2.1 TC-CC-3.3 TC-CHANNEL-1.6 TC-CHANNEL-5.1 TC-CHANNEL-5.2 TC-CHANNEL-5.3 TC-I-1.1 TC-LVL-2.1 TC-LVL-2.2 TC-LVL-3.1 TC-LVL-4.1 TC-LVL-5.1 TC-LVL-6.1 TC-MEDIAINPUT-1.4 TC-MEDIAINPUT-3.10 TC-MEDIAINPUT-3.11 TC-MEDIAINPUT-3.12 TC-MEDIAINPUT-3.13 TC-CADMIN-1.3 TC-CADMIN-1.4 TC-CADMIN-1.5 TC-CADMIN-1.6 TC-CADMIN-1.9 TC-CADMIN-1.10 TC-CADMIN-1.15 TC-OO-2.3 Modifed Manual scripts TC-CADMIN-1.* TC-MOD-1.* --- src/app/tests/suites/certification/PICS.yaml | 55 +++++ .../Test_TC_APPLAUNCHER_3_5.yaml | 19 +- .../Test_TC_APPLAUNCHER_3_6.yaml | 18 +- .../certification/Test_TC_BOOL_2_1.yaml | 1 - .../certification/Test_TC_CADMIN_1_1.yaml | 154 ++++++++----- .../certification/Test_TC_CADMIN_1_10.yaml | 5 +- .../certification/Test_TC_CADMIN_1_11.yaml | 36 +-- .../certification/Test_TC_CADMIN_1_12.yaml | 46 ++-- .../certification/Test_TC_CADMIN_1_13.yaml | 149 ++++++------- .../certification/Test_TC_CADMIN_1_14.yaml | 167 +++++++------- .../certification/Test_TC_CADMIN_1_15.yaml | 12 +- .../certification/Test_TC_CADMIN_1_16.yaml | 156 ++++++------- .../certification/Test_TC_CADMIN_1_17.yaml | 52 ++--- .../certification/Test_TC_CADMIN_1_18.yaml | 95 ++++---- .../certification/Test_TC_CADMIN_1_19.yaml | 72 +++--- .../certification/Test_TC_CADMIN_1_2.yaml | 209 ++++++++++-------- .../certification/Test_TC_CADMIN_1_20.yaml | 192 ++++++++-------- .../certification/Test_TC_CADMIN_1_21.yaml | 17 +- .../certification/Test_TC_CADMIN_1_22.yaml | 31 ++- .../certification/Test_TC_CADMIN_1_23.yaml | 23 +- .../certification/Test_TC_CADMIN_1_24.yaml | 76 +++---- .../certification/Test_TC_CADMIN_1_25.yaml | 163 ++++++-------- .../certification/Test_TC_CADMIN_1_26.yaml | 160 +++++++------- .../certification/Test_TC_CADMIN_1_27.yaml | 93 -------- .../certification/Test_TC_CADMIN_1_28.yaml | 108 --------- .../certification/Test_TC_CADMIN_1_3.yaml | 79 +++++++ .../certification/Test_TC_CADMIN_1_4.yaml | 63 ++++++ .../certification/Test_TC_CADMIN_1_5.yaml | 58 +++++ .../certification/Test_TC_CADMIN_1_6.yaml | 31 +++ .../certification/Test_TC_CADMIN_1_7.yaml | 117 +++++----- .../certification/Test_TC_CADMIN_1_8.yaml | 139 ++++++------ .../certification/Test_TC_CADMIN_1_9.yaml | 5 +- .../suites/certification/Test_TC_CC_3_3.yaml | 16 +- .../certification/Test_TC_CHANNEL_1_6.yaml | 4 +- .../certification/Test_TC_CHANNEL_5_1.yaml | 56 +---- .../certification/Test_TC_CHANNEL_5_3.yaml | 27 +-- .../suites/certification/Test_TC_I_1_1.yaml | 19 ++ .../suites/certification/Test_TC_LVL_2_1.yaml | 5 +- .../suites/certification/Test_TC_LVL_2_2.yaml | 48 ++-- .../suites/certification/Test_TC_LVL_3_1.yaml | 26 +++ .../suites/certification/Test_TC_LVL_4_1.yaml | 26 +++ .../suites/certification/Test_TC_LVL_5_1.yaml | 26 +++ .../suites/certification/Test_TC_LVL_6_1.yaml | 26 +++ .../certification/Test_TC_MEDIAINPUT_1_4.yaml | 6 +- .../Test_TC_MEDIAINPUT_3_10.yaml | 36 +-- .../Test_TC_MEDIAINPUT_3_11.yaml | 36 +-- .../Test_TC_MEDIAINPUT_3_12.yaml | 12 +- .../Test_TC_MEDIAINPUT_3_13.yaml | 36 +-- .../suites/certification/Test_TC_MOD_1_2.yaml | 21 +- .../suites/certification/Test_TC_MOD_1_3.yaml | 92 +++++--- .../suites/certification/Test_TC_MOD_2_1.yaml | 18 +- .../suites/certification/Test_TC_MOD_2_2.yaml | 139 ++++++------ .../suites/certification/Test_TC_MOD_3_1.yaml | 67 ++++-- .../suites/certification/Test_TC_MOD_3_2.yaml | 18 +- .../suites/certification/Test_TC_MOD_3_3.yaml | 19 +- .../suites/certification/Test_TC_MOD_3_4.yaml | 34 ++- .../suites/certification/Test_TC_OO_2_3.yaml | 27 ++- .../tests/suites/certification/ci-pics-values | 18 +- src/app/tests/suites/tests.js | 6 +- 59 files changed, 1871 insertions(+), 1594 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_CADMIN_1_27.yaml delete mode 100644 src/app/tests/suites/certification/Test_TC_CADMIN_1_28.yaml diff --git a/src/app/tests/suites/certification/PICS.yaml b/src/app/tests/suites/certification/PICS.yaml index 3c082aec1b0e2b..e7070038f7d831 100644 --- a/src/app/tests/suites/certification/PICS.yaml +++ b/src/app/tests/suites/certification/PICS.yaml @@ -1740,6 +1740,55 @@ PICS: - label: "Does the DUT support Basic Commissioning Method (BCM)?" id: PICS_MF_BCM + - label: "Does the Device support User Interface Display" + id: CADMIN.UserInterfaceDisplay + + - label: "Does the Device support Audio Interface" + id: CADMIN.AudioInterface + #server + - label: "Does the Device support Enhanced Commissioning Method (ECM)?" + id: CADMIN.S.C0000 + + - label: "Does the Device support Basic Commissioning Method (BCM)?" + id: CADMIN.S.C0001 + + - label: "Does the Device support revoking commissioning window?" + id: CADMIN.S.C0002 + + - label: "Does the Device implement receiving the RemoveFabric command?" + id: OPCREDS.S.C0a.Rsp + #attributes + - label: "Does the Device support Fabrics attribute?" + id: OPCREDS.S.A0001 + + - label: "Does the Device support NodeLabel attribute?" + id: BINFO.S.A0005 + + - label: "Does the Device support WindowStatus attribute?" + id: CADMIN.S.A0000 + + #client + - label: "Does the Device support Enhanced Commissioning Method (ECM)?" + id: CADMIN.C.C0000 + + - label: "Does the Device support Basic Commissioning Method (BCM)?" + id: CADMIN.C.C0001 + + - label: "Does the Device support revoking commissioning window?" + id: CADMIN.C.C0002 + + - label: "Does the Device implement receiving the RemoveFabric command?" + id: OPCREDS.C.C0a.Tx + #attributes + - label: "Does the Device support Fabrics attribute?" + id: OPCREDS.C.A0001 + + - label: "Does the Device support NodeLabel attribute?" + id: BINFO.C.A0005 + + - label: "Does the Device support WindowStatus attribute?" + id: CADMIN.C.A0000 + #User Label cluster - label: "Does the DUT Server support LabelList attribute?" id: ULABEL.S.A0000 @@ -1790,6 +1839,11 @@ PICS: feature?" id: MEDIAINPUT.S.NU + - label: + "Does the DUT support the Media Input server cluster Name Updates + feature?" + id: MC_MEDIAINPUT.S.NU + - label: "Does the DUT support the Channel server cluster Channel List feature?" id: CHANNEL.S.CL @@ -4425,6 +4479,7 @@ PICS: - label: "Does the DUT support the AccessControlExtensionChanged Event?" id: ACL.S.E01 + #Mode select #Mode select - label: "Does the DUT support the StartUpMode attribute?" id: MOD.S.A0004 diff --git a/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_5.yaml b/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_5.yaml index 12de89cfc91e9a..8e73bb328e24db 100644 --- a/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_5.yaml @@ -29,22 +29,11 @@ tests: value: nodeId # Issue 13029 + #this step implicitly validating the attribute(CatalogList)constraints, as long as the payload is being parsed successfully - label: "TH reads CatalogList attribute from the DUT and where each entry in the list is a CSA-issued Vendor Id of type unsigned 16 bit integer ranging between 0-65536 for the catalog" - verification: | - ./chip-tool applicationlauncher read catalog-list 1 1 - [1651053952.328482][155084:155089] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050C Attribute 0x0000_0000 DataVersion: 3275104958 - [1651053952.328551][155084:155089] CHIP:TOO: CatalogList: 2 entries - [1651053952.328589][155084:155089] CHIP:TOO: [1]: 123 - [1651053952.328620][155084:155089] CHIP:TOO: [2]: 456 - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && APPLAUNCHER.S.A0000 - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + PICS: APPLAUNCHER.S.A0000 + command: "readAttribute" + attribute: "CatalogList" diff --git a/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_6.yaml b/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_6.yaml index 80534c4abf09cd..d959f984c35224 100644 --- a/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_6.yaml @@ -29,22 +29,12 @@ tests: value: nodeId # Issue 13029 + #this step implicitly validating the attribute(CurrentApp)constraints, as long as the payload is being parsed successfully - label: "TH reads CurrentApp attribute from the DUT and Verify the in-focus application attributes, which should include the display Application ID(type:uint16) Catalog Vendor ID(type:string) or Null if there is no current in-focus application" - verification: | - ./chip-tool applicationlauncher read current-app 1 1 - [1653909423.450195][16364:16369] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050C Attribute 0x0000_0001 DataVersion: 2386582479 - [1653909423.450227][16364:16369] CHIP:TOO: CurrentApp: null - [1653909423.450318][16364:16369] CHIP:EM: Sending Standalone Ack for MessageCounter:2071603 on exchange 4134i - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && APPLAUNCHER.S.A0001 - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + PICS: APPLAUNCHER.S.A0001 + command: "readAttribute" + attribute: "CurrentApp" diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml index 316b44e10edd3a..1d715f98b29ea2 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml @@ -33,6 +33,5 @@ tests: command: "readAttribute" attribute: "StateValue" response: - value: 0 constraints: type: bool diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml index c3c257f124174e..7a80f06e00905f 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml @@ -14,7 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.1. [TC-CADMIN-1.1] Administrator Behavior using ECM [DUT -Commissioner] + 24.1.1. [TC-CADMIN-1.1] Administrator Behavior using ECM [DUT - + Commissioner] config: nodeId: 0x12344321 @@ -24,13 +25,15 @@ config: tests: - label: "TH_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using 1st controller chip-tool on the raspi (use above instructions)" + "1. Provision the device using 1st controller chip-tool on the raspi (use above instructions) + " disabled: true - label: - "TH_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM (Enhanced Commissioning - Method)." + "TH_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM + (Enhanced Commissioning Method)" + PICS: CADMIN.C.C0000 verification: | On 1st controller using chip tool, open commissioning window using ECM @@ -59,20 +62,21 @@ tests: [1635687658.687201][3792:3792] CHIP:DIS: Broadcasting mDns reply for query from 192.168.0.225 disabled: true - - label: "TH_CR1 reads the list of Fabrics on TH_CE" + - label: "TH_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On 1st controller using chip tool read fabricList ./chip-tool operationalcredentials read fabrics 1 0 --fabric-filtered 0 - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3621507058 + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3621507058 [1649245801.244173][10091:10096] CHIP:TOO: Fabrics: 1 entries [1649245801.244305][10091:10096] CHIP:TOO: [1]: { [1649245801.244348][10091:10096] CHIP:TOO: RootPublicKey: 045541017FCEFD0D83963C9ED7F21380C6B789EB989B5D20DC318FAE92D60D0F685666505E9C4F86C49ADC71AB3A8B9B44FD43214CF9BE2B6D47DE01F28FE1544F [1649245801.244400][10091:10096] CHIP:TOO: VendorId: 65521 [1649245801.244431][10091:10096] CHIP:TOO: FabricId: 1 [1649245801.244461][10091:10096] CHIP:TOO: NodeId: 1 - [1649245801.244491][10091:10096] CHIP:TOO: Label: + [1649245801.244491][10091:10096] CHIP:TOO: Label: [1649245801.244521][10091:10096] CHIP:TOO: FabricIndex: 1 [1649245801.244552][10091:10096] CHIP:TOO: } [1649245801.244671][10091:10096] CHIP:EM: Sending Standalone Ack for MessageCounter:8407998 on exchange 12989i @@ -80,18 +84,38 @@ tests: - label: "DUT_CR2 starts a commissioning process with TH_CE" verification: | - On 2nd controller, using chip-tool connect using manual code. + On 2nd controller, using chip-tool connect using manual code. Below is the example when using chip tool as controller (considering 35998938564 as the manual code generated by 1st controller) ./chip-tool pairing code 2 35998938564 - Verify whether you got below message in the log of TH + Verify whether you got below message in the log of TH Device commissioning completed with success disabled: true + - label: "Verify TH_CE is now discoverable over DNS-SD with two SRV Records" + verification: | + On the raspi , Verify if the DUT is broadcasting using + + ubuntu@ubuntu:~/may10_cntrl2/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matter._tcp + + eth0 IPv6 E0AF53B23E580769-0000000000000002 _matter._tcp local + + eth0 IPv6 7FF84D214A19B581-0000000000000001 _matter._tcp local + = eth0 IPv6 E0AF53B23E580769-0000000000000002 _matter._tcp local + hostname = [E45F010F3BAF0000.local] + address = [fe80::e65f:1ff:fe0f:3baf] + port = [5540] + txt = ["T=1" "CRA=300" "CRI=5000"] + = eth0 IPv6 7FF84D214A19B581-0000000000000001 _matter._tcp local + hostname = [E45F010F3BAF0000.local] + address = [fe80::e65f:1ff:fe0f:3baf] + port = [5540] + txt = ["T=1" "CRA=300" "CRI=5000"] + disabled: true + - label: - "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR2 sends command to TH_CE to write and read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE @@ -111,16 +135,16 @@ tests: [1649671460.431347][20958:20963] CHIP:DMG: Cluster = 0x28, [1649671460.431364][20958:20963] CHIP:DMG: Attribute = 0x0000_0005, [1649671460.431380][20958:20963] CHIP:DMG: } - [1649671460.431403][20958:20963] CHIP:DMG: + [1649671460.431403][20958:20963] CHIP:DMG: [1649671460.431422][20958:20963] CHIP:DMG: StatusIB = [1649671460.431445][20958:20963] CHIP:DMG: { [1649671460.431467][20958:20963] CHIP:DMG: status = 0x00 (SUCCESS), [1649671460.431488][20958:20963] CHIP:DMG: }, - [1649671460.431511][20958:20963] CHIP:DMG: + [1649671460.431511][20958:20963] CHIP:DMG: [1649671460.431530][20958:20963] CHIP:DMG: }, - [1649671460.431556][20958:20963] CHIP:DMG: + [1649671460.431556][20958:20963] CHIP:DMG: [1649671460.431570][20958:20963] CHIP:DMG: ], - [1649671460.431593][20958:20963] CHIP:DMG: + [1649671460.431593][20958:20963] CHIP:DMG: [1649671460.431607][20958:20963] CHIP:DMG: InteractionModelRevision = 1 [1649671460.431620][20958:20963] CHIP:DMG: } [1649671460.431685][20958:20963] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -147,15 +171,15 @@ tests: [1649671466.310367][20969:20974] CHIP:DMG: Cluster = 0x28, [1649671466.310380][20969:20974] CHIP:DMG: Attribute = 0x0000_0005, [1649671466.310391][20969:20974] CHIP:DMG: } - [1649671466.310405][20969:20974] CHIP:DMG: - [1649671466.310420][20969:20974] CHIP:DMG: Data = "te8", + [1649671466.310405][20969:20974] CHIP:DMG: + [1649671466.310420][20969:20974] CHIP:DMG: Data = "te8", [1649671466.310432][20969:20974] CHIP:DMG: }, - [1649671466.310446][20969:20974] CHIP:DMG: + [1649671466.310446][20969:20974] CHIP:DMG: [1649671466.310457][20969:20974] CHIP:DMG: }, - [1649671466.310471][20969:20974] CHIP:DMG: + [1649671466.310471][20969:20974] CHIP:DMG: [1649671466.310481][20969:20974] CHIP:DMG: ], - [1649671466.310497][20969:20974] CHIP:DMG: - [1649671466.310508][20969:20974] CHIP:DMG: SuppressResponse = true, + [1649671466.310497][20969:20974] CHIP:DMG: + [1649671466.310508][20969:20974] CHIP:DMG: SuppressResponse = true, [1649671466.310518][20969:20974] CHIP:DMG: InteractionModelRevision = 1 [1649671466.310528][20969:20974] CHIP:DMG: } [1649671466.310629][20969:20974] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3582043624 @@ -163,7 +187,8 @@ tests: [1649671466.310704][20969:20974] CHIP:EM: Sending Standalone Ack for MessageCounter:15357338 on exchange 20724i disabled: true - - label: "DUT_CR2 reads the list of Fabrics on TH_CE" + - label: "DUT_CR2 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On your DUT controller read fabricList @@ -179,7 +204,7 @@ tests: [1649245825.315436][10098:10103] CHIP:TOO: VendorId: 65521 [1649245825.315479][10098:10103] CHIP:TOO: FabricId: 1 [1649245825.315518][10098:10103] CHIP:TOO: NodeId: 1 - [1649245825.315557][10098:10103] CHIP:TOO: Label: + [1649245825.315557][10098:10103] CHIP:TOO: Label: [1649245825.315596][10098:10103] CHIP:TOO: FabricIndex: 1 [1649245825.315637][10098:10103] CHIP:TOO: } [1649245825.315697][10098:10103] CHIP:TOO: [2]: { @@ -187,14 +212,15 @@ tests: [1649245825.315789][10098:10103] CHIP:TOO: VendorId: 65521 [1649245825.315830][10098:10103] CHIP:TOO: FabricId: 1 [1649245825.315870][10098:10103] CHIP:TOO: NodeId: 2 - [1649245825.315908][10098:10103] CHIP:TOO: Label: + [1649245825.315908][10098:10103] CHIP:TOO: Label: [1649245825.315947][10098:10103] CHIP:TOO: FabricIndex: 2 [1649245825.315986][10098:10103] CHIP:TOO: } disabled: true - label: - "TH_CR1 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE using CASE" + "TH_CR1 sends command to TH_CE to write and read the Basic Information + Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | On 1st controller using chip tool, write attribute and read attribute @@ -213,16 +239,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -237,8 +263,9 @@ tests: disabled: true - label: - "DUT_CR2 reads, writes and then reads the Basic Information Clusters - NodeLabel mandatory attribute of TH_CE" + "DUT_CR2 sends command to TH_CE to read, write and then read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller, read, write attribute and then read attribute to and from TH_CE @@ -265,16 +292,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -294,9 +321,10 @@ tests: disabled: true - label: - "DUT_CR2 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM (Enhanced Commissioning - Method)" + "DUT_CR2 sends command to TH_CE to open a commissioning window using a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM + (Enhanced Commissioning Method)" + PICS: CADMIN.C.C0000 verification: | 1. Using your DUT controller open commissioning window using ECM @@ -314,8 +342,9 @@ tests: disabled: true - label: - "DUT_CR2 revokes the commissioning window on TH_CE using the Revoke - Commissioning command" + "DUT_CR2 sends command to TH_CE to revoke the commissioning window + using the Revoke Commissioning command" + PICS: CADMIN.C.C0002 verification: | On your DUT controller, run revoke command @@ -326,7 +355,7 @@ tests: CHIP: [DMG] InvokeResponseMessage = [1648115245106] [6681:3894448] CHIP: [DMG] { - [1648115245106] [6681:3894448] CHIP: [DMG] suppressResponse = false, + [1648115245106] [6681:3894448] CHIP: [DMG] suppressResponse = false, [1648115245106] [6681:3894448] CHIP: [DMG] InvokeResponseIBs = [1648115245106] [6681:3894448] CHIP: [DMG] [ [1648115245106] [6681:3894448] CHIP: [DMG] InvokeResponseIB = @@ -339,18 +368,18 @@ tests: [1648115245106] [6681:3894448] CHIP: [DMG] ClusterId = 0x3c, [1648115245106] [6681:3894448] CHIP: [DMG] CommandId = 0x2, [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] StatusIB = [1648115245106] [6681:3894448] CHIP: [DMG] { [1648115245106] [6681:3894448] CHIP: [DMG] status = 0x0, [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] ], - [1648115245107] [6681:3894448] CHIP: [DMG] + [1648115245107] [6681:3894448] CHIP: [DMG] [1648115245107] [6681:3894448] CHIP: [DMG] InteractionModelRevision = 1 [1648115245107] [6681:3894448] CHIP: [DMG] }, [1648115245107] [6681:3894448] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 @@ -360,8 +389,8 @@ tests: "TH_CR3 attempts to execute a PASE to starts a commissioning process with TH_CE" verification: | - On 3rd controller using chip-tool connect using manual code generated from 1st controller. This attempt should fail, i.e - ./chip-tool pairing code 1 34995354639 + On 3rd controller using chip-tool connect using manual code generated from 1st controller. This attempt should fail, i.e + ./chip-tool pairing code 1 34995354639 verify you got the following message in the TH log CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 @@ -370,8 +399,9 @@ tests: disabled: true - label: - "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR2 sends command to TH_CE to write and read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE @@ -391,16 +421,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -414,7 +444,10 @@ tests: [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - - label: "DUT_CR2 opens a commissioning window on TH_CE using ECM" + - label: + "DUT_CR2 sends command to TH_CE to open a commissioning window using + ECM" + PICS: CADMIN.C.C0000 verification: | 1. Using your DUT controller open commissioning window using ECM @@ -437,7 +470,10 @@ tests: Wait for the timeout of commissioning window in the above step disabled: true - - label: "DUT_CR2 opens a commissioning window on TH_CE using ECM" + - label: + "DUT_CR2 sends command to TH_CE to open a commissioning window using + ECM" + PICS: CADMIN.C.C0000 verification: | 1. Using your DUT controller open commissioning window using ECM @@ -458,7 +494,7 @@ tests: "TH_CR1 starts a commissioning process with TH_CE before the timeout from step 15" verification: | - On 1st controller, using chip-tool connect using manual code. + On 1st controller, using chip-tool connect using manual code. Below is the example when using chip tool as controller (considering 34995354639 as the manual code generated by DUT) ./chip-tool pairing code 2 34995354639 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_10.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_10.yaml index 69464c576476b9..f2d209221b7a1a 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_10.yaml @@ -51,6 +51,7 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" + PICS: CADMIN.S.C0000 timedInteractionTimeoutMs: 10000 arguments: values: @@ -358,7 +359,7 @@ tests: error: FAILURE - label: - "TH_CR2 starts a commissioning process with DUT_CE using Invalid setup + "TH_CR2 starts a commissioning process with DUT_CE using valid setup code" identity: "beta" cluster: "CommissionerCommands" @@ -368,7 +369,7 @@ tests: - name: "nodeId" value: nodeId2 - name: "payload" - value: payload2 + value: payload response: error: FAILURE diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml index a465349e4d9323..7729b470a1a9d6 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.11. [TC-CADMIN-1.11] Device exits commissioning mode after 20 failed - commission attempts [ECM] [DUT - Commissioner] + 24.1.11. [TC-CADMIN-1.11] Open commissioning window on DUT twice using ECM + then BCM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,19 +24,18 @@ config: tests: - label: "TH_CR2 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) , " + "1. Provision the device using 2nd controller chip tool on the raspi (use above instructions)" disabled: true - label: - "TH_CR2 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "TH_CR2 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On the 2nd controller using chip tool, open commissioning window using ECM - ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 + ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 Controller: @@ -65,11 +64,12 @@ tests: disabled: true - label: - "Set up a DUT_CR1 to start attempting to do PASE to TH_CE and failing - 20 times. This can be done using an invalid passcode" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration set in step 2, set + up a DUT_CR1 to start attempting to do PASE to TH_CE and failing 20 + times. This can be done using a valid onboarding payload with an + incorrect setupcode" verification: | - 1. On 2nd controller using chip-tool connect using wrong manual code. Repeat the step for 20 times. + 1. On 2nd controller using chip-tool connect using wrong manual code. Repeat the step for 20 times. ./chip-tool pairing code 1 36177160938 --timeout 3 (With wrong manual code) @@ -80,11 +80,11 @@ tests: disabled: true - label: - "DUT_CR1 starts a 21st commissioning process using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration set in step 2, + DUT_CR1 attempts to do PASE to DUT_CE using the correct onboarding + payload" verification: | - 1. On 2nd controller using chip tool connect using correct passcode. + 1. On 2nd controller using chip tool connect using correct passcode. ./chip-tool pairing code 1 36177160937 (correct passcode) @@ -97,9 +97,9 @@ tests: - label: "TH_CR3 starts a commissioning process with TH_CE using the correct PAKEVerifier" - PICS: PICS_MF + PICS: CADMIN.C.C0000 verification: | - 1. On 3rdd controller using chip-tool connect using correct passcode + 1. On 3rdd controller using chip-tool connect using correct passcode ./chip-tool pairing code 1 36177160938 (With wrong manual code) diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml index a73d2f8bbcbffe..9cb22bc6901d63 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.12. [TC-CADMIN-1.12] Device exits commissioning mode after 20 failed - commission attempts [BCM] [DUT - Commissioner] + 24.1.12. [TC-CADMIN-1.12] Open commissioning window on DUT twice using ECM + then BCM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,24 +24,23 @@ config: tests: - label: "TH_CR2 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | "1. Provision the device using 2nd controller chip tool on the raspi (use above instructions) disabled: true - label: - "TH_CR2 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "TH_CR2 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On the 2nd controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -54,18 +53,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -73,11 +72,12 @@ tests: disabled: true - label: - "Set up a DUT_CR1 to start attempting to do PASE to TH_CE and failing - 20 times. This can be done using an invalid passcode" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration set in step 2, set + up a DUT_CR1 to start attempting to do PASE to TH_CE and failing 20 + times. This can be done using a valid onboarding payload with an + incorrect setupcode" verification: | - On 2nd controller, using chip-tool connect using wrong passcode. Repeat the step for 20 times. + On 2nd controller, using chip-tool connect using wrong passcode. Repeat the step for 20 times. ./chip-tool pairing onnetwork 1 20202019 --timeout 3 (With wrong passcode) @@ -88,11 +88,11 @@ tests: disabled: true - label: - "DUT_CR1 starts a 21st commissioning process using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration set in step 2, + DUT_CR1 attempts to do PASE to DUT_CE using the correct onboarding + payload" verification: | - On 2nd controller, using chip tool connect using correct passcode. + On 2nd controller, using chip tool connect using correct passcode. ./chip-tool pairing onnetwork 1 20202021 (correct passcode) @@ -105,9 +105,9 @@ tests: - label: "TH_CR3 starts a commissioning process with TH_CE using the correct PAKEVerifier" - PICS: PICS_MF + PICS: CADMIN.C.C0001 verification: | - 1. On 3rd controller using chip-tool connect using correct passcode + 1. On 3rd controller using chip-tool connect using correct passcode ./chip-tool pairing onnetwork 1 20202021 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml index 252c124dad8961..52b49cf9e4605d 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.13. [TC-CADMIN-1.13] Open commissioning window on DUT twice using ECM - then BCM [DUT - Commissionee] + 24.1.13. [TC-CADMIN-1.13] Open commissioning window twice on DUT using BCM + then ECM [DUT - Commissionee] config: nodeId: 0x12344321 @@ -24,15 +24,15 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | - "1. Provision the device using 1st controller chip tool on the raspi (use above instructions) ," + "1. Provision the device using 1st controller chip tool on the raspi (use above instructions) , + " disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | On the 1st controller using chip tool, open commissioning window using ECM @@ -70,7 +70,6 @@ tests: disabled: true - label: "TH_CR3 Commissions with DUT_CE" - PICS: PICS_MF verification: | 1. On 3rd controller using chip tool connect using manual code @@ -82,9 +81,9 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM and TH_CR2 Commissions - with DUT_CE" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM and TH_CR2 + Commissions with DUT_CE" + PICS: CADMIN.S.C0000 verification: | On the 1st controller using chip tool, open commissioning window using ECM @@ -113,8 +112,8 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | On the 1st controller using chip tool, open commissioning window using ECM @@ -134,10 +133,10 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds which was set in step - 5, TH_CR1 opens a 2nd commissioning window on DUT_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds which was + set in step 5, TH_CR1 opens a 2nd commissioning window on DUT_CE using + a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | Before the timer expiry, on the 1st controller using chip tool, open commissioning window using ECM. Verify the General code return error 1 @@ -146,7 +145,7 @@ tests: CHIP:DMG: InvokeResponseMessage = [1650527291.952055][8566:8571] CHIP:DMG: { - [1650527291.952074][8566:8571] CHIP:DMG: suppressResponse = false, + [1650527291.952074][8566:8571] CHIP:DMG: suppressResponse = false, [1650527291.952091][8566:8571] CHIP:DMG: InvokeResponseIBs = [1650527291.952116][8566:8571] CHIP:DMG: [ [1650527291.952134][8566:8571] CHIP:DMG: InvokeResponseIB = @@ -159,19 +158,19 @@ tests: [1650527291.952334][8566:8571] CHIP:DMG: ClusterId = 0x3c, [1650527291.952369][8566:8571] CHIP:DMG: CommandId = 0x0, [1650527291.952394][8566:8571] CHIP:DMG: }, - [1650527291.952431][8566:8571] CHIP:DMG: + [1650527291.952431][8566:8571] CHIP:DMG: [1650527291.952458][8566:8571] CHIP:DMG: StatusIB = [1650527291.952488][8566:8571] CHIP:DMG: { [1650527291.952519][8566:8571] CHIP:DMG: status = 0x01 (FAILURE), [1650527291.952555][8566:8571] CHIP:DMG: cluster-status = 0x1, [1650527291.952578][8566:8571] CHIP:DMG: }, - [1650527291.952612][8566:8571] CHIP:DMG: + [1650527291.952612][8566:8571] CHIP:DMG: [1650527291.952634][8566:8571] CHIP:DMG: }, - [1650527291.952671][8566:8571] CHIP:DMG: + [1650527291.952671][8566:8571] CHIP:DMG: [1650527291.952694][8566:8571] CHIP:DMG: }, - [1650527291.952731][8566:8571] CHIP:DMG: + [1650527291.952731][8566:8571] CHIP:DMG: [1650527291.952751][8566:8571] CHIP:DMG: ], - [1650527291.952781][8566:8571] CHIP:DMG: + [1650527291.952781][8566:8571] CHIP:DMG: [1650527291.952795][8566:8571] CHIP:DMG: InteractionModelRevision = 1 [1650527291.952807][8566:8571] CHIP:DMG: }, [1650527291.952886][8566:8571] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x1 @@ -179,7 +178,7 @@ tests: disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF && PICS_MF_BCM + PICS: OPCREDS.S.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -192,7 +191,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -200,7 +199,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -208,31 +207,30 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: - "Wait for the expiration of PIXIT_COMM_WIN seconds that was set in - step 6" - PICS: PICS_MF + "Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that was + set in step 6" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "TH_CR1 re-opens a commissioning window on DUT_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On the 1st controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -245,18 +243,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -276,18 +274,18 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that was set in step - 10, TH_CR3 opens a 2nd commissioning window on DUT_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that was set + in step 10, TH_CR3 opens a 2nd commissioning window on DUT_CE using a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry of the above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 3 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 3 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527565.990404][24618:24623] CHIP:DMG: { - [1650527565.990476][24618:24623] CHIP:DMG: suppressResponse = false, + [1650527565.990476][24618:24623] CHIP:DMG: suppressResponse = false, [1650527565.990528][24618:24623] CHIP:DMG: InvokeResponseIBs = [1650527565.990615][24618:24623] CHIP:DMG: [ [1650527565.990667][24618:24623] CHIP:DMG: InvokeResponseIB = @@ -300,19 +298,19 @@ tests: [1650527565.991186][24618:24623] CHIP:DMG: ClusterId = 0x3c, [1650527565.991257][24618:24623] CHIP:DMG: CommandId = 0x1, [1650527565.991332][24618:24623] CHIP:DMG: }, - [1650527565.991441][24618:24623] CHIP:DMG: + [1650527565.991441][24618:24623] CHIP:DMG: [1650527565.991505][24618:24623] CHIP:DMG: StatusIB = [1650527565.991574][24618:24623] CHIP:DMG: { [1650527565.991645][24618:24623] CHIP:DMG: status = 0x01 (FAILURE), [1650527565.991743][24618:24623] CHIP:DMG: cluster-status = 0x1, [1650527565.991830][24618:24623] CHIP:DMG: }, - [1650527565.991918][24618:24623] CHIP:DMG: + [1650527565.991918][24618:24623] CHIP:DMG: [1650527565.991976][24618:24623] CHIP:DMG: }, - [1650527565.992061][24618:24623] CHIP:DMG: + [1650527565.992061][24618:24623] CHIP:DMG: [1650527565.992116][24618:24623] CHIP:DMG: }, - [1650527565.992202][24618:24623] CHIP:DMG: + [1650527565.992202][24618:24623] CHIP:DMG: [1650527565.992253][24618:24623] CHIP:DMG: ], - [1650527565.992316][24618:24623] CHIP:DMG: + [1650527565.992316][24618:24623] CHIP:DMG: [1650527565.992365][24618:24623] CHIP:DMG: InteractionModelRevision = 1 [1650527565.992414][24618:24623] CHIP:DMG: }, [1650527565.992535][24618:24623] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -320,15 +318,14 @@ tests: disabled: true - label: - "Wait for the expiration of PIXIT_COMM_WIN seconds that was set in - step 11" - PICS: PICS_MF + "Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that was + set in step 11" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -341,7 +338,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -349,7 +346,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -357,25 +354,25 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On the 1st controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -388,18 +385,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -407,18 +404,18 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that was set in step - 14, TH_CR2 opens a second commissioning window on DUT_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that was set + in step 14, TH_CR2 opens a second commissioning window on DUT_CE using + a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On the 2nd controller using chip tool, open commissioning window using BCM before timer expiry from above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -431,19 +428,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml index cbd4705c917347..43997cfb1f74e4 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.14. [TC-CADMIN-1.14] Open commissioning window on DUT twice using ECM - then BCM [DUT - Commissioner] + 24.1.14. [TC-CADMIN-1.14] Open commissioning window twice on DUT using BCM + then ECM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,17 +24,16 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using your DUT controller (use above instructions) , + "1. Provision the device using your DUT controller (use above instructions) , " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM and TH_CR3 Commissions - with TH_CE" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM and + TH_CR3 Commissions with TH_CE" + PICS: CADMIN.C.C0000 verification: | On your DUT controller, open commissioning window using ECM @@ -63,10 +62,10 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM and TH_CR2 Commissions - with TH_CE" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM and + TH_CR2 Commissions with TH_CE" + PICS: CADMIN.C.C0000 verification: | On your DUT controller, open commissioning window using ECM @@ -95,9 +94,9 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller, open commissioning window using ECM @@ -117,10 +116,11 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that was set in step - 4, DUT_CR1 opens a 2nd commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that was set + in step 4, DUT_CR1 sends command to TH_CE to open a 2nd commissioning + window with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds + using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller, open commissioning window using ECM before the timer expiry from the above step @@ -129,7 +129,7 @@ tests: CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -142,27 +142,27 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF && PICS_MF_BCM + - label: "DUT_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -175,7 +175,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -183,7 +183,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -191,34 +191,34 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: - "Wait for the expiration of PIXIT_COMM_WIN seconds that was set in - step 5" - PICS: PICS_MF + "Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that was + set in step 5" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: - "DUT_CR1 re-opens a commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to re-opens a commissioning window + with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using + BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller, open commissioning window using BCM Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -231,18 +231,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -250,21 +250,22 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that was set in step - 8, TH_CR3 opens a 2nd commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that was set + in step 8, TH_CR3 sends command to TH_CE to open a 2nd commissioning + window with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds + using BCM" + PICS: CADMIN.C.C0001 verification: | On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry from above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -277,19 +278,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -297,15 +298,14 @@ tests: disabled: true - label: - "Wait for the expiration of PIXIT_COMM_WIN seconds that was set in - step 9" - PICS: PICS_MF + "Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that was + set in step 9" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -318,7 +318,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -326,7 +326,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -334,24 +334,24 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller, open commissioning window using BCM Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -364,18 +364,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -383,21 +383,22 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that was set in step - 12, TH_CR2 opens a second commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that was set + in step 12, TH_CR2 sends command to open a second commissioning + window on TH_CE using a commissioning timeout of + PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On the 2nd controller using chip tool, open commissioning window using BCM before the timer expiry from above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -410,19 +411,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_15.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_15.yaml index 6bd999a3c175d3..662ba4083b4fb7 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_15.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_15.yaml @@ -14,7 +14,7 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.15. [TC-CADMIN-1.15] Open commissioning window twice on DUT using BCM + 24.1.13. [TC-CADMIN-1.15] Open commissioning window twice on DUT using BCM then ECM [DUT - Commissionee] config: @@ -52,6 +52,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 arguments: values: - name: "CommissioningTimeout" @@ -82,6 +83,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 arguments: values: - name: "CommissioningTimeout" @@ -112,6 +114,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 arguments: values: - name: "CommissioningTimeout" @@ -122,6 +125,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0000 arguments: values: - name: "CommissioningTimeout" @@ -143,6 +147,7 @@ tests: cluster: "Operational Credentials" attribute: "Fabrics" fabricFiltered: false + PICS: OPCREDS.S.A0001 response: value: [ @@ -166,6 +171,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0000 arguments: values: - name: "CommissioningTimeout" @@ -184,6 +190,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0000 arguments: values: - name: "CommissioningTimeout" @@ -205,6 +212,7 @@ tests: cluster: "Operational Credentials" attribute: "Fabrics" fabricFiltered: false + PICS: OPCREDS.S.A0001 response: value: [ @@ -228,6 +236,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0000 arguments: values: - name: "CommissioningTimeout" @@ -246,6 +255,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0000 arguments: values: - name: "CommissioningTimeout" diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml index cc22e85d348fab..23be3b91598705 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.16. [TC-CADMIN-1.16] Open commissioning window twice on DUT using BCM - then ECM [DUT - Commissioner] + 24.1.16. [TC-CADMIN-1.16] Removing Fabrics from DUT and Fabric index + enumeration using BCM [DUT - Commissionee] config: nodeId: 0x12344321 @@ -24,16 +24,16 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using your DUT controller (use above instructions) ," + "1. Provision the device using your DUT controller (use above instructions) , + " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM and TH_CR3 Commissions - with TH_CE" - PICS: PICS_MF && PICS_MF_BCM + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM and + TH_CR3 Commissions with TH_CE" + PICS: CADMIN.C.C0001 verification: | On your DUT controller, open commissioning window using ECM @@ -61,10 +61,10 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM and TH_CR2 Commissions - with TH_CE" - PICS: PICS_MF && PICS_MF_BCM + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM and + TH_CR2 Commissions with TH_CE" + PICS: CADMIN.C.C0001 verification: | On your DUT controller, open commissioning window using ECM @@ -90,18 +90,18 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF && PICS_MF_BCM + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller, open commissioning window using BCM Below is the example while using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -114,18 +114,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -133,10 +133,11 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that is set in step - 4, DUT_CR1 opens a 2nd commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set + in step 4, DUT_CR1 sends command to TH_CE to TH_CE to open a 2nd + commissioning window with a commissioning timeout of + PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller, open commissioning window using ECM before the timer expiry of the above step @@ -146,7 +147,7 @@ tests: CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -159,27 +160,27 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -192,7 +193,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -200,7 +201,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -208,25 +209,25 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: - "Wait for the expiration of PIXIT_COMM_WIN seconds that is set in step - 5" - PICS: PICS_MF + "Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that is + set in step 5" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: - "DUT_CR1 re-opens a commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to re-opens a commissioning window + with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using + ECM" + PICS: CADMIN.C.C0000 verification: | - On your DUT controller, open commissioning window using ECM + On your DUT controller, open commissioning window using ECM Below is the example while using chip tool as controller @@ -245,19 +246,20 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that is set in step - 8, TH_CR3 opens a 2nd commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set + in step 8, TH_CR3 sends command to TH_CE to open a 2nd commissioning + window with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds + using ECM" + PICS: CADMIN.C.C0000 verification: | - On the 3rd controller using chip tool, open commissioning window using ECM + On the 3rd controller using chip tool, open commissioning window using ECM ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -270,27 +272,27 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 [1650527622.376278][15824:15829] CHIP:TOO: Error: IM Error 0x00000601: Cluster-specific error: 0x01 disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -303,7 +305,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -311,7 +313,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -319,24 +321,23 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true - label: - "Wait for the expiration of PIXIT_COMM_WIN seconds that is set in step - 9" - PICS: PICS_MF + "Wait for the expiration of PIXIT.CADMIN.CwDuration seconds that is + set in step 9" verification: | Wait for the expiration of PIXIT_COMM_WIN seconds disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" verification: | - On your DUT controller, open commissioning window using ECM + On your DUT controller, open commissioning window using ECM Below is the example while using chip tool as controller @@ -355,18 +356,19 @@ tests: disabled: true - label: - "Before the expiration of PIXIT_COMM_WIN seconds that is set in step - 12, TH_CR2 opens a second commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "Before the expiration of PIXIT.CADMIN.CwDuration seconds that is set + in step 12, TH_CR2 sends command to TH_CE to open a second + commissioning window with a commissioning timeout of + PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | - On the 2nd controller using chip tool, open commissioning window using ECM + On the 2nd controller using chip tool, open commissioning window using ECM ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -379,19 +381,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml index 62d272332cdf7e..f5bb4ce45c4d50 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml @@ -15,7 +15,7 @@ name: 24.1.17. [TC-CADMIN-1.17] Removing Fabrics from DUT and Fabric index - enumeration using ECM [DUT - Commissionee] + enumeration using ECM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,21 +24,20 @@ config: tests: - label: "Reset DUT_CE to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "TH_CR1 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | - "1. Provision the device using 1st controller chip tool(use above instructions)" + "1. Provision the device using 1st controller chip tool(use above instructions) , + " disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | On 1st controller chip tool, open commissioning window @@ -58,7 +57,6 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -71,8 +69,8 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | On 1st controller chip tool, open commissioning window @@ -92,7 +90,6 @@ tests: disabled: true - label: "TH_CR3 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On 3rd controller using chip tool connect to the accessory @@ -105,7 +102,7 @@ tests: disabled: true - label: "TH_CR2 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 2nd controller using chip tool, read fabrics list @@ -118,7 +115,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -126,7 +123,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -134,14 +131,14 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i disabled: true - - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to DUT_CE" - PICS: PICS_MF + - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2command to DUT_CE" + PICS: OPCREDS.S.C0a.Rsp verification: | on 2nd controller using chip tool, remove fabric with FabricIndex=2 @@ -159,11 +156,11 @@ tests: - label: "TH_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" - PICS: PICS_MF + PICS: BINFO.S.A0005 verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -178,7 +175,7 @@ tests: disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -193,7 +190,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -201,7 +198,7 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i" @@ -209,8 +206,8 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | On 1st controller chip tool, open commissioning window @@ -230,7 +227,6 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -242,7 +238,7 @@ tests: disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 1st controller, read fabrics list @@ -257,7 +253,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -265,7 +261,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -273,7 +269,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml index 0418d83e86f9a9..650cb43d6223c7 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml @@ -15,7 +15,7 @@ name: 24.1.18. [TC-CADMIN-1.18] Removing Fabrics from DUT and Fabric index - enumeration using BCM [DUT - Commissionee] + enumeration using BCM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,29 +24,27 @@ config: tests: - label: "Reset DUT_CE to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "TH_CR1 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , " disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On 1st controller chip tool, open commissioning window - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -59,18 +57,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -78,12 +76,11 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory - ./chip-tool pairing onnetwork 1 20202021 + ./chip-tool pairing onnetwork 2 20202021 Verify you got below message Device commissioning completed with success @@ -91,15 +88,15 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On 1st controller chip tool, open commissioning window - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -112,18 +109,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -131,7 +128,6 @@ tests: disabled: true - label: "TH_CR3 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On 3rd controller using chip tool connect to the accessory @@ -144,7 +140,7 @@ tests: disabled: true - label: "TH_CR2 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 2nd controller using chip tool, read fabrics list @@ -157,7 +153,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -165,7 +161,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -173,14 +169,14 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i disabled: true - - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to DUT_CE" - PICS: PICS_MF + - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2command to DUT_CE" + PICS: OPCREDS.S.C0a.Rsp verification: | on 2nd controller using chip tool, remove fabric with FabricIndex=2 @@ -198,11 +194,11 @@ tests: - label: "TH_CR2 writes and reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" - PICS: PICS_MF + PICS: BINFO.S.A0005 verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -217,7 +213,7 @@ tests: disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 1st controller using chip tool, read fabrics list @@ -233,7 +229,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -241,7 +237,7 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i" @@ -249,17 +245,17 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On 1st controller chip tool, open commissioning window - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -272,18 +268,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -291,7 +287,6 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -303,7 +298,7 @@ tests: disabled: true - label: "TH_CR1 reads the list of Fabrics on DUT_CE" - PICS: PICS_MF + PICS: OPCREDS.S.A0001 verification: | On 1st controller, read fabrics list @@ -318,7 +313,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -326,7 +321,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -334,7 +329,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml index 4b6e6a09d52823..f934e64ee40d63 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.19. [TC-CADMIN-1.19] Removing Fabrics from DUT and Fabric index - enumeration using ECM [DUT - Commissioner] + 24.1.19. [TC-CADMIN-1.19] max number of Commissioned Fabrics and + SupportedFabrics rollover using ECM [DUT - Commissionee] config: nodeId: 0x12344321 @@ -24,21 +24,20 @@ config: tests: - label: "Reset DUT_CR1 to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "DUT_CR1 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using DUT controller chip tool(use above instructions)" + "1. Provision the device using DUT controller chip tool(use above instructions) , + " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller chip tool, open commissioning window @@ -75,7 +74,6 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -87,9 +85,9 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller chip tool, open commissioning window @@ -126,7 +124,6 @@ tests: disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On 3rd controller using chip tool connect to the accessory @@ -137,8 +134,8 @@ tests: Device commissioning completed with success disabled: true - - label: "TH_CR2 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: "TH_CR2 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On 2nd controller using chip tool, read fabrics list @@ -151,7 +148,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -159,7 +156,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -167,14 +164,14 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i disabled: true - - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to TH_CE" - PICS: PICS_MF + - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2command to TH_CE" + PICS: OPCREDS.C.C0a.Tx verification: | on 2nd controller using chip tool, remove fabric with FabricIndex=2 @@ -190,13 +187,13 @@ tests: disabled: true - label: - "TH_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" - PICS: PICS_MF + "TH_CR2 sends command to TH_CE to write and read the Basic Information + Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -210,8 +207,9 @@ tests: [1651819620.929700][4359:4364] CHIP:-: ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter at ../../commands/clusters/ModelCommand.cpp:53 disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: + "DUT_CR1 sends command to TH_CE to read the list of Fabrics on TH_CE" + PICS: OPCREDS.C.A0001 verification: | On DUT controller, read fabrics list @@ -226,7 +224,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -234,16 +232,16 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On DUT controller chip tool, open commissioning window @@ -265,7 +263,6 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -276,8 +273,9 @@ tests: Device commissioning completed with success disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: + "DUT_CR1 sends command to TH_CE to read the list of Fabrics on TH_CE" + PICS: OPCREDS.C.A0001 verification: | On DUT controller, read fabrics list @@ -292,7 +290,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -300,7 +298,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -308,7 +306,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml index 244dc818f142d1..3ab2abeedc1522 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml @@ -29,19 +29,18 @@ tests: disabled: true - label: - "If (PICS_MF_BCM) TH_CR1 opens a commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM (Basic - Commissioning Method)" + "TH_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM + (Basic Commissioning Method)" + PICS: CADMIN.C.C0001 verification: | On first controller, usinadministratorcommissioningg chip tool open commissioning window. - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 - - + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -54,25 +53,26 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - - label: "TH_CR1 reads the list of Fabrics on TH_CE" + - label: "TH_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On first controller, using chip tool read fabricList @@ -86,7 +86,7 @@ tests: [1649245801.244400][10091:10096] CHIP:TOO: VendorId: 65521 [1649245801.244431][10091:10096] CHIP:TOO: FabricId: 1 [1649245801.244461][10091:10096] CHIP:TOO: NodeId: 1 - [1649245801.244491][10091:10096] CHIP:TOO: Label: + [1649245801.244491][10091:10096] CHIP:TOO: Label: [1649245801.244521][10091:10096] CHIP:TOO: FabricIndex: 1 [1649245801.244552][10091:10096] CHIP:TOO: } [1649245801.244671][10091:10096] CHIP:EM: Sending Standalone Ack for MessageCounter:8407998 on exchange 12989i @@ -96,20 +96,40 @@ tests: verification: | Using your DUT Controller connect to the accessory. - Below is the example when using chip tool as controller + Below is the example when using chip tool as controller ./chip-tool pairing onnetwork 1 20202021 Verify you got below message Device commissioning completed with success disabled: true + - label: "Verify TH_CE is now discoverable over DNS-SD with two SRV Records" + verification: | + On the raspi , Verify if the DUT is broadcasting using + + ubuntu@ubuntu:~/may10_cntrl2/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matter._tcp + + eth0 IPv6 E0AF53B23E580769-0000000000000002 _matter._tcp local + + eth0 IPv6 7FF84D214A19B581-0000000000000001 _matter._tcp local + = eth0 IPv6 E0AF53B23E580769-0000000000000002 _matter._tcp local + hostname = [E45F010F3BAF0000.local] + address = [fe80::e65f:1ff:fe0f:3baf] + port = [5540] + txt = ["T=1" "CRA=300" "CRI=5000"] + = eth0 IPv6 7FF84D214A19B581-0000000000000001 _matter._tcp local + hostname = [E45F010F3BAF0000.local] + address = [fe80::e65f:1ff:fe0f:3baf] + port = [5540] + txt = ["T=1" "CRA=300" "CRI=5000"] + disabled: true + - label: - "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR2 sends command to TH_CE to write and read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -124,16 +144,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -145,13 +165,15 @@ tests: [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - - label: "DUT_CR2 reads the list of Fabrics on TH_CE" + - label: + "DUT_CR2 sends command to TH_CE to read the list of Fabrics on TH_CE" + PICS: OPCREDS.C.A0001 verification: | On your DUT controller read fabricList - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool operationalcredentials read fabrics 2 0 --fabric-filtered 0 - + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3229397217 [1650277071.834099][40790:40795] CHIP:TOO: Fabrics: 2 entries [1650277071.834120][40790:40795] CHIP:TOO: [1]: { @@ -159,7 +181,7 @@ tests: [1650277071.834134][40790:40795] CHIP:TOO: VendorId: 65521 [1650277071.834137][40790:40795] CHIP:TOO: FabricId: 1 [1650277071.834141][40790:40795] CHIP:TOO: NodeId: 1 - [1650277071.834147][40790:40795] CHIP:TOO: Label: + [1650277071.834147][40790:40795] CHIP:TOO: Label: [1650277071.834151][40790:40795] CHIP:TOO: FabricIndex: 1 [1650277071.834155][40790:40795] CHIP:TOO: } [1650277071.834161][40790:40795] CHIP:TOO: [2]: { @@ -167,19 +189,20 @@ tests: [1650277071.834169][40790:40795] CHIP:TOO: VendorId: 65521 [1650277071.834173][40790:40795] CHIP:TOO: FabricId: 1 [1650277071.834176][40790:40795] CHIP:TOO: NodeId: 2 - [1650277071.834179][40790:40795] CHIP:TOO: Label: + [1650277071.834179][40790:40795] CHIP:TOO: Label: [1650277071.834182][40790:40795] CHIP:TOO: FabricIndex: 2 [1650277071.834186][40790:40795] CHIP:TOO: } [1650277071.834215][40790:40795] CHIP:EM: Sending Standalone Ack for MessageCounter:15057119 on exchange 50631i disabled: true - label: - "TH_CR1 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE using CASE" + "TH_CR1 sends command to TH_CE to write and read the Basic Information + Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | On first controller, using chip-tool write attribute, Verify read attribute returns the updated value written. - ./chip-tool basic write node-label te8 1 0 + ./chip-tool basic write node-label te8 1 0 CHIP:DMG: WriteResponseMessage = [1649245940.788522][10110:10115] CHIP:DMG: { @@ -193,16 +216,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -214,14 +237,15 @@ tests: disabled: true - label: - "DUT_CR2 reads, writes and then reads the Basic Information Clusters - NodeLabel mandatory attribute of TH_CE" + "DUT_CR2 sends command to TH_CE to read, write and then read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller read, write attribute and then read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -236,16 +260,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -263,19 +287,20 @@ tests: disabled: true - label: - "DUT_CR2 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM (Basic Commissioning - Method)" + "DUT_CR2 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM + (Basic Commissioning Method)" + PICS: CADMIN.C.C0001 verification: | On your DUT controller using chip-tool open commissioning widow using BCM. - Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -288,18 +313,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -307,18 +332,19 @@ tests: disabled: true - label: - "DUT_CR2 revokes the commissioning window on TH_CE using the Revoke - Commissioning command" + "DUT_CR2 sends command to TH_CE to revoke the commissioning window + using the Revoke Commissioning command" + PICS: CADMIN.C.C0002 verification: | On your DUT controller using chip-tool run revoke command - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -331,18 +357,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -353,7 +379,7 @@ tests: "TH_CR3 attempts to execute a PASE to starts a commissioning process with TH_CE" verification: | - 1. On third controller, using chip-tool connect to the accessory. Connect attempt should fail, i.e + 1. On third controller, using chip-tool connect to the accessory. Connect attempt should fail, i.e ./chip-tool pairing onnetwork 3 20202021 verify you got the following message in the TH log @@ -363,12 +389,13 @@ tests: disabled: true - label: - "DUT_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR2 sends command to TH_CE to write and read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -383,16 +410,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -403,17 +430,20 @@ tests: [1649245950.007024][10116:10121] CHIP:EM: Sending Standalone Ack for MessageCounter:12495101 on exchange 24816i disabled: true - - label: "DUT_CR2 opens a commissioning window on TH_CE using BCM" + - label: + "DUT_CR2 sends command to TH_CE to open a commissioning window using + BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller using chip-tool open commissioning widow using BCM. - Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 180 2 0 --timedInteractionTimeoutMs 1000 + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 180 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -426,18 +456,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -450,17 +480,20 @@ tests: Wait for the timeout of commissioning window in the above step disabled: true - - label: "DUT_CR2 opens a commissioning window on TH_CE using BCM" + - label: + "DUT_CR2 sends command to TH_CE to open a commissioning window using + BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller using chip-tool open commissioning widow using BCM. - Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -473,18 +506,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -497,7 +530,7 @@ tests: verification: | Using your 1st Controller connect to the accessory. - Below is the example when using chip tool as controller + Below is the example when using chip tool as controller ./chip-tool pairing onnetwork 1 20202021 [1651786200275] [36301:315544] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml index f76e309723b91f..73162be4854e74 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.20. [TC-CADMIN-1.20] Removing Fabrics from DUT and Fabric index - enumeration using BCM [DUT - Commissioner] + 24.1.20. [TC-CADMIN-1.20] max number of Commissioned Fabrics and + SupportedFabrics rollover using BCM [DUT - Commissionee] config: nodeId: 0x12344321 @@ -24,63 +24,60 @@ config: tests: - label: "Reset DUT_CR1 to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "DUT_CR1 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using DUT controller chip tool(use above instructions) , + "1. Provision the device using DUT controller chip tool(use above instructions) , " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller chip tool, open commissioning window Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP: [DMG] InvokeResponseMessage = [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, - [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIBs = - [1648116114630] [6871:3898916] CHIP: [DMG] [ - [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIB = - [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] CommandStatusIB = - [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] CommandPathIB = - [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] EndpointId = 0x0, - [1648116114630] [6871:3898916] CHIP: [DMG] ClusterId = 0x3c, - [1648116114630] [6871:3898916] CHIP: [DMG] CommandId = 0x1, - [1648116114630] [6871:3898916] CHIP: [DMG] }, - [1648116114630] [6871:3898916] CHIP: [DMG] - [1648116114630] [6871:3898916] CHIP: [DMG] StatusIB = - [1648116114631] [6871:3898916] CHIP: [DMG] { - [1648116114631] [6871:3898916] CHIP: [DMG] status = 0x0, - [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] ], - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] InteractionModelRevision = 1 + [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, + [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIBs = + [1648116114630] [6871:3898916] CHIP: [DMG] [ + [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIB = + [1648116114630] [6871:3898916] CHIP: [DMG] { + [1648116114630] [6871:3898916] CHIP: [DMG] CommandStatusIB = + [1648116114630] [6871:3898916] CHIP: [DMG] { + [1648116114630] [6871:3898916] CHIP: [DMG] CommandPathIB = + [1648116114630] [6871:3898916] CHIP: [DMG] { + [1648116114630] [6871:3898916] CHIP: [DMG] EndpointId = 0x0, + [1648116114630] [6871:3898916] CHIP: [DMG] ClusterId = 0x3c, + [1648116114630] [6871:3898916] CHIP: [DMG] CommandId = 0x1, + [1648116114630] [6871:3898916] CHIP: [DMG] }, + [1648116114630] [6871:3898916] CHIP: [DMG] + [1648116114630] [6871:3898916] CHIP: [DMG] StatusIB = + [1648116114631] [6871:3898916] CHIP: [DMG] { + [1648116114631] [6871:3898916] CHIP: [DMG] status = 0x0, + [1648116114631] [6871:3898916] CHIP: [DMG] }, + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] }, + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] }, + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] ], + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] InteractionModelRevision = 1 [1648116114631] [6871:3898916] CHIP: [DMG] }, [1648116114631] [6871:3898916] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -92,50 +89,49 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller chip tool, open commissioning window Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP: [DMG] InvokeResponseMessage = [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, - [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIBs = - [1648116114630] [6871:3898916] CHIP: [DMG] [ - [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIB = - [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] CommandStatusIB = - [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] CommandPathIB = - [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] EndpointId = 0x0, - [1648116114630] [6871:3898916] CHIP: [DMG] ClusterId = 0x3c, - [1648116114630] [6871:3898916] CHIP: [DMG] CommandId = 0x1, - [1648116114630] [6871:3898916] CHIP: [DMG] }, - [1648116114630] [6871:3898916] CHIP: [DMG] - [1648116114630] [6871:3898916] CHIP: [DMG] StatusIB = - [1648116114631] [6871:3898916] CHIP: [DMG] { - [1648116114631] [6871:3898916] CHIP: [DMG] status = 0x0, - [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] ], - [1648116114631] [6871:3898916] CHIP: [DMG] - [1648116114631] [6871:3898916] CHIP: [DMG] InteractionModelRevision = 1 + [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, + [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIBs = + [1648116114630] [6871:3898916] CHIP: [DMG] [ + [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIB = + [1648116114630] [6871:3898916] CHIP: [DMG] { + [1648116114630] [6871:3898916] CHIP: [DMG] CommandStatusIB = + [1648116114630] [6871:3898916] CHIP: [DMG] { + [1648116114630] [6871:3898916] CHIP: [DMG] CommandPathIB = + [1648116114630] [6871:3898916] CHIP: [DMG] { + [1648116114630] [6871:3898916] CHIP: [DMG] EndpointId = 0x0, + [1648116114630] [6871:3898916] CHIP: [DMG] ClusterId = 0x3c, + [1648116114630] [6871:3898916] CHIP: [DMG] CommandId = 0x1, + [1648116114630] [6871:3898916] CHIP: [DMG] }, + [1648116114630] [6871:3898916] CHIP: [DMG] + [1648116114630] [6871:3898916] CHIP: [DMG] StatusIB = + [1648116114631] [6871:3898916] CHIP: [DMG] { + [1648116114631] [6871:3898916] CHIP: [DMG] status = 0x0, + [1648116114631] [6871:3898916] CHIP: [DMG] }, + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] }, + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] }, + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] ], + [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] InteractionModelRevision = 1 [1648116114631] [6871:3898916] CHIP: [DMG] }, [1648116114631] [6871:3898916] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 disabled: true - label: "TH_CR3 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On 3rd controller using chip tool connect to the accessory @@ -146,8 +142,9 @@ tests: Device commissioning completed with success disabled: true - - label: "TH_CR2 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: + "TH_CR2 sends command to TH_CE to read the list of Fabrics on TH_CE" + PICS: OPCREDS.C.A0001 verification: | On 2nd controller, read fabrics list @@ -162,7 +159,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -170,7 +167,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -178,15 +175,15 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i " disabled: true - - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2 command to TH_CE" - PICS: PICS_MF + - label: "TH_CR2 sends RemoveFabric with FabricIndex = 2command to TH_CE" + PICS: OPCREDS.C.C0a.Tx verification: | on 2nd controller using chip tool, remove fabric with FabricIndex=2 @@ -202,13 +199,13 @@ tests: disabled: true - label: - "TH_CR2 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" - PICS: PICS_MF + "TH_CR2 sends command to TH_CE to write and read the Basic Information + Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -222,8 +219,8 @@ tests: [1651819620.929700][4359:4364] CHIP:-: ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter at ../../commands/clusters/ModelCommand.cpp:53 disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On DUT controller, read fabrics list @@ -238,7 +235,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -246,27 +243,27 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On DUT controller chip tool, open commissioning window Below is the example when using chip tool as controller For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -279,18 +276,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -298,7 +295,6 @@ tests: disabled: true - label: "TH_CR2 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On 2nd controller using chip tool connect to the accessory @@ -309,8 +305,8 @@ tests: Device commissioning completed with success disabled: true - - label: "DUT_CR1 reads the list of Fabrics on TH_CE" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to read the list of Fabrics" + PICS: OPCREDS.C.A0001 verification: | On DUT controller, read fabrics list @@ -325,7 +321,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -333,7 +329,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -341,7 +337,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml index 8a46ef15632928..60a61b9ed5feea 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml @@ -15,7 +15,7 @@ name: 24.1.21. [TC-CADMIN-1.21] max number of Commissioned Fabrics and - SupportedFabrics rollover using ECM [DUT - Commissionee] + SupportedFabrics rollover using ECM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,21 +24,20 @@ config: tests: - label: "Reset DUT_CE to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "TH_CR1 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | - "1. Provision the device using 1st controller chip tool(use above instructions)" + "1. Provision the device using 1st controller chip tool(use above instructions) , + " disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.S.C0000 verification: | On 1st controller chip tool, open commissioning window @@ -60,7 +59,6 @@ tests: disabled: true - label: "THn starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -74,7 +72,7 @@ tests: - label: "Repeat Step 3 and Step 4 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on DUT_CE" - PICS: PICS_MF + PICS: CADMIN.S.C0000 verification: | Repeat step 3 until CommissionedFabrics=SupportedFabrics disabled: true @@ -82,7 +80,6 @@ tests: - label: "THn starts a commissioning process and opens a commissioning window with DUT_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -96,7 +93,7 @@ tests: disabled: true - label: "TH_CR1 removes FabricIndex1" - PICS: PICS_MF + PICS: OPCREDS.S.C0a.Rsp verification: | on 1st controller using chip tool, remove fabric with FabricIndex=1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml index d534e7eb920fc8..3be18d144bd2a0 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml @@ -15,7 +15,7 @@ name: 24.1.22. [TC-CADMIN-1.22] max number of Commissioned Fabrics and - SupportedFabrics rollover using BCM [DUT - Commissionee] + SupportedFabrics rollover using BCM [DUT - Commissioner] config: nodeId: 0x12344321 @@ -24,32 +24,30 @@ config: tests: - label: "Reset DUT_CE to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "TH_CR1 starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , " disabled: true - label: "TH_CR1 opens a commissioning window on DUT_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.S.C0001 verification: | On 1st controller chip tool, open commissioning window Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1649756654.928453][3385:3390] CHIP:DMG: { - [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, + [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, [1649756654.928571][3385:3390] CHIP:DMG: InvokeResponseIBs = [1649756654.928647][3385:3390] CHIP:DMG: [ [1649756654.928708][3385:3390] CHIP:DMG: InvokeResponseIB = @@ -62,18 +60,18 @@ tests: [1649756654.929284][3385:3390] CHIP:DMG: ClusterId = 0x3c, [1649756654.929376][3385:3390] CHIP:DMG: CommandId = 0x1, [1649756654.929459][3385:3390] CHIP:DMG: }, - [1649756654.929551][3385:3390] CHIP:DMG: + [1649756654.929551][3385:3390] CHIP:DMG: [1649756654.929632][3385:3390] CHIP:DMG: StatusIB = [1649756654.929720][3385:3390] CHIP:DMG: { [1649756654.929804][3385:3390] CHIP:DMG: status = 0x00 (SUCCESS), [1649756654.929878][3385:3390] CHIP:DMG: }, - [1649756654.929946][3385:3390] CHIP:DMG: + [1649756654.929946][3385:3390] CHIP:DMG: [1649756654.930017][3385:3390] CHIP:DMG: }, - [1649756654.930109][3385:3390] CHIP:DMG: + [1649756654.930109][3385:3390] CHIP:DMG: [1649756654.930176][3385:3390] CHIP:DMG: }, - [1649756654.930256][3385:3390] CHIP:DMG: + [1649756654.930256][3385:3390] CHIP:DMG: [1649756654.930314][3385:3390] CHIP:DMG: ], - [1649756654.930389][3385:3390] CHIP:DMG: + [1649756654.930389][3385:3390] CHIP:DMG: [1649756654.930448][3385:3390] CHIP:DMG: InteractionModelRevision = 1 [1649756654.930555][3385:3390] CHIP:DMG: }, [1649756654.930703][3385:3390] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -81,7 +79,6 @@ tests: disabled: true - label: "THn starts a commissioning process with DUT_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -95,7 +92,7 @@ tests: - label: "Repeat Step 3 and Step 4 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on DUT_CE" - PICS: PICS_MF + PICS: CADMIN.S.C0001 verification: | Repeat step 3 until CommissionedFabrics=SupportedFabrics disabled: true @@ -103,7 +100,7 @@ tests: - label: "THn starts a commissioning process and opens a commissioning window with DUT_CE" - PICS: PICS_MF + PICS: CADMIN.S.C0001 verification: | On nth controller using chip tool connect to the accessory @@ -117,7 +114,7 @@ tests: disabled: true - label: "TH_CR1 removes FabricIndex1" - PICS: PICS_MF + PICS: OPCREDS.S.C0a.Rsp verification: | on 1st controller using chip tool, remove fabric with FabricIndex=1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml index d8cba537169fff..2762790cb08dd6 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.23. [TC-CADMIN-1.23] max number of Commissioned Fabrics and - SupportedFabrics rollover using ECM [DUT - Commissioner] + 24.1.23. [TC-CADMIN-1.23] Open commissioning window - durations max and + max+1 [BCM] [DUT - Commissionee] config: nodeId: 0x12344321 @@ -24,21 +24,20 @@ config: tests: - label: "Reset DUT_CR1 to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "DUT_CR1 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using your DUT controller(use above instructions)" + "1. Provision the device using your DUT controller(use above instructions) , + " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller chip tool, open commissioning window @@ -60,7 +59,6 @@ tests: disabled: true - label: "THn starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -74,13 +72,12 @@ tests: - label: "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE" - PICS: PICS_MF + PICS: CADMIN.C.C0000 verification: | Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE disabled: true - label: "THn starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -93,8 +90,8 @@ tests: [1649756670.402241][10794:10799] CHIP:CTL: Failed to perform commissioning step 12 disabled: true - - label: "DUT_CR1 removes FabricIndex1" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to remove FabricIndex1" + PICS: OPCREDS.C.C0a.Tx verification: | on your DUT controller, remove fabric with FabricIndex=1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml index 030414e2a6156e..0f73414601dd7d 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml @@ -14,8 +14,8 @@ # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default name: - 24.1.24. [TC-CADMIN-1.24] max number of Commissioned Fabrics and - SupportedFabrics rollover using BCM [DUT - Commissioner] + 24.1.24. [TC-CADMIN-1.24] Open commissioning window - durations max and + max+1 [ECM] [DUT - Commissionee] config: nodeId: 0x12344321 @@ -24,65 +24,62 @@ config: tests: - label: "Reset DUT_CR1 to factory defaults" - PICS: PICS_MF verification: | disabled: true - label: "DUT_CR1 starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | - "1. Provision the device using your DUT controller(use above instructions) , + "1. Provision the device using your DUT controller(use above instructions) , " disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" - PICS: PICS_MF + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller chip tool, open commissioning window Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 [CHIP:DMG: InvokeResponseMessage = [1649756654.928453][3385:3390] CHIP:DMG: { - [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, - [1649756654.928571][3385:3390] CHIP:DMG: InvokeResponseIBs = - [1649756654.928647][3385:3390] CHIP:DMG: [ - [1649756654.928708][3385:3390] CHIP:DMG: InvokeResponseIB = - [1649756654.928794][3385:3390] CHIP:DMG: { - [1649756654.928864][3385:3390] CHIP:DMG: CommandStatusIB = - [1649756654.928948][3385:3390] CHIP:DMG: { - [1649756654.929021][3385:3390] CHIP:DMG: CommandPathIB = - [1649756654.929109][3385:3390] CHIP:DMG: { - [1649756654.929191][3385:3390] CHIP:DMG: EndpointId = 0x0, - [1649756654.929284][3385:3390] CHIP:DMG: ClusterId = 0x3c, - [1649756654.929376][3385:3390] CHIP:DMG: CommandId = 0x1, - [1649756654.929459][3385:3390] CHIP:DMG: }, - [1649756654.929551][3385:3390] CHIP:DMG: - [1649756654.929632][3385:3390] CHIP:DMG: StatusIB = - [1649756654.929720][3385:3390] CHIP:DMG: { - [1649756654.929804][3385:3390] CHIP:DMG: status = 0x00 (SUCCESS), - [1649756654.929878][3385:3390] CHIP:DMG: }, - [1649756654.929946][3385:3390] CHIP:DMG: - [1649756654.930017][3385:3390] CHIP:DMG: }, - [1649756654.930109][3385:3390] CHIP:DMG: - [1649756654.930176][3385:3390] CHIP:DMG: }, - [1649756654.930256][3385:3390] CHIP:DMG: - [1649756654.930314][3385:3390] CHIP:DMG: ], - [1649756654.930389][3385:3390] CHIP:DMG: - [1649756654.930448][3385:3390] CHIP:DMG: InteractionModelRevision = 1 + [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, + [1649756654.928571][3385:3390] CHIP:DMG: InvokeResponseIBs = + [1649756654.928647][3385:3390] CHIP:DMG: [ + [1649756654.928708][3385:3390] CHIP:DMG: InvokeResponseIB = + [1649756654.928794][3385:3390] CHIP:DMG: { + [1649756654.928864][3385:3390] CHIP:DMG: CommandStatusIB = + [1649756654.928948][3385:3390] CHIP:DMG: { + [1649756654.929021][3385:3390] CHIP:DMG: CommandPathIB = + [1649756654.929109][3385:3390] CHIP:DMG: { + [1649756654.929191][3385:3390] CHIP:DMG: EndpointId = 0x0, + [1649756654.929284][3385:3390] CHIP:DMG: ClusterId = 0x3c, + [1649756654.929376][3385:3390] CHIP:DMG: CommandId = 0x1, + [1649756654.929459][3385:3390] CHIP:DMG: }, + [1649756654.929551][3385:3390] CHIP:DMG: + [1649756654.929632][3385:3390] CHIP:DMG: StatusIB = + [1649756654.929720][3385:3390] CHIP:DMG: { + [1649756654.929804][3385:3390] CHIP:DMG: status = 0x00 (SUCCESS), + [1649756654.929878][3385:3390] CHIP:DMG: }, + [1649756654.929946][3385:3390] CHIP:DMG: + [1649756654.930017][3385:3390] CHIP:DMG: }, + [1649756654.930109][3385:3390] CHIP:DMG: + [1649756654.930176][3385:3390] CHIP:DMG: }, + [1649756654.930256][3385:3390] CHIP:DMG: + [1649756654.930314][3385:3390] CHIP:DMG: ], + [1649756654.930389][3385:3390] CHIP:DMG: + [1649756654.930448][3385:3390] CHIP:DMG: InteractionModelRevision = 1 [1649756654.930555][3385:3390] CHIP:DMG: }, [1649756654.930703][3385:3390] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 [1649756654.930801][3385:3390] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - label: "THn starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -96,13 +93,12 @@ tests: - label: "Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE" - PICS: PICS_MF + PICS: CADMIN.C.C0001 verification: | Repeat Step 3 an additional (SupportedFabrics - 2) times to reach an index value of SupportedFabrics on TH_CE disabled: true - label: "THn starts a commissioning process with TH_CE" - PICS: PICS_MF verification: | On nth controller using chip tool connect to the accessory @@ -115,8 +111,8 @@ tests: [1649756670.402241][10794:10799] CHIP:CTL: Failed to perform commissioning step 12 disabled: true - - label: "DUT_CR1 removes FabricIndex1" - PICS: PICS_MF + - label: "DUT_CR1 sends command to TH_CE to remove FabricIndex1" + PICS: OPCREDS.C.C0a.Tx verification: | on your DUT controller, remove fabric with FabricIndex=1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_25.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_25.yaml index 9f1ce243eecdce..cc8880bab94dd5 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_25.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_25.yaml @@ -11,118 +11,83 @@ # 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: - 24.1.25. [TC-CADMIN-1.25] Open commissioning window - durations max and - max+1 [BCM] [DUT - Commissionee] + 24.1.25. [TC-CADMIN-1.25] Open commissioning window - durations min and + min-1 [BCM] [DUT - Commissionee] config: nodeId: 0x12344321 - cluster: "Basic" + timeout: 330 endpoint: 0 tests: - - label: "Reset DUT_CE to factory defaults" - PICS: PICS_MF - verification: | - - disabled: true - - - label: "TH_CR1 starts a commissioning process with DUT_CE using BCM" - PICS: PICS_MF - verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , - " - disabled: true - - - label: - "TH_CR1 opens a commissioning window on DUT_CE with a value of 900 - seconds" - PICS: PICS_MF - verification: | - On 1st controller chip tool, open commissioning window - - For BCM, - - - ./chip-tool administratorcommissioning open-basic-commissioning-window 900 2 0 --timedInteractionTimeoutMs 1000 - + - label: "Factory Reset the DUT_CE" + PICS: PICS_SDK_CI_ONLY + cluster: "SystemCommands" + command: "FactoryReset" - CHIP:DMG: InvokeResponseMessage = - [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, - [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = - [1650278416.248570][11064:11069] CHIP:DMG: [ - [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = - [1650278416.248718][11064:11069] CHIP:DMG: { - [1650278416.248783][11064:11069] CHIP:DMG: CommandStatusIB = - [1650278416.248860][11064:11069] CHIP:DMG: { - [1650278416.248931][11064:11069] CHIP:DMG: CommandPathIB = - [1650278416.249011][11064:11069] CHIP:DMG: { - [1650278416.249100][11064:11069] CHIP:DMG: EndpointId = 0x0, - [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, - [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, - [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: - [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = - [1650278416.249581][11064:11069] CHIP:DMG: { - [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), - [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: - [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: - [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: - [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: - [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 - [1650278416.250355][11064:11069] CHIP:DMG: }, - [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 - [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true - - - label: "Wait for commissioning Window to 901 seconds" - PICS: PICS_MF + - label: "Factory Reset the DUT_CE" verification: | - Wait for commissioning Window to Timeout - disabled: true + Not implemented in YAML + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_SKIP_SAMPLE_APP + arguments: + values: + - name: "message" + value: "Please reboot the DUT and enter 'y' after DUT starts" + - name: "expectedValue" + value: "y" + + - label: "TH_CR1 starts a commissioning process with DUT_CE" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "TH_CR1 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenBasicCommissioningWindow" + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + + - label: "Wait for commissioning Window to 301 seconds" + cluster: "DelayCommands" + command: "WaitForMs" + arguments: + values: + - name: "ms" + value: 181000 - label: "TH_CR1 reads the window status to verify the DUT_CE window is closed" - PICS: PICS_MF - verification: | - ./chip-tool administratorcommissioning read window-status 1 0 - - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 - [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 - [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i - disabled: true - - - label: - "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 - seconds" - PICS: PICS_MF - verification: | - On 1st controller chip tool, open commissioning window - - For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window 901 2 0 --timedInteractionTimeoutMs 1000 - - CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x85 - [1652860801.225084][9512:9517] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) - [1652860801.225173][9512:9517] CHIP:DMG: ICR moving to [AwaitingDe] - [1652860801.225294][9512:9517] CHIP:EM: Sending Standalone Ack for MessageCounter:4191961 on exchange 37827i - disabled: true + cluster: "AdministratorCommissioning" + command: "readAttribute" + attribute: "WindowStatus" + response: + value: 0 + + - label: "TH_CR1 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenBasicCommissioningWindow" + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 179 + response: + error: INVALID_COMMAND - label: "TH_CR1 reads the window status to verify the DUT_CE window is closed" - PICS: PICS_MF - verification: | - ./chip-tool administratorcommissioning read window-status 1 0 - - - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 - [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 - [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i - disabled: true + cluster: "AdministratorCommissioning" + command: "readAttribute" + attribute: "WindowStatus" + response: + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_26.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_26.yaml index d7810b4e48b554..8d07ea020db918 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_26.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_26.yaml @@ -11,100 +11,98 @@ # 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: - 24.1.26. [TC-CADMIN-1.26] Open commissioning window - durations max and - max+1 [ECM] [DUT - Commissionee] + 24.1.26. [TC-CADMIN-1.26] Open commissioning window - durations min and + min-1 [ECM] [DUT - Commissionee] config: nodeId: 0x12344321 - cluster: "Basic" + timeout: 330 endpoint: 0 tests: - - label: "Reset DUT_CE to factory defaults" - PICS: PICS_MF - verification: | - - disabled: true - - - label: "TH_CR1 starts a commissioning process with DUT_CE using ECM" - PICS: PICS_MF - verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , - " - disabled: true - - - label: - "TH_CR1 opens a commissioning window on DUT_CE with a value of 900 - seconds" - PICS: PICS_MF - verification: | - On 1st controller chip tool, open commissioning window - - Below is the example when using chip tool as controller - - - For ECM, - ./chip-tool pairing open-commissioning-window 1 1 900 1000 3840 - - [1635925713.966786][9695:9700] CHIP:SC: Success status report received. Session was established - [1635925713.966839][9695:9700] CHIP:IN: New secure session created for device 0x0000000000000001, key 33!! - [1635925713.966938][9695:9700] CHIP:CTL: OpenCommissioningWindow for device ID 1 - [1635925713.972601][9695:9700] CHIP:DMG: ICR moving to [AddingComm] - [1635925713.972705][9695:9700] CHIP:DMG: ICR moving to [AddedComma] - [1635925713.972815][9695:9700] CHIP:IN: Prepared encrypted message 0xaaaad9b57d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 31056i with MessageCounter:0. - [1635925713.972876][9695:9700] CHIP:IN: Sending encrypted msg 0xaaaad9b57d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 13449459 msec - [1635925713.973006][9695:9700] CHIP:DMG: ICR moving to [CommandSen] - [1635925713.973061][9695:9700] CHIP:CTL: Manual pairing code: [35484132896] - [1635925713.973120][9695:9700] CHIP:CTL: SetupQRCode: [MT:00000CQM00A7F87ZT10] - [1635925713.973178][9695:9700] CHIP:EM: Sending Standalone Ack for MessageCounter:1964916542 on exchange 31055i - disabled: true + - label: "Factory Reset the DUT_CE" + cluster: "SystemCommands" + command: "FactoryReset" - - label: "Wait for commissioning Window to 901 seconds" - PICS: PICS_MF + - label: "Factory Reset the DUT_CE" verification: | - Wait for commissioning Window to Timeout - disabled: true + Not implemented in YAML + cluster: "LogCommands" + command: "UserPrompt" + PICS: PICS_SKIP_SAMPLE_APP + arguments: + values: + - name: "message" + value: "Please reboot the DUT and enter 'y' after DUT starts" + - name: "expectedValue" + value: "y" + + - label: "TH_CR1 starts a commissioning process with DUT_CE" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "TH_CR1 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenCommissioningWindow" + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + - name: "PAKEVerifier" + value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" + - name: "discriminator" + value: 3840 + - name: "iterations" + value: 1000 + - name: "salt" + value: "SPAKE2P Key Salt" + + - label: "Wait for commissioning Window to 301 seconds" + cluster: "DelayCommands" + command: "WaitForMs" + arguments: + values: + - name: "ms" + value: 181000 - label: "TH_CR1 reads the window status to verify the DUT_CE window is closed" - PICS: PICS_MF - verification: | - ./chip-tool administratorcommissioning read window-status 1 0 - - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 - [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 - [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i - disabled: true - - - label: - "TH_CR1 opens a commissioning window on DUT_CE with a value of 901 - seconds" - PICS: PICS_MF - verification: | - On 1st controller chip tool, open commissioning window - - Below is the example when using chip tool as controller - - - For ECM, - ./chip-tool pairing open-commissioning-window 1 1 901 1000 3840 - - CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x85 - [1652860801.225084][9512:9517] CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) - [1652860801.225173][9512:9517] CHIP:DMG: ICR moving to [AwaitingDe] - [1652860801.225294][9512:9517] CHIP:EM: Sending Standalone Ack for MessageCounter:4191961 on exchange 37827i - disabled: true + cluster: "AdministratorCommissioning" + command: "readAttribute" + attribute: "WindowStatus" + response: + value: 0 + + - label: "TH_CR1 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenCommissioningWindow" + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 179 + - name: "PAKEVerifier" + value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" + - name: "discriminator" + value: 3840 + - name: "iterations" + value: 1000 + - name: "salt" + value: "SPAKE2P Key Salt" + response: + error: INVALID_COMMAND - label: "TH_CR1 reads the window status to verify the DUT_CE window is closed" - PICS: PICS_MF - verification: | - ./chip-tool administratorcommissioning read window-status 1 0 - - CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003C Attribute 0x0000_0000 DataVersion: 2849200592 - [1651137648.760469][14047:14052] CHIP:TOO: WindowStatus: 0 - [1651137648.760534][14047:14052] CHIP:EM: Sending Standalone Ack for MessageCounter:5527412 on exchange 14590i - disabled: true + cluster: "AdministratorCommissioning" + command: "readAttribute" + attribute: "WindowStatus" + response: + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_27.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_27.yaml deleted file mode 100644 index 7231cd8348a5b5..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_27.yaml +++ /dev/null @@ -1,93 +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. - -name: - 24.1.27. [TC-CADMIN-1.27] Open commissioning window - durations min and - min-1 [BCM] [DUT - Commissionee] - -config: - nodeId: 0x12344321 - timeout: 330 - endpoint: 0 - -tests: - - label: "Factory Reset the DUT_CE" - PICS: PICS_SDK_CI_ONLY - cluster: "SystemCommands" - command: "FactoryReset" - - - label: "Factory Reset the DUT_CE" - verification: | - Not implemented in YAML - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_SKIP_SAMPLE_APP - arguments: - values: - - name: "message" - value: "Please reboot the DUT and enter 'y' after DUT starts" - - name: "expectedValue" - value: "y" - - - label: "TH_CR1 starts a commissioning process with DUT_CE" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "TH_CR1 opens a commissioning window on DUT_CE" - cluster: "AdministratorCommissioning" - command: "OpenBasicCommissioningWindow" - timedInteractionTimeoutMs: 10000 - arguments: - values: - - name: "CommissioningTimeout" - value: 180 - - - label: "Wait for commissioning Window to 301 seconds" - cluster: "DelayCommands" - command: "WaitForMs" - arguments: - values: - - name: "ms" - value: 181000 - - - label: - "TH_CR1 reads the window status to verify the DUT_CE window is closed" - cluster: "AdministratorCommissioning" - command: "readAttribute" - attribute: "WindowStatus" - response: - value: 0 - - - label: "TH_CR1 opens a commissioning window on DUT_CE" - cluster: "AdministratorCommissioning" - command: "OpenBasicCommissioningWindow" - timedInteractionTimeoutMs: 10000 - arguments: - values: - - name: "CommissioningTimeout" - value: 179 - response: - error: INVALID_COMMAND - - - label: - "TH_CR1 reads the window status to verify the DUT_CE window is closed" - cluster: "AdministratorCommissioning" - command: "readAttribute" - attribute: "WindowStatus" - response: - value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_28.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_28.yaml deleted file mode 100644 index 927e2e6017311b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_28.yaml +++ /dev/null @@ -1,108 +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. - -name: - 24.1.28. [TC-CADMIN-1.28] Open commissioning window - durations min and - min-1 [ECM] [DUT - Commissionee] - -config: - nodeId: 0x12344321 - timeout: 330 - endpoint: 0 - -tests: - - label: "Factory Reset the DUT_CE" - cluster: "SystemCommands" - command: "FactoryReset" - - - label: "Factory Reset the DUT_CE" - verification: | - Not implemented in YAML - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_SKIP_SAMPLE_APP - arguments: - values: - - name: "message" - value: "Please reboot the DUT and enter 'y' after DUT starts" - - name: "expectedValue" - value: "y" - - - label: "TH_CR1 starts a commissioning process with DUT_CE" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "TH_CR1 opens a commissioning window on DUT_CE" - cluster: "AdministratorCommissioning" - command: "OpenCommissioningWindow" - timedInteractionTimeoutMs: 10000 - arguments: - values: - - name: "CommissioningTimeout" - value: 180 - - name: "PAKEVerifier" - value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" - - name: "discriminator" - value: 3840 - - name: "iterations" - value: 1000 - - name: "salt" - value: "SPAKE2P Key Salt" - - - label: "Wait for commissioning Window to 301 seconds" - cluster: "DelayCommands" - command: "WaitForMs" - arguments: - values: - - name: "ms" - value: 181000 - - - label: - "TH_CR1 reads the window status to verify the DUT_CE window is closed" - cluster: "AdministratorCommissioning" - command: "readAttribute" - attribute: "WindowStatus" - response: - value: 0 - - - label: "TH_CR1 opens a commissioning window on DUT_CE" - cluster: "AdministratorCommissioning" - command: "OpenCommissioningWindow" - timedInteractionTimeoutMs: 10000 - arguments: - values: - - name: "CommissioningTimeout" - value: 179 - - name: "PAKEVerifier" - value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" - - name: "discriminator" - value: 3840 - - name: "iterations" - value: 1000 - - name: "salt" - value: "SPAKE2P Key Salt" - response: - error: INVALID_COMMAND - - - label: - "TH_CR1 reads the window status to verify the DUT_CE window is closed" - cluster: "AdministratorCommissioning" - command: "readAttribute" - attribute: "WindowStatus" - response: - value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_3.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_3.yaml index 2e582b44e32a24..25ab1b5377abb6 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_3.yaml @@ -16,6 +16,7 @@ name: 24.1.3. [TC-CADMIN-1.3] Node Behavior using ECM [DUT - Commissionee] config: nodeId: 0x12344321 + timeout: 300 nodeId2: type: NODE_ID defaultValue: 0xCAFE @@ -39,6 +40,7 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 timedInteractionTimeoutMs: 10000 arguments: values: @@ -57,6 +59,7 @@ tests: "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" command: "writeAttribute" + PICS: BINFO.S.A0005 cluster: "Basic" attribute: "NodeLabel" arguments: @@ -66,6 +69,7 @@ tests: "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE" command: "readAttribute" + PICS: BINFO.S.A0005 cluster: "Basic" attribute: "NodeLabel" response: @@ -98,6 +102,7 @@ tests: command: "readAttribute" cluster: "Operational Credentials" attribute: "Fabrics" + PICS: OPCREDS.S.A0001 response: value: [{ Label: "", nodeId: nodeId }] constraints: @@ -108,6 +113,7 @@ tests: command: "readAttribute" cluster: "Operational Credentials" attribute: "Fabrics" + PICS: OPCREDS.S.A0001 fabricFiltered: false response: value: [{ Label: "", nodeId: nodeId }, { Label: "", nodeId: nodeId2 }] @@ -119,6 +125,7 @@ tests: attribute of DUT_CE" command: "writeAttribute" cluster: "Basic" + PICS: OPCREDS.S.A0001 attribute: "NodeLabel" arguments: value: "chiptest1" @@ -128,6 +135,7 @@ tests: attribute of DUT_CE" command: "readAttribute" cluster: "Basic" + PICS: OPCREDS.S.A0001 attribute: "NodeLabel" response: value: "chiptest1" @@ -141,6 +149,7 @@ tests: identity: "beta" command: "writeAttribute" cluster: "Basic" + PICS: OPCREDS.S.A0001 attribute: "NodeLabel" arguments: value: "chiptest2" @@ -151,9 +160,79 @@ tests: identity: "beta" command: "readAttribute" cluster: "Basic" + PICS: OPCREDS.S.A0001 attribute: "NodeLabel" response: value: "chiptest2" constraints: type: string maxLength: 32 + + - label: "TH_CR2 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 + identity: "beta" + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + - name: "PAKEVerifier" + value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" + - name: "discriminator" + value: discriminator + - name: "iterations" + value: 1000 + - name: "salt" + value: "SPAKE2P Key Salt" + + - label: "Wait for the commissioning window in step 13 to timeout" + cluster: "DelayCommands" + command: "WaitForMs" + arguments: + values: + - name: "ms" + value: 180000 + + - label: + "TH_CR2 reads the window status to verify the DUT_CE window is closed" + cluster: "AdministratorCommissioning" + PICS: CADMIN.S.A0000 + command: "readAttribute" + attribute: "WindowStatus" + response: + value: 0 + + - label: "TH_CR2 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 + identity: "beta" + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + - name: "PAKEVerifier" + value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" + - name: "discriminator" + value: discriminator + - name: "iterations" + value: 1000 + - name: "salt" + value: "SPAKE2P Key Salt" + + - label: + "TH_CR1 starts a commissioning process with DUT_CE before the timeout + from step 12" + cluster: "CommissionerCommands" + command: "PairWithCode" + arguments: + values: + - name: "nodeId" + value: nodeId2 + - name: "payload" + value: payload + response: + error: FAILURE diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_4.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_4.yaml index bf8c7b4c4cf08c..129fb21fbb1c07 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_4.yaml @@ -16,6 +16,7 @@ name: 24.1.4. [TC-CADMIN-1.4] Node Behavior using BCM [DUT - Commissionee] config: nodeId: 0x12344321 + timeout: 300 nodeId2: type: NODE_ID defaultValue: 0xCAFE @@ -39,6 +40,7 @@ tests: - label: "TH_CR1 opens a commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" + PICS: CADMIN.S.C0001 timedInteractionTimeoutMs: 10000 arguments: values: @@ -51,6 +53,7 @@ tests: command: "writeAttribute" cluster: "Basic" attribute: "NodeLabel" + PICS: BINFO.S.A0005 arguments: value: "chiptest" @@ -60,6 +63,7 @@ tests: command: "readAttribute" cluster: "Basic" attribute: "NodeLabel" + PICS: BINFO.S.A0005 response: constraints: type: string @@ -89,6 +93,7 @@ tests: - label: "Query fabrics list" command: "readAttribute" cluster: "Operational Credentials" + PICS: OPCREDS.S.A0001 attribute: "Fabrics" response: value: [{ Label: "", nodeId: nodeId }] @@ -100,6 +105,7 @@ tests: command: "readAttribute" cluster: "Operational Credentials" attribute: "Fabrics" + PICS: OPCREDS.S.A0001 response: value: [{ Label: "", nodeId: nodeId2 }] constraints: @@ -111,6 +117,7 @@ tests: command: "writeAttribute" cluster: "Basic" attribute: "NodeLabel" + PICS: BINFO.S.A0005 arguments: value: "chiptest" @@ -120,6 +127,7 @@ tests: command: "readAttribute" cluster: "Basic" attribute: "NodeLabel" + PICS: BINFO.S.A0005 response: constraints: type: string @@ -133,6 +141,7 @@ tests: command: "writeAttribute" cluster: "Basic" attribute: "NodeLabel" + PICS: BINFO.S.A0005 arguments: value: "chiptest" @@ -143,8 +152,62 @@ tests: command: "readAttribute" cluster: "Basic" attribute: "NodeLabel" + PICS: BINFO.S.A0005 response: constraints: type: string maxLength: 32 value: "chiptest" + + - label: "TH_CR2 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenBasicCommissioningWindow" + identity: "beta" + PICS: CADMIN.S.C0001 + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + + - label: "Wait for the commissioning window in step 13 to timeout" + cluster: "DelayCommands" + command: "WaitForMs" + arguments: + values: + - name: "ms" + value: 180000 + + - label: + "TH_CR2 reads the window status to verify the DUT_CE window is closed" + cluster: "AdministratorCommissioning" + PICS: CADMIN.S.A0000 + command: "readAttribute" + attribute: "WindowStatus" + response: + value: 0 + + - label: "TH_CR2 opens a commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenBasicCommissioningWindow" + identity: "beta" + PICS: CADMIN.S.C0001 + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + + - label: + "TH_CR1 starts a commissioning process with DUT_CE before the timeout + from step 12" + cluster: "CommissionerCommands" + command: "PairWithCode" + arguments: + values: + - name: "nodeId" + value: nodeId2 + - name: "payload" + value: payload + response: + error: FAILURE diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_5.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_5.yaml index 2f2e97ab8b2819..b069605158e986 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_5.yaml @@ -48,6 +48,7 @@ tests: - label: "TH_CR1 opens a new commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 timedInteractionTimeoutMs: 10000 arguments: values: @@ -73,6 +74,7 @@ tests: - label: "TH_CR2 starts a commissioning process with DUT_CE" identity: "beta" cluster: "CommissionerCommands" + PICS: CADMIN.S.C0000 command: "PairWithCode" arguments: values: @@ -86,6 +88,7 @@ tests: - label: "TH_CR1 opens a new commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 timedInteractionTimeoutMs: 10000 arguments: values: @@ -103,6 +106,7 @@ tests: - label: "TH_CR1 revokes the commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "RevokeCommissioning" + PICS: CADMIN.S.C0002 timedInteractionTimeoutMs: 10000 - label: "TH_CR2 starts a commissioning process with DUT_CE" @@ -121,6 +125,7 @@ tests: - label: "TH_CR1 revokes the commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "RevokeCommissioning" + PICS: CADMIN.S.C0002 timedInteractionTimeoutMs: 10000 response: error: FAILURE @@ -129,6 +134,7 @@ tests: cluster: "Basic" command: "writeAttribute" attribute: "NodeLabel" + PICS: BINFO.S.A0005 arguments: value: "chiptest" @@ -136,12 +142,52 @@ tests: cluster: "Basic" command: "readAttribute" attribute: "NodeLabel" + PICS: BINFO.S.A0005 response: value: "chiptest" - label: "TH_CR1 opens a new commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + - name: "PAKEVerifier" + value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a" + - name: "discriminator" + value: 3840 + - name: "iterations" + value: 1000 + - name: "salt" + value: "SPAKE2P Key Salt" + response: + error: FAILURE + + - label: "TH_CR1 opens a new commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 + timedInteractionTimeoutMs: 10000 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + - name: "PAKEVerifier" + value: "\x06\xc7\x56\xdf\xfc\xd7\x22\x65\x34\x52\xa1\x2d\xcd\x94\x5d\x8c\x54\xda\x2b\x0f\x3c\xbd\x1b\x4d\xc3\xf1\xad\xb2\x23\xae\xb2\x6b\x04\x7c\xd2\x4c\x96\x86\x6f\x97\x9b\x1d\x83\xec\x50\xe2\xb4\xae\x30\xcd\xf2\xfd\xb3\x2b\xd8\xa2\x11\xb8\x37\xdc\x94\xed\xcd\x56\xf4\xd1\x43\x77\x19\x10\x76\xbf\xc5\x9d\x99\xb7\xdd\x30\x53\xef\xd6\xf0\x2c\x44\x34\xf2\xbd\xd2\x7a\xa4\xf9\xce\xa7\x0d\x73\x8e\x4c" + - name: "discriminator" + value: 3840 + - name: "iterations" + value: 1000 + - name: "salt" + value: "SPAKE2P Key Salt" + + - label: "TH_CR1 opens a new commissioning window on DUT_CE" + cluster: "AdministratorCommissioning" + command: "OpenCommissioningWindow" + PICS: CADMIN.S.C0000 timedInteractionTimeoutMs: 10000 arguments: values: @@ -155,6 +201,8 @@ tests: value: 1000 - name: "salt" value: "SPAKE2P Key Salt" + response: + error: 1 #Disabled due to issue 17666 - label: "TH_CR2 starts a commissioning process with DUT_CE" @@ -169,6 +217,16 @@ tests: - name: "payload" value: payload + - label: + "TH_CR1 tries to revoke the commissioning window on DUT_CE using + RevokeCommissioning command" + cluster: "AdministratorCommissioning" + command: "RevokeCommissioning" + PICS: CADMIN.S.C0002 && PICS_SKIP_SAMPLE_APP + timedInteractionTimeoutMs: 10000 + response: + error: FAILURE + - label: "TH_CR3 starts a commissioning process with DUT_CE" identity: "gamma" cluster: "CommissionerCommands" diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_6.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_6.yaml index 80d8b58c1f79cb..4d6cd686b22390 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_6.yaml @@ -50,6 +50,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 arguments: values: - name: "CommissioningTimeout" @@ -67,6 +68,7 @@ tests: identity: "beta" cluster: "CommissionerCommands" command: "PairWithCode" + PICS: CADMIN.S.C0001 arguments: values: - name: "nodeId" @@ -80,6 +82,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 arguments: values: - name: "CommissioningTimeout" @@ -88,6 +91,7 @@ tests: - label: "TH_CR1 revokes the commissioning window on DUT_CE" cluster: "AdministratorCommissioning" command: "RevokeCommissioning" + PICS: CADMIN.S.C0002 timedInteractionTimeoutMs: 10000 - label: "Commission from beta" @@ -107,6 +111,7 @@ tests: cluster: "AdministratorCommissioning" command: "RevokeCommissioning" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0002 response: error: FAILURE @@ -115,6 +120,7 @@ tests: cluster: "Basic" command: "writeAttribute" attribute: "NodeLabel" + PICS: BINFO.S.A0005 arguments: value: "chiptest" @@ -123,6 +129,7 @@ tests: cluster: "Basic" command: "readAttribute" attribute: "NodeLabel" + PICS: BINFO.S.A0005 response: value: "chiptest" @@ -131,11 +138,25 @@ tests: cluster: "AdministratorCommissioning" command: "OpenBasicCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 arguments: values: - name: "CommissioningTimeout" value: 180 + - label: "TH_CR1 opens a commissioning window on DUT_CE" + identity: "alpha" + cluster: "AdministratorCommissioning" + command: "OpenBasicCommissioningWindow" + timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0001 + arguments: + values: + - name: "CommissioningTimeout" + value: 180 + response: + error: 1 + - label: "Commission from beta" identity: "beta" cluster: "CommissionerCommands" @@ -156,6 +177,16 @@ tests: - name: "nodeId" value: nodeId2 + - label: + "TH_CR1 tries to revoke the commissioning window on DUT_CE using + RevokeCommissioning command" + cluster: "AdministratorCommissioning" + command: "RevokeCommissioning" + PICS: CADMIN.S.C0002 + timedInteractionTimeoutMs: 10000 + response: + error: FAILURE + - label: "TH_CR3 starts a commissioning process with DUT_CE" identity: "gamma" cluster: "CommissionerCommands" diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml index 3a6c55fdca4f9c..fe99f61dcca035 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml @@ -29,12 +29,13 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using ECM" + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller open commissioning widow using ECM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 @@ -52,34 +53,35 @@ tests: disabled: true - label: - "If (PICS_User Interface Display) A User Consent screen pops up asking - for Users permission to allow second commissioner to control TH_CE" + "A User Consent screen pops up asking for Users permission to allow + second commissioner to control TH_CE" + PICS: CADMIN.UserInterfaceDisplay verification: | Verify the User Consent pop up screen. Verify that the pop up closes after user gives permission disabled: true - label: - "If (PICS_User Interface Display) 11 digit Manual Code is displayed on - the screen in textual format for User to see" + "11 digit Manual Code is displayed on the screen in textual format for + User to see" + PICS: CADMIN.UserInterfaceDisplay verification: | Verify that the displayed Manual Code is 11 digits long and doesn’t contain Vendor_ID or Product_ID. disabled: true - - label: - "If (PICS_Audio Interface) A voice prompt of the Manual Code format - should be heard" + - label: "A voice prompt of the Manual Code format should be heard" + PICS: CADMIN.AudioInterface verification: | Verify voice prompt saying the manual code. Verify the voice prompt repeats if user asks. disabled: true - label: - "TH_CR2 starts a commissioning process with TH_CE after PIXIT_COMM_WIN - (that was given in step 2) + 10 seconds" + "TH_CR2 starts a commissioning process with TH_CE after + PIXIT.CADMIN.CwDuration (that was given in step 2) + 10 seconds" verification: | On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 36366524220 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 36366524220 as the manual code generated by DUT controller) ./chip-tool pairing code 1 36366524220 verify you got the following message in the TH log @@ -89,42 +91,26 @@ tests: disabled: true - label: - "DUT_CR1 opens a new commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" + "DUT_CR1 sends command to TH_CE to open a new commissioning window + with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using + ECM" + PICS: CADMIN.C.C0000 verification: | - On your DUT controller open commissioning widow using ECM. - - Below is the example while using chip tool as controller, - - ./chip-tool pairing open-commissioning-window 1 1 200 1000 3840 - - [1635871112.112515][4282:4287] CHIP:SC: Success status report received. Session was established - [1635871112.112550][4282:4287] CHIP:IN: New secure session created for device 0x0000000000000001, key 48!! - [1635871112.112641][4282:4287] CHIP:CTL: OpenCommissioningWindow for device ID 1 - [1635871112.120013][4282:4287] CHIP:DMG: ICR moving to [AddingComm] - [1635871112.120068][4282:4287] CHIP:DMG: ICR moving to [AddedComma] - [1635871112.120191][4282:4287] CHIP:IN: Prepared encrypted message 0xaaaadbfe6d10 to 0x0000000000000001 of type 0x8 and protocolId (0, 1) on exchange 11039i with MessageCounter:0. - [1635871112.120249][4282:4287] CHIP:IN: Sending encrypted msg 0xaaaadbfe6d10 with MessageCounter:0 to 0x0000000000000001 at monotonic time: 12683778 msec - [1635871112.120453][4282:4287] CHIP:DMG: ICR moving to [CommandSen] - [1635871112.120505][4282:4287] CHIP:CTL: Manual pairing code: [34921141778] - [1635871112.120573][4282:4287] CHIP:CTL: SetupQRCode: [MT:00000CQM00GKG14-G10] - [1635871112.120636][4282:4287] CHIP:EM: Sending Standalone Ack for MessageCounter:2599714281 on exchange 11038i disabled: true - - label: - "DUT_CR1 revokes the commissioning window on TH_CE using - RevokeCommissioning command" + - label: "DUT_CR1 sends command to TH_CE to revoke the commissioning window" + PICS: CADMIN.C.C0002 verification: | On First controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, ./chip-tool administratorcommissioning revoke-commissioning 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -137,18 +123,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -160,7 +146,7 @@ tests: On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 34921141778 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 34921141778 as the manual code generated by DUT controller) ./chip-tool pairing code 1 34921141778 verify you got the following message in the TH log @@ -169,19 +155,18 @@ tests: CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - - label: - "DUT_CR1 revokes the commissioning window on TH_CE using - RevokeCommissioning command" + - label: "DUT_CR1 sends command to TH_CE to revoke the commissioning window" + PICS: CADMIN.C.C0002 verification: | On your DUT controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, /chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650524034.111241][15422:15427] CHIP:DMG: { - [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, + [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, [1650524034.111383][15422:15427] CHIP:DMG: InvokeResponseIBs = [1650524034.111464][15422:15427] CHIP:DMG: [ [1650524034.111531][15422:15427] CHIP:DMG: InvokeResponseIB = @@ -194,19 +179,19 @@ tests: [1650524034.112167][15422:15427] CHIP:DMG: ClusterId = 0x3c, [1650524034.112257][15422:15427] CHIP:DMG: CommandId = 0x2, [1650524034.112345][15422:15427] CHIP:DMG: }, - [1650524034.112456][15422:15427] CHIP:DMG: + [1650524034.112456][15422:15427] CHIP:DMG: [1650524034.112543][15422:15427] CHIP:DMG: StatusIB = [1650524034.112632][15422:15427] CHIP:DMG: { [1650524034.112727][15422:15427] CHIP:DMG: status = 0x01 (FAILURE), [1650524034.112825][15422:15427] CHIP:DMG: cluster-status = 0x3, [1650524034.112914][15422:15427] CHIP:DMG: }, - [1650524034.113005][15422:15427] CHIP:DMG: + [1650524034.113005][15422:15427] CHIP:DMG: [1650524034.113084][15422:15427] CHIP:DMG: }, - [1650524034.113176][15422:15427] CHIP:DMG: + [1650524034.113176][15422:15427] CHIP:DMG: [1650524034.113245][15422:15427] CHIP:DMG: }, - [1650524034.113328][15422:15427] CHIP:DMG: + [1650524034.113328][15422:15427] CHIP:DMG: [1650524034.113392][15422:15427] CHIP:DMG: ], - [1650524034.113477][15422:15427] CHIP:DMG: + [1650524034.113477][15422:15427] CHIP:DMG: [1650524034.113545][15422:15427] CHIP:DMG: InteractionModelRevision = 1 [1650524034.113610][15422:15427] CHIP:DMG: }, [1650524034.113780][15422:15427] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x1 @@ -214,12 +199,13 @@ tests: disabled: true - label: - "DUT_CR1 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR1 sends commands to TH_CE to write and read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 1 0 CHIP:DMG: WriteResponseMessage = @@ -234,16 +220,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -255,12 +241,13 @@ tests: disabled: true - label: - "DUT_CR1 opens a new commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using ECM" + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" + PICS: CADMIN.C.C0000 verification: | On your DUT controller open commissioning widow using ECM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 @@ -282,7 +269,7 @@ tests: On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) ./chip-tool pairing code 1 35256543344 Verify you got below message @@ -294,7 +281,7 @@ tests: On the 3rd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) ./chip-tool pairing code 1 35256543344 verify you got the following message in the TH log diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml index 7b0f6d955954aa..53a30f952765d1 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml @@ -29,18 +29,19 @@ tests: disabled: true - label: - "DUT_CR1 opens a commissioning window on TH_CE using a commissioning - timeout of PIXIT_COMM_WIN seconds using BCM" + "DUT_CR1 sends command to TH_CE to open a commissioning window with a + commissioning timeout of PIXIT.CADMIN.CwDuration seconds using BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller open commissioning widow using BCM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -53,18 +54,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -72,33 +73,34 @@ tests: disabled: true - label: - "If (PICS_User Interface Display) A User Consent screen pops up asking - for Users permission to allow second commissioner to control TH_CE" + "A User Consent screen pops up asking for Users permission to allow + second commissioner to control TH_CE" + PICS: CADMIN.UserInterfaceDisplay verification: | Verify the User Consent pop up screen. Verify that the pop up closes after user gives permission disabled: true - label: - "If (PICS_User Interface Display) 11 digit Manual Code is displayed on - the screen in textual format for User to see" + "11 digit Manual Code is displayed on the screen in textual format for + User to see" + PICS: CADMIN.UserInterfaceDisplay verification: | Verify that the displayed Manual Code is 11 digits long and doesn’t contain Vendor_ID or Product_ID. disabled: true - - label: - "If (PICS_Audio Interface) A voice prompt of the Manual Code format - should be heard" + - label: "A voice prompt of the Manual Code format should be heard" + PICS: CADMIN.AudioInterface verification: | Verify voice prompt saying the manual code. Verify the voice prompt repeats if user asks. disabled: true - label: - "TH_CR2 starts a commissioning process with TH_CE after PIXIT_COMM_WIN - (that was given in step 2) + 10 seconds" + "TH_CR2 starts a commissioning process with TH_CE after + PIXIT.CADMIN.CwDuration (that was given in step 2) + 10 seconds" verification: | On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021 + ./chip-tool pairing onnetwork 1 20202021 verify you got the following message in the TH log CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 @@ -107,19 +109,21 @@ tests: disabled: true - label: - "DUT_CR1 opens a new commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" + "DUT_CR1 sends command to TH_CE to open a new commissioning window + with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using + BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller open commissioning widow using BCM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -132,36 +136,35 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 [1650278416.250634][11064:11069] CHIP:DMG: ICR moving to [AwaitingDe] disabled: true - - label: - "DUT_CR1 revokes the commissioning window on TH_CE using - RevokeCommissioning command" + - label: "DUT_CR1 sends command to TH_CE to revoke the commissioning window" + PICS: CADMIN.C.C0002 verification: | On your DUT controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, /chip-tool administratorcommissioning revoke-commissioning 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -174,18 +177,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -204,19 +207,18 @@ tests: CHIP:TOO: Pairing Failure: ../../third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:324: CHIP Error 0x00000032: Timeout disabled: true - - label: - "DUT_CR1 revokes the commissioning window on TH_CE using - RevokeCommissioning command" + - label: "DUT_CR1 sends command to TH_CE to revoke the commissioning window" + PICS: CADMIN.C.C0002 verification: | On your DUT controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, /chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650524034.111241][15422:15427] CHIP:DMG: { - [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, + [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, [1650524034.111383][15422:15427] CHIP:DMG: InvokeResponseIBs = [1650524034.111464][15422:15427] CHIP:DMG: [ [1650524034.111531][15422:15427] CHIP:DMG: InvokeResponseIB = @@ -229,19 +231,19 @@ tests: [1650524034.112167][15422:15427] CHIP:DMG: ClusterId = 0x3c, [1650524034.112257][15422:15427] CHIP:DMG: CommandId = 0x2, [1650524034.112345][15422:15427] CHIP:DMG: }, - [1650524034.112456][15422:15427] CHIP:DMG: + [1650524034.112456][15422:15427] CHIP:DMG: [1650524034.112543][15422:15427] CHIP:DMG: StatusIB = [1650524034.112632][15422:15427] CHIP:DMG: { [1650524034.112727][15422:15427] CHIP:DMG: status = 0x01 (FAILURE), [1650524034.112825][15422:15427] CHIP:DMG: cluster-status = 0x3, [1650524034.112914][15422:15427] CHIP:DMG: }, - [1650524034.113005][15422:15427] CHIP:DMG: + [1650524034.113005][15422:15427] CHIP:DMG: [1650524034.113084][15422:15427] CHIP:DMG: }, - [1650524034.113176][15422:15427] CHIP:DMG: + [1650524034.113176][15422:15427] CHIP:DMG: [1650524034.113245][15422:15427] CHIP:DMG: }, - [1650524034.113328][15422:15427] CHIP:DMG: + [1650524034.113328][15422:15427] CHIP:DMG: [1650524034.113392][15422:15427] CHIP:DMG: ], - [1650524034.113477][15422:15427] CHIP:DMG: + [1650524034.113477][15422:15427] CHIP:DMG: [1650524034.113545][15422:15427] CHIP:DMG: InteractionModelRevision = 1 [1650524034.113610][15422:15427] CHIP:DMG: }, [1650524034.113780][15422:15427] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x1 @@ -249,12 +251,13 @@ tests: disabled: true - label: - "DUT_CR1 writes and reads the Basic Information Clusters NodeLabel - mandatory attribute of TH_CE" + "DUT_CR1 sends commands to TH_CE to write and read the Basic + Information Clusters NodeLabel mandatory attribute" + PICS: BINFO.C.A0005 verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -269,16 +272,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -290,20 +293,22 @@ tests: disabled: true - label: - "DUT_CR1 opens a new commissioning window on TH_CE using a - commissioning timeout of PIXIT_COMM_WIN seconds using BCM" + "DUT_CR1 sends command to TH_CE to open a new commissioning window + with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using + BCM" + PICS: CADMIN.C.C0001 verification: | On your DUT controller open commissioning widow using BCM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -316,18 +321,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml index 1f1b0b826ed72d..4c87005f5a9aed 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_9.yaml @@ -52,6 +52,7 @@ tests: cluster: "AdministratorCommissioning" command: "OpenCommissioningWindow" timedInteractionTimeoutMs: 10000 + PICS: CADMIN.S.C0000 arguments: values: - name: "CommissioningTimeout" @@ -366,7 +367,7 @@ tests: error: FAILURE - label: - "TH_CR2 starts a commissioning process with DUT_CE using Invalid setup + "TH_CR2 starts a commissioning process with DUT_CE using valid setup code" identity: "beta" cluster: "CommissionerCommands" @@ -376,7 +377,7 @@ tests: - name: "nodeId" value: nodeId2 - name: "payload" - value: payload2 + value: payload response: error: FAILURE diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml index cacfc7a0c640df..482b5bbaf86843 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml @@ -59,20 +59,20 @@ tests: - name: "StepSize" value: 5 - name: "TransitionTime" - value: 25 + value: 5 - name: "OptionsMask" value: 0 - name: "OptionsOverride" value: 0 #delay step is necessary to let the attribute value change over time - - label: "Wait 25ms" + - label: "Wait 1000ms" cluster: "DelayCommands" command: "WaitForMs" arguments: values: - name: "ms" - value: 25 + value: 1000 - label: "Over TransitionTime,Read CurrentHue attribute from DUT" PICS: CC.S.A0000 @@ -81,7 +81,7 @@ tests: response: constraints: type: uint8 - minValue: 0 + minValue: 5 maxValue: 254 - label: "Step hue down command" @@ -94,19 +94,19 @@ tests: - name: "StepSize" value: 5 - name: "TransitionTime" - value: 25 + value: 5 - name: "OptionsMask" value: 0 - name: "OptionsOverride" value: 0 - - label: "Wait 25ms" + - label: "Wait 1000ms" cluster: "DelayCommands" command: "WaitForMs" arguments: values: - name: "ms" - value: 25 + value: 1000 - label: "Over TransitionTime,Read CurrentHue attribute from DUT" PICS: CC.S.A0000 @@ -116,7 +116,7 @@ tests: constraints: type: uint8 minValue: 0 - maxValue: 254 + maxValue: 249 - label: "Turn off light that we turned on" cluster: "On/Off" diff --git a/src/app/tests/suites/certification/Test_TC_CHANNEL_1_6.yaml b/src/app/tests/suites/certification/Test_TC_CHANNEL_1_6.yaml index aeed9079a8dda1..3acefeff94fb68 100644 --- a/src/app/tests/suites/certification/Test_TC_CHANNEL_1_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_CHANNEL_1_6.yaml @@ -66,7 +66,7 @@ tests: contains: [0] - label: "Reading optional attribute(Lineup) in AttributeList" - PICS: CHANNEL.S.A0000 + PICS: CHANNEL.S.A0001 command: "readAttribute" attribute: "AttributeList" response: @@ -75,7 +75,7 @@ tests: contains: [1] - label: "Read the optional attribute(CurrentChannel): AttributeList" - PICS: CHANNEL.S.A0000 + PICS: CHANNEL.S.A0002 command: "readAttribute" attribute: "AttributeList" response: diff --git a/src/app/tests/suites/certification/Test_TC_CHANNEL_5_1.yaml b/src/app/tests/suites/certification/Test_TC_CHANNEL_5_1.yaml index f29fd5d905c76c..919caf00e316c3 100644 --- a/src/app/tests/suites/certification/Test_TC_CHANNEL_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CHANNEL_5_1.yaml @@ -28,48 +28,16 @@ tests: - name: "nodeId" value: nodeId - # Issue 13029 + #Issue 13029 + #This step implicitly validating the attribute(ChannelList)constraints, as long as the payload is being parsed successfully - label: - "TH reads the ChannelList attribute from the DUT and Verify that the - response contains a list of the known TV channels" - verification: | - ./chip-tool channel read channel-list 1 1 - [1651056337.291422][155797:155802] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0504 Attribute 0x0000_0000 DataVersion: 2113505570 - [1651056337.291517][155797:155802] CHIP:TOO: ChannelList: 4 entries - [1651056337.291571][155797:155802] CHIP:TOO: [1]: { - [1651056337.291589][155797:155802] CHIP:TOO: MajorNumber: 6 - [1651056337.291605][155797:155802] CHIP:TOO: MinorNumber: 0 - [1651056337.291621][155797:155802] CHIP:TOO: Name: ABC - [1651056337.291637][155797:155802] CHIP:TOO: CallSign: KAAL-TV - [1651056337.291653][155797:155802] CHIP:TOO: AffiliateCallSign: KAAL - [1651056337.291670][155797:155802] CHIP:TOO: } - [1651056337.291697][155797:155802] CHIP:TOO: [2]: { - [1651056337.291713][155797:155802] CHIP:TOO: MajorNumber: 9 - [1651056337.291727][155797:155802] CHIP:TOO: MinorNumber: 1 - [1651056337.291741][155797:155802] CHIP:TOO: Name: PBS - [1651056337.291757][155797:155802] CHIP:TOO: CallSign: KCTS-TV - [1651056337.291772][155797:155802] CHIP:TOO: AffiliateCallSign: KCTS - [1651056337.291786][155797:155802] CHIP:TOO: } - [1651056337.291813][155797:155802] CHIP:TOO: [3]: { - [1651056337.291827][155797:155802] CHIP:TOO: MajorNumber: 9 - [1651056337.291842][155797:155802] CHIP:TOO: MinorNumber: 2 - [1651056337.291857][155797:155802] CHIP:TOO: Name: PBS Kids - [1651056337.291871][155797:155802] CHIP:TOO: CallSign: KCTS-TV - [1651056337.291885][155797:155802] CHIP:TOO: AffiliateCallSign: KCTS - [1651056337.291899][155797:155802] CHIP:TOO: } - [1651056337.291924][155797:155802] CHIP:TOO: [4]: { - [1651056337.291938][155797:155802] CHIP:TOO: MajorNumber: 9 - [1651056337.291952][155797:155802] CHIP:TOO: MinorNumber: 3 - [1651056337.291966][155797:155802] CHIP:TOO: Name: World Channel - [1651056337.291980][155797:155802] CHIP:TOO: CallSign: KCTS-TV - [1651056337.291994][155797:155802] CHIP:TOO: AffiliateCallSign: KCTS - [1651056337.292007][155797:155802] CHIP:TOO: } - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && CHANNEL.S.A0000 - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + "TH reads the ChannelList attribute from the DUT to show list of + Inputs available and Verify that the response contains a list of the + known TV channels. Each list element should consist of the + following,Major number (unsigned 16-bit integer, mandatory),Minor + number (unsigned 16-bit integer, mandatory),Name (String, + optional),Call sign (String, optional),Affiliate call sign (String, + optional)" + PICS: CHANNEL.S.A0000 + command: "readAttribute" + attribute: "ChannelList" diff --git a/src/app/tests/suites/certification/Test_TC_CHANNEL_5_3.yaml b/src/app/tests/suites/certification/Test_TC_CHANNEL_5_3.yaml index 2e261a0c5af264..6778836d2183bd 100644 --- a/src/app/tests/suites/certification/Test_TC_CHANNEL_5_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CHANNEL_5_3.yaml @@ -34,27 +34,14 @@ tests: - name: "nodeId" value: nodeId + #Issue 13029 + #This step implicitly validating the attribute(Lineup)constraints, as long as the payload is being parsed successfully - label: - "Reads the Lineup attribute from the DUT and Verify that the response - contains a lineup info object" - PICS: CHANNEL.S.A0001 && PICS_USER_PROMPT - verification: | - ./chip-tool channel read lineup 1 1 - [1653999659095] [94964:7676726] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0504 Attribute 0x0000_0001 DataVersion: 3623945891 - [1653999659097] [94964:7676726] CHIP: [TOO] Lineup: { - [1653999659097] [94964:7676726] CHIP: [TOO] OperatorName: Comcast - [1653999659097] [94964:7676726] CHIP: [TOO] LineupName: Comcast King County - [1653999659097] [94964:7676726] CHIP: [TOO] PostalCode: 98052 - [1653999659097] [94964:7676726] CHIP: [TOO] LineupInfoType: 0 - [1653999659097] [94964:7676726] CHIP: [TOO] } - cluster: "LogCommands" - command: "UserPrompt" - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + "TH reads the Lineup attribute from the DUT to show list of Inputs + available and Verify that the response contains a lineup info object" + PICS: CHANNEL.S.A0001 + command: "readAttribute" + attribute: "Lineup" - label: "Reads the ChannelList attribute from the DUT" PICS: CHANNEL.S.A0000 diff --git a/src/app/tests/suites/certification/Test_TC_I_1_1.yaml b/src/app/tests/suites/certification/Test_TC_I_1_1.yaml index 3009c1677645dd..2d5c16e3e89b9f 100644 --- a/src/app/tests/suites/certification/Test_TC_I_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_I_1_1.yaml @@ -63,6 +63,7 @@ tests: contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - label: "Read the global attribute: AcceptedCommandList" + PICS: I.C.C40.Tx command: "readAttribute" attribute: "AcceptedCommandList" response: @@ -70,6 +71,24 @@ tests: type: list contains: [0, 64] + - label: "Read the global attribute: AcceptedCommandList" + PICS: " !I.C.C40.Tx " + command: "readAttribute" + attribute: "AcceptedCommandList" + response: + constraints: + type: list + contains: [0] + + - label: "Read the optional attribute(IdentifyQuery) in AcceptedCommandList" + PICS: I.C.C01.Tx + command: "readAttribute" + attribute: "AcceptedCommandList" + response: + constraints: + type: list + contains: [1] + - label: "Read the global attribute: GeneratedCommandList" PICS: I.S.C00.Tx command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml index bd2a45f4af5dcc..8ab6f4a0917b14 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml @@ -111,7 +111,7 @@ tests: maxValue: 254 - label: "Step 4b & 4C Reads the CurrentLevel attribute" - PICS: LVL.S.F01 + PICS: LVL.S.F01 && LVL.S.A0002 && LVL.S.A0003 command: "readAttribute" attribute: "current level" response: @@ -121,7 +121,7 @@ tests: maxValue: MaxLevelValue - label: "Step 4b & 4C Reads the CurrentLevel attribute" - PICS: " !LVL.S.F01 " + PICS: LVL.S.A0002 && LVL.S.A0003 && !LVL.S.F01 command: "readAttribute" attribute: "current level" response: @@ -171,7 +171,6 @@ tests: command: "readAttribute" attribute: "on off transition time" response: - value: 0 constraints: type: uint16 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml index 27fba174766849..681e8be2b7ba6c 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml @@ -18,6 +18,24 @@ config: nodeId: 0x12344321 cluster: "Level Control" endpoint: 1 + OnOffTransitionTimeConfigValue: + type: INT16U + defaultValue: 10 + OnLevelConfigValue: + type: INT8U + defaultValue: 5 + OnTransitionTimeConfigValue: + type: INT16U + defaultValue: 5 + OffTransitionTimeConfigValue: + type: INT16U + defaultValue: 10 + DefaultMoveRateConfigValue: + type: INT8U + defaultValue: 111 + StartUpCurrentLevelConfigValue: + type: INT8U + defaultValue: 5 tests: - label: "Wait for the commissioned device to be retrieved" @@ -33,7 +51,7 @@ tests: command: "readAttribute" attribute: "on off transition time" response: - value: 0 + saveAs: OnOffTransitionTimeValue constraints: type: uint16 @@ -42,16 +60,17 @@ tests: command: "writeAttribute" attribute: "on off transition time" arguments: - value: 10 + value: OnOffTransitionTimeConfigValue - label: "Reads the OnOffTransitionTime attribute from the DUT" PICS: LVL.S.A0010 command: "readAttribute" attribute: "on off transition time" response: - value: 10 + value: OnOffTransitionTimeConfigValue constraints: type: uint16 + notValue: OnOffTransitionTimeValue - label: "Reads the OnLevel attribute from the DUT" PICS: LVL.S.A0011 @@ -67,14 +86,14 @@ tests: command: "writeAttribute" attribute: "on level" arguments: - value: 254 + value: OnLevelConfigValue - label: "Reads the OnLevel attribute from the DUT" PICS: LVL.S.A0011 command: "readAttribute" attribute: "on level" response: - value: 254 + value: OnLevelConfigValue constraints: type: uint8 notValue: OnLevelValue @@ -93,14 +112,14 @@ tests: command: "writeAttribute" attribute: "on transition time" arguments: - value: 100 + value: OnTransitionTimeConfigValue - label: "Reads the OnTransitionTime attribute from the DUT" PICS: LVL.S.A0012 command: "readAttribute" attribute: "on transition time" response: - value: 100 + value: OnTransitionTimeConfigValue constraints: type: uint16 notValue: OnTransitionTimeValue @@ -119,14 +138,14 @@ tests: command: "writeAttribute" attribute: "off transition time" arguments: - value: 100 + value: OffTransitionTimeConfigValue - label: "Reads the OffTransitionTime attribute from the DUT" PICS: LVL.S.A0013 command: "readAttribute" attribute: "off transition time" response: - value: 100 + value: OffTransitionTimeConfigValue constraints: type: uint16 notValue: OffTransitionTimeValue @@ -136,7 +155,7 @@ tests: command: "readAttribute" attribute: "default move rate" response: - value: 50 + saveAs: DefaultMoveRatevalue constraints: type: uint8 @@ -145,16 +164,17 @@ tests: command: "writeAttribute" attribute: "default move rate" arguments: - value: 100 + value: DefaultMoveRateConfigValue - label: "Reads the DefaultMoveRate attribute from the DUT" PICS: LVL.S.A0014 command: "readAttribute" attribute: "default move rate" response: - value: 100 + value: DefaultMoveRateConfigValue constraints: type: uint8 + notValue: DefaultMoveRatevalue - label: "Reads the StartUpCurrentLevel attribute from the DUT" PICS: LVL.S.A4000 @@ -170,14 +190,14 @@ tests: command: "writeAttribute" attribute: "start up current level" arguments: - value: 254 + value: StartUpCurrentLevelConfigValue - label: "reads the StartUpCurrentLevel attribute from the DUT" PICS: LVL.S.A4000 command: "readAttribute" attribute: "start up current level" response: - value: 254 + value: StartUpCurrentLevelConfigValue constraints: type: uint8 notValue: StartUpCurrentLevelValue diff --git a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml index e070eea89245d4..c24f2b4e33cecc 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml @@ -28,6 +28,19 @@ tests: - name: "nodeId" value: nodeId + - label: "Precondition Send On Command" + cluster: "On/Off" + PICS: OO.S.C01.Rsp + command: "On" + + - label: "Check on/off attribute value is true after on command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 1 + - label: "Reads the MinLevel attribute" PICS: LVL.S.A0002 command: "readAttribute" @@ -190,3 +203,16 @@ tests: values: - name: "ms" value: 100 + + - label: "Precondition send Off Command" + cluster: "On/Off" + PICS: OO.S.C00.Rsp + command: "Off" + + - label: "Check on/off attribute value is false after off command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml index 1b8c01451278f0..4b6a02e2d57b57 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml @@ -28,6 +28,19 @@ tests: - name: "nodeId" value: nodeId + - label: "Precondition Send On Command" + cluster: "On/Off" + PICS: OO.S.C01.Rsp + command: "On" + + - label: "Check on/off attribute value is true after on command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 1 + - label: "Reads Minlevel attribute from DUT" PICS: LVL.S.A0002 command: "readAttribute" @@ -215,3 +228,16 @@ tests: values: - name: "ms" value: 100 + + - label: "Precondition send Off Command" + cluster: "On/Off" + PICS: OO.S.C00.Rsp + command: "Off" + + - label: "Check on/off attribute value is false after off command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml index 3e8514c579351c..8fd113b81c67cc 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml @@ -28,6 +28,19 @@ tests: - name: "nodeId" value: nodeId + - label: "Precondition Send On Command" + cluster: "On/Off" + PICS: OO.S.C01.Rsp + command: "On" + + - label: "Check on/off attribute value is true after on command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 1 + - label: "Reads Minlevel attribute from DUT" PICS: LVL.S.A0002 command: "readAttribute" @@ -147,3 +160,16 @@ tests: values: - name: "ms" value: 100 + + - label: "Precondition send Off Command" + cluster: "On/Off" + PICS: OO.S.C00.Rsp + command: "Off" + + - label: "Check on/off attribute value is false after off command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml index 02409587a376cd..6502c3af9fc350 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml @@ -28,6 +28,19 @@ tests: - name: "nodeId" value: nodeId + - label: "Precondition Send On Command" + cluster: "On/Off" + PICS: OO.S.C01.Rsp + command: "On" + + - label: "Check on/off attribute value is true after on command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 1 + - label: "Reads Minlevel attribute from DUT" PICS: LVL.S.A0002 command: "readAttribute" @@ -187,3 +200,16 @@ tests: values: - name: "ms" value: 100 + + - label: "Precondition send Off Command" + cluster: "On/Off" + PICS: OO.S.C00.Rsp + command: "Off" + + - label: "Check on/off attribute value is false after off command" + cluster: "On/Off" + PICS: OO.S.A0000 + command: "readAttribute" + attribute: "OnOff" + response: + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_1_4.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_1_4.yaml index 674cc617b66de2..b711c27431e241 100644 --- a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_1_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_1_4.yaml @@ -30,7 +30,7 @@ tests: - name: "nodeId" value: nodeId - - label: "Read the global attribute: ClusterRevision" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" response: @@ -56,7 +56,7 @@ tests: type: list contains: [65528, 65529, 65531, 65532, 65533] - - label: "Read the optonal attribute(InputList) in AttributeList" + - label: "Read the optional attribute(InputList) in AttributeList" PICS: MEDIAINPUT.S.A0000 command: "readAttribute" attribute: "AttributeList" @@ -65,7 +65,7 @@ tests: type: list contains: [0] - - label: "Read the optonal attribute(CurrentInput) in AttributeList" + - label: "Read the optional attribute(CurrentInput) in AttributeList" PICS: MEDIAINPUT.S.A0001 command: "readAttribute" attribute: "AttributeList" diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_10.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_10.yaml index f20687ad4eb7df..1a43dd4f1083c5 100644 --- a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_10.yaml @@ -28,32 +28,14 @@ tests: - name: "nodeId" value: nodeId - # Issue 13029 + #Issue 13029 + #This step implicitly validating the attribute(InputList)constraints, as long as the payload is being parsed successfully - label: "TH reads the InputList attribute from the DUT to show list of Inputs - available" - verification: | - ./chip-tool mediainput read input-list 1 1 - [1651055193.215119][155444:155449] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0507 Attribute 0x0000_0000 DataVersion: 2695202790 - [1651055193.215226][155444:155449] CHIP:TOO: InputList: 2 entries - [1651055193.215312][155444:155449] CHIP:TOO: [1]: { - [1651055193.215363][155444:155449] CHIP:TOO: Index: 1 - [1651055193.215386][155444:155449] CHIP:TOO: InputType: 4 - [1651055193.215401][155444:155449] CHIP:TOO: Name: HDMI - [1651055193.215420][155444:155449] CHIP:TOO: Description: High-Definition Multimedia Interface - [1651055193.215447][155444:155449] CHIP:TOO: } - [1651055193.215483][155444:155449] CHIP:TOO: [2]: { - [1651055193.215506][155444:155449] CHIP:TOO: Index: 2 - [1651055193.215525][155444:155449] CHIP:TOO: InputType: 4 - [1651055193.215544][155444:155449] CHIP:TOO: Name: HDMI - [1651055193.215564][155444:155449] CHIP:TOO: Description: High-Definition Multimedia Interface - [1651055193.215585][155444:155449] CHIP:TOO: } - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && MEDIAINPUT.S.A0000 - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + available and Verify list of available inputs supported by the device + is provided, where each entry in the list contains an index(type:uint + 8), InputType (InputType Enums), Name (type: Strings), and + Description(Type:String)" + PICS: MEDIAINPUT.S.A0000 + command: "readAttribute" + attribute: "InputList" diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_11.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_11.yaml index 5e9d24b7fe06bb..db17d936410f5b 100644 --- a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_11.yaml @@ -28,35 +28,17 @@ tests: - name: "nodeId" value: nodeId - # Issue 13029 + #Issue 13029 + #This step implicitly validating the attribute(InputList)constraints, as long as the payload is being parsed successfully - label: "TH reads the InputList attribute from the DUT to show list of Inputs - available" - verification: | - ./chip-tool mediainput read input-list 1 1 - [1651055193.215119][155444:155449] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0507 Attribute 0x0000_0000 DataVersion: 2695202790 - [1651055193.215226][155444:155449] CHIP:TOO: InputList: 2 entries - [1651055193.215312][155444:155449] CHIP:TOO: [1]: { - [1651055193.215363][155444:155449] CHIP:TOO: Index: 1 - [1651055193.215386][155444:155449] CHIP:TOO: InputType: 4 - [1651055193.215401][155444:155449] CHIP:TOO: Name: HDMI - [1651055193.215420][155444:155449] CHIP:TOO: Description: High-Definition Multimedia Interface - [1651055193.215447][155444:155449] CHIP:TOO: } - [1651055193.215483][155444:155449] CHIP:TOO: [2]: { - [1651055193.215506][155444:155449] CHIP:TOO: Index: 2 - [1651055193.215525][155444:155449] CHIP:TOO: InputType: 4 - [1651055193.215544][155444:155449] CHIP:TOO: Name: HDMI - [1651055193.215564][155444:155449] CHIP:TOO: Description: High-Definition Multimedia Interface - [1651055193.215585][155444:155449] CHIP:TOO: } - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && MEDIAINPUT.S.A0000 - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + available and Verify list of available inputs supported by the device + is provided, where each entry in the list contains an index(type:uint + 8), InputType (InputType Enums), Name (type: Strings), and + Description(Type:String)" + PICS: MEDIAINPUT.S.A0000 + command: "readAttribute" + attribute: "InputList" - label: "Select Input Command" PICS: MEDIAINPUT.S.C0000 diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_12.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_12.yaml index 1cd66a22a7cf0d..1df7414daebbac 100644 --- a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_12.yaml @@ -29,13 +29,17 @@ tests: - name: "nodeId" value: nodeId - - label: "Read attribute media input list" + #Issue 13029 + #This step implicitly validating the attribute(InputList)constraints, as long as the payload is being parsed successfully + - label: + "TH reads the InputList attribute from the DUT to show list of Inputs + available and Verify list of available inputs supported by the device + is provided, where each entry in the list contains an index(type:uint + 8), InputType (InputType Enums), Name (type: Strings), and + Description(Type:String)" PICS: MEDIAINPUT.S.A0000 command: "readAttribute" attribute: "InputList" - response: - constraints: - type: list - label: "Hide Input Status Command" PICS: MEDIAINPUT.S.C0002 diff --git a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_13.yaml b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_13.yaml index d15aa1815f362d..5a9bba52929bd3 100644 --- a/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_MEDIAINPUT_3_13.yaml @@ -29,35 +29,17 @@ tests: - name: "nodeId" value: nodeId - # Issue 13029 + #Issue 13029 + #This step implicitly validating the attribute(InputList)constraints, as long as the payload is being parsed successfully - label: "TH reads the InputList attribute from the DUT to show list of Inputs - available" - verification: | - ./chip-tool mediainput read input-list 1 1 - [1651055193.215119][155444:155449] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0507 Attribute 0x0000_0000 DataVersion: 2695202790 - [1651055193.215226][155444:155449] CHIP:TOO: InputList: 2 entries - [1651055193.215312][155444:155449] CHIP:TOO: [1]: { - [1651055193.215363][155444:155449] CHIP:TOO: Index: 1 - [1651055193.215386][155444:155449] CHIP:TOO: InputType: 4 - [1651055193.215401][155444:155449] CHIP:TOO: Name: HDMI - [1651055193.215420][155444:155449] CHIP:TOO: Description: High-Definition Multimedia Interface - [1651055193.215447][155444:155449] CHIP:TOO: } - [1651055193.215483][155444:155449] CHIP:TOO: [2]: { - [1651055193.215506][155444:155449] CHIP:TOO: Index: 2 - [1651055193.215525][155444:155449] CHIP:TOO: InputType: 4 - [1651055193.215544][155444:155449] CHIP:TOO: Name: HDMI - [1651055193.215564][155444:155449] CHIP:TOO: Description: High-Definition Multimedia Interface - [1651055193.215585][155444:155449] CHIP:TOO: } - cluster: "LogCommands" - command: "UserPrompt" - PICS: PICS_USER_PROMPT && MEDIAINPUT.S.A0000 - arguments: - values: - - name: "message" - value: "Please enter 'y' for success" - - name: "expectedValue" - value: "y" + available and Verify list of available inputs supported by the device + is provided, where each entry in the list contains an index(type:uint + 8), InputType (InputType Enums), Name (type: Strings), and + Description(Type:String)" + PICS: MEDIAINPUT.S.A0000 + command: "readAttribute" + attribute: "InputList" - label: "Rename Input Command" PICS: MEDIAINPUT.S.C0003 diff --git a/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml index eae3d4233ed757..3318ed0b54fbc9 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_1_2.yaml @@ -13,7 +13,7 @@ # 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: 79.1.2. [TC-MOD-1.2] Cluster attributes with server as DUT +name: 80.1.2. [TC-MOD-1.2] Cluster attributes with server as DUT config: nodeId: 0x12344321 @@ -25,6 +25,8 @@ tests: verification: | ./chip-tool modeselect read supported-modes 1 1 + Verify on the TH Log: + [1654595167.600241][14362:14367] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 366231602 [1654595167.600345][14362:14367] CHIP:TOO: SupportedModes: 3 entries [1654595167.600403][14362:14367] CHIP:TOO: [1]: { @@ -60,7 +62,10 @@ tests: verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1645776767.611140][4667:4672] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469718 + [1645776767.611214][4667:4672] CHIP:TOO: CurrentMode: 0 disabled: true @@ -68,7 +73,11 @@ tests: verification: | ./chip-tool modeselect read on-mode 1 1 + Verify on the TH Log: + + [1649676072.465968][10754:10759] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0005 DataVersion: 4277065072 + [1649676072.466094][10754:10759] CHIP:TOO: OnMode: null disabled: true @@ -76,7 +85,11 @@ tests: verification: | ./chip-tool modeselect read start-up-mode 1 1 + Verify on the TH Log: + + [1649677014.496348][10778:10784] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0004 DataVersion: 4277065072 + [1649677014.496469][10778:10784] CHIP:TOO: StartUpMode: 0 disabled: true @@ -84,7 +97,10 @@ tests: verification: | ./chip-tool modeselect read description 1 1 + Verify on the TH Log: + [1649677114.614974][10787:10792] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000 DataVersion: 4277065072 + [1649677114.615110][10787:10792] CHIP:TOO: Description: Coffee disabled: true @@ -92,6 +108,9 @@ tests: verification: | ./chip-tool modeselect read standard-namespace 1 1 + Verify on the TH Log: + [1649677167.900539][10795:10801] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0001 DataVersion: 4277065072 + [1649677167.900660][10795:10801] CHIP:TOO: StandardNamespace: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml b/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml index 71a746f466a0ea..e8693ae77f142d 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml @@ -13,7 +13,7 @@ # 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: 79.1.3. [TC-MOD-1.3] Attributes with client as DUT +name: 80.1.3. [TC-MOD-1.3] Attributes with client as DUT config: nodeId: 0x12344321 @@ -25,8 +25,12 @@ tests: "DUT reads all supported mandatory attributes from TH one at a time in a manufacturer specific order" verification: | + verify on Reference app receives the right response for the data sent in the above commands + ./chip-tool modeselect read supported-modes 1 1 + Verify in TH all-clusters-app log + [1650968776.863713][12747:12747] CHIP:IM: Received Read request [1650968776.863767][12747:12747] CHIP:DMG: ReadRequestMessage = [1650968776.863793][12747:12747] CHIP:DMG: { @@ -38,10 +42,10 @@ tests: [1650968776.864023][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968776.864052][12747:12747] CHIP:DMG: Attribute = 0x0000_0002, [1650968776.864085][12747:12747] CHIP:DMG: } - [1650968776.864124][12747:12747] CHIP:DMG: + [1650968776.864124][12747:12747] CHIP:DMG: [1650968776.864153][12747:12747] CHIP:DMG: ], - [1650968776.864190][12747:12747] CHIP:DMG: - [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968776.864190][12747:12747] CHIP:DMG: + [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968776.864251][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968776.864273][12747:12747] CHIP:DMG: }, [1650968776.864361][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -54,6 +58,8 @@ tests: ./chip-tool modeselect read current-mode 1 1 + Verify in TH all-clusters-app log + 1650968848.687576][12747:12747] CHIP:IM: Received Read request [1650968848.687628][12747:12747] CHIP:DMG: ReadRequestMessage = [1650968848.687653][12747:12747] CHIP:DMG: { @@ -65,10 +71,10 @@ tests: [1650968848.687855][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968848.687887][12747:12747] CHIP:DMG: Attribute = 0x0000_0003, [1650968848.687917][12747:12747] CHIP:DMG: } - [1650968848.687974][12747:12747] CHIP:DMG: + [1650968848.687974][12747:12747] CHIP:DMG: [1650968848.688003][12747:12747] CHIP:DMG: ], - [1650968848.688031][12747:12747] CHIP:DMG: - [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968848.688031][12747:12747] CHIP:DMG: + [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968848.688082][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968848.688105][12747:12747] CHIP:DMG: }, [1650968848.688174][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -89,10 +95,10 @@ tests: [1650968644.224169][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968644.224206][12747:12747] CHIP:DMG: Attribute = 0x0000_0001, [1650968644.224233][12747:12747] CHIP:DMG: } - [1650968644.224272][12747:12747] CHIP:DMG: + [1650968644.224272][12747:12747] CHIP:DMG: [1650968644.224297][12747:12747] CHIP:DMG: ], - [1650968644.224334][12747:12747] CHIP:DMG: - [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968644.224334][12747:12747] CHIP:DMG: + [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968644.224394][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968644.224426][12747:12747] CHIP:DMG: }, [1650968644.224507][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -118,10 +124,10 @@ tests: [1650969447.413989][12747:12747] CHIP:DMG: Cluster = 0x50, [1650969447.414021][12747:12747] CHIP:DMG: Attribute = 0x0000_0000, [1650969447.414051][12747:12747] CHIP:DMG: } - [1650969447.414080][12747:12747] CHIP:DMG: + [1650969447.414080][12747:12747] CHIP:DMG: [1650969447.414108][12747:12747] CHIP:DMG: ], - [1650969447.414137][12747:12747] CHIP:DMG: - [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650969447.414137][12747:12747] CHIP:DMG: + [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650969447.414188][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650969447.414211][12747:12747] CHIP:DMG: }, [1650969447.414280][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -131,6 +137,7 @@ tests: "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | + verify on Reference app receives the right response for the data sent in the above commands ./chip-tool modeselect read on-mode 1 1 [1650969570.494960][12747:12747] CHIP:IM: Received Read request @@ -144,10 +151,10 @@ tests: [1650969570.495210][12747:12747] CHIP:DMG: Cluster = 0x50, [1650969570.495242][12747:12747] CHIP:DMG: Attribute = 0x0000_0005, [1650969570.495275][12747:12747] CHIP:DMG: } - [1650969570.495304][12747:12747] CHIP:DMG: + [1650969570.495304][12747:12747] CHIP:DMG: [1650969570.495332][12747:12747] CHIP:DMG: ], - [1650969570.495360][12747:12747] CHIP:DMG: - [1650969570.495386][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650969570.495360][12747:12747] CHIP:DMG: + [1650969570.495386][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650969570.495411][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650969570.495435][12747:12747] CHIP:DMG: }, [1650969570.495503][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -165,10 +172,10 @@ tests: [1650970821.971139][12747:12747] CHIP:DMG: Cluster = 0x50, [1650970821.971164][12747:12747] CHIP:DMG: Attribute = 0x0000_0004, [1650970821.971191][12747:12747] CHIP:DMG: } - [1650970821.971216][12747:12747] CHIP:DMG: + [1650970821.971216][12747:12747] CHIP:DMG: [1650970821.971238][12747:12747] CHIP:DMG: ], - [1650970821.971268][12747:12747] CHIP:DMG: - [1650970821.971295][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650970821.971268][12747:12747] CHIP:DMG: + [1650970821.971295][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650970821.971323][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650970821.971349][12747:12747] CHIP:DMG: }, [1650970821.971419][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -178,14 +185,14 @@ tests: "DUT writes a suitable value to all supported mandatory attributes on the TH one at a time in a manufacturer specific order" verification: | - no writable attributes + 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: | - no writable attributes + This cluster doesn't have any writable attributes disabled: true - label: @@ -194,8 +201,13 @@ tests: also reflects this in global attributes such as FeatureMap and AttributeList. Commission DUT to TH again" verification: | + verify on Reference app receives the right response for the data sent in the above commands + + ./chip-tool modeselect read attribute-list 1 1 + Verify in TH all-clusters-app log + [1654244736050] [91506:3999585] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_FFFB DataVersion: 1865308556 [1654244736050] [91506:3999585] CHIP: [TOO] AttributeList: 9 entries [1654244736050] [91506:3999585] CHIP: [TOO] [1]: 0 @@ -213,6 +225,8 @@ tests: "./chip-tool modeselect read supported-modes 1 1 + Verify in TH all-clusters-app log + [1650968776.863713][12747:12747] CHIP:IM: Received Read request [1650968776.863767][12747:12747] CHIP:DMG: ReadRequestMessage = [1650968776.863793][12747:12747] CHIP:DMG: { @@ -224,10 +238,10 @@ tests: [1650968776.864023][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968776.864052][12747:12747] CHIP:DMG: Attribute = 0x0000_0002, [1650968776.864085][12747:12747] CHIP:DMG: } - [1650968776.864124][12747:12747] CHIP:DMG: + [1650968776.864124][12747:12747] CHIP:DMG: [1650968776.864153][12747:12747] CHIP:DMG: ], - [1650968776.864190][12747:12747] CHIP:DMG: - [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968776.864190][12747:12747] CHIP:DMG: + [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968776.864251][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968776.864273][12747:12747] CHIP:DMG: }, [1650968776.864361][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -240,6 +254,8 @@ tests: ./chip-tool modeselect read current-mode 1 1 + Verify in TH all-clusters-app log + 1650968848.687576][12747:12747] CHIP:IM: Received Read request [1650968848.687628][12747:12747] CHIP:DMG: ReadRequestMessage = [1650968848.687653][12747:12747] CHIP:DMG: { @@ -251,10 +267,10 @@ tests: [1650968848.687855][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968848.687887][12747:12747] CHIP:DMG: Attribute = 0x0000_0003, [1650968848.687917][12747:12747] CHIP:DMG: } - [1650968848.687974][12747:12747] CHIP:DMG: + [1650968848.687974][12747:12747] CHIP:DMG: [1650968848.688003][12747:12747] CHIP:DMG: ], - [1650968848.688031][12747:12747] CHIP:DMG: - [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968848.688031][12747:12747] CHIP:DMG: + [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968848.688082][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968848.688105][12747:12747] CHIP:DMG: }, [1650968848.688174][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -264,6 +280,8 @@ tests: ./chip-tool modeselect read standard-namespace 1 1 + Verify in TH all-clusters-app log + 1650968644.223891][12747:12747] CHIP:IM: Received Read request [1650968644.223954][12747:12747] CHIP:DMG: ReadRequestMessage = [1650968644.223981][12747:12747] CHIP:DMG: { @@ -275,10 +293,10 @@ tests: [1650968644.224169][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968644.224206][12747:12747] CHIP:DMG: Attribute = 0x0000_0001, [1650968644.224233][12747:12747] CHIP:DMG: } - [1650968644.224272][12747:12747] CHIP:DMG: + [1650968644.224272][12747:12747] CHIP:DMG: [1650968644.224297][12747:12747] CHIP:DMG: ], - [1650968644.224334][12747:12747] CHIP:DMG: - [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968644.224334][12747:12747] CHIP:DMG: + [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968644.224394][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968644.224426][12747:12747] CHIP:DMG: }, [1650968644.224507][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -292,6 +310,8 @@ tests: ./chip-tool modeselect read description 1 1 + Verify in TH all-clusters-app log + [1650969447.413679][12747:12747] CHIP:EM: Handling via exchange: 65381r, Delegate: 0xaaaae5201098 [1650969447.413718][12747:12747] CHIP:IM: Received Read request [1650969447.413769][12747:12747] CHIP:DMG: ReadRequestMessage = @@ -304,10 +324,10 @@ tests: [1650969447.413989][12747:12747] CHIP:DMG: Cluster = 0x50, [1650969447.414021][12747:12747] CHIP:DMG: Attribute = 0x0000_0000, [1650969447.414051][12747:12747] CHIP:DMG: } - [1650969447.414080][12747:12747] CHIP:DMG: + [1650969447.414080][12747:12747] CHIP:DMG: [1650969447.414108][12747:12747] CHIP:DMG: ], - [1650969447.414137][12747:12747] CHIP:DMG: - [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650969447.414137][12747:12747] CHIP:DMG: + [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650969447.414188][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650969447.414211][12747:12747] CHIP:DMG: }, [1650969447.414280][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports]" @@ -317,6 +337,10 @@ tests: "DUT reads all supported optional attributes from TH one at a time in a manufacturer specific order" verification: | + verify on Reference app receives the right response for the data sent in the above commands + + Verify in TH all-clusters-app log + ./chip-tool modeselect read on-mode 1 1 General error: 0x86 (UNSUPPORTED_ATTRIBUTE) @@ -328,5 +352,5 @@ tests: "DUT writes a suitable value to all supported optional attributes on the TH one at a time in a manufacturer specific order" verification: | - no writable attributes + This cluster doesn't have any writable attributes disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml b/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml index c165423039234f..593d8ce6d638c8 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_2_1.yaml @@ -13,7 +13,7 @@ # 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: 79.2.1. [TC-MOD-2.1] ChangeToMode Verification (DUT as Server) +name: 80.2.1. [TC-MOD-2.1] ChangeToMode Verification (DUT as Server) config: nodeId: 0x12344321 @@ -23,7 +23,10 @@ config: tests: - label: "TH reads the SupportedModes attribute from the DUT" verification: | - ./chip-tool modeselect read supported-modes 1 1 + /chip-tool modeselect read supported-modes 1 1 + + Verify on the TH Log: + [1654595268.854568][14400:14405] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 366231602 [1654595268.854678][14400:14405] CHIP:TOO: SupportedModes: 3 entries @@ -60,10 +63,11 @@ tests: - label: "TH sends a ChangeToMode command to the DUT with a integer from the - list in step 1." + list in step 1" verification: | ./chip-tool modeselect change-to-mode 4 1 1 + Verify on the TH Log: [1649677293.280207][10810:10815] CHIP:DMG: StatusIB = @@ -76,15 +80,21 @@ tests: verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1649678800.298128][10854:10861] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003 DataVersion: 4277065073 + [1649678800.298279][10854:10861] CHIP:TOO: CurrentMode: 4 disabled: true - label: "TH sends a Change to Mode command to the DUT with a integer that is - not in the list in step 1." + not in the list in step 1" verification: | ./chip-tool modeselect change-to-mode 2 1 1 + + Verify on the TH Log: + CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x85 CHIP:TOO: Error: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml index b3d60e45287cc5..f9020a51fe65d3 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml @@ -13,7 +13,7 @@ # 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-MOD-2.2] ChangeToMode Verification (DUT as Client) +name: 80.2.2. [TC-MOD-2.2] ChangeToMode Verification (DUT as Client) config: nodeId: 0x12344321 @@ -21,71 +21,82 @@ config: endpoint: 0 tests: - - label: "DUT reads the SupportedModes attribute from the TH" - verification: | - ./chip-tool modeselect read supported-modes 1 1 + - label: "DUT reads the SupportedModes attribute from the TH" + verification: | + verify on Reference app receives the right response for the data sent in the above commands + ./chip-tool modeselect read supported-modes 1 1 - [1651126603.327986][16335:16335] CHIP:IM: Received Read request - [1651126603.328038][16335:16335] CHIP:DMG: ReadRequestMessage = - [1651126603.328064][16335:16335] CHIP:DMG: { - [1651126603.328086][16335:16335] CHIP:DMG: AttributePathIBs = - [1651126603.328113][16335:16335] CHIP:DMG: [ - [1651126603.328137][16335:16335] CHIP:DMG: AttributePathIB = - [1651126603.328174][16335:16335] CHIP:DMG: { - [1651126603.328205][16335:16335] CHIP:DMG: Endpoint = 0x1, - [1651126603.328240][16335:16335] CHIP:DMG: Cluster = 0x50, - [1651126603.328274][16335:16335] CHIP:DMG: Attribute = 0x0000_0002, - [1651126603.328307][16335:16335] CHIP:DMG: } - [1651126603.328337][16335:16335] CHIP:DMG: - [1651126603.328365][16335:16335] CHIP:DMG: ], - [1651126603.328393][16335:16335] CHIP:DMG: - [1651126603.328419][16335:16335] CHIP:DMG: isFabricFiltered = true, - [1651126603.328444][16335:16335] CHIP:DMG: InteractionModelRevision = 1 - [1651126603.328468][16335:16335] CHIP:DMG: }, - [1651126603.328537][16335:16335] CHIP:DMG: IM RH moving to [GeneratingReports] - [1651126603.328616][16335:16335] CHIP:DMG: Building Reports for ReadHandler with - LastReportGeneration = 0 DirtyGeneration = 0 - disabled: true + Verify in TH all-clusters-app - - label: - "DUT sends a ChangeToMode command to the TH with a integer from the - list in step 1." - verification: | - ./chip-tool modeselect change-to-mode 4 1 1 + [1657112483.855657][5411:5417] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 736180028 + [1657112483.855821][5411:5417] CHIP:TOO: SupportedModes: 3 entries + [1657112483.856016][5411:5417] CHIP:TOO: [1]: { + [1657112483.856069][5411:5417] CHIP:TOO: Label: Black + [1657112483.856158][5411:5417] CHIP:TOO: Mode: 0 + [1657112483.856218][5411:5417] CHIP:TOO: SemanticTags: 1 entries + [1657112483.856281][5411:5417] CHIP:TOO: [1]: { + [1657112483.856397][5411:5417] CHIP:TOO: MfgCode: 0 + [1657112483.856466][5411:5417] CHIP:TOO: Value: 0 + [1657112483.856515][5411:5417] CHIP:TOO: } + [1657112483.856582][5411:5417] CHIP:TOO: } + [1657112483.856652][5411:5417] CHIP:TOO: [2]: { + [1657112483.856700][5411:5417] CHIP:TOO: Label: Cappuccino + [1657112483.856864][5411:5417] CHIP:TOO: Mode: 4 + [1657112483.856924][5411:5417] CHIP:TOO: SemanticTags: 1 entries + [1657112483.857004][5411:5417] CHIP:TOO: [1]: { + [1657112483.857055][5411:5417] CHIP:TOO: MfgCode: 0 + [1657112483.857102][5411:5417] CHIP:TOO: Value: 0 + [1657112483.857166][5411:5417] CHIP:TOO: } + [1657112483.857215][5411:5417] CHIP:TOO: } + [1657112483.857302][5411:5417] CHIP:TOO: [3]: { + [1657112483.857351][5411:5417] CHIP:TOO: Label: Espresso + [1657112483.857414][5411:5417] CHIP:TOO: Mode: 7 + [1657112483.857469][5411:5417] CHIP:TOO: SemanticTags: 1 entries + [1657112483.857549][5411:5417] CHIP:TOO: [1]: { + [1657112483.857598][5411:5417] CHIP:TOO: MfgCode: 0 + [1657112483.857665][5411:5417] CHIP:TOO: Value: 0 + [1657112483.857713][5411:5417] CHIP:TOO: } + [1657112483.857778][5411:5417] CHIP:TOO: } + disabled: true + - label: "DUT sends a ChangeToMode command to the TH with a integer from the list in step 1" + verification: | + verify on Reference app receives the right response for the data sent in the above commands - [1651126725.828241][16335:16335] CHIP:DMG: InvokeRequestMessage = - [1651126725.828279][16335:16335] CHIP:DMG: { - [1651126725.828313][16335:16335] CHIP:DMG: suppressResponse = false, - [1651126725.828353][16335:16335] CHIP:DMG: timedRequest = false, - [1651126725.828388][16335:16335] CHIP:DMG: InvokeRequests = - [1651126725.828434][16335:16335] CHIP:DMG: [ - [1651126725.828470][16335:16335] CHIP:DMG: CommandDataIB = - [1651126725.828514][16335:16335] CHIP:DMG: { - [1651126725.828554][16335:16335] CHIP:DMG: CommandPathIB = - [1651126725.828605][16335:16335] CHIP:DMG: { - [1651126725.828651][16335:16335] CHIP:DMG: EndpointId = 0x1, - [1651126725.828701][16335:16335] CHIP:DMG: ClusterId = 0x50, - [1651126725.828753][16335:16335] CHIP:DMG: CommandId = 0x0, - [1651126725.828799][16335:16335] CHIP:DMG: }, - [1651126725.828847][16335:16335] CHIP:DMG: - [1651126725.828889][16335:16335] CHIP:DMG: CommandData = - [1651126725.828934][16335:16335] CHIP:DMG: { - [1651126725.829098][16335:16335] CHIP:DMG: 0x0 = 4, - [1651126725.829149][16335:16335] CHIP:DMG: }, - [1651126725.829192][16335:16335] CHIP:DMG: }, - [1651126725.829239][16335:16335] CHIP:DMG: - [1651126725.829274][16335:16335] CHIP:DMG: ], - [1651126725.829317][16335:16335] CHIP:DMG: - [1651126725.829351][16335:16335] CHIP:DMG: InteractionModelRevision = 1 - [1651126725.829386][16335:16335] CHIP:DMG: }, - [1651126725.829473][16335:16335] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0050 e=1 p=o - [1651126725.829522][16335:16335] CHIP:DMG: AccessControl: allowed - [1651126725.829561][16335:16335] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 - [1651126725.829605][16335:16335] CHIP:ZCL: ModeSelect: Entering emberAfModeSelectClusterChangeToModeCallback - [1651126725.829847][16335:16335] CHIP:DL: writing settings to file (/tmp/chip_kvs-9EOPmP) - [1651126725.831832][16335:16335] CHIP:DL: renamed tmp file to file (/tmp/chip_kvs) - [1651126725.831893][16335:16335] CHIP:DMG: Endpoint 1, Cluster 0x0000_0050 update version to 11823e0a - [1651126725.831933][16335:16335] CHIP:ZCL: ModeSelect: ChangeToMode successful - disabled: true + ./chip-tool modeselect change-to-mode 4 1 1 + + Verify in TH all-clusters-app + + [1657112505.553012][5418:5423] CHIP:DMG: InvokeResponseMessage = + [1657112505.553052][5418:5423] CHIP:DMG: { + [1657112505.553091][5418:5423] CHIP:DMG: suppressResponse = false, + [1657112505.553133][5418:5423] CHIP:DMG: InvokeResponseIBs = + [1657112505.553183][5418:5423] CHIP:DMG: [ + [1657112505.553223][5418:5423] CHIP:DMG: InvokeResponseIB = + [1657112505.553276][5418:5423] CHIP:DMG: { + [1657112505.553319][5418:5423] CHIP:DMG: CommandStatusIB = + [1657112505.553371][5418:5423] CHIP:DMG: { + [1657112505.553418][5418:5423] CHIP:DMG: CommandPathIB = + [1657112505.553473][5418:5423] CHIP:DMG: { + [1657112505.553527][5418:5423] CHIP:DMG: EndpointId = 0x1, + [1657112505.553588][5418:5423] CHIP:DMG: ClusterId = 0x50, + [1657112505.553645][5418:5423] CHIP:DMG: CommandId = 0x0, + [1657112505.553698][5418:5423] CHIP:DMG: }, + [1657112505.553762][5418:5423] CHIP:DMG: + [1657112505.553810][5418:5423] CHIP:DMG: StatusIB = + [1657112505.553870][5418:5423] CHIP:DMG: { + [1657112505.553929][5418:5423] CHIP:DMG: status = 0x00 (SUCCESS), + [1657112505.553983][5418:5423] CHIP:DMG: }, + [1657112505.554037][5418:5423] CHIP:DMG: + [1657112505.554085][5418:5423] CHIP:DMG: }, + [1657112505.554136][5418:5423] CHIP:DMG: + [1657112505.554181][5418:5423] CHIP:DMG: }, + [1657112505.554238][5418:5423] CHIP:DMG: + [1657112505.554277][5418:5423] CHIP:DMG: ], + [1657112505.554325][5418:5423] CHIP:DMG: + [1657112505.554364][5418:5423] CHIP:DMG: InteractionModelRevision = 1 + [1657112505.554432][5418:5423] CHIP:DMG: }, + [1657112505.554523][5418:5423] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 + [1657112505.554587][5418:5423] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml index d3cd0568657eb0..c9a6a346f83eb2 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml @@ -13,7 +13,7 @@ # 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: 79.3.1. [TC-MOD-3.1] OnMode Verification (DUT as Server) +name: 80.3.1. [TC-MOD-3.1] OnMode Verification (DUT as Server) config: nodeId: 0x12344321 @@ -25,21 +25,26 @@ tests: verification: | ./chip-tool modeselect read on-mode 1 1 + Verify on the TH Log: + [1649678983.679893][10871:10876] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0005 DataVersion: 4277065073 [1649678983.680002][10871:10876] CHIP:TOO: OnMode: null + disabled: true - label: "TH reads the CurrentMode attribute from the DUT" verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1649679034.895848][10879:10884] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003 DataVersion: 4277065073 [1649679034.895972][10879:10884] CHIP:TOO: CurrentMode: 4 disabled: true - label: "If the OnMode and CurrentMode attributes have the same value, proceed - to step 2c, Otherwise proceed to step 3a." + to step 2c, Otherwise proceed to step 3a" verification: | disabled: true @@ -47,22 +52,40 @@ tests: - label: "TH reads the SupportedModes attribute from the DUT" verification: | ./chip-tool modeselect read supported-modes 1 1 - [1645776884.203383][4698:4703] CHIP:TOO: SupportedModes: 3 entries - [1645776884.203448][4698:4703] CHIP:TOO: [1]: { - [1645776884.203473][4698:4703] CHIP:TOO: Label: Black - [1645776884.203497][4698:4703] CHIP:TOO: Mode: 0 - [1645776884.203520][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203544][4698:4703] CHIP:TOO: } - [1645776884.203574][4698:4703] CHIP:TOO: [2]: { - [1645776884.203597][4698:4703] CHIP:TOO: Label: Cappuccino - [1645776884.203619][4698:4703] CHIP:TOO: Mode: 4 - [1645776884.203641][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203663][4698:4703] CHIP:TOO: } - [1645776884.203691][4698:4703] CHIP:TOO: [3]: { - [1645776884.203714][4698:4703] CHIP:TOO: Label: Espresso - [1645776884.203735][4698:4703] CHIP:TOO: Mode: 7 - [1645776884.203757][4698:4703] CHIP:TOO: SemanticTag: 0 - [1645776884.203779][4698:4703] CHIP:TOO: } + + Verify on the TH + + [1654595268.854568][14400:14405] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 366231602 + [1654595268.854678][14400:14405] CHIP:TOO: SupportedModes: 3 entries + [1654595268.854743][14400:14405] CHIP:TOO: [1]: { + [1654595268.854772][14400:14405] CHIP:TOO: Label: Black + [1654595268.854811][14400:14405] CHIP:TOO: Mode: 0 + [1654595268.854843][14400:14405] CHIP:TOO: SemanticTags: 1 entries + [1654595268.854891][14400:14405] CHIP:TOO: [1]: { + [1654595268.854918][14400:14405] CHIP:TOO: MfgCode: 0 + [1654595268.854945][14400:14405] CHIP:TOO: Value: 0 + [1654595268.854971][14400:14405] CHIP:TOO: } + [1654595268.855000][14400:14405] CHIP:TOO: } + [1654595268.855038][14400:14405] CHIP:TOO: [2]: { + [1654595268.855064][14400:14405] CHIP:TOO: Label: Cappuccino + [1654595268.855089][14400:14405] CHIP:TOO: Mode: 4 + [1654595268.855117][14400:14405] CHIP:TOO: SemanticTags: 1 entries + [1654595268.855149][14400:14405] CHIP:TOO: [1]: { + [1654595268.855175][14400:14405] CHIP:TOO: MfgCode: 0 + [1654595268.855199][14400:14405] CHIP:TOO: Value: 0 + [1654595268.855223][14400:14405] CHIP:TOO: } + [1654595268.855249][14400:14405] CHIP:TOO: } + [1654595268.855284][14400:14405] CHIP:TOO: [3]: { + [1654595268.855310][14400:14405] CHIP:TOO: Label: Espresso + [1654595268.855332][14400:14405] CHIP:TOO: Mode: 7 + [1654595268.855360][14400:14405] CHIP:TOO: SemanticTags: 1 entries + [1654595268.855390][14400:14405] CHIP:TOO: [1]: { + [1654595268.855416][14400:14405] CHIP:TOO: MfgCode: 0 + [1654595268.855440][14400:14405] CHIP:TOO: Value: 0 + [1654595268.855464][14400:14405] CHIP:TOO: } + [1654595268.855490][14400:14405] CHIP:TOO: } + [1649677252.376226][10804:10809] CHIP:TOO: SemanticTag: 0 + [1649677252.376252][10804:10809] CHIP:TOO: } disabled: true - label: @@ -72,6 +95,8 @@ tests: verification: | ./chip-tool modeselect change-to-mode 7 1 1 + Verify on the TH Log: + [1645777419.711572][4798:4803] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 disabled: true @@ -79,6 +104,8 @@ tests: verification: | ./chip-tool onoff off 1 1 + Verify on the TH Log: + [1649679101.658594][10886:10891] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0000 Status=0x0 disabled: true @@ -86,6 +113,8 @@ tests: verification: | ./chip-tool onoff on 1 1 + Verify on the TH Log: + [1649679156.146015][10893:10898] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x0 disabled: true @@ -93,6 +122,8 @@ tests: verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1649679202.069163][10899:10904] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003 DataVersion: 4277065073 [1649679202.069278][10899:10904] CHIP:TOO: CurrentMode: 4 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml index 985a11a5374109..baad72a1c26378 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml @@ -13,7 +13,7 @@ # 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: 79.3.2. [TC-MOD-3.2] StartUpMode Verification (DUT as Server) +name: 80.3.2. [TC-MOD-3.2] StartUpMode Verification (DUT as Server) config: nodeId: 0x12344321 @@ -25,6 +25,8 @@ tests: verification: | ./chip-tool modeselect read start-up-mode 1 1 + Verify on the TH Log: + [1645777708.406864][4841:4846] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003DataVersion: 3781469721 [1645777708.406933][4841:4846] CHIP:TOO: StartUpMode: 0 disabled: true @@ -33,13 +35,15 @@ tests: verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 4 disabled: true - label: "If the StartUpMode and CurrentMode attributes have the same value, - proceed to step 2c, Otherwise proceed to step 3a." + proceed to step 2c, Otherwise proceed to step 3a" verification: | If the StartUpMode and CurrentMode attributes have the same value, proceed to step 2c, Otherwise proceed to step 3a. disabled: true @@ -48,6 +52,8 @@ tests: verification: | ./chip-tool modeselect read supported-modes 1 1 + Verify on the TH Log: + [1654153500.212649][3409:3414] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 2392545814 [1654153500.212776][3409:3414] CHIP:TOO: SupportedModes: 3 entries [1654153500.212893][3409:3414] CHIP:TOO: [1]: { @@ -86,18 +92,22 @@ tests: verification: | ./chip-tool modeselect change-to-mode 4 1 1 + Verify on the TH Log: + [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 disabled: true - - label: "Physically power cycle the device." + - label: "Physically power cycle the device" verification: | - + Physically power cycle the device. disabled: true - label: "TH reads the CurrentMode attribute from the DUT" verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 0 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml index 84918a5746ea6d..dd4c332452f07c 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml @@ -13,7 +13,7 @@ # 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: 79.3.3. [TC-MOD-3.3] OTA Mode Verification (DUT as Server) +name: 80.3.3. [TC-MOD-3.3] OTA Mode Verification (DUT as Server) config: nodeId: 0x12344321 @@ -25,6 +25,8 @@ tests: verification: | ./chip-tool modeselect read start-up-mode 1 1 + Verify on the TH Log: + [1645778279.693082][4898:4903] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003DataVersion: 3781469722 [1645778279.693151][4898:4903] CHIP:TOO: StartUpMode: 0 disabled: true @@ -33,13 +35,15 @@ tests: verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 7 disabled: true - label: "If the StartUpMode and CurrentMode attributes have the same value, - proceed to step 2c, Otherwise proceed to step 3a." + proceed to step 2c, Otherwise proceed to step 3a" verification: | If the StartUpMode and CurrentMode attributes have the same value, proceed to step 2c, Otherwise proceed to step 3a. disabled: true @@ -47,6 +51,9 @@ tests: - label: "TH reads the SupportedModes attribute from the DUT" verification: | ./chip-tool modeselect read supported-modes 1 1 + + Verify on the TH Log: + [1645776742.667057][4661:4666] CHIP:TOO: SupportedModes: 3 entries [1645776742.669546][4661:4666] CHIP:TOO: [1]: { [1645776742.669588][4661:4666] CHIP:TOO: Label: Black @@ -68,16 +75,18 @@ tests: - label: "Select a value from the list in step 2c with a different value than the StartUpMode value read in step 1. TH sends a ChangeToMode command - to the DUT with the selected value." + to the DUT with the selected value" verification: | ./chip-tool modeselect change-to-mode 4 1 1 + Verify on the TH Log: + [1645778189.045030][4888:4893] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 disabled: true - label: "Perform an OTA update on the device that requires a reboot. Allow for - the DUT to update and fully reboot." + the DUT to update and fully reboot" verification: | Perform an OTA update on the device that requires a reboot. Allow for the DUT to update and fully reboot. disabled: true @@ -86,6 +95,8 @@ tests: verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000DataVersion: 3781469721 [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 4 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_4.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_4.yaml index fa133a8424230e..a2a03c688a46f7 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_4.yaml @@ -13,7 +13,7 @@ # 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: 79.3.4. [TC-MOD-3.4] OnMode Overwriting StartUpMode (DUT as Server) +name: 80.3.4. [TC-MOD-3.4] OnMode Overwriting StartUpMode (DUT as Server) config: nodeId: 0x12344321 @@ -22,33 +22,43 @@ config: tests: - label: "TH reads the StartUpMode attribute from the DUT" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | ./chip-tool modeselect read start-up-mode 1 1 + Verify on the TH Log: + [1651099663211] [82177:7560652] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0004 DataVersion: 2609052118 [1651099663212] [82177:7560652] CHIP: [TOO] StartUpMode: 0 disabled: true - label: "TH reads the OnMode attribute from the DUT" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | ./chip-tool modeselect read on-mode 1 1 + Verify on the TH Log: + [1654780979.979743][61542:61547] CHIP:DMG: } [1654780979.980040][61542:61547] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0005 DataVersion: 235764160 - [1654780979.980202][61542:61547] CHIP:TOO: OnMode: null + [1654780979.980202][61542:61547] CHIP:TOO: OnMode: 4 disabled: true - label: "If the StartUpMode and OnMode attributes have the same value, proceed - to step 2c, Otherwise proceed to step 3." + to step 2c, Otherwise proceed to step 3" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | If the StartUpMode and OnMode attributes have the same value, proceed to step 2c, Otherwise proceed to step 3. disabled: true - label: "TH reads the _SupportedModes attribute_ from the DUT" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | ./chip-tool modeselect read supported-modes 1 1 + Verify on the TH Log: + [1654154058.284710][3492:3497] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 694763126 [1654154058.284829][3492:3497] CHIP:TOO: SupportedModes: 3 entries [1654154058.284909][3492:3497] CHIP:TOO: [1]: { @@ -84,8 +94,11 @@ tests: "Select a value from the list in step 2c with a different value than the _StartUpMode_ value read in step 1. TH sends a write command for _OnMode_ to the DUT with the selected value." + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | - ./chip-tool modeselect write on-mode 4 1 1 + ./chip-tool modeselect write on-mode 7 1 1 + + Verify on the TH Log: [1651099941884] [84269:7567211] CHIP: [DMG] WriteResponseMessage = [1651099941884] [84269:7567211] CHIP: [DMG] { @@ -114,19 +127,24 @@ tests: disabled: true - label: "TH reads the _OnMode attribute_ from the DUT" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | ./chip-tool modeselect read on-mode 1 1 + Verify on the TH Log: + [1651100140426] [84609:7569911] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0005 DataVersion: 2609052120 - [1651100140426] [84609:7569911] CHIP: [TOO] OnMode: 4 + [1651100140426] [84609:7569911] CHIP: [TOO] OnMode: 7 disabled: true - label: "TH writes 1 to _StartUpOnOff attribute_ of the OnOff Cluster of the DUT" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | ./chip-tool onoff write start-up-on-off 1 1 1 + Verify on the TH Log: [1651101661959] [90832:7598169] CHIP: [DMG] WriteResponseMessage = [1651101661959] [90832:7598169] CHIP: [DMG] { @@ -154,15 +172,19 @@ tests: [1651101661960] [90832:7598169] CHIP: [DMG] } disabled: true - - label: "Physically power cycle the device." + - label: "Physically power cycle the device" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | Physically power cycle the device. disabled: true - label: "TH reads the CurrentMode attribute from the DUT" + PICS: MOD.S.F00 && MOD.S.A0004 && MOD.S.A0005 && OO.S.A4003 verification: | ./chip-tool modeselect read current-mode 1 1 + Verify on the TH Log: + [1645778146.171510][4876:4881] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0003 DataVersion: 2609052120 [1645778146.171602][4876:4881] CHIP:TOO: CurrentMode: 4 disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml index 00e1b44596f270..956cb07d6fdeb9 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml @@ -281,6 +281,13 @@ tests: - name: "OffWaitTime" value: 300 + - label: "9b:Reads OnOff attribute from DUT" + command: "readAttribute" + attribute: "OnOff" + PICS: OO.S.A0000 + response: + value: 1 + - label: "9b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" @@ -509,7 +516,7 @@ tests: response: constarints: minValue: 0 - maxValue: 10 + maxValue: 15 - label: "Wait 10000ms" cluster: "DelayCommands" @@ -595,7 +602,7 @@ tests: response: constraints: minValue: 0 - maxValue: 10 + maxValue: 15 - label: "Wait 10000ms" cluster: "DelayCommands" @@ -638,7 +645,7 @@ tests: response: constraints: minValue: 0 - maxValue: 10 + maxValue: 15 - label: "17a:Send On Command" PICS: OO.S.C01.Rsp @@ -714,7 +721,7 @@ tests: response: constraints: minValue: 0 - maxValue: 10 + maxValue: 15 - label: "Wait 10000ms" cluster: "DelayCommands" @@ -730,7 +737,7 @@ tests: arguments: values: - name: "OnOffControl" - value: 1 + value: 0 - name: "OnTime" value: 300 - name: "OffWaitTime" @@ -740,7 +747,7 @@ tests: - label: "18b:Reads OnOff attribute from DUT" command: "readAttribute" attribute: "OnOff" - PICS: PICS_SKIP_SAMPLE_APP && OO.S.A0000 + PICS: OO.S.A0000 && PICS_SKIP_SAMPLE_APP response: value: 1 @@ -748,7 +755,7 @@ tests: - label: "18b:Reads OnTime attribute from DUT" command: "readAttribute" attribute: "OnTime" - PICS: PICS_SKIP_SAMPLE_APP && OO.S.A4001 + PICS: OO.S.A4001 && PICS_SKIP_SAMPLE_APP response: constraints: minValue: 270 @@ -758,7 +765,7 @@ tests: - label: "18b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: PICS_SKIP_SAMPLE_APP && OO.S.A4002 + PICS: OO.S.A4002 && PICS_SKIP_SAMPLE_APP response: value: 300 @@ -788,7 +795,7 @@ tests: arguments: values: - name: "OnOffControl" - value: 1 + value: 0 - name: "OnTime" value: 300 - name: "OffWaitTime" @@ -881,7 +888,7 @@ tests: - label: "21b:Reads OffWaitTime attribute from DUT" command: "readAttribute" attribute: "OffWaitTime" - PICS: PICS_SKIP_SAMPLE_APP && OO.S.A4002 + PICS: OO.S.A4002 && PICS_SKIP_SAMPLE_APP response: constraints: minValue: 180 diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values index 05a1b70844b539..22a847762e9b84 100644 --- a/src/app/tests/suites/certification/ci-pics-values +++ b/src/app/tests/suites/certification/ci-pics-values @@ -494,7 +494,7 @@ I.S.C01.Rsp=1 I.S.C40.Rsp=1 I.S.C00.Tx=0 I.C.C00.Tx=1 -I.C.C01.Tx=1 +I.C.C01.Tx=0 I.C.C40.Tx=1 I.C.C00.Rsp=1 I.S.F00=0 @@ -577,6 +577,22 @@ LUNIT.C.A0000.Kelvin=1 #Multiple Fabrics PICS_MF=1 PICS_MF_BCM=1 +CADMIN.UserInterfaceDisplay=1 +CADMIN.AudioInterface=1 +CADMIN.S.C0000=1 +CADMIN.S.C0001=1 +CADMIN.S.C0002=1 +OPCREDS.S.C0a.Rsp=1 +OPCREDS.S.A0001=1 +BINFO.S.A0005=1 +CADMIN.S.A0000=1 +CADMIN.C.C0000=1 +CADMIN.C.C0001=1 +CADMIN.C.C0002=1 +CADMIN.C.A0000=1 +OPCREDS.C.C0a.Tx=1 +OPCREDS.C.A0001=1 +BINFO.C.A0005=1 #OTA Software Update MCORE.OTA.Requestor=1 diff --git a/src/app/tests/suites/tests.js b/src/app/tests/suites/tests.js index c22c2b69480f7d..a479b7c67554f0 100644 --- a/src/app/tests/suites/tests.js +++ b/src/app/tests/suites/tests.js @@ -245,16 +245,14 @@ function getManualTests() { "Test_TC_CADMIN_1_22", "Test_TC_CADMIN_1_23", "Test_TC_CADMIN_1_24", - "Test_TC_CADMIN_1_25", - "Test_TC_CADMIN_1_26", - "Test_TC_CADMIN_1_27", - "Test_TC_CADMIN_1_28", // Slow tests that should not run in CI because they take many minutes each "Test_TC_CADMIN_1_5", "Test_TC_CADMIN_1_6", "Test_TC_CADMIN_1_9", "Test_TC_CADMIN_1_10", "Test_TC_CADMIN_1_15", + "Test_TC_CADMIN_1_25", + "Test_TC_CADMIN_1_26", ]; const ModeSelect = [ From 5b6ca6fd3b5d86c0c2a5bf7a4249fb461c86944a Mon Sep 17 00:00:00 2001 From: manjunath-grl Date: Sat, 16 Jul 2022 00:28:03 +0530 Subject: [PATCH 2/4] Auto generated files --- .../chip-tool/zap-generated/test/Commands.h | 3511 ++++++++++------- .../zap-generated/test/Commands.h | 1798 +++++++-- 2 files changed, 3387 insertions(+), 1922 deletions(-) diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 97fe37ecc3d274..7fd9aaf079b39c 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -409,15 +409,13 @@ class ManualTestList : public Command printf("Test_TC_CADMIN_1_22\n"); printf("Test_TC_CADMIN_1_23\n"); printf("Test_TC_CADMIN_1_24\n"); - printf("Test_TC_CADMIN_1_25\n"); - printf("Test_TC_CADMIN_1_26\n"); - printf("Test_TC_CADMIN_1_27\n"); - printf("Test_TC_CADMIN_1_28\n"); printf("Test_TC_CADMIN_1_5\n"); printf("Test_TC_CADMIN_1_6\n"); printf("Test_TC_CADMIN_1_9\n"); printf("Test_TC_CADMIN_1_10\n"); printf("Test_TC_CADMIN_1_15\n"); + printf("Test_TC_CADMIN_1_25\n"); + printf("Test_TC_CADMIN_1_26\n"); printf("Test_TC_MOD_1_2\n"); printf("Test_TC_MOD_1_3\n"); printf("Test_TC_MOD_2_1\n"); @@ -2081,7 +2079,6 @@ class Test_TC_BOOL_2_1Suite : public TestCommand { bool value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("stateValue", value, 0)); VerifyOrReturn(CheckConstraintType("value", "", "bool")); } break; @@ -4585,7 +4582,7 @@ class Test_TC_CC_3_3Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMinValue("value", value, 5U)); VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U)); } break; @@ -4603,7 +4600,7 @@ class Test_TC_CC_3_3Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 249U)); } break; case 10: @@ -4664,7 +4661,7 @@ class Test_TC_CC_3_3Suite : public TestCommand chip::app::Clusters::ColorControl::Commands::StepHue::Type value; value.stepMode = static_cast(1); value.stepSize = 5U; - value.transitionTime = 25U; + value.transitionTime = 5U; value.optionsMask = 0U; value.optionsOverride = 0U; return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepHue::Id, value, @@ -4673,10 +4670,10 @@ class Test_TC_CC_3_3Suite : public TestCommand ); } case 5: { - LogStep(5, "Wait 25ms"); + LogStep(5, "Wait 1000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 25UL; + value.ms = 1000UL; return WaitForMs(kIdentityAlpha, value); } case 6: { @@ -4692,7 +4689,7 @@ class Test_TC_CC_3_3Suite : public TestCommand chip::app::Clusters::ColorControl::Commands::StepHue::Type value; value.stepMode = static_cast(3); value.stepSize = 5U; - value.transitionTime = 25U; + value.transitionTime = 5U; value.optionsMask = 0U; value.optionsOverride = 0U; return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepHue::Id, value, @@ -4701,10 +4698,10 @@ class Test_TC_CC_3_3Suite : public TestCommand ); } case 8: { - LogStep(8, "Wait 25ms"); + LogStep(8, "Wait 1000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 25UL; + value.ms = 1000UL; return WaitForMs(kIdentityAlpha, value); } case 9: { @@ -12622,7 +12619,7 @@ class Test_TC_DGGEN_2_1Suite : public TestCommand class Test_TC_I_1_1Suite : public TestCommand { public: - Test_TC_I_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_1_1", 9, credsIssuerConfig) + Test_TC_I_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_1_1", 11, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -12716,13 +12713,8 @@ class Test_TC_I_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("generatedCommandList", iter_0, 0)); - VerifyOrReturn(CheckValue("generatedCommandList[0]", iter_0.GetValue(), 0UL)); - VerifyOrReturn(CheckNoMoreListItems("generatedCommandList", iter_0, 1)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 0UL)); } break; case 7: @@ -12730,289 +12722,325 @@ class Test_TC_I_1_1Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNoMoreListItems("generatedCommandList", iter_0, 0)); - } VerifyOrReturn(CheckConstraintType("value", "", "list")); + VerifyOrReturn(CheckConstraintContains("value", value, 1UL)); } break; case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "TH reads the ClusterRevision attribute from the DUT"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::ClusterRevision::Id, true, - chip::NullOptional); - } - case 2: { - LogStep(2, "TH reads the FeatureMap attribute from the DUT"); - VerifyOrDo(!ShouldSkip(" !I.S.F00 "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::FeatureMap::Id, true, - chip::NullOptional); - } - case 3: { - LogStep(3, "TH reads the FeatureMap attribute from the DUT"); - VerifyOrDo(!ShouldSkip("I.S.F00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::FeatureMap::Id, true, - chip::NullOptional); - } - case 4: { - LogStep(4, "Read the global attribute: AttributeList"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::AttributeList::Id, true, - chip::NullOptional); - } - case 5: { - LogStep(5, "Read the global attribute: AcceptedCommandList"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::AcceptedCommandList::Id, true, - chip::NullOptional); - } - case 6: { - LogStep(6, "Read the global attribute: GeneratedCommandList"); - VerifyOrDo(!ShouldSkip("I.S.C00.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::GeneratedCommandList::Id, true, - chip::NullOptional); - } - case 7: { - LogStep(7, "Read the global attribute: GeneratedCommandList"); - VerifyOrDo(!ShouldSkip(" !I.S.C00.Tx "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::GeneratedCommandList::Id, true, - chip::NullOptional); - } - case 8: { - LogStep(8, - "Read EventList attribute from the DUT and Verify that the DUT response provides a list of supported events."); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_I_2_1Suite : public TestCommand -{ -public: - Test_TC_I_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_1", 3, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_I_2_1Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "uint16")); - } - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "enum8")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 5U)); - } - break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "Wait for the commissioned device to be retrieved"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "TH reads the IdentifyTime attribute from the DUT"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::IdentifyTime::Id, true, - chip::NullOptional); - } - case 2: { - LogStep(2, "TH reads the IdentifyType attribute from the DUT"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::IdentifyType::Id, true, - chip::NullOptional); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_I_2_2Suite : public TestCommand -{ -public: - Test_TC_I_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_2", 12, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_I_2_2Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintMinValue("value", value, 55U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 65U)); - } - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; + chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintMinValue("value", value, 45U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 55U)); + { + auto iter_0 = value.begin(); + VerifyOrReturn(CheckNextListItemDecodes("generatedCommandList", iter_0, 0)); + VerifyOrReturn(CheckValue("generatedCommandList[0]", iter_0.GetValue(), 0UL)); + VerifyOrReturn(CheckNoMoreListItems("generatedCommandList", iter_0, 1)); + } + VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 7: + case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; + chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("identifyTime", value, 0U)); + { + auto iter_0 = value.begin(); + VerifyOrReturn(CheckNoMoreListItems("generatedCommandList", iter_0, 0)); + } + VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 9: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint16_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintMinValue("value", value, 5U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 15U)); - } - break; + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + case 0: { + LogStep(0, "Wait for the commissioned device to be retrieved"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "TH reads the ClusterRevision attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::ClusterRevision::Id, true, + chip::NullOptional); + } + case 2: { + LogStep(2, "TH reads the FeatureMap attribute from the DUT"); + VerifyOrDo(!ShouldSkip(" !I.S.F00 "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::FeatureMap::Id, true, + chip::NullOptional); + } + case 3: { + LogStep(3, "TH reads the FeatureMap attribute from the DUT"); + VerifyOrDo(!ShouldSkip("I.S.F00"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::FeatureMap::Id, true, + chip::NullOptional); + } + case 4: { + LogStep(4, "Read the global attribute: AttributeList"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::AttributeList::Id, true, + chip::NullOptional); + } + case 5: { + LogStep(5, "Read the global attribute: AcceptedCommandList"); + VerifyOrDo(!ShouldSkip("I.C.C40.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::AcceptedCommandList::Id, true, + chip::NullOptional); + } + case 6: { + LogStep(6, "Read the global attribute: AcceptedCommandList"); + VerifyOrDo(!ShouldSkip(" !I.C.C40.Tx "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::AcceptedCommandList::Id, true, + chip::NullOptional); + } + case 7: { + LogStep(7, "Read the optional attribute(IdentifyQuery) in AcceptedCommandList"); + VerifyOrDo(!ShouldSkip("I.C.C01.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::AcceptedCommandList::Id, true, + chip::NullOptional); + } + case 8: { + LogStep(8, "Read the global attribute: GeneratedCommandList"); + VerifyOrDo(!ShouldSkip("I.S.C00.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::GeneratedCommandList::Id, true, + chip::NullOptional); + } + case 9: { + LogStep(9, "Read the global attribute: GeneratedCommandList"); + VerifyOrDo(!ShouldSkip(" !I.S.C00.Tx "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::GeneratedCommandList::Id, true, + chip::NullOptional); + } + case 10: { + LogStep(10, + "Read EventList attribute from the DUT and Verify that the DUT response provides a list of supported events."); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_I_2_1Suite : public TestCommand +{ +public: + Test_TC_I_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_1", 3, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_I_2_1Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + } + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintType("value", "", "enum8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 5U)); + } + break; + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + case 0: { + LogStep(0, "Wait for the commissioned device to be retrieved"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "TH reads the IdentifyTime attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::IdentifyTime::Id, true, + chip::NullOptional); + } + case 2: { + LogStep(2, "TH reads the IdentifyType attribute from the DUT"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Attributes::IdentifyType::Id, true, + chip::NullOptional); + } + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_I_2_2Suite : public TestCommand +{ +public: + Test_TC_I_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_I_2_2", 12, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + } + + ~Test_TC_I_2_2Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override + { + return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + } + +private: + chip::Optional mNodeId; + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mTimeout; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintMinValue("value", value, 55U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65U)); + } + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintMinValue("value", value, 45U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 55U)); + } + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("identifyTime", value, 0U)); + } + break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 10: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 11: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckConstraintMinValue("value", value, 5U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 15U)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -14339,7 +14367,6 @@ class Test_TC_LVL_2_1Suite : public TestCommand { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("onOffTransitionTime", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; @@ -14484,13 +14511,13 @@ class Test_TC_LVL_2_1Suite : public TestCommand } case 9: { LogStep(9, "Step 4b & 4C Reads the CurrentLevel attribute"); - VerifyOrDo(!ShouldSkip("LVL.S.F01"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.F01 && LVL.S.A0002 && LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } case 10: { LogStep(10, "Step 4b & 4C Reads the CurrentLevel attribute"); - VerifyOrDo(!ShouldSkip(" !LVL.S.F01 "), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("LVL.S.A0002 && LVL.S.A0003 && !LVL.S.F01"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } @@ -14579,6 +14606,12 @@ class Test_TC_LVL_2_2Suite : public TestCommand AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("OnOffTransitionTimeConfigValue", 0, UINT16_MAX, &mOnOffTransitionTimeConfigValue); + AddArgument("OnLevelConfigValue", 0, UINT8_MAX, &mOnLevelConfigValue); + AddArgument("OnTransitionTimeConfigValue", 0, UINT16_MAX, &mOnTransitionTimeConfigValue); + AddArgument("OffTransitionTimeConfigValue", 0, UINT16_MAX, &mOffTransitionTimeConfigValue); + AddArgument("DefaultMoveRateConfigValue", 0, UINT8_MAX, &mDefaultMoveRateConfigValue); + AddArgument("StartUpCurrentLevelConfigValue", 0, UINT8_MAX, &mStartUpCurrentLevelConfigValue); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } @@ -14593,11 +14626,19 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mOnOffTransitionTimeConfigValue; + chip::Optional mOnLevelConfigValue; + chip::Optional mOnTransitionTimeConfigValue; + chip::Optional mOffTransitionTimeConfigValue; + chip::Optional mDefaultMoveRateConfigValue; + chip::Optional mStartUpCurrentLevelConfigValue; chip::Optional mTimeout; + uint16_t OnOffTransitionTimeValue; chip::app::DataModel::Nullable OnLevelValue; chip::app::DataModel::Nullable OnTransitionTimeValue; chip::app::DataModel::Nullable OffTransitionTimeValue; + chip::app::DataModel::Nullable DefaultMoveRatevalue; chip::app::DataModel::Nullable StartUpCurrentLevelValue; chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } @@ -14621,8 +14662,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("onOffTransitionTime", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + OnOffTransitionTimeValue = value; } break; case 2: @@ -14633,8 +14674,11 @@ class Test_TC_LVL_2_2Suite : public TestCommand { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("onOffTransitionTime", value, 10U)); + VerifyOrReturn( + CheckValue("onOffTransitionTime", value, + mOnOffTransitionTimeConfigValue.HasValue() ? mOnOffTransitionTimeConfigValue.Value() : 10U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintNotValue("value", value, OnOffTransitionTimeValue)); } break; case 4: @@ -14655,7 +14699,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("onLevel", value)); - VerifyOrReturn(CheckValue("onLevel.Value()", value.Value(), 254U)); + VerifyOrReturn(CheckValue("onLevel.Value()", value.Value(), + mOnLevelConfigValue.HasValue() ? mOnLevelConfigValue.Value() : 5U)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); VerifyOrReturn(CheckConstraintNotValue("value", value, OnLevelValue)); } @@ -14678,7 +14723,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("onTransitionTime", value)); - VerifyOrReturn(CheckValue("onTransitionTime.Value()", value.Value(), 100U)); + VerifyOrReturn(CheckValue("onTransitionTime.Value()", value.Value(), + mOnTransitionTimeConfigValue.HasValue() ? mOnTransitionTimeConfigValue.Value() : 5U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("value", value, OnTransitionTimeValue)); } @@ -14701,7 +14747,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("offTransitionTime", value)); - VerifyOrReturn(CheckValue("offTransitionTime.Value()", value.Value(), 100U)); + VerifyOrReturn(CheckValue("offTransitionTime.Value()", value.Value(), + mOffTransitionTimeConfigValue.HasValue() ? mOffTransitionTimeConfigValue.Value() : 10U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("value", value, OffTransitionTimeValue)); } @@ -14711,9 +14758,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand { chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueNonNull("defaultMoveRate", value)); - VerifyOrReturn(CheckValue("defaultMoveRate.Value()", value.Value(), 50U)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + DefaultMoveRatevalue = value; } break; case 14: @@ -14725,8 +14771,10 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("defaultMoveRate", value)); - VerifyOrReturn(CheckValue("defaultMoveRate.Value()", value.Value(), 100U)); + VerifyOrReturn(CheckValue("defaultMoveRate.Value()", value.Value(), + mDefaultMoveRateConfigValue.HasValue() ? mDefaultMoveRateConfigValue.Value() : 111U)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintNotValue("value", value, DefaultMoveRatevalue)); } break; case 16: @@ -14747,7 +14795,9 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValueNonNull("startUpCurrentLevel", value)); - VerifyOrReturn(CheckValue("startUpCurrentLevel.Value()", value.Value(), 254U)); + VerifyOrReturn( + CheckValue("startUpCurrentLevel.Value()", value.Value(), + mStartUpCurrentLevelConfigValue.HasValue() ? mStartUpCurrentLevelConfigValue.Value() : 5U)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); VerifyOrReturn(CheckConstraintNotValue("value", value, StartUpCurrentLevelValue)); } @@ -14788,7 +14838,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; uint16_t value; - value = 10U; + value = mOnOffTransitionTimeConfigValue.HasValue() ? mOnOffTransitionTimeConfigValue.Value() : 10U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, value, chip::NullOptional, chip::NullOptional); } @@ -14810,7 +14860,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); - value.Value() = 254U; + value.Value() = mOnLevelConfigValue.HasValue() ? mOnLevelConfigValue.Value() : 5U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnLevel::Id, value, chip::NullOptional, chip::NullOptional); } @@ -14832,7 +14882,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); - value.Value() = 100U; + value.Value() = mOnTransitionTimeConfigValue.HasValue() ? mOnTransitionTimeConfigValue.Value() : 5U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnTransitionTime::Id, value, chip::NullOptional, chip::NullOptional); } @@ -14854,7 +14904,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); - value.Value() = 100U; + value.Value() = mOffTransitionTimeConfigValue.HasValue() ? mOffTransitionTimeConfigValue.Value() : 10U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OffTransitionTime::Id, value, chip::NullOptional, chip::NullOptional); } @@ -14876,7 +14926,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); - value.Value() = 100U; + value.Value() = mDefaultMoveRateConfigValue.HasValue() ? mDefaultMoveRateConfigValue.Value() : 111U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, value, chip::NullOptional, chip::NullOptional); } @@ -14898,7 +14948,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand ListFreer listFreer; chip::app::DataModel::Nullable value; value.SetNonNull(); - value.Value() = 254U; + value.Value() = mStartUpCurrentLevelConfigValue.HasValue() ? mStartUpCurrentLevelConfigValue.Value() : 5U; return WriteAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::StartUpCurrentLevel::Id, value, chip::NullOptional, chip::NullOptional); } @@ -14925,7 +14975,7 @@ class Test_TC_LVL_2_2Suite : public TestCommand class Test_TC_LVL_3_1Suite : public TestCommand { public: - Test_TC_LVL_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_3_1", 18, credsIssuerConfig) + Test_TC_LVL_3_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_3_1", 22, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -14963,6 +15013,17 @@ class Test_TC_LVL_3_1Suite : public TestCommand shouldContinue = true; break; case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 1)); + } + break; + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -14970,7 +15031,7 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 2: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -14978,14 +15039,14 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint8")); } break; - case 3: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 4: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 5: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -14993,14 +15054,14 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentLevel", value, 64U)); } break; - case 6: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 7: + case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 8: + case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15008,14 +15069,14 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentLevel", value, 100U)); } break; - case 9: + case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 10: + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 11: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15023,7 +15084,7 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentLevel", value, 128U)); } break; - case 12: + case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -15031,14 +15092,14 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckConstraintType("value", "", "uint16")); } break; - case 13: + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 14: + case 16: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 15: + case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15046,13 +15107,24 @@ class Test_TC_LVL_3_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentLevel", value, 64U)); } break; - case 16: + case 18: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 17: + case 19: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 0)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -15076,19 +15148,33 @@ class Test_TC_LVL_3_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Reads the MinLevel attribute"); + LogStep(1, "Precondition Send On Command"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::On::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional + + ); + } + case 2: { + LogStep(2, "Check on/off attribute value is true after on command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } + case 3: { + LogStep(3, "Reads the MinLevel attribute"); VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } - case 2: { - LogStep(2, "Reads the MaxLevel attribute"); + case 4: { + LogStep(4, "Reads the MaxLevel attribute"); VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id, true, chip::NullOptional); } - case 3: { - LogStep(3, "sends a MoveToLevelWithOnOff command"); + case 5: { + LogStep(5, "sends a MoveToLevelWithOnOff command"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type value; @@ -15099,21 +15185,21 @@ class Test_TC_LVL_3_1Suite : public TestCommand ); } - case 4: { - LogStep(4, "Wait 100ms"); + case 6: { + LogStep(6, "Wait 100ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } - case 5: { - LogStep(5, "Reads CurrentLevel attribute from DUT"); + case 7: { + LogStep(7, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C04.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 6: { - LogStep(6, "sends a Move to level command"); + case 8: { + LogStep(8, "sends a Move to level command"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -15126,21 +15212,21 @@ class Test_TC_LVL_3_1Suite : public TestCommand ); } - case 7: { - LogStep(7, "Wait 100 second"); + case 9: { + LogStep(9, "Wait 100 second"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } - case 8: { - LogStep(8, "Reads CurrentLevel attribute from DUT"); + case 10: { + LogStep(10, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 9: { - LogStep(9, "sends a Move to level command"); + case 11: { + LogStep(11, "sends a Move to level command"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.M.VarRate"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -15153,28 +15239,28 @@ class Test_TC_LVL_3_1Suite : public TestCommand ); } - case 10: { - LogStep(10, "Wait 11000ms"); + case 12: { + LogStep(12, "Wait 11000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 11000UL; return WaitForMs(kIdentityAlpha, value); } - case 11: { - LogStep(11, "Reads CurrentLevel attribute from DUT"); + case 13: { + LogStep(13, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000 && LVL.S.M.VarRate"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 12: { - LogStep(12, "Reads the OnOffTransitionTime attribute from the DUT"); + case 14: { + LogStep(14, "Reads the OnOffTransitionTime attribute from the DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::OnOffTransitionTime::Id, true, chip::NullOptional); } - case 13: { - LogStep(13, "sends a Move to level command"); + case 15: { + LogStep(15, "sends a Move to level command"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -15187,21 +15273,21 @@ class Test_TC_LVL_3_1Suite : public TestCommand ); } - case 14: { - LogStep(14, "Wait 1000ms"); + case 16: { + LogStep(16, "Wait 1000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 1000UL; return WaitForMs(kIdentityAlpha, value); } - case 15: { - LogStep(15, "Reads CurrentLevel attribute from DUT"); + case 17: { + LogStep(17, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 16: { - LogStep(16, "Reset level to 254"); + case 18: { + LogStep(18, "Reset level to 254"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -15214,13 +15300,27 @@ class Test_TC_LVL_3_1Suite : public TestCommand ); } - case 17: { - LogStep(17, "Wait 100ms"); + case 19: { + LogStep(19, "Wait 100ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } + case 20: { + LogStep(20, "Precondition send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::Off::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional + + ); + } + case 21: { + LogStep(21, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } } return CHIP_NO_ERROR; } @@ -15229,7 +15329,7 @@ class Test_TC_LVL_3_1Suite : public TestCommand class Test_TC_LVL_4_1Suite : public TestCommand { public: - Test_TC_LVL_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_4_1", 18, credsIssuerConfig) + Test_TC_LVL_4_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_4_1", 22, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -15271,6 +15371,17 @@ class Test_TC_LVL_4_1Suite : public TestCommand shouldContinue = true; break; case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 1)); + } + break; + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15279,10 +15390,10 @@ class Test_TC_LVL_4_1Suite : public TestCommand MinlevelValue = value; } break; - case 2: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 3: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15291,18 +15402,18 @@ class Test_TC_LVL_4_1Suite : public TestCommand MaxlevelValue = value; } break; - case 4: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 5: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 6: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 7: + case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15310,18 +15421,18 @@ class Test_TC_LVL_4_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentLevel", value, MaxlevelValue)); } break; - case 8: + case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 9: + case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 10: + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 11: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15331,7 +15442,7 @@ class Test_TC_LVL_4_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 1U)); } break; - case 12: + case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { chip::app::DataModel::Nullable value; @@ -15340,24 +15451,35 @@ class Test_TC_LVL_4_1Suite : public TestCommand DefaultMoveRateValue = value; } break; - case 13: + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 14: + case 16: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 15: + case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 16: + case 18: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 17: + case 19: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 0)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -15381,13 +15503,27 @@ class Test_TC_LVL_4_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Reads Minlevel attribute from DUT"); + LogStep(1, "Precondition Send On Command"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::On::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional + + ); + } + case 2: { + LogStep(2, "Check on/off attribute value is true after on command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } + case 3: { + LogStep(3, "Reads Minlevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } - case 2: { - LogStep(2, "sends a MoveToLevelWithOnOff command"); + case 4: { + LogStep(4, "sends a MoveToLevelWithOnOff command"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type value; @@ -15398,14 +15534,14 @@ class Test_TC_LVL_4_1Suite : public TestCommand ); } - case 3: { - LogStep(3, "reads max level attribute from DUT"); + case 5: { + LogStep(5, "reads max level attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MaxLevel::Id, true, chip::NullOptional); } - case 4: { - LogStep(4, "sends a Move up command"); + case 6: { + LogStep(6, "sends a Move up command"); VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; @@ -15418,8 +15554,8 @@ class Test_TC_LVL_4_1Suite : public TestCommand ); } - case 5: { - LogStep(5, + case 7: { + LogStep(7, "Physically verify that the DUT moves at a rate of 32 units per second or as close as possible to this rate " "and completes moving to its maximum level"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); @@ -15430,21 +15566,21 @@ class Test_TC_LVL_4_1Suite : public TestCommand value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } - case 6: { - LogStep(6, "Wait 9000ms"); + case 8: { + LogStep(8, "Wait 9000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 9000UL; return WaitForMs(kIdentityAlpha, value); } - case 7: { - LogStep(7, "Reads CurrentLevel attribute from DUT"); + case 9: { + LogStep(9, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp && LVL.S.A0000 && LVL.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 8: { - LogStep(8, "sends a MoveWithOnOff command"); + case 10: { + LogStep(10, "sends a MoveWithOnOff command"); VerifyOrDo(!ShouldSkip("LVL.S.C05.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type value; @@ -15455,8 +15591,8 @@ class Test_TC_LVL_4_1Suite : public TestCommand ); } - case 9: { - LogStep(9, + case 11: { + LogStep(11, "Physically verify that the DUT moves at a rate of 64 units per second or as close as possible to this rate " "and complete moving to its minimum level"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); @@ -15467,27 +15603,27 @@ class Test_TC_LVL_4_1Suite : public TestCommand value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } - case 10: { - LogStep(10, "Wait 5000ms"); + case 12: { + LogStep(12, "Wait 5000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 5000UL; return WaitForMs(kIdentityAlpha, value); } - case 11: { - LogStep(11, "reads CurrentLevel attribute from DUT"); + case 13: { + LogStep(13, "reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 12: { - LogStep(12, "reads default move rate attribute from DUT"); + case 14: { + LogStep(14, "reads default move rate attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::DefaultMoveRate::Id, true, chip::NullOptional); } - case 13: { - LogStep(13, "sends a Move up command at default move rate"); + case 15: { + LogStep(15, "sends a Move up command at default move rate"); VerifyOrDo(!ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0014"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; @@ -15500,15 +15636,15 @@ class Test_TC_LVL_4_1Suite : public TestCommand ); } - case 14: { - LogStep(14, "Wait 100ms"); + case 16: { + LogStep(16, "Wait 100ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } - case 15: { - LogStep(15, + case 17: { + LogStep(17, "Physically verify that the device moves at the rate recorded in step 3a and completes moving to its maximum " "level"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); @@ -15519,8 +15655,8 @@ class Test_TC_LVL_4_1Suite : public TestCommand value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } - case 16: { - LogStep(16, "Reset level to 254"); + case 18: { + LogStep(18, "Reset level to 254"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -15533,13 +15669,27 @@ class Test_TC_LVL_4_1Suite : public TestCommand ); } - case 17: { - LogStep(17, "Wait 100ms"); + case 19: { + LogStep(19, "Wait 100ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } + case 20: { + LogStep(20, "Precondition send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::Off::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional + + ); + } + case 21: { + LogStep(21, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } } return CHIP_NO_ERROR; } @@ -15548,7 +15698,7 @@ class Test_TC_LVL_4_1Suite : public TestCommand class Test_TC_LVL_5_1Suite : public TestCommand { public: - Test_TC_LVL_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_5_1", 12, credsIssuerConfig) + Test_TC_LVL_5_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_5_1", 16, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -15589,6 +15739,17 @@ class Test_TC_LVL_5_1Suite : public TestCommand shouldContinue = true; break; case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 1)); + } + break; + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15597,10 +15758,10 @@ class Test_TC_LVL_5_1Suite : public TestCommand MinlevelValue = value; } break; - case 2: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 3: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15610,14 +15771,14 @@ class Test_TC_LVL_5_1Suite : public TestCommand CurrentlevelValue = value; } break; - case 4: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 5: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 6: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15627,14 +15788,14 @@ class Test_TC_LVL_5_1Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 68U)); } break; - case 7: + case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 8: + case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 9: + case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15642,13 +15803,24 @@ class Test_TC_LVL_5_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentLevel", value, CurrentlevelValue)); } break; - case 10: + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 11: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 0)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -15672,13 +15844,27 @@ class Test_TC_LVL_5_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Reads Minlevel attribute from DUT"); + LogStep(1, "Precondition Send On Command"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::On::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional + + ); + } + case 2: { + LogStep(2, "Check on/off attribute value is true after on command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } + case 3: { + LogStep(3, "Reads Minlevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } - case 2: { - LogStep(2, "Sends MoveToLevelWithOnOff command to DUT"); + case 4: { + LogStep(4, "Sends MoveToLevelWithOnOff command to DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type value; @@ -15689,14 +15875,14 @@ class Test_TC_LVL_5_1Suite : public TestCommand ); } - case 3: { - LogStep(3, "Reads current level attribute from DUT"); + case 5: { + LogStep(5, "Reads current level attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 4: { - LogStep(4, "Sends step up command to DUT"); + case 6: { + LogStep(6, "Sends step up command to DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C02.Rsp && LVL.S.M.VarRate"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Step::Type value; @@ -15710,21 +15896,21 @@ class Test_TC_LVL_5_1Suite : public TestCommand ); } - case 5: { - LogStep(5, "Wait 4000ms"); + case 7: { + LogStep(7, "Wait 4000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 4000UL; return WaitForMs(kIdentityAlpha, value); } - case 6: { - LogStep(6, "Reads current level attribute from DUT"); + case 8: { + LogStep(8, "Reads current level attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0000 && LVL.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 7: { - LogStep(7, "Sends a StepWithOnOff command"); + case 9: { + LogStep(9, "Sends a StepWithOnOff command"); VerifyOrDo(!ShouldSkip("LVL.S.C06.Rsp && LVL.S.M.VarRate"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type value; @@ -15736,21 +15922,21 @@ class Test_TC_LVL_5_1Suite : public TestCommand ); } - case 8: { - LogStep(8, "Wait 4000ms"); + case 10: { + LogStep(10, "Wait 4000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 4000UL; return WaitForMs(kIdentityAlpha, value); } - case 9: { - LogStep(9, "Reads current level attribute from DUT"); + case 11: { + LogStep(11, "Reads current level attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C06.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 10: { - LogStep(10, "Reset level to 254"); + case 12: { + LogStep(12, "Reset level to 254"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -15763,13 +15949,27 @@ class Test_TC_LVL_5_1Suite : public TestCommand ); } - case 11: { - LogStep(11, "Wait 100ms"); + case 13: { + LogStep(13, "Wait 100ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } + case 14: { + LogStep(14, "Precondition send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::Off::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional + + ); + } + case 15: { + LogStep(15, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } } return CHIP_NO_ERROR; } @@ -15778,7 +15978,7 @@ class Test_TC_LVL_5_1Suite : public TestCommand class Test_TC_LVL_6_1Suite : public TestCommand { public: - Test_TC_LVL_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_6_1", 16, credsIssuerConfig) + Test_TC_LVL_6_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_LVL_6_1", 20, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -15819,6 +16019,17 @@ class Test_TC_LVL_6_1Suite : public TestCommand shouldContinue = true; break; case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 1)); + } + break; + case 3: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15827,10 +16038,10 @@ class Test_TC_LVL_6_1Suite : public TestCommand MinlevelValue = value; } break; - case 2: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 3: + case 5: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15840,21 +16051,21 @@ class Test_TC_LVL_6_1Suite : public TestCommand CurrentLevelValue = value; } break; - case 4: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 5: + case 7: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 6: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 7: + case 9: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 8: + case 10: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15864,21 +16075,21 @@ class Test_TC_LVL_6_1Suite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, CurrentLevelValue)); } break; - case 9: + case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 10: + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 11: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 12: + case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 13: + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint8_t value; @@ -15888,13 +16099,24 @@ class Test_TC_LVL_6_1Suite : public TestCommand VerifyOrReturn(CheckConstraintNotValue("value", value, CurrentLevelValue)); } break; - case 14: + case 16: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 15: + case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + bool value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("onOff", value, 0)); + } + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -15918,13 +16140,27 @@ class Test_TC_LVL_6_1Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Reads Minlevel attribute from DUT"); + LogStep(1, "Precondition Send On Command"); + VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::On::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::On::Id, value, chip::NullOptional + + ); + } + case 2: { + LogStep(2, "Check on/off attribute value is true after on command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } + case 3: { + LogStep(3, "Reads Minlevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::MinLevel::Id, true, chip::NullOptional); } - case 2: { - LogStep(2, "Sends MoveToLevelWithOnOff command to DUT"); + case 4: { + LogStep(4, "Sends MoveToLevelWithOnOff command to DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type value; @@ -15935,14 +16171,14 @@ class Test_TC_LVL_6_1Suite : public TestCommand ); } - case 3: { - LogStep(3, "Reads CurrentLevel attribute from DUT"); + case 5: { + LogStep(5, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 4: { - LogStep(4, "Sends a move up command to DUT"); + case 6: { + LogStep(6, "Sends a move up command to DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; @@ -15955,15 +16191,15 @@ class Test_TC_LVL_6_1Suite : public TestCommand ); } - case 5: { - LogStep(5, "Wait 5000ms"); + case 7: { + LogStep(7, "Wait 5000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 5000UL; return WaitForMs(kIdentityAlpha, value); } - case 6: { - LogStep(6, "Sends stop command to DUT"); + case 8: { + LogStep(8, "Sends stop command to DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C03.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Stop::Type value; @@ -15974,8 +16210,8 @@ class Test_TC_LVL_6_1Suite : public TestCommand ); } - case 7: { - LogStep(7, "Physically verify that the device has stopped transitioning"); + case 9: { + LogStep(9, "Physically verify that the device has stopped transitioning"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; @@ -15984,15 +16220,15 @@ class Test_TC_LVL_6_1Suite : public TestCommand value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } - case 8: { - LogStep(8, "Reads CurrentLevel attribute from DUT"); + case 10: { + LogStep(10, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp && LVL.S.C03.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 9: { - LogStep(9, "Sends a move up command to DUT"); + case 11: { + LogStep(11, "Sends a move up command to DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Move::Type value; @@ -16005,15 +16241,15 @@ class Test_TC_LVL_6_1Suite : public TestCommand ); } - case 10: { - LogStep(10, "Wait 5000ms"); + case 12: { + LogStep(12, "Wait 5000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 5000UL; return WaitForMs(kIdentityAlpha, value); } - case 11: { - LogStep(11, "Sends stop command to DUT"); + case 13: { + LogStep(13, "Sends stop command to DUT"); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::Stop::Type value; value.optionMask = 1U; @@ -16023,8 +16259,8 @@ class Test_TC_LVL_6_1Suite : public TestCommand ); } - case 12: { - LogStep(12, "Physically verify that the device has stopped transitioning"); + case 14: { + LogStep(14, "Physically verify that the device has stopped transitioning"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; @@ -16033,15 +16269,15 @@ class Test_TC_LVL_6_1Suite : public TestCommand value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } - case 13: { - LogStep(13, "Reads CurrentLevel attribute from DUT"); + case 15: { + LogStep(15, "Reads CurrentLevel attribute from DUT"); VerifyOrDo(!ShouldSkip("LVL.S.C01.Rsp && LVL.S.C07.Rsp && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), LevelControl::Id, LevelControl::Attributes::CurrentLevel::Id, true, chip::NullOptional); } - case 14: { - LogStep(14, "Reset level to 254"); + case 16: { + LogStep(16, "Reset level to 254"); VerifyOrDo(!ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type value; @@ -16054,13 +16290,27 @@ class Test_TC_LVL_6_1Suite : public TestCommand ); } - case 15: { - LogStep(15, "Wait 100ms"); + case 17: { + LogStep(17, "Wait 100ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs(kIdentityAlpha, value); } + case 18: { + LogStep(18, "Precondition send Off Command"); + VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::OnOff::Commands::Off::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional + + ); + } + case 19: { + LogStep(19, "Check on/off attribute value is false after off command"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } } return CHIP_NO_ERROR; } @@ -16747,7 +16997,7 @@ class Test_TC_MEDIAINPUT_1_4Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Read the global attribute: ClusterRevision"); + LogStep(1, "read the global attribute: ClusterRevision"); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::ClusterRevision::Id, true, chip::NullOptional); } @@ -16764,13 +17014,13 @@ class Test_TC_MEDIAINPUT_1_4Suite : public TestCommand chip::NullOptional); } case 4: { - LogStep(4, "Read the optonal attribute(InputList) in AttributeList"); + LogStep(4, "Read the optional attribute(InputList) in AttributeList"); VerifyOrDo(!ShouldSkip("MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::AttributeList::Id, true, chip::NullOptional); } case 5: { - LogStep(5, "Read the optonal attribute(CurrentInput) in AttributeList"); + LogStep(5, "Read the optional attribute(CurrentInput) in AttributeList"); VerifyOrDo(!ShouldSkip("MEDIAINPUT.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::AttributeList::Id, true, chip::NullOptional); @@ -17135,13 +17385,13 @@ class Test_TC_CHANNEL_1_6Suite : public TestCommand } case 5: { LogStep(5, "Reading optional attribute(Lineup) in AttributeList"); - VerifyOrDo(!ShouldSkip("CHANNEL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("CHANNEL.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::AttributeList::Id, true, chip::NullOptional); } case 6: { LogStep(6, "Read the optional attribute(CurrentChannel): AttributeList"); - VerifyOrDo(!ShouldSkip("CHANNEL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("CHANNEL.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::AttributeList::Id, true, chip::NullOptional); } @@ -18779,7 +19029,10 @@ class Test_TC_APPLAUNCHER_3_5Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -18807,13 +19060,9 @@ class Test_TC_APPLAUNCHER_3_5Suite : public TestCommand LogStep(1, "TH reads CatalogList attribute from the DUT and where each entry in the list is a CSA-issued Vendor Id of " "type unsigned 16 bit integer ranging between 0-65536 for the catalog"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && APPLAUNCHER.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + VerifyOrDo(!ShouldSkip("APPLAUNCHER.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationLauncher::Id, + ApplicationLauncher::Attributes::CatalogList::Id, true, chip::NullOptional); } } return CHIP_NO_ERROR; @@ -18863,7 +19112,11 @@ class Test_TC_APPLAUNCHER_3_6Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::Nullable + value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -18892,13 +19145,9 @@ class Test_TC_APPLAUNCHER_3_6Suite : public TestCommand "TH reads CurrentApp attribute from the DUT and Verify the in-focus application attributes, which should " "include the display Application ID(type:uint16) Catalog Vendor ID(type:string) or Null if there is no current " "in-focus application"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && APPLAUNCHER.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + VerifyOrDo(!ShouldSkip("APPLAUNCHER.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ApplicationLauncher::Id, + ApplicationLauncher::Attributes::CurrentApp::Id, true, chip::NullOptional); } } return CHIP_NO_ERROR; @@ -19284,7 +19533,10 @@ class Test_TC_MEDIAINPUT_3_10Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -19309,14 +19561,13 @@ class Test_TC_MEDIAINPUT_3_10Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "TH reads the InputList attribute from the DUT to show list of Inputs available"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, + "TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + "inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + "InputType (InputType Enums), Name (type: Strings), and Description(Type:String)"); + VerifyOrDo(!ShouldSkip("MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id, true, + chip::NullOptional); } } return CHIP_NO_ERROR; @@ -19366,7 +19617,10 @@ class Test_TC_MEDIAINPUT_3_11Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -19402,14 +19656,13 @@ class Test_TC_MEDIAINPUT_3_11Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "TH reads the InputList attribute from the DUT to show list of Inputs available"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, + "TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + "inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + "InputType (InputType Enums), Name (type: Strings), and Description(Type:String)"); + VerifyOrDo(!ShouldSkip("MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id, true, + chip::NullOptional); } case 2: { LogStep(2, "Select Input Command"); @@ -19479,7 +19732,6 @@ class Test_TC_MEDIAINPUT_3_12Suite : public TestCommand { chip::app::DataModel::DecodableList value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "list")); } break; case 2: @@ -19511,7 +19763,10 @@ class Test_TC_MEDIAINPUT_3_12Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Read attribute media input list"); + LogStep(1, + "TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + "inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + "InputType (InputType Enums), Name (type: Strings), and Description(Type:String)"); VerifyOrDo(!ShouldSkip("MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id, true, chip::NullOptional); @@ -19584,7 +19839,10 @@ class Test_TC_MEDIAINPUT_3_13Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -19616,14 +19874,13 @@ class Test_TC_MEDIAINPUT_3_13Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "TH reads the InputList attribute from the DUT to show list of Inputs available"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, + "TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + "inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + "InputType (InputType Enums), Name (type: Strings), and Description(Type:String)"); + VerifyOrDo(!ShouldSkip("MEDIAINPUT.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), MediaInput::Id, MediaInput::Attributes::InputList::Id, true, + chip::NullOptional); } case 2: { LogStep(2, "Rename Input Command"); @@ -19695,7 +19952,10 @@ class Test_TC_CHANNEL_5_1Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::DecodableList value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -19721,15 +19981,13 @@ class Test_TC_CHANNEL_5_1Suite : public TestCommand } case 1: { LogStep(1, - "TH reads the ChannelList attribute from the DUT and Verify that the response contains a list of the known TV " - "channels"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && CHANNEL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + "TH reads the ChannelList attribute from the DUT to show list of Inputs available and Verify that the response " + "contains a list of the known TV channels. Each list element should consist of the following,Major number " + "(unsigned 16-bit integer, mandatory),Minor number (unsigned 16-bit integer, mandatory),Name (String, " + "optional),Call sign (String, optional),Affiliate call sign (String, optional)"); + VerifyOrDo(!ShouldSkip("CHANNEL.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::ChannelList::Id, true, + chip::NullOptional); } } return CHIP_NO_ERROR; @@ -19913,7 +20171,10 @@ class Test_TC_CHANNEL_5_3Suite : public TestCommand break; case 1: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + { + chip::app::DataModel::Nullable value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + } break; case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); @@ -19970,14 +20231,12 @@ class Test_TC_CHANNEL_5_3Suite : public TestCommand return WaitForCommissionee(kIdentityAlpha, value); } case 1: { - LogStep(1, "Reads the Lineup attribute from the DUT and Verify that the response contains a lineup info object"); - VerifyOrDo(!ShouldSkip("CHANNEL.S.A0001 && PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); + LogStep(1, + "TH reads the Lineup attribute from the DUT to show list of Inputs available and Verify that the response " + "contains a lineup info object"); + VerifyOrDo(!ShouldSkip("CHANNEL.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), Channel::Id, Channel::Attributes::Lineup::Id, true, + chip::NullOptional); } case 2: { LogStep(2, "Reads the ChannelList attribute from the DUT"); @@ -22000,30 +22259,357 @@ class Test_TC_MOD_1_1Suite : public TestCommand class Test_TC_CADMIN_1_3Suite : public TestCommand { public: - Test_TC_CADMIN_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_3", 12, credsIssuerConfig) + Test_TC_CADMIN_1_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_3", 17, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); AddArgument("nodeId2", 0, UINT64_MAX, &mNodeId2); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); AddArgument("discriminator", 0, UINT16_MAX, &mDiscriminator); AddArgument("payload", &mPayload); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } ~Test_TC_CADMIN_1_3Suite() {} - chip::System::Clock::Timeout GetWaitDuration() const override + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(300)); } + +private: + chip::Optional mNodeId; + chip::Optional mTimeout; + chip::Optional mNodeId2; + chip::Optional mEndpoint; + chip::Optional mDiscriminator; + chip::Optional mPayload; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::CharSpan value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueAsString("nodeLabel", value, chip::CharSpan("chiptest", 8))); + VerifyOrReturn(CheckConstraintType("value", "", "string")); + VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); + } + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::DecodableList< + chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> + value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + { + auto iter_0 = value.begin(); + VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); + VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); + VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 1)); + } + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::app::DataModel::DecodableList< + chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> + value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + { + auto iter_0 = value.begin(); + VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); + VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); + VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 1)); + VerifyOrReturn(CheckValueAsString("fabrics[1].label", iter_0.GetValue().label, chip::CharSpan("", 0))); + VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 2)); + } + VerifyOrReturn(CheckConstraintType("value", "", "list")); + } + break; + case 8: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::CharSpan value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueAsString("nodeLabel", value, chip::CharSpan("chiptest1", 9))); + VerifyOrReturn(CheckConstraintType("value", "", "string")); + VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); + } + break; + case 10: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 11: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + chip::CharSpan value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValueAsString("nodeLabel", value, chip::CharSpan("chiptest2", 9))); + VerifyOrReturn(CheckConstraintType("value", "", "string")); + VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); + } + break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("windowStatus", value, 0U)); + } + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + shouldContinue = true; + break; + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + case 0: { + LogStep(0, "TH_CR1 starts a commissioning process with DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), + 97); + value.discriminator = mDiscriminator.HasValue() ? mDiscriminator.Value() : 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 2: { + LogStep(2, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::CharSpan value; + value = chip::Span("chiptestgarbage: not in length on purpose", 8); + return WriteAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, value, + chip::NullOptional, chip::NullOptional); + } + case 3: { + LogStep(3, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, + chip::NullOptional); + } + case 4: { + LogStep(4, "Commission from beta"); + ListFreer listFreer; + chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; + value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:0000000000I31506010", 22); + return PairWithCode(kIdentityBeta, value); + } + case 5: { + LogStep(5, "TH_CR2 starts a commissioning process with DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; + return WaitForCommissionee(kIdentityBeta, value); + } + case 6: { + LogStep(6, "Query fabrics list"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), OperationalCredentials::Id, + OperationalCredentials::Attributes::Fabrics::Id, true, chip::NullOptional); + } + case 7: { + LogStep(7, "Query fabrics list"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityBeta, GetEndpoint(0), OperationalCredentials::Id, + OperationalCredentials::Attributes::Fabrics::Id, false, chip::NullOptional); + } + case 8: { + LogStep(8, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::CharSpan value; + value = chip::Span("chiptest1garbage: not in length on purpose", 9); + return WriteAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, value, + chip::NullOptional, chip::NullOptional); + } + case 9: { + LogStep(9, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, + chip::NullOptional); + } + case 10: { + LogStep(10, "TH_CR2 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::CharSpan value; + value = chip::Span("chiptest2garbage: not in length on purpose", 9); + return WriteAttribute(kIdentityBeta, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, value, + chip::NullOptional, chip::NullOptional); + } + case 11: { + LogStep(11, "TH_CR2 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityBeta, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, + chip::NullOptional); + } + case 12: { + LogStep(12, "TH_CR2 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), + 97); + value.discriminator = mDiscriminator.HasValue() ? mDiscriminator.Value() : 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityBeta, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 13: { + LogStep(13, "Wait for the commissioning window in step 13 to timeout"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; + value.ms = 180000UL; + return WaitForMs(kIdentityAlpha, value); + } + case 14: { + LogStep(14, "TH_CR2 reads the window status to verify the DUT_CE window is closed"); + VerifyOrDo(!ShouldSkip("CADMIN.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); + } + case 15: { + LogStep(15, "TH_CR2 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), + 97); + value.discriminator = mDiscriminator.HasValue() ? mDiscriminator.Value() : 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityBeta, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 16: { + LogStep(16, "TH_CR1 starts a commissioning process with DUT_CE before the timeout from step 12"); + ListFreer listFreer; + chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; + value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:0000000000I31506010", 22); + return PairWithCode(kIdentityAlpha, value); + } + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_CADMIN_1_4Suite : public TestCommand +{ +public: + Test_TC_CADMIN_1_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_4", 17, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + AddArgument("nodeId2", 0, UINT64_MAX, &mNodeId2); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("discriminator", 0, UINT16_MAX, &mDiscriminator); + AddArgument("payload", &mPayload); } + ~Test_TC_CADMIN_1_4Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(300)); } + private: chip::Optional mNodeId; + chip::Optional mTimeout; chip::Optional mNodeId2; chip::Optional mEndpoint; chip::Optional mDiscriminator; chip::Optional mPayload; - chip::Optional mTimeout; chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } @@ -22052,7 +22638,6 @@ class Test_TC_CADMIN_1_3Suite : public TestCommand { chip::CharSpan value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueAsString("nodeLabel", value, chip::CharSpan("chiptest", 8))); VerifyOrReturn(CheckConstraintType("value", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); } @@ -22092,9 +22677,7 @@ class Test_TC_CADMIN_1_3Suite : public TestCommand auto iter_0 = value.begin(); VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 1)); - VerifyOrReturn(CheckValueAsString("fabrics[1].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 2)); + VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 1)); } VerifyOrReturn(CheckConstraintType("value", "", "list")); } @@ -22107,7 +22690,6 @@ class Test_TC_CADMIN_1_3Suite : public TestCommand { chip::CharSpan value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueAsString("nodeLabel", value, chip::CharSpan("chiptest1", 9))); VerifyOrReturn(CheckConstraintType("value", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); } @@ -22120,244 +22702,31 @@ class Test_TC_CADMIN_1_3Suite : public TestCommand { chip::CharSpan value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValueAsString("nodeLabel", value, chip::CharSpan("chiptest2", 9))); VerifyOrReturn(CheckConstraintType("value", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); } break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "TH_CR1 starts a commissioning process with DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "TH_CR1 opens a commissioning window on DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; - value.commissioningTimeout = 180U; - value.PAKEVerifier = chip::ByteSpan( - chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" - "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" - "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" - "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), - 97); - value.discriminator = mDiscriminator.HasValue() ? mDiscriminator.Value() : 3840U; - value.iterations = 1000UL; - value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); - return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, - chip::Optional(10000), chip::NullOptional - - ); - } - case 2: { - LogStep(2, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); - ListFreer listFreer; - chip::CharSpan value; - value = chip::Span("chiptestgarbage: not in length on purpose", 8); - return WriteAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, value, - chip::NullOptional, chip::NullOptional); - } - case 3: { - LogStep(3, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, - chip::NullOptional); - } - case 4: { - LogStep(4, "Commission from beta"); - ListFreer listFreer; - chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; - value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; - value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:0000000000I31506010", 22); - return PairWithCode(kIdentityBeta, value); - } - case 5: { - LogStep(5, "TH_CR2 starts a commissioning process with DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; - return WaitForCommissionee(kIdentityBeta, value); - } - case 6: { - LogStep(6, "Query fabrics list"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Attributes::Fabrics::Id, true, chip::NullOptional); - } - case 7: { - LogStep(7, "Query fabrics list"); - return ReadAttribute(kIdentityBeta, GetEndpoint(0), OperationalCredentials::Id, - OperationalCredentials::Attributes::Fabrics::Id, false, chip::NullOptional); - } - case 8: { - LogStep(8, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); - ListFreer listFreer; - chip::CharSpan value; - value = chip::Span("chiptest1garbage: not in length on purpose", 9); - return WriteAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, value, - chip::NullOptional, chip::NullOptional); - } - case 9: { - LogStep(9, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, - chip::NullOptional); - } - case 10: { - LogStep(10, "TH_CR2 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); - ListFreer listFreer; - chip::CharSpan value; - value = chip::Span("chiptest2garbage: not in length on purpose", 9); - return WriteAttribute(kIdentityBeta, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, value, - chip::NullOptional, chip::NullOptional); - } - case 11: { - LogStep(11, "TH_CR2 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); - return ReadAttribute(kIdentityBeta, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, - chip::NullOptional); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_CADMIN_1_4Suite : public TestCommand -{ -public: - Test_TC_CADMIN_1_4Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_4", 12, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("nodeId2", 0, UINT64_MAX, &mNodeId2); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("discriminator", 0, UINT16_MAX, &mDiscriminator); - AddArgument("payload", &mPayload); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_CADMIN_1_4Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mNodeId2; - chip::Optional mEndpoint; - chip::Optional mDiscriminator; - chip::Optional mPayload; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::CharSpan value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); - } - break; - case 4: + case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; - case 5: + case 13: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> - value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); - VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 1)); - } - VerifyOrReturn(CheckConstraintType("value", "", "list")); - } - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::app::DataModel::DecodableList< - chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> - value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - { - auto iter_0 = value.begin(); - VerifyOrReturn(CheckNextListItemDecodes("fabrics", iter_0, 0)); - VerifyOrReturn(CheckValueAsString("fabrics[0].label", iter_0.GetValue().label, chip::CharSpan("", 0))); - VerifyOrReturn(CheckNoMoreListItems("fabrics", iter_0, 1)); - } - VerifyOrReturn(CheckConstraintType("value", "", "list")); - } - break; - case 8: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 9: + case 14: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - chip::CharSpan value; + uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); + VerifyOrReturn(CheckValue("windowStatus", value, 0U)); } break; - case 10: + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - chip::CharSpan value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintType("value", "", "string")); - VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 32)); - } + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + shouldContinue = true; break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); @@ -22383,6 +22752,7 @@ class Test_TC_CADMIN_1_4Suite : public TestCommand } case 1: { LogStep(1, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -22394,6 +22764,7 @@ class Test_TC_CADMIN_1_4Suite : public TestCommand } case 2: { LogStep(2, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::CharSpan value; value = chip::Span("chiptestgarbage: not in length on purpose", 8); @@ -22402,6 +22773,7 @@ class Test_TC_CADMIN_1_4Suite : public TestCommand } case 3: { LogStep(3, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, chip::NullOptional); } @@ -22422,16 +22794,19 @@ class Test_TC_CADMIN_1_4Suite : public TestCommand } case 6: { LogStep(6, "Query fabrics list"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Attributes::Fabrics::Id, true, chip::NullOptional); } case 7: { LogStep(7, "Query fabrics list"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityBeta, GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Attributes::Fabrics::Id, true, chip::NullOptional); } case 8: { LogStep(8, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::CharSpan value; value = chip::Span("chiptestgarbage: not in length on purpose", 8); @@ -22440,11 +22815,13 @@ class Test_TC_CADMIN_1_4Suite : public TestCommand } case 9: { LogStep(9, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, chip::NullOptional); } case 10: { LogStep(10, "TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::CharSpan value; value = chip::Span("chiptestgarbage: not in length on purpose", 8); @@ -22453,9 +22830,55 @@ class Test_TC_CADMIN_1_4Suite : public TestCommand } case 11: { LogStep(11, "TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityBeta, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, chip::NullOptional); } + case 12: { + LogStep(12, "TH_CR2 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + return SendCommand(kIdentityBeta, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 13: { + LogStep(13, "Wait for the commissioning window in step 13 to timeout"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; + value.ms = 180000UL; + return WaitForMs(kIdentityAlpha, value); + } + case 14: { + LogStep(14, "TH_CR2 reads the window status to verify the DUT_CE window is closed"); + VerifyOrDo(!ShouldSkip("CADMIN.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); + } + case 15: { + LogStep(15, "TH_CR2 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + return SendCommand(kIdentityBeta, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 16: { + LogStep(16, "TH_CR1 starts a commissioning process with DUT_CE before the timeout from step 12"); + ListFreer listFreer; + chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; + value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:-24J0AFN00KA0648G00", 22); + return PairWithCode(kIdentityAlpha, value); + } } return CHIP_NO_ERROR; } @@ -75278,449 +75701,10 @@ class Test_TC_CADMIN_1_24Suite : public TestCommand } }; -class Test_TC_CADMIN_1_25Suite : public TestCommand -{ -public: - Test_TC_CADMIN_1_25Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_CADMIN_1_25", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_CADMIN_1_25Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_CADMIN_1_26Suite : public TestCommand -{ -public: - Test_TC_CADMIN_1_26Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_CADMIN_1_26", 0, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - } - - ~Test_TC_CADMIN_1_26Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } - -private: - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_CADMIN_1_27Suite : public TestCommand -{ -public: - Test_TC_CADMIN_1_27Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_CADMIN_1_27", 8, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - } - - ~Test_TC_CADMIN_1_27Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(330)); } - -private: - chip::Optional mNodeId; - chip::Optional mTimeout; - chip::Optional mEndpoint; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("windowStatus", value, 0U)); - } - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("windowStatus", value, 0U)); - } - break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "Factory Reset the DUT_CE"); - VerifyOrDo(!ShouldSkip("PICS_SDK_CI_ONLY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::SystemCommands::Commands::FactoryReset::Type value; - return FactoryReset(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Factory Reset the DUT_CE"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Please reboot the DUT and enter 'y' after DUT startsgarbage: not in length on purpose", 52); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 2: { - LogStep(2, "TH_CR1 starts a commissioning process with DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 3: { - LogStep(3, "TH_CR1 opens a commissioning window on DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; - value.commissioningTimeout = 180U; - return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, - chip::Optional(10000), chip::NullOptional - - ); - } - case 4: { - LogStep(4, "Wait for commissioning Window to 301 seconds"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 181000UL; - return WaitForMs(kIdentityAlpha, value); - } - case 5: { - LogStep(5, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); - } - case 6: { - LogStep(6, "TH_CR1 opens a commissioning window on DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; - value.commissioningTimeout = 179U; - return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, - chip::Optional(10000), chip::NullOptional - - ); - } - case 7: { - LogStep(7, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); - } - } - return CHIP_NO_ERROR; - } -}; - -class Test_TC_CADMIN_1_28Suite : public TestCommand -{ -public: - Test_TC_CADMIN_1_28Suite(CredentialIssuerCommands * credsIssuerConfig) : - TestCommand("Test_TC_CADMIN_1_28", 8, credsIssuerConfig) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - } - - ~Test_TC_CADMIN_1_28Suite() {} - - chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(330)); } - -private: - chip::Optional mNodeId; - chip::Optional mTimeout; - chip::Optional mEndpoint; - - chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } - - // - // Tests methods - // - - void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override - { - bool shouldContinue = false; - - switch (mTestIndex - 1) - { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 1: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 2: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 3: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("windowStatus", value, 0U)); - } - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - { - uint8_t value; - VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("windowStatus", value, 0U)); - } - break; - default: - LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); - } - - if (shouldContinue) - { - ContinueOnChipMainThread(CHIP_NO_ERROR); - } - } - - CHIP_ERROR DoTestStep(uint16_t testIndex) override - { - using namespace chip::app::Clusters; - switch (testIndex) - { - case 0: { - LogStep(0, "Factory Reset the DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::SystemCommands::Commands::FactoryReset::Type value; - return FactoryReset(kIdentityAlpha, value); - } - case 1: { - LogStep(1, "Factory Reset the DUT_CE"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - ListFreer listFreer; - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Please reboot the DUT and enter 'y' after DUT startsgarbage: not in length on purpose", 52); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt(kIdentityAlpha, value); - } - case 2: { - LogStep(2, "TH_CR1 starts a commissioning process with DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee(kIdentityAlpha, value); - } - case 3: { - LogStep(3, "TH_CR1 opens a commissioning window on DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; - value.commissioningTimeout = 180U; - value.PAKEVerifier = chip::ByteSpan( - chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" - "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" - "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" - "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), - 97); - value.discriminator = 3840U; - value.iterations = 1000UL; - value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); - return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, - chip::Optional(10000), chip::NullOptional - - ); - } - case 4: { - LogStep(4, "Wait for commissioning Window to 301 seconds"); - ListFreer listFreer; - chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 181000UL; - return WaitForMs(kIdentityAlpha, value); - } - case 5: { - LogStep(5, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); - } - case 6: { - LogStep(6, "TH_CR1 opens a commissioning window on DUT_CE"); - ListFreer listFreer; - chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; - value.commissioningTimeout = 179U; - value.PAKEVerifier = chip::ByteSpan( - chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" - "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" - "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" - "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), - 97); - value.discriminator = 3840U; - value.iterations = 1000UL; - value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); - return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, - chip::Optional(10000), chip::NullOptional - - ); - } - case 7: { - LogStep(7, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); - return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, - AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); - } - } - return CHIP_NO_ERROR; - } -}; - class Test_TC_CADMIN_1_5Suite : public TestCommand { public: - Test_TC_CADMIN_1_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_5", 13, credsIssuerConfig) + Test_TC_CADMIN_1_5Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_5", 16, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); @@ -75798,13 +75782,22 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } break; case 10: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); break; case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 1)); + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + break; + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); shouldContinue = true; break; @@ -75832,6 +75825,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 1: { LogStep(1, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -75859,6 +75853,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 3: { LogStep(3, "TH_CR2 starts a commissioning process with DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; @@ -75867,6 +75862,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 4: { LogStep(4, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -75887,6 +75883,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 5: { LogStep(5, "TH_CR1 revokes the commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, @@ -75905,6 +75902,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 7: { LogStep(7, "TH_CR1 revokes the commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, @@ -75915,6 +75913,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 8: { LogStep(8, "TH_CR1 writes the mandatory attribute NodeLabel of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::CharSpan value; value = chip::Span("chiptestgarbage: not in length on purpose", 8); @@ -75923,11 +75922,34 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand } case 9: { LogStep(9, "TH_CR1 read the mandatory attribute NodeLabel of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, chip::NullOptional); } case 10: { LogStep(10, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322zgarbage: not in length on purpose"), + 89); + value.discriminator = 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 11: { + LogStep(11, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -75946,8 +75968,29 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand ); } - case 11: { - LogStep(11, "TH_CR2 starts a commissioning process with DUT_CE"); + case 12: { + LogStep(12, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), + 97); + value.discriminator = 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 13: { + LogStep(13, "TH_CR2 starts a commissioning process with DUT_CE"); VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; @@ -75955,8 +75998,19 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:-24J0AFN00KA0648G00", 22); return PairWithCode(kIdentityBeta, value); } - case 12: { - LogStep(12, "TH_CR3 starts a commissioning process with DUT_CE"); + case 14: { + LogStep(14, "TH_CR1 tries to revoke the commissioning window on DUT_CE using RevokeCommissioning command"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0002 && PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::RevokeCommissioning::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 15: { + LogStep(15, "TH_CR3 starts a commissioning process with DUT_CE"); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId3.HasValue() ? mNodeId3.Value() : 12586990ULL; @@ -75971,7 +76025,7 @@ class Test_TC_CADMIN_1_5Suite : public TestCommand class Test_TC_CADMIN_1_6Suite : public TestCommand { public: - Test_TC_CADMIN_1_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_6", 14, credsIssuerConfig) + Test_TC_CADMIN_1_6Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CADMIN_1_6", 16, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); @@ -76052,14 +76106,20 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 11: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 1)); break; case 12: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + break; + case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); shouldContinue = true; break; @@ -76087,6 +76147,7 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 1: { LogStep(1, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -76105,6 +76166,7 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 3: { LogStep(3, "Commission from beta"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; @@ -76113,6 +76175,7 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 4: { LogStep(4, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -76124,6 +76187,7 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 5: { LogStep(5, "TH_CR1 revokes the commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, @@ -76142,6 +76206,7 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 7: { LogStep(7, "TH_CR1 revokes the commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type value; return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, @@ -76152,6 +76217,7 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 8: { LogStep(8, "TH_CR1 writes the mandatory attribute NodeLabel of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::CharSpan value; value = chip::Span("chiptestgarbage: not in length on purpose", 8); @@ -76160,11 +76226,13 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand } case 9: { LogStep(9, "TH_CR1 read the mandatory attribute NodeLabel of DUT_CE"); + VerifyOrDo(!ShouldSkip("BINFO.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), Basic::Id, Basic::Attributes::NodeLabel::Id, true, chip::NullOptional); } case 10: { LogStep(10, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -76175,22 +76243,45 @@ class Test_TC_CADMIN_1_6Suite : public TestCommand ); } case 11: { - LogStep(11, "Commission from beta"); + LogStep(11, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 12: { + LogStep(12, "Commission from beta"); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:-24J0AFN00KA0648G00", 22); return PairWithCode(kIdentityBeta, value); } - case 12: { - LogStep(12, "TH_CR2 starts a commissioning process on DUT_CE"); + case 13: { + LogStep(13, "TH_CR2 starts a commissioning process on DUT_CE"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; return WaitForCommissionee(kIdentityBeta, value); } - case 13: { - LogStep(13, "TH_CR3 starts a commissioning process with DUT_CE"); + case 14: { + LogStep(14, "TH_CR1 tries to revoke the commissioning window on DUT_CE using RevokeCommissioning command"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type value; + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::RevokeCommissioning::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 15: { + LogStep(15, "TH_CR3 starts a commissioning process with DUT_CE"); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId3.HasValue() ? mNodeId3.Value() : 12586990ULL; @@ -76364,6 +76455,7 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand } case 1: { LogStep(1, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 900U; @@ -76543,11 +76635,11 @@ class Test_TC_CADMIN_1_9Suite : public TestCommand return PairWithCode(kIdentityBeta, value); } case 22: { - LogStep(22, "TH_CR2 starts a commissioning process with DUT_CE using Invalid setup code"); + LogStep(22, "TH_CR2 starts a commissioning process with DUT_CE using valid setup code"); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; - value.payload = mPayload2.HasValue() ? mPayload2.Value() : chip::Span("MT:0000000000I.0648G00", 22); + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:-24J0AFN00KA0648G00", 22); return PairWithCode(kIdentityBeta, value); } case 23: { @@ -76726,6 +76818,7 @@ class Test_TC_CADMIN_1_10Suite : public TestCommand } case 1: { LogStep(1, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 900U; @@ -76896,11 +76989,11 @@ class Test_TC_CADMIN_1_10Suite : public TestCommand return PairWithCode(kIdentityBeta, value); } case 22: { - LogStep(22, "TH_CR2 starts a commissioning process with DUT_CE using Invalid setup code"); + LogStep(22, "TH_CR2 starts a commissioning process with DUT_CE using valid setup code"); ListFreer listFreer; chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; - value.payload = mPayload2.HasValue() ? mPayload2.Value() : chip::Span("MT:0000000000I.0648G00", 22); + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:0000000000I31506010", 22); return PairWithCode(kIdentityBeta, value); } case 23: { @@ -77074,6 +77167,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 1: { LogStep(1, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77100,6 +77194,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 4: { LogStep(4, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77126,6 +77221,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 7: { LogStep(7, "TH_CR1 opens a commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77137,6 +77233,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 8: { LogStep(8, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77157,6 +77254,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 9: { LogStep(9, "TH_CR1 reads the list of Fabrics on DUT_CE"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Attributes::Fabrics::Id, false, chip::NullOptional); } @@ -77169,6 +77267,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 11: { LogStep(11, "TH_CR1 re-opens new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77189,6 +77288,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 12: { LogStep(12, "TH_CR3 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77209,6 +77309,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 13: { LogStep(13, "TH_CR1 reads the list of Fabrics on DUT_CE"); + VerifyOrDo(!ShouldSkip("OPCREDS.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(0), OperationalCredentials::Id, OperationalCredentials::Attributes::Fabrics::Id, false, chip::NullOptional); } @@ -77221,6 +77322,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 15: { LogStep(15, "TH_CR1 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77241,6 +77343,7 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } case 16: { LogStep(16, "TH_CR2 opens a new commissioning window on DUT_CE"); + VerifyOrDo(!ShouldSkip("CADMIN.S.C0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; value.commissioningTimeout = 180U; @@ -77264,6 +77367,331 @@ class Test_TC_CADMIN_1_15Suite : public TestCommand } }; +class Test_TC_CADMIN_1_25Suite : public TestCommand +{ +public: + Test_TC_CADMIN_1_25Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_CADMIN_1_25", 8, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } + + ~Test_TC_CADMIN_1_25Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(330)); } + +private: + chip::Optional mNodeId; + chip::Optional mTimeout; + chip::Optional mEndpoint; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("windowStatus", value, 0U)); + } + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("windowStatus", value, 0U)); + } + break; + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + case 0: { + LogStep(0, "Factory Reset the DUT_CE"); + VerifyOrDo(!ShouldSkip("PICS_SDK_CI_ONLY"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::SystemCommands::Commands::FactoryReset::Type value; + return FactoryReset(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "Factory Reset the DUT_CE"); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Please reboot the DUT and enter 'y' after DUT startsgarbage: not in length on purpose", 52); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } + case 2: { + LogStep(2, "TH_CR1 starts a commissioning process with DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "TH_CR1 opens a commissioning window on DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 4: { + LogStep(4, "Wait for commissioning Window to 301 seconds"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; + value.ms = 181000UL; + return WaitForMs(kIdentityAlpha, value); + } + case 5: { + LogStep(5, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); + } + case 6: { + LogStep(6, "TH_CR1 opens a commissioning window on DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type value; + value.commissioningTimeout = 179U; + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 7: { + LogStep(7, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); + } + } + return CHIP_NO_ERROR; + } +}; + +class Test_TC_CADMIN_1_26Suite : public TestCommand +{ +public: + Test_TC_CADMIN_1_26Suite(CredentialIssuerCommands * credsIssuerConfig) : + TestCommand("Test_TC_CADMIN_1_26", 8, credsIssuerConfig) + { + AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } + + ~Test_TC_CADMIN_1_26Suite() {} + + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(330)); } + +private: + chip::Optional mNodeId; + chip::Optional mTimeout; + chip::Optional mEndpoint; + + chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; } + + // + // Tests methods + // + + void OnResponse(const chip::app::StatusIB & status, chip::TLV::TLVReader * data) override + { + bool shouldContinue = false; + + switch (mTestIndex - 1) + { + case 0: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 2: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 3: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 4: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 5: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("windowStatus", value, 0U)); + } + break; + case 6: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); + break; + case 7: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint8_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("windowStatus", value, 0U)); + } + break; + default: + LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); + } + + if (shouldContinue) + { + ContinueOnChipMainThread(CHIP_NO_ERROR); + } + } + + CHIP_ERROR DoTestStep(uint16_t testIndex) override + { + using namespace chip::app::Clusters; + switch (testIndex) + { + case 0: { + LogStep(0, "Factory Reset the DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::SystemCommands::Commands::FactoryReset::Type value; + return FactoryReset(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "Factory Reset the DUT_CE"); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + ListFreer listFreer; + chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; + value.message = + chip::Span("Please reboot the DUT and enter 'y' after DUT startsgarbage: not in length on purpose", 52); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); + return UserPrompt(kIdentityAlpha, value); + } + case 2: { + LogStep(2, "TH_CR1 starts a commissioning process with DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 3: { + LogStep(3, "TH_CR1 opens a commissioning window on DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 180U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), + 97); + value.discriminator = 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 4: { + LogStep(4, "Wait for commissioning Window to 301 seconds"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; + value.ms = 181000UL; + return WaitForMs(kIdentityAlpha, value); + } + case 5: { + LogStep(5, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); + } + case 6: { + LogStep(6, "TH_CR1 opens a commissioning window on DUT_CE"); + ListFreer listFreer; + chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type value; + value.commissioningTimeout = 179U; + value.PAKEVerifier = chip::ByteSpan( + chip::Uint8::from_const_char("\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357" + "\326\360,D4\362\275\322z\244\371\316\247\015s\216Lgarbage: not in length on purpose"), + 97); + value.discriminator = 3840U; + value.iterations = 1000UL; + value.salt = chip::ByteSpan(chip::Uint8::from_const_char("SPAKE2P Key Saltgarbage: not in length on purpose"), 16); + return SendCommand(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Commands::OpenCommissioningWindow::Id, value, + chip::Optional(10000), chip::NullOptional + + ); + } + case 7: { + LogStep(7, "TH_CR1 reads the window status to verify the DUT_CE window is closed"); + return ReadAttribute(kIdentityAlpha, GetEndpoint(0), AdministratorCommissioning::Id, + AdministratorCommissioning::Attributes::WindowStatus::Id, true, chip::NullOptional); + } + } + return CHIP_NO_ERROR; + } +}; + class Test_TC_MOD_1_2Suite : public TestCommand { public: @@ -84542,7 +84970,7 @@ class Test_TC_LVL_8_1Suite : public TestCommand class Test_TC_OO_2_3Suite : public TestCommand { public: - Test_TC_OO_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_OO_2_3", 132, credsIssuerConfig) + Test_TC_OO_2_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_OO_2_3", 133, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -84782,10 +85210,9 @@ class Test_TC_OO_2_3Suite : public TestCommand case 36: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { - uint16_t value; + bool value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckConstraintMinValue("value", value, 270U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); + VerifyOrReturn(CheckValue("onOff", value, 1)); } break; case 37: @@ -84793,34 +85220,43 @@ class Test_TC_OO_2_3Suite : public TestCommand { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); - VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); + VerifyOrReturn(CheckConstraintMinValue("value", value, 270U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; case 38: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + { + uint16_t value; + VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); + } break; case 39: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 40: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 41: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 42: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 43: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 44: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 45: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 46: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -84828,7 +85264,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 46: + case 47: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84837,7 +85273,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 325U)); } break; - case 47: + case 48: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84845,14 +85281,14 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); } break; - case 48: + case 49: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 49: + case 50: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 50: + case 51: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -84860,7 +85296,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 51: + case 52: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84868,7 +85304,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 52: + case 53: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84877,14 +85313,14 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; - case 53: + case 54: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 54: + case 55: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 55: + case 56: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -84892,7 +85328,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 56: + case 57: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84900,7 +85336,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 57: + case 58: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84909,14 +85345,14 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 220U)); } break; - case 58: + case 59: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 59: + case 60: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 60: + case 61: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -84924,7 +85360,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 61: + case 62: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84932,28 +85368,28 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 62: + case 63: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); } break; - case 63: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; case 64: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 65: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 66: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 67: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 68: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -84961,7 +85397,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 68: + case 69: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84969,7 +85405,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 69: + case 70: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84978,11 +85414,11 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; - case 70: + case 71: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 71: + case 72: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -84990,7 +85426,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 72: + case 73: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -84998,23 +85434,23 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 73: + case 74: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 10U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 15U)); } break; - case 74: + case 75: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 75: + case 76: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 76: + case 77: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85022,7 +85458,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 77: + case 78: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85030,26 +85466,26 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 78: + case 79: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 10U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 15U)); } break; - case 79: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; case 80: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 81: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 82: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 83: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85057,7 +85493,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 83: + case 84: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85065,7 +85501,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 300U)); } break; - case 84: + case 85: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85073,11 +85509,11 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); } break; - case 85: + case 86: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 86: + case 87: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85085,7 +85521,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 87: + case 88: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85093,23 +85529,23 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 88: + case 89: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 10U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 15U)); } break; - case 89: + case 90: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 90: + case 91: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 91: + case 92: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85117,7 +85553,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 92: + case 93: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85126,7 +85562,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; - case 93: + case 94: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85134,21 +85570,21 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); } break; - case 94: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; case 95: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 96: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 97: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; break; case 98: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; + case 99: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85156,7 +85592,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 99: + case 100: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85165,7 +85601,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 220U)); } break; - case 100: + case 101: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85173,10 +85609,10 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); } break; - case 101: + case 102: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 102: + case 103: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85184,7 +85620,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 103: + case 104: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85192,7 +85628,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 104: + case 105: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85201,10 +85637,10 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; - case 105: + case 106: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 106: + case 107: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85212,7 +85648,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 107: + case 108: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85220,7 +85656,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 108: + case 109: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85229,10 +85665,10 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 220U)); } break; - case 109: + case 110: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 110: + case 111: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85240,7 +85676,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 111: + case 112: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85248,7 +85684,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 112: + case 113: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85256,17 +85692,17 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("offWaitTime", value, 0U)); } break; - case 113: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - shouldContinue = true; - break; case 114: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; break; case 115: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; case 116: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 117: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85274,7 +85710,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 117: + case 118: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85282,7 +85718,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 118: + case 119: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85291,11 +85727,11 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; - case 119: + case 120: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 120: + case 121: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85303,7 +85739,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 121: + case 122: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85311,7 +85747,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 122: + case 123: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85320,10 +85756,10 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 10U)); } break; - case 123: + case 124: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; - case 124: + case 125: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85331,7 +85767,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 1)); } break; - case 125: + case 126: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85340,7 +85776,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 320U)); } break; - case 126: + case 127: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85348,11 +85784,11 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("offWaitTime", value, 300U)); } break; - case 127: + case 128: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 128: + case 129: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { bool value; @@ -85360,7 +85796,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onOff", value, 0)); } break; - case 129: + case 130: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85368,7 +85804,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckValue("onTime", value, 0U)); } break; - case 130: + case 131: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -85377,7 +85813,7 @@ class Test_TC_OO_2_3Suite : public TestCommand VerifyOrReturn(CheckConstraintMaxValue("value", value, 10U)); } break; - case 131: + case 132: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; default: @@ -85655,19 +86091,24 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } case 36: { - LogStep(36, "9b:Reads OnTime attribute from DUT"); + LogStep(36, "9b:Reads OnOff attribute from DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); + } + case 37: { + LogStep(37, "9b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 37: { - LogStep(37, "9b:Reads OffWaitTime attribute from DUT"); + case 38: { + LogStep(38, "9b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 38: { - LogStep(38, "10a:Sends OnWithTimedOff command to DUT"); + case 39: { + LogStep(39, "10a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85679,15 +86120,15 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 39: { - LogStep(39, "Wait 10000ms"); + case 40: { + LogStep(40, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 40: { - LogStep(40, "10b:Sends OnWithTimedOff command to DUT"); + case 41: { + LogStep(41, "10b:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85699,15 +86140,15 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 41: { - LogStep(41, "Wait 10000ms"); + case 42: { + LogStep(42, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 42: { - LogStep(42, "10c:Sends OnWithTimedOff command to DUT"); + case 43: { + LogStep(43, "10c:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85719,15 +86160,15 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 43: { - LogStep(43, "Wait 10000ms"); + case 44: { + LogStep(44, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 44: { - LogStep(44, "10d:Sends OnWithTimedOff command to DUT"); + case 45: { + LogStep(45, "10d:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85739,32 +86180,32 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 45: { - LogStep(45, "10e:Reads OnOff attribute from DUT"); + case 46: { + LogStep(46, "10e:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 46: { - LogStep(46, "10e:Reads OnTime attribute from DUT"); + case 47: { + LogStep(47, "10e:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 47: { - LogStep(47, "10e:Reads OffWaitTime attribute from DUT"); + case 48: { + LogStep(48, "10e:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 48: { - LogStep(48, "Wait 10000ms"); + case 49: { + LogStep(49, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 49: { - LogStep(49, "11a:Sends OffWithEffect command to DUT"); + case 50: { + LogStep(50, "11a:Sends OffWithEffect command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OffWithEffect::Type value; @@ -85775,32 +86216,32 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 50: { - LogStep(50, "11b:Reads OnOff attribute from DUT"); + case 51: { + LogStep(51, "11b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 51: { - LogStep(51, "11b:Reads OnTime attribute from DUT"); + case 52: { + LogStep(52, "11b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 52: { - LogStep(52, "11b:Reads OffWaitTime attribute from DUT"); + case 53: { + LogStep(53, "11b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 53: { - LogStep(53, "Wait 10000ms"); + case 54: { + LogStep(54, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 54: { - LogStep(54, "12a:Sends OnWithTimedOff command to DUT"); + case 55: { + LogStep(55, "12a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85812,32 +86253,32 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 55: { - LogStep(55, "12b:Reads OnOff attribute from DUT"); + case 56: { + LogStep(56, "12b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 56: { - LogStep(56, "12b:Reads OnTime attribute from DUT"); + case 57: { + LogStep(57, "12b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 57: { - LogStep(57, "12b:Reads OffWaitTime attribute from DUT"); + case 58: { + LogStep(58, "12b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 58: { - LogStep(58, "Wait 10000ms"); + case 59: { + LogStep(59, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 59: { - LogStep(59, "13a:Send On Command"); + case 60: { + LogStep(60, "13a:Send On Command"); VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; @@ -85845,32 +86286,32 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 60: { - LogStep(60, "13b:Reads OnOff attribute from DUT"); + case 61: { + LogStep(61, "13b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 61: { - LogStep(61, "13b:Reads OnTime attribute from DUT"); + case 62: { + LogStep(62, "13b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 62: { - LogStep(62, "13b:Reads OffWaitTime attribute from DUT"); + case 63: { + LogStep(63, "13b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 63: { - LogStep(63, "Wait 10000ms"); + case 64: { + LogStep(64, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 64: { - LogStep(64, "14a:Sends OnWithTimedOff command to DUT"); + case 65: { + LogStep(65, "14a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85882,15 +86323,15 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 65: { - LogStep(65, "Wait 10000ms"); + case 66: { + LogStep(66, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 66: { - LogStep(66, "14b:Send Off Command"); + case 67: { + LogStep(67, "14b:Send Off Command"); VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; @@ -85898,56 +86339,56 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 67: { - LogStep(67, "14c:Reads OnOff attribute from DUT"); + case 68: { + LogStep(68, "14c:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 68: { - LogStep(68, "14c:Reads OnTime attribute from DUT"); + case 69: { + LogStep(69, "14c:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 69: { - LogStep(69, "14c:Reads OffWaitTime attribute from DUT"); + case 70: { + LogStep(70, "14c:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 70: { - LogStep(70, "Wait 30000ms"); + case 71: { + LogStep(71, "Wait 30000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 30000UL; return WaitForMs(kIdentityAlpha, value); } - case 71: { - LogStep(71, "15:Reads OnOff attribute from DUT"); + case 72: { + LogStep(72, "15:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 72: { - LogStep(72, "15:Reads OnTime attribute from DUT"); + case 73: { + LogStep(73, "15:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 73: { - LogStep(73, "15:Reads OffWaitTime attribute from DUT"); + case 74: { + LogStep(74, "15:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 74: { - LogStep(74, "Wait 10000ms"); + case 75: { + LogStep(75, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 75: { - LogStep(75, "16a:Sends OnWithTimedOff command to DUT"); + case 76: { + LogStep(76, "16a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -85959,25 +86400,25 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 76: { - LogStep(76, "16b:Reads OnOff attribute from DUT"); + case 77: { + LogStep(77, "16b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 77: { - LogStep(77, "16b:Reads OnTime attribute from DUT"); + case 78: { + LogStep(78, "16b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 78: { - LogStep(78, "16b:Reads OffWaitTime attribute from DUT"); + case 79: { + LogStep(79, "16b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 79: { - LogStep(79, "17a:Send On Command"); + case 80: { + LogStep(80, "17a:Send On Command"); VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; @@ -85985,15 +86426,15 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 80: { - LogStep(80, "Wait 10000ms"); + case 81: { + LogStep(81, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 81: { - LogStep(81, "17b:Sends OnWithTimedOff command to DUT"); + case 82: { + LogStep(82, "17b:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -86005,60 +86446,60 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 82: { - LogStep(82, "17c:Reads OnOff attribute from DUT"); + case 83: { + LogStep(83, "17c:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 83: { - LogStep(83, "17c:Reads OnTime attribute from DUT"); + case 84: { + LogStep(84, "17c:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 84: { - LogStep(84, "17c:Reads OffWaitTime attribute from DUT"); + case 85: { + LogStep(85, "17c:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 85: { - LogStep(85, "Wait 40000ms"); + case 86: { + LogStep(86, "Wait 40000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 40000UL; return WaitForMs(kIdentityAlpha, value); } - case 86: { - LogStep(86, "17d:Reads OnOff attribute from DUT"); + case 87: { + LogStep(87, "17d:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 87: { - LogStep(87, "17d:Reads OnTime attribute from DUT"); + case 88: { + LogStep(88, "17d:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 88: { - LogStep(88, "17d:Reads OffWaitTime attribute from DUT"); + case 89: { + LogStep(89, "17d:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 89: { - LogStep(89, "Wait 10000ms"); + case 90: { + LogStep(90, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 90: { - LogStep(90, "18a:Sends OnWithTimedOff command to DUT"); + case 91: { + LogStep(91, "18a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; - value.onOffControl = static_cast>(1U); + value.onOffControl = static_cast>(0U); value.onTime = 300U; value.offWaitTime = 300U; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::OnWithTimedOff::Id, value, @@ -86066,25 +86507,25 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 91: { - LogStep(91, "18b:Reads OnOff attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + case 92: { + LogStep(92, "18b:Reads OnOff attribute from DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A0000 && PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 92: { - LogStep(92, "18b:Reads OnTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + case 93: { + LogStep(93, "18b:Reads OnTime attribute from DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4001 && PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 93: { - LogStep(93, "18b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + case 94: { + LogStep(94, "18b:Reads OffWaitTime attribute from DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4002 && PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 94: { - LogStep(94, "19a:Sends OnWithTimedOff command to DUT"); + case 95: { + LogStep(95, "19a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -86096,19 +86537,19 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 95: { - LogStep(95, "Wait 10000ms"); + case 96: { + LogStep(96, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 96: { - LogStep(96, "19b:Sends OnWithTimedOff command to DUT"); + case 97: { + LogStep(97, "19b:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; - value.onOffControl = static_cast>(1U); + value.onOffControl = static_cast>(0U); value.onTime = 300U; value.offWaitTime = 300U; return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::OnWithTimedOff::Id, value, @@ -86116,32 +86557,32 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 97: { - LogStep(97, "Wait 10000ms"); + case 98: { + LogStep(98, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 98: { - LogStep(98, "19c:Reads OnOff attribute from DUT"); + case 99: { + LogStep(99, "19c:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 99: { - LogStep(99, "19c:Reads OnTime attribute from DUT"); + case 100: { + LogStep(100, "19c:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 100: { - LogStep(100, "19c:Reads OffWaitTime attribute from DUT"); + case 101: { + LogStep(101, "19c:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 101: { - LogStep(101, "20a:Send Off Command"); + case 102: { + LogStep(102, "20a:Send Off Command"); VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; @@ -86149,25 +86590,25 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 102: { - LogStep(102, "20b:Reads OnOff attribute from DUT"); + case 103: { + LogStep(103, "20b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 103: { - LogStep(103, "20b:Reads OnTime attribute from DUT"); + case 104: { + LogStep(104, "20b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 104: { - LogStep(104, "20b:Reads OffWaitTime attribute from DUT"); + case 105: { + LogStep(105, "20b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 105: { - LogStep(105, "21a:Sends OnWithTimedOff command to DUT"); + case 106: { + LogStep(106, "21a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -86179,25 +86620,25 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 106: { - LogStep(106, "21b:Reads OnOff attribute from DUT"); + case 107: { + LogStep(107, "21b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 107: { - LogStep(107, "21b:Reads OnTime attribute from DUT"); + case 108: { + LogStep(108, "21b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 108: { - LogStep(108, "21b:Reads OffWaitTime attribute from DUT"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + case 109: { + LogStep(109, "21b:Reads OffWaitTime attribute from DUT"); + VerifyOrDo(!ShouldSkip("OO.S.A4002 && PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 109: { - LogStep(109, "22a:Send On Command"); + case 110: { + LogStep(110, "22a:Send On Command"); VerifyOrDo(!ShouldSkip("OO.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::On::Type value; @@ -86205,32 +86646,32 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 110: { - LogStep(110, "22b:Reads OnOff attribute from DUT"); + case 111: { + LogStep(111, "22b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 111: { - LogStep(111, "22b:Reads OnTime attribute from DUT"); + case 112: { + LogStep(112, "22b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 112: { - LogStep(112, "22b:Reads OffWaitTime attribute from DUT"); + case 113: { + LogStep(113, "22b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 113: { - LogStep(113, "Wait 10000ms"); + case 114: { + LogStep(114, "Wait 10000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 10000UL; return WaitForMs(kIdentityAlpha, value); } - case 114: { - LogStep(114, "23a:Sends OnWithTimedOff command to DUT"); + case 115: { + LogStep(115, "23a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -86242,8 +86683,8 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 115: { - LogStep(115, "23b:Send Off Command"); + case 116: { + LogStep(116, "23b:Send Off Command"); VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; @@ -86251,49 +86692,49 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 116: { - LogStep(116, "23c:Reads OnOff attribute from DUT"); + case 117: { + LogStep(117, "23c:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 117: { - LogStep(117, "23c:Reads OnTime attribute from DUT"); + case 118: { + LogStep(118, "23c:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 118: { - LogStep(118, "23c:Reads OffWaitTime attribute from DUT"); + case 119: { + LogStep(119, "23c:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 119: { - LogStep(119, "Wait 40000ms"); + case 120: { + LogStep(120, "Wait 40000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 40000UL; return WaitForMs(kIdentityAlpha, value); } - case 120: { - LogStep(120, "23d:Reads OnOff attribute from DUT"); + case 121: { + LogStep(121, "23d:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 121: { - LogStep(121, "23d:Reads OnTime attribute from DUT"); + case 122: { + LogStep(122, "23d:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 122: { - LogStep(122, "23d:Reads OffWaitTime attribute from DUT"); + case 123: { + LogStep(123, "23d:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 123: { - LogStep(123, "24a:Sends OnWithTimedOff command to DUT"); + case 124: { + LogStep(124, "24a:Sends OnWithTimedOff command to DUT"); VerifyOrDo(!ShouldSkip("OO.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type value; @@ -86305,49 +86746,49 @@ class Test_TC_OO_2_3Suite : public TestCommand ); } - case 124: { - LogStep(124, "24b:Reads OnOff attribute from DUT"); + case 125: { + LogStep(125, "24b:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 125: { - LogStep(125, "24b:Reads OnTime attribute from DUT"); + case 126: { + LogStep(126, "24b:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 126: { - LogStep(126, "24b:Reads OffWaitTime attribute from DUT"); + case 127: { + LogStep(127, "24b:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 127: { - LogStep(127, "Wait 40000ms"); + case 128: { + LogStep(128, "Wait 40000ms"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 40000UL; return WaitForMs(kIdentityAlpha, value); } - case 128: { - LogStep(128, "24c:Reads OnOff attribute from DUT"); + case 129: { + LogStep(129, "24c:Reads OnOff attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } - case 129: { - LogStep(129, "24c:Reads OnTime attribute from DUT"); + case 130: { + LogStep(130, "24c:Reads OnTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4001"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnTime::Id, true, chip::NullOptional); } - case 130: { - LogStep(130, "24c:Reads OffWaitTime attribute from DUT"); + case 131: { + LogStep(131, "24c:Reads OffWaitTime attribute from DUT"); VerifyOrDo(!ShouldSkip("OO.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OffWaitTime::Id, true, chip::NullOptional); } - case 131: { - LogStep(131, "Send Off Command"); + case 132: { + LogStep(132, "Send Off Command"); VerifyOrDo(!ShouldSkip("OO.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::OnOff::Commands::Off::Type value; @@ -90057,15 +90498,13 @@ void registerCommandsTests(Commands & commands, CredentialIssuerCommands * creds make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), - make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), + make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), make_unique(credsIssuerConfig), diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index 8817c9dd8b368f..3780e0e6089722 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -2435,11 +2435,6 @@ class Test_TC_BOOL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("StateValue", actualValue, 0)); - } - VerifyOrReturn(CheckConstraintType("stateValue", "", "bool")); NextTest(); }]; @@ -7150,8 +7145,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { err = TestStepHueUpCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 25ms\n"); - err = TestWait25ms_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 1000ms\n"); + err = TestWait1000ms_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Over TransitionTime,Read CurrentHue attribute from DUT\n"); @@ -7170,8 +7165,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { err = TestStepHueDownCommand_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Wait 25ms\n"); - err = TestWait25ms_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Wait 1000ms\n"); + err = TestWait1000ms_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Over TransitionTime,Read CurrentHue attribute from DUT\n"); @@ -7336,7 +7331,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:1U]; params.stepSize = [NSNumber numberWithUnsignedChar:5U]; - params.transitionTime = [NSNumber numberWithUnsignedChar:25U]; + params.transitionTime = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stepHueWithParams:params @@ -7351,10 +7346,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait25ms_5() + CHIP_ERROR TestWait1000ms_5() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 25UL; + value.ms = 1000UL; return WaitForMs("alpha", value); } @@ -7372,7 +7367,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); - VerifyOrReturn(CheckConstraintMinValue("currentHue", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMinValue("currentHue", [value unsignedCharValue], 5U)); VerifyOrReturn(CheckConstraintMaxValue("currentHue", [value unsignedCharValue], 254U)); NextTest(); @@ -7392,7 +7387,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; params.stepMode = [NSNumber numberWithUnsignedChar:3U]; params.stepSize = [NSNumber numberWithUnsignedChar:5U]; - params.transitionTime = [NSNumber numberWithUnsignedChar:25U]; + params.transitionTime = [NSNumber numberWithUnsignedChar:5U]; params.optionsMask = [NSNumber numberWithUnsignedChar:0U]; params.optionsOverride = [NSNumber numberWithUnsignedChar:0U]; [cluster stepHueWithParams:params @@ -7407,10 +7402,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait25ms_8() + CHIP_ERROR TestWait1000ms_8() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; - value.ms = 25UL; + value.ms = 1000UL; return WaitForMs("alpha", value); } @@ -7429,7 +7424,7 @@ class Test_TC_CC_3_3 : public TestCommandBridge { VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("currentHue", [value unsignedCharValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("currentHue", [value unsignedCharValue], 254U)); + VerifyOrReturn(CheckConstraintMaxValue("currentHue", [value unsignedCharValue], 249U)); NextTest(); }]; @@ -19777,33 +19772,53 @@ class Test_TC_I_1_1 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Read the global attribute: AcceptedCommandList\n"); + if (ShouldSkip("I.C.C40.Tx")) { + NextTest(); + return; + } err = TestReadTheGlobalAttributeAcceptedCommandList_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Read the global attribute: GeneratedCommandList\n"); - if (ShouldSkip("I.S.C00.Tx")) { + ChipLogProgress(chipTool, " ***** Test Step 6 : Read the global attribute: AcceptedCommandList\n"); + if (ShouldSkip(" !I.C.C40.Tx ")) { NextTest(); return; } - err = TestReadTheGlobalAttributeGeneratedCommandList_6(); + err = TestReadTheGlobalAttributeAcceptedCommandList_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read the global attribute: GeneratedCommandList\n"); - if (ShouldSkip(" !I.S.C00.Tx ")) { + ChipLogProgress(chipTool, " ***** Test Step 7 : Read the optional attribute(IdentifyQuery) in AcceptedCommandList\n"); + if (ShouldSkip("I.C.C01.Tx")) { NextTest(); return; } - err = TestReadTheGlobalAttributeGeneratedCommandList_7(); + err = TestReadTheOptionalAttributeIdentifyQueryInAcceptedCommandList_7(); break; case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Read the global attribute: GeneratedCommandList\n"); + if (ShouldSkip("I.S.C00.Tx")) { + NextTest(); + return; + } + err = TestReadTheGlobalAttributeGeneratedCommandList_8(); + break; + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Read the global attribute: GeneratedCommandList\n"); + if (ShouldSkip(" !I.S.C00.Tx ")) { + NextTest(); + return; + } + err = TestReadTheGlobalAttributeGeneratedCommandList_9(); + break; + case 10: ChipLogProgress(chipTool, - " ***** Test Step 8 : Read EventList attribute from the DUT and Verify that the DUT response provides a list of " + " ***** Test Step 10 : Read EventList attribute from the DUT and Verify that the DUT response provides a list of " "supported events.\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestReadEventListAttributeFromTheDutAndVerifyThatTheDutResponseProvidesAListOfSupportedEvents_8(); + err = TestReadEventListAttributeFromTheDutAndVerifyThatTheDutResponseProvidesAListOfSupportedEvents_10(); break; } @@ -19843,6 +19858,12 @@ class Test_TC_I_1_1 : public TestCommandBridge { case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 9: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 10: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -19856,7 +19877,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 9; + const uint16_t mTestCount = 11; chip::Optional mNodeId; chip::Optional mCluster; @@ -19986,7 +20007,47 @@ class Test_TC_I_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_6() + CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_6() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the global attribute: AcceptedCommandList Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); + VerifyOrReturn(CheckConstraintContains("acceptedCommandList", value, 0UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadTheOptionalAttributeIdentifyQueryInAcceptedCommandList_7() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"Read the optional attribute(IdentifyQuery) in AcceptedCommandList Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + VerifyOrReturn(CheckConstraintType("acceptedCommandList", "", "list")); + VerifyOrReturn(CheckConstraintContains("acceptedCommandList", value, 1UL)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_8() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -20010,7 +20071,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_7() + CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_9() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -20033,7 +20094,7 @@ class Test_TC_I_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadEventListAttributeFromTheDutAndVerifyThatTheDutResponseProvidesAListOfSupportedEvents_8() + CHIP_ERROR TestReadEventListAttributeFromTheDutAndVerifyThatTheDutResponseProvidesAListOfSupportedEvents_10() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -22490,7 +22551,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : Step 4b & 4C Reads the CurrentLevel attribute\n"); - if (ShouldSkip("LVL.S.F01")) { + if (ShouldSkip("LVL.S.F01 && LVL.S.A0002 && LVL.S.A0003")) { NextTest(); return; } @@ -22498,7 +22559,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : Step 4b & 4C Reads the CurrentLevel attribute\n"); - if (ShouldSkip(" !LVL.S.F01 ")) { + if (ShouldSkip("LVL.S.A0002 && LVL.S.A0003 && !LVL.S.F01")) { NextTest(); return; } @@ -23051,11 +23112,6 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("on off transition time", actualValue, 0U)); - } - VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); NextTest(); }]; @@ -23247,6 +23303,12 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("OnOffTransitionTimeConfigValue", 0, UINT16_MAX, &mOnOffTransitionTimeConfigValue); + AddArgument("OnLevelConfigValue", 0, UINT8_MAX, &mOnLevelConfigValue); + AddArgument("OnTransitionTimeConfigValue", 0, UINT16_MAX, &mOnTransitionTimeConfigValue); + AddArgument("OffTransitionTimeConfigValue", 0, UINT16_MAX, &mOffTransitionTimeConfigValue); + AddArgument("DefaultMoveRateConfigValue", 0, UINT8_MAX, &mDefaultMoveRateConfigValue); + AddArgument("StartUpCurrentLevelConfigValue", 0, UINT8_MAX, &mStartUpCurrentLevelConfigValue); AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) @@ -23520,6 +23582,12 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; + chip::Optional mOnOffTransitionTimeConfigValue; + chip::Optional mOnLevelConfigValue; + chip::Optional mOnTransitionTimeConfigValue; + chip::Optional mOffTransitionTimeConfigValue; + chip::Optional mDefaultMoveRateConfigValue; + chip::Optional mStartUpCurrentLevelConfigValue; chip::Optional mTimeout; CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() @@ -23528,6 +23596,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee("alpha", value); } + NSNumber * _Nonnull OnOffTransitionTimeValue; CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_1() { @@ -23542,12 +23611,11 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); { - id actualValue = value; - VerifyOrReturn(CheckValue("on off transition time", actualValue, 0U)); + OnOffTransitionTimeValue = value; } - VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); NextTest(); }]; @@ -23563,7 +23631,9 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onOffTransitionTimeArgument; - onOffTransitionTimeArgument = [NSNumber numberWithUnsignedShort:10U]; + onOffTransitionTimeArgument = mOnOffTransitionTimeConfigValue.HasValue() + ? [NSNumber numberWithUnsignedShort:mOnOffTransitionTimeConfigValue.Value()] + : [NSNumber numberWithUnsignedShort:10U]; [cluster writeAttributeOnOffTransitionTimeWithValue:onOffTransitionTimeArgument completionHandler:^(NSError * _Nullable err) { NSLog(@"writes the OnOffTransitionTime attribute on the DUT Error: %@", err); @@ -23591,10 +23661,13 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { { id actualValue = value; - VerifyOrReturn(CheckValue("on off transition time", actualValue, 10U)); + VerifyOrReturn(CheckValue("on off transition time", actualValue, + mOnOffTransitionTimeConfigValue.HasValue() ? mOnOffTransitionTimeConfigValue.Value() : 10U)); } VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintNotValue("onOffTransitionTime", value, OnOffTransitionTimeValue)); + NextTest(); }]; @@ -23638,7 +23711,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onLevelArgument; - onLevelArgument = [NSNumber numberWithUnsignedChar:254U]; + onLevelArgument = mOnLevelConfigValue.HasValue() ? [NSNumber numberWithUnsignedChar:mOnLevelConfigValue.Value()] + : [NSNumber numberWithUnsignedChar:5U]; [cluster writeAttributeOnLevelWithValue:onLevelArgument completionHandler:^(NSError * _Nullable err) { NSLog(@"writes the OnLevel attribute on the DUT Error: %@", err); @@ -23667,7 +23741,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("on level", actualValue)); - VerifyOrReturn(CheckValue("on level", actualValue, 254U)); + VerifyOrReturn( + CheckValue("on level", actualValue, mOnLevelConfigValue.HasValue() ? mOnLevelConfigValue.Value() : 5U)); } if (value != nil) { @@ -23718,7 +23793,9 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onTransitionTimeArgument; - onTransitionTimeArgument = [NSNumber numberWithUnsignedShort:100U]; + onTransitionTimeArgument = mOnTransitionTimeConfigValue.HasValue() + ? [NSNumber numberWithUnsignedShort:mOnTransitionTimeConfigValue.Value()] + : [NSNumber numberWithUnsignedShort:5U]; [cluster writeAttributeOnTransitionTimeWithValue:onTransitionTimeArgument completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the OnTransitionTime attribute on the DUT Error: %@", err); @@ -23747,7 +23824,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("on transition time", actualValue)); - VerifyOrReturn(CheckValue("on transition time", actualValue, 100U)); + VerifyOrReturn(CheckValue("on transition time", actualValue, + mOnTransitionTimeConfigValue.HasValue() ? mOnTransitionTimeConfigValue.Value() : 5U)); } if (value != nil) { @@ -23798,7 +23876,9 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id offTransitionTimeArgument; - offTransitionTimeArgument = [NSNumber numberWithUnsignedShort:100U]; + offTransitionTimeArgument = mOffTransitionTimeConfigValue.HasValue() + ? [NSNumber numberWithUnsignedShort:mOffTransitionTimeConfigValue.Value()] + : [NSNumber numberWithUnsignedShort:10U]; [cluster writeAttributeOffTransitionTimeWithValue:offTransitionTimeArgument completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the OffTransitionTime attribute on the DUT Error: %@", err); @@ -23827,7 +23907,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("off transition time", actualValue)); - VerifyOrReturn(CheckValue("off transition time", actualValue, 100U)); + VerifyOrReturn(CheckValue("off transition time", actualValue, + mOffTransitionTimeConfigValue.HasValue() ? mOffTransitionTimeConfigValue.Value() : 10U)); } if (value != nil) { @@ -23840,6 +23921,7 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { return CHIP_NO_ERROR; } + NSNumber * _Nullable DefaultMoveRatevalue; CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_13() { @@ -23854,15 +23936,13 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValueNonNull("default move rate", actualValue)); - VerifyOrReturn(CheckValue("default move rate", actualValue, 50U)); - } if (value != nil) { VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); } + { + DefaultMoveRatevalue = value; + } NextTest(); }]; @@ -23879,7 +23959,9 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id defaultMoveRateArgument; - defaultMoveRateArgument = [NSNumber numberWithUnsignedChar:100U]; + defaultMoveRateArgument = mDefaultMoveRateConfigValue.HasValue() + ? [NSNumber numberWithUnsignedChar:mDefaultMoveRateConfigValue.Value()] + : [NSNumber numberWithUnsignedChar:111U]; [cluster writeAttributeDefaultMoveRateWithValue:defaultMoveRateArgument completionHandler:^(NSError * _Nullable err) { NSLog(@"Writes the DefaultMoveRate attribute on the DUT Error: %@", err); @@ -23908,12 +23990,14 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("default move rate", actualValue)); - VerifyOrReturn(CheckValue("default move rate", actualValue, 100U)); + VerifyOrReturn(CheckValue("default move rate", actualValue, + mDefaultMoveRateConfigValue.HasValue() ? mDefaultMoveRateConfigValue.Value() : 111U)); } if (value != nil) { VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); } + VerifyOrReturn(CheckConstraintNotValue("defaultMoveRate", value, DefaultMoveRatevalue)); NextTest(); }]; @@ -23958,7 +24042,9 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpCurrentLevelArgument; - startUpCurrentLevelArgument = [NSNumber numberWithUnsignedChar:254U]; + startUpCurrentLevelArgument = mStartUpCurrentLevelConfigValue.HasValue() + ? [NSNumber numberWithUnsignedChar:mStartUpCurrentLevelConfigValue.Value()] + : [NSNumber numberWithUnsignedChar:5U]; [cluster writeAttributeStartUpCurrentLevelWithValue:startUpCurrentLevelArgument completionHandler:^(NSError * _Nullable err) { NSLog(@"writes the StartUpCurrentLevel attribute on the DUT Error: %@", err); @@ -23987,7 +24073,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { { id actualValue = value; VerifyOrReturn(CheckValueNonNull("start up current level", actualValue)); - VerifyOrReturn(CheckValue("start up current level", actualValue, 254U)); + VerifyOrReturn(CheckValue("start up current level", actualValue, + mStartUpCurrentLevelConfigValue.HasValue() ? mStartUpCurrentLevelConfigValue.Value() : 5U)); } if (value != nil) { @@ -24067,120 +24154,152 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads the MinLevel attribute\n"); - if (ShouldSkip("LVL.S.A0002")) { + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition Send On Command\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { NextTest(); return; } - err = TestReadsTheMinLevelAttribute_1(); + err = TestPreconditionSendOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the MaxLevel attribute\n"); - if (ShouldSkip("LVL.S.A0003")) { + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + if (ShouldSkip("OO.S.A0000")) { NextTest(); return; } - err = TestReadsTheMaxLevelAttribute_2(); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : sends a MoveToLevelWithOnOff command\n"); - if (ShouldSkip("LVL.S.C00.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads the MinLevel attribute\n"); + if (ShouldSkip("LVL.S.A0002")) { NextTest(); return; } - err = TestSendsAMoveToLevelWithOnOffCommand_3(); + err = TestReadsTheMinLevelAttribute_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Wait 100ms\n"); - err = TestWait100ms_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads the MaxLevel attribute\n"); + if (ShouldSkip("LVL.S.A0003")) { + NextTest(); + return; + } + err = TestReadsTheMaxLevelAttribute_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Reads CurrentLevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.C04.Rsp && LVL.S.A0000")) { + ChipLogProgress(chipTool, " ***** Test Step 5 : sends a MoveToLevelWithOnOff command\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_5(); + err = TestSendsAMoveToLevelWithOnOffCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : sends a Move to level command\n"); + ChipLogProgress(chipTool, " ***** Test Step 6 : Wait 100ms\n"); + err = TestWait100ms_6(); + break; + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.C04.Rsp && LVL.S.A0000")) { + NextTest(); + return; + } + err = TestReadsCurrentLevelAttributeFromDut_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : sends a Move to level command\n"); if (ShouldSkip("LVL.S.C00.Rsp")) { NextTest(); return; } - err = TestSendsAMoveToLevelCommand_6(); + err = TestSendsAMoveToLevelCommand_8(); break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Wait 100 second\n"); - err = TestWait100Second_7(); + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Wait 100 second\n"); + err = TestWait100Second_9(); break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Reads CurrentLevel attribute from DUT\n"); + case 10: + ChipLogProgress(chipTool, " ***** Test Step 10 : Reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_8(); + err = TestReadsCurrentLevelAttributeFromDut_10(); break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : sends a Move to level command\n"); + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : sends a Move to level command\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.M.VarRate")) { NextTest(); return; } - err = TestSendsAMoveToLevelCommand_9(); + err = TestSendsAMoveToLevelCommand_11(); break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Wait 11000ms\n"); - err = TestWait11000ms_10(); + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : Wait 11000ms\n"); + err = TestWait11000ms_12(); break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Reads CurrentLevel attribute from DUT\n"); + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0000 && LVL.S.M.VarRate")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_11(); + err = TestReadsCurrentLevelAttributeFromDut_13(); break; - case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Reads the OnOffTransitionTime attribute from the DUT\n"); + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Reads the OnOffTransitionTime attribute from the DUT\n"); if (ShouldSkip("LVL.S.A0010")) { NextTest(); return; } - err = TestReadsTheOnOffTransitionTimeAttributeFromTheDut_12(); + err = TestReadsTheOnOffTransitionTimeAttributeFromTheDut_14(); break; - case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : sends a Move to level command\n"); + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : sends a Move to level command\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010")) { NextTest(); return; } - err = TestSendsAMoveToLevelCommand_13(); + err = TestSendsAMoveToLevelCommand_15(); break; - case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Wait 1000ms\n"); - err = TestWait1000ms_14(); + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Wait 1000ms\n"); + err = TestWait1000ms_16(); break; - case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Reads CurrentLevel attribute from DUT\n"); + case 17: + ChipLogProgress(chipTool, " ***** Test Step 17 : Reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_15(); + err = TestReadsCurrentLevelAttributeFromDut_17(); break; - case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Reset level to 254\n"); + case 18: + ChipLogProgress(chipTool, " ***** Test Step 18 : Reset level to 254\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000")) { NextTest(); return; } - err = TestResetLevelTo254_16(); + err = TestResetLevelTo254_18(); break; - case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Wait 100ms\n"); - err = TestWait100ms_17(); + case 19: + ChipLogProgress(chipTool, " ***** Test Step 19 : Wait 100ms\n"); + err = TestWait100ms_19(); + break; + case 20: + ChipLogProgress(chipTool, " ***** Test Step 20 : Precondition send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } + err = TestPreconditionSendOffCommand_20(); + break; + case 21: + ChipLogProgress(chipTool, " ***** Test Step 21 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_21(); break; } @@ -24247,6 +24366,18 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -24260,7 +24391,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 18; + const uint16_t mTestCount = 22; chip::Optional mNodeId; chip::Optional mCluster; @@ -24274,7 +24405,46 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestReadsTheMinLevelAttribute_1() + CHIP_ERROR TestPreconditionSendOnCommand_1() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster onWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition Send On Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is true after on command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 1)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestReadsTheMinLevelAttribute_3() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24294,7 +24464,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheMaxLevelAttribute_2() + CHIP_ERROR TestReadsTheMaxLevelAttribute_4() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24314,7 +24484,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveToLevelWithOnOffCommand_3() + CHIP_ERROR TestSendsAMoveToLevelWithOnOffCommand_5() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24337,14 +24507,14 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100ms_4() + CHIP_ERROR TestWait100ms_6() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24368,7 +24538,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveToLevelCommand_6() + CHIP_ERROR TestSendsAMoveToLevelCommand_8() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24393,14 +24563,14 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100Second_7() + CHIP_ERROR TestWait100Second_9() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_10() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24424,7 +24594,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveToLevelCommand_9() + CHIP_ERROR TestSendsAMoveToLevelCommand_11() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24449,14 +24619,14 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait11000ms_10() + CHIP_ERROR TestWait11000ms_12() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 11000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_13() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24480,7 +24650,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_12() + CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_14() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24500,7 +24670,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveToLevelCommand_13() + CHIP_ERROR TestSendsAMoveToLevelCommand_15() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24525,14 +24695,14 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait1000ms_14() + CHIP_ERROR TestWait1000ms_16() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 1000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_15() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_17() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24556,7 +24726,7 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestResetLevelTo254_16() + CHIP_ERROR TestResetLevelTo254_18() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24581,12 +24751,51 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100ms_17() + CHIP_ERROR TestWait100ms_19() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } + + CHIP_ERROR TestPreconditionSendOffCommand_20() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster offWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition send Off Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_21() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is false after off command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 0)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_LVL_4_1 : public TestCommandBridge { @@ -24632,130 +24841,162 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Minlevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0002")) { + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition Send On Command\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { NextTest(); return; } - err = TestReadsMinlevelAttributeFromDut_1(); + err = TestPreconditionSendOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : sends a MoveToLevelWithOnOff command\n"); - if (ShouldSkip("LVL.S.C00.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + if (ShouldSkip("OO.S.A0000")) { NextTest(); return; } - err = TestSendsAMoveToLevelWithOnOffCommand_2(); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : reads max level attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0003")) { + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads Minlevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0002")) { NextTest(); return; } - err = TestReadsMaxLevelAttributeFromDut_3(); + err = TestReadsMinlevelAttributeFromDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : sends a Move up command\n"); - if (ShouldSkip("LVL.S.C01.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 4 : sends a MoveToLevelWithOnOff command\n"); + if (ShouldSkip("LVL.S.C00.Rsp")) { NextTest(); return; } - err = TestSendsAMoveUpCommand_4(); + err = TestSendsAMoveToLevelWithOnOffCommand_4(); break; case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : reads max level attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0003")) { + NextTest(); + return; + } + err = TestReadsMaxLevelAttributeFromDut_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : sends a Move up command\n"); + if (ShouldSkip("LVL.S.C01.Rsp")) { + NextTest(); + return; + } + err = TestSendsAMoveUpCommand_6(); + break; + case 7: ChipLogProgress(chipTool, - " ***** Test Step 5 : Physically verify that the DUT moves at a rate of 32 units per second or as close as " + " ***** Test Step 7 : Physically verify that the DUT moves at a rate of 32 units per second or as close as " "possible to this rate and completes moving to its maximum level\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestPhysicallyVerifyThatTheDutMovesAtARateOf32UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompletesMovingToItsMaximumLevel_5(); + err = TestPhysicallyVerifyThatTheDutMovesAtARateOf32UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompletesMovingToItsMaximumLevel_7(); break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Wait 9000ms\n"); - err = TestWait9000ms_6(); + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Wait 9000ms\n"); + err = TestWait9000ms_8(); break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Reads CurrentLevel attribute from DUT\n"); + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C01.Rsp && LVL.S.A0000 && LVL.S.A0003")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_7(); + err = TestReadsCurrentLevelAttributeFromDut_9(); break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : sends a MoveWithOnOff command\n"); + case 10: + ChipLogProgress(chipTool, " ***** Test Step 10 : sends a MoveWithOnOff command\n"); if (ShouldSkip("LVL.S.C05.Rsp")) { NextTest(); return; } - err = TestSendsAMoveWithOnOffCommand_8(); + err = TestSendsAMoveWithOnOffCommand_10(); break; - case 9: + case 11: ChipLogProgress(chipTool, - " ***** Test Step 9 : Physically verify that the DUT moves at a rate of 64 units per second or as close as " + " ***** Test Step 11 : Physically verify that the DUT moves at a rate of 64 units per second or as close as " "possible to this rate and complete moving to its minimum level\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestPhysicallyVerifyThatTheDutMovesAtARateOf64UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompleteMovingToItsMinimumLevel_9(); + err = TestPhysicallyVerifyThatTheDutMovesAtARateOf64UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompleteMovingToItsMinimumLevel_11(); break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Wait 5000ms\n"); - err = TestWait5000ms_10(); + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : Wait 5000ms\n"); + err = TestWait5000ms_12(); break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : reads CurrentLevel attribute from DUT\n"); + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0000")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_11(); + err = TestReadsCurrentLevelAttributeFromDut_13(); break; - case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : reads default move rate attribute from DUT\n"); + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : reads default move rate attribute from DUT\n"); if (ShouldSkip("LVL.S.A0014")) { NextTest(); return; } - err = TestReadsDefaultMoveRateAttributeFromDut_12(); + err = TestReadsDefaultMoveRateAttributeFromDut_14(); break; - case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : sends a Move up command at default move rate\n"); + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : sends a Move up command at default move rate\n"); if (ShouldSkip("LVL.S.C05.Rsp && LVL.S.A0014")) { NextTest(); return; } - err = TestSendsAMoveUpCommandAtDefaultMoveRate_13(); + err = TestSendsAMoveUpCommandAtDefaultMoveRate_15(); break; - case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Wait 100ms\n"); - err = TestWait100ms_14(); + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Wait 100ms\n"); + err = TestWait100ms_16(); break; - case 15: + case 17: ChipLogProgress(chipTool, - " ***** Test Step 15 : Physically verify that the device moves at the rate recorded in step 3a and completes " + " ***** Test Step 17 : Physically verify that the device moves at the rate recorded in step 3a and completes " "moving to its maximum level\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestPhysicallyVerifyThatTheDeviceMovesAtTheRateRecordedInStep3aAndCompletesMovingToItsMaximumLevel_15(); + err = TestPhysicallyVerifyThatTheDeviceMovesAtTheRateRecordedInStep3aAndCompletesMovingToItsMaximumLevel_17(); break; - case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Reset level to 254\n"); + case 18: + ChipLogProgress(chipTool, " ***** Test Step 18 : Reset level to 254\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000")) { NextTest(); return; } - err = TestResetLevelTo254_16(); + err = TestResetLevelTo254_18(); break; - case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Wait 100ms\n"); - err = TestWait100ms_17(); + case 19: + ChipLogProgress(chipTool, " ***** Test Step 19 : Wait 100ms\n"); + err = TestWait100ms_19(); + break; + case 20: + ChipLogProgress(chipTool, " ***** Test Step 20 : Precondition send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } + err = TestPreconditionSendOffCommand_20(); + break; + case 21: + ChipLogProgress(chipTool, " ***** Test Step 21 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_21(); break; } @@ -24822,6 +25063,18 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { case 17: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 20: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 21: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -24835,7 +25088,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 18; + const uint16_t mTestCount = 22; chip::Optional mNodeId; chip::Optional mCluster; @@ -24848,9 +25101,48 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee("alpha", value); } + + CHIP_ERROR TestPreconditionSendOnCommand_1() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster onWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition Send On Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is true after on command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 1)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } NSNumber * _Nonnull MinlevelValue; - CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() + CHIP_ERROR TestReadsMinlevelAttributeFromDut_3() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24874,7 +25166,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveToLevelWithOnOffCommand_2() + CHIP_ERROR TestSendsAMoveToLevelWithOnOffCommand_4() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24898,7 +25190,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { } NSNumber * _Nonnull MaxlevelValue; - CHIP_ERROR TestReadsMaxLevelAttributeFromDut_3() + CHIP_ERROR TestReadsMaxLevelAttributeFromDut_5() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24922,7 +25214,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveUpCommand_4() + CHIP_ERROR TestSendsAMoveUpCommand_6() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24948,7 +25240,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { } CHIP_ERROR - TestPhysicallyVerifyThatTheDutMovesAtARateOf32UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompletesMovingToItsMaximumLevel_5() + TestPhysicallyVerifyThatTheDutMovesAtARateOf32UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompletesMovingToItsMaximumLevel_7() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -24957,14 +25249,14 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return UserPrompt("alpha", value); } - CHIP_ERROR TestWait9000ms_6() + CHIP_ERROR TestWait9000ms_8() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 9000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -24988,7 +25280,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveWithOnOffCommand_8() + CHIP_ERROR TestSendsAMoveWithOnOffCommand_10() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25012,7 +25304,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { } CHIP_ERROR - TestPhysicallyVerifyThatTheDutMovesAtARateOf64UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompleteMovingToItsMinimumLevel_9() + TestPhysicallyVerifyThatTheDutMovesAtARateOf64UnitsPerSecondOrAsCloseAsPossibleToThisRateAndCompleteMovingToItsMinimumLevel_11() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -25021,14 +25313,14 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return UserPrompt("alpha", value); } - CHIP_ERROR TestWait5000ms_10() + CHIP_ERROR TestWait5000ms_12() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 5000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_13() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25056,7 +25348,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { } NSNumber * _Nullable DefaultMoveRateValue; - CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_12() + CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_14() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25083,7 +25375,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_13() + CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_15() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25108,14 +25400,14 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100ms_14() + CHIP_ERROR TestWait100ms_16() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestPhysicallyVerifyThatTheDeviceMovesAtTheRateRecordedInStep3aAndCompletesMovingToItsMaximumLevel_15() + CHIP_ERROR TestPhysicallyVerifyThatTheDeviceMovesAtTheRateRecordedInStep3aAndCompletesMovingToItsMaximumLevel_17() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -25124,7 +25416,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return UserPrompt("alpha", value); } - CHIP_ERROR TestResetLevelTo254_16() + CHIP_ERROR TestResetLevelTo254_18() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25149,12 +25441,51 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100ms_17() + CHIP_ERROR TestWait100ms_19() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } + + CHIP_ERROR TestPreconditionSendOffCommand_20() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster offWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition send Off Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_21() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is false after off command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 0)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_LVL_5_1 : public TestCommandBridge { @@ -25200,80 +25531,112 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Minlevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0002")) { + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition Send On Command\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { NextTest(); return; } - err = TestReadsMinlevelAttributeFromDut_1(); + err = TestPreconditionSendOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Sends MoveToLevelWithOnOff command to DUT\n"); - if (ShouldSkip("LVL.S.C04.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + if (ShouldSkip("OO.S.A0000")) { NextTest(); return; } - err = TestSendsMoveToLevelWithOnOffCommandToDut_2(); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads current level attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0000")) { + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads Minlevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0002")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_3(); + err = TestReadsMinlevelAttributeFromDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Sends step up command to DUT\n"); - if (ShouldSkip("LVL.S.C02.Rsp && LVL.S.M.VarRate")) { + ChipLogProgress(chipTool, " ***** Test Step 4 : Sends MoveToLevelWithOnOff command to DUT\n"); + if (ShouldSkip("LVL.S.C04.Rsp")) { NextTest(); return; } - err = TestSendsStepUpCommandToDut_4(); + err = TestSendsMoveToLevelWithOnOffCommandToDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 4000ms\n"); - err = TestWait4000ms_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads current level attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000")) { + NextTest(); + return; + } + err = TestReadsCurrentLevelAttributeFromDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads current level attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0000 && LVL.S.C02.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 6 : Sends step up command to DUT\n"); + if (ShouldSkip("LVL.S.C02.Rsp && LVL.S.M.VarRate")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_6(); + err = TestSendsStepUpCommandToDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Sends a StepWithOnOff command\n"); + ChipLogProgress(chipTool, " ***** Test Step 7 : Wait 4000ms\n"); + err = TestWait4000ms_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Reads current level attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000 && LVL.S.C02.Rsp")) { + NextTest(); + return; + } + err = TestReadsCurrentLevelAttributeFromDut_8(); + break; + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Sends a StepWithOnOff command\n"); if (ShouldSkip("LVL.S.C06.Rsp && LVL.S.M.VarRate")) { NextTest(); return; } - err = TestSendsAStepWithOnOffCommand_7(); + err = TestSendsAStepWithOnOffCommand_9(); break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Wait 4000ms\n"); - err = TestWait4000ms_8(); + case 10: + ChipLogProgress(chipTool, " ***** Test Step 10 : Wait 4000ms\n"); + err = TestWait4000ms_10(); break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Reads current level attribute from DUT\n"); + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Reads current level attribute from DUT\n"); if (ShouldSkip("LVL.S.C06.Rsp && LVL.S.A0000")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_9(); + err = TestReadsCurrentLevelAttributeFromDut_11(); break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Reset level to 254\n"); + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : Reset level to 254\n"); if (ShouldSkip("LVL.S.C00.Rsp")) { NextTest(); return; } - err = TestResetLevelTo254_10(); + err = TestResetLevelTo254_12(); break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Wait 100ms\n"); - err = TestWait100ms_11(); + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Wait 100ms\n"); + err = TestWait100ms_13(); + break; + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Precondition send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } + err = TestPreconditionSendOffCommand_14(); + break; + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_15(); break; } @@ -25322,6 +25685,18 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -25335,7 +25710,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 12; + const uint16_t mTestCount = 16; chip::Optional mNodeId; chip::Optional mCluster; @@ -25348,9 +25723,48 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee("alpha", value); } + + CHIP_ERROR TestPreconditionSendOnCommand_1() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster onWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition Send On Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is true after on command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 1)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } NSNumber * _Nonnull MinlevelValue; - CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() + CHIP_ERROR TestReadsMinlevelAttributeFromDut_3() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25374,7 +25788,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_2() + CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_4() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25398,7 +25812,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { } NSNumber * _Nonnull CurrentlevelValue; - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25427,7 +25841,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsStepUpCommandToDut_4() + CHIP_ERROR TestSendsStepUpCommandToDut_6() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25453,14 +25867,14 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait4000ms_5() + CHIP_ERROR TestWait4000ms_7() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 4000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_6() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25483,7 +25897,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAStepWithOnOffCommand_7() + CHIP_ERROR TestSendsAStepWithOnOffCommand_9() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25507,14 +25921,14 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait4000ms_8() + CHIP_ERROR TestWait4000ms_10() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 4000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25538,7 +25952,7 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestResetLevelTo254_10() + CHIP_ERROR TestResetLevelTo254_12() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25563,12 +25977,51 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100ms_11() + CHIP_ERROR TestWait100ms_13() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } + + CHIP_ERROR TestPreconditionSendOffCommand_14() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster offWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition send Off Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_15() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is false after off command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 0)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_LVL_6_1 : public TestCommandBridge { @@ -25614,108 +26067,140 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Minlevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0002")) { + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition Send On Command\n"); + if (ShouldSkip("OO.S.C01.Rsp")) { NextTest(); return; } - err = TestReadsMinlevelAttributeFromDut_1(); + err = TestPreconditionSendOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Sends MoveToLevelWithOnOff command to DUT\n"); - if (ShouldSkip("LVL.S.C04.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + if (ShouldSkip("OO.S.A0000")) { NextTest(); return; } - err = TestSendsMoveToLevelWithOnOffCommandToDut_2(); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads CurrentLevel attribute from DUT\n"); - if (ShouldSkip("LVL.S.A0000")) { + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads Minlevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0002")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_3(); + err = TestReadsMinlevelAttributeFromDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Sends a move up command to DUT\n"); - if (ShouldSkip("LVL.S.C01.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 4 : Sends MoveToLevelWithOnOff command to DUT\n"); + if (ShouldSkip("LVL.S.C04.Rsp")) { NextTest(); return; } - err = TestSendsAMoveUpCommandToDut_4(); + err = TestSendsMoveToLevelWithOnOffCommandToDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 5000ms\n"); - err = TestWait5000ms_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads CurrentLevel attribute from DUT\n"); + if (ShouldSkip("LVL.S.A0000")) { + NextTest(); + return; + } + err = TestReadsCurrentLevelAttributeFromDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Sends stop command to DUT\n"); - if (ShouldSkip("LVL.S.C03.Rsp")) { + ChipLogProgress(chipTool, " ***** Test Step 6 : Sends a move up command to DUT\n"); + if (ShouldSkip("LVL.S.C01.Rsp")) { NextTest(); return; } - err = TestSendsStopCommandToDut_6(); + err = TestSendsAMoveUpCommandToDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Physically verify that the device has stopped transitioning\n"); + ChipLogProgress(chipTool, " ***** Test Step 7 : Wait 5000ms\n"); + err = TestWait5000ms_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Sends stop command to DUT\n"); + if (ShouldSkip("LVL.S.C03.Rsp")) { + NextTest(); + return; + } + err = TestSendsStopCommandToDut_8(); + break; + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Physically verify that the device has stopped transitioning\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_7(); + err = TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_9(); break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Reads CurrentLevel attribute from DUT\n"); + case 10: + ChipLogProgress(chipTool, " ***** Test Step 10 : Reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C01.Rsp && LVL.S.C03.Rsp && LVL.S.A0000")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_8(); + err = TestReadsCurrentLevelAttributeFromDut_10(); break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Sends a move up command to DUT\n"); + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Sends a move up command to DUT\n"); if (ShouldSkip("LVL.S.C01.Rsp")) { NextTest(); return; } - err = TestSendsAMoveUpCommandToDut_9(); + err = TestSendsAMoveUpCommandToDut_11(); break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Wait 5000ms\n"); - err = TestWait5000ms_10(); + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : Wait 5000ms\n"); + err = TestWait5000ms_12(); break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Sends stop command to DUT\n"); - err = TestSendsStopCommandToDut_11(); + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Sends stop command to DUT\n"); + err = TestSendsStopCommandToDut_13(); break; - case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Physically verify that the device has stopped transitioning\n"); + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Physically verify that the device has stopped transitioning\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_12(); + err = TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_14(); break; - case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Reads CurrentLevel attribute from DUT\n"); + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : Reads CurrentLevel attribute from DUT\n"); if (ShouldSkip("LVL.S.C01.Rsp && LVL.S.C07.Rsp && LVL.S.A0000")) { NextTest(); return; } - err = TestReadsCurrentLevelAttributeFromDut_13(); + err = TestReadsCurrentLevelAttributeFromDut_15(); break; - case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Reset level to 254\n"); + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Reset level to 254\n"); if (ShouldSkip("LVL.S.C00.Rsp && LVL.S.A0010 && LVL.S.A0000")) { NextTest(); return; } - err = TestResetLevelTo254_14(); + err = TestResetLevelTo254_16(); break; - case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Wait 100ms\n"); - err = TestWait100ms_15(); + case 17: + ChipLogProgress(chipTool, " ***** Test Step 17 : Wait 100ms\n"); + err = TestWait100ms_17(); + break; + case 18: + ChipLogProgress(chipTool, " ***** Test Step 18 : Precondition send Off Command\n"); + if (ShouldSkip("OO.S.C00.Rsp")) { + NextTest(); + return; + } + err = TestPreconditionSendOffCommand_18(); + break; + case 19: + ChipLogProgress(chipTool, " ***** Test Step 19 : Check on/off attribute value is false after off command\n"); + if (ShouldSkip("OO.S.A0000")) { + NextTest(); + return; + } + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_19(); break; } @@ -25776,6 +26261,18 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { case 15: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 17: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 18: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 19: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -25789,7 +26286,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 16; + const uint16_t mTestCount = 20; chip::Optional mNodeId; chip::Optional mCluster; @@ -25802,9 +26299,48 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; return WaitForCommissionee("alpha", value); } + + CHIP_ERROR TestPreconditionSendOnCommand_1() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster onWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition Send On Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is true after on command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 1)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } NSNumber * _Nonnull MinlevelValue; - CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() + CHIP_ERROR TestReadsMinlevelAttributeFromDut_3() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25828,7 +26364,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_2() + CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_4() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25852,7 +26388,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { } NSNumber * _Nonnull CurrentLevelValue; - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25877,7 +26413,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveUpCommandToDut_4() + CHIP_ERROR TestSendsAMoveUpCommandToDut_6() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25902,14 +26438,14 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait5000ms_5() + CHIP_ERROR TestWait5000ms_7() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 5000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestSendsStopCommandToDut_6() + CHIP_ERROR TestSendsStopCommandToDut_8() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25932,7 +26468,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_7() + CHIP_ERROR TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_9() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -25941,7 +26477,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return UserPrompt("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_10() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25964,7 +26500,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestSendsAMoveUpCommandToDut_9() + CHIP_ERROR TestSendsAMoveUpCommandToDut_11() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -25989,14 +26525,14 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait5000ms_10() + CHIP_ERROR TestWait5000ms_12() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 5000UL; return WaitForMs("alpha", value); } - CHIP_ERROR TestSendsStopCommandToDut_11() + CHIP_ERROR TestSendsStopCommandToDut_13() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -26019,7 +26555,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_12() + CHIP_ERROR TestPhysicallyVerifyThatTheDeviceHasStoppedTransitioning_14() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -26028,7 +26564,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return UserPrompt("alpha", value); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_13() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_15() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -26051,7 +26587,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestResetLevelTo254_14() + CHIP_ERROR TestResetLevelTo254_16() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device @@ -26076,12 +26612,51 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestWait100ms_15() + CHIP_ERROR TestWait100ms_17() { chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = 100UL; return WaitForMs("alpha", value); } + + CHIP_ERROR TestPreconditionSendOffCommand_18() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster offWithCompletionHandler:^(NSError * _Nullable err) { + NSLog(@"Precondition send Off Command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_19() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Check on/off attribute value is false after off command Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("OnOff", actualValue, 0)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } }; class Test_TC_LOWPOWER_1_1 : public TestCommandBridge { @@ -27025,7 +27600,7 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Read the global attribute: ClusterRevision\n"); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: @@ -27045,20 +27620,20 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { err = TestReadTheGlobalAttributeAttributeList_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read the optonal attribute(InputList) in AttributeList\n"); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read the optional attribute(InputList) in AttributeList\n"); if (ShouldSkip("MEDIAINPUT.S.A0000")) { NextTest(); return; } - err = TestReadTheOptonalAttributeInputListInAttributeList_4(); + err = TestReadTheOptionalAttributeInputListInAttributeList_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read the optonal attribute(CurrentInput) in AttributeList\n"); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read the optional attribute(CurrentInput) in AttributeList\n"); if (ShouldSkip("MEDIAINPUT.S.A0001")) { NextTest(); return; } - err = TestReadTheOptonalAttributeCurrentInputInAttributeList_5(); + err = TestReadTheOptionalAttributeCurrentInputInAttributeList_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Read the global attribute: AcceptedCommandList\n"); @@ -27152,7 +27727,7 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the global attribute: ClusterRevision Error: %@", err); + NSLog(@"read the global attribute: ClusterRevision Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -27219,7 +27794,7 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptonalAttributeInputListInAttributeList_4() + CHIP_ERROR TestReadTheOptionalAttributeInputListInAttributeList_4() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device @@ -27228,7 +27803,7 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optonal attribute(InputList) in AttributeList Error: %@", err); + NSLog(@"Read the optional attribute(InputList) in AttributeList Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -27241,7 +27816,7 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestReadTheOptonalAttributeCurrentInputInAttributeList_5() + CHIP_ERROR TestReadTheOptionalAttributeCurrentInputInAttributeList_5() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device @@ -27250,7 +27825,7 @@ class Test_TC_MEDIAINPUT_1_4 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read the optonal attribute(CurrentInput) in AttributeList Error: %@", err); + NSLog(@"Read the optional attribute(CurrentInput) in AttributeList Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -27652,7 +28227,7 @@ class Test_TC_CHANNEL_1_6 : public TestCommandBridge { break; case 5: ChipLogProgress(chipTool, " ***** Test Step 5 : Reading optional attribute(Lineup) in AttributeList\n"); - if (ShouldSkip("CHANNEL.S.A0000")) { + if (ShouldSkip("CHANNEL.S.A0001")) { NextTest(); return; } @@ -27660,7 +28235,7 @@ class Test_TC_CHANNEL_1_6 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Read the optional attribute(CurrentChannel): AttributeList\n"); - if (ShouldSkip("CHANNEL.S.A0000")) { + if (ShouldSkip("CHANNEL.S.A0002")) { NextTest(); return; } @@ -30605,7 +31180,7 @@ class Test_TC_APPLAUNCHER_3_5 : public TestCommandBridge { ChipLogProgress(chipTool, " ***** Test Step 1 : TH reads CatalogList attribute from the DUT and where each entry in the list is a CSA-issued " "Vendor Id of type unsigned 16 bit integer ranging between 0-65536 for the catalog\n"); - if (ShouldSkip("PICS_USER_PROMPT && APPLAUNCHER.S.A0000")) { + if (ShouldSkip("APPLAUNCHER.S.A0000")) { NextTest(); return; } @@ -30658,11 +31233,23 @@ class Test_TC_APPLAUNCHER_3_5 : public TestCommandBridge { CHIP_ERROR TestThReadsCatalogListAttributeFromTheDutAndWhereEachEntryInTheListIsACsaIssuedVendorIdOfTypeUnsigned16BitIntegerRangingBetween065536ForTheCatalog_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads CatalogList attribute from the DUT and where each entry in the list is a CSA-issued Vendor Id of type " + @"unsigned 16 bit integer ranging between 0-65536 for the catalog Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } }; @@ -30713,7 +31300,7 @@ class Test_TC_APPLAUNCHER_3_6 : public TestCommandBridge { " ***** Test Step 1 : TH reads CurrentApp attribute from the DUT and Verify the in-focus application attributes, " "which should include the display Application ID(type:uint16) Catalog Vendor ID(type:string) or Null if there is " "no current in-focus application\n"); - if (ShouldSkip("PICS_USER_PROMPT && APPLAUNCHER.S.A0001")) { + if (ShouldSkip("APPLAUNCHER.S.A0001")) { NextTest(); return; } @@ -30766,11 +31353,25 @@ class Test_TC_APPLAUNCHER_3_6 : public TestCommandBridge { CHIP_ERROR TestThReadsCurrentAppAttributeFromTheDutAndVerifyTheInFocusApplicationAttributesWhichShouldIncludeTheDisplayApplicationIDtypeuint16CatalogVendorIDtypestringOrNullIfThereIsNoCurrentInFocusApplication_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeCurrentAppWithCompletionHandler:^( + MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads CurrentApp attribute from the DUT and Verify the in-focus application attributes, which should " + @"include the display Application ID(type:uint16) Catalog Vendor ID(type:string) or Null if there is no current " + @"in-focus application Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } }; @@ -30817,13 +31418,15 @@ class Test_TC_MEDIAINPUT_3_10 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress( - chipTool, " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available\n"); - if (ShouldSkip("PICS_USER_PROMPT && MEDIAINPUT.S.A0000")) { + ChipLogProgress(chipTool, + " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available and Verify " + "list of available inputs supported by the device is provided, where each entry in the list contains an " + "index(type:uint 8), InputType (InputType Enums), Name (type: Strings), and Description(Type:String)\n"); + if (ShouldSkip("MEDIAINPUT.S.A0000")) { NextTest(); return; } - err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailable_1(); + err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1(); break; } @@ -30869,13 +31472,27 @@ class Test_TC_MEDIAINPUT_3_10 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailable_1() + CHIP_ERROR + TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + @"inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + @"InputType (InputType Enums), Name (type: Strings), and Description(Type:String) Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } }; @@ -30922,13 +31539,15 @@ class Test_TC_MEDIAINPUT_3_11 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress( - chipTool, " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available\n"); - if (ShouldSkip("PICS_USER_PROMPT && MEDIAINPUT.S.A0000")) { + ChipLogProgress(chipTool, + " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available and Verify " + "list of available inputs supported by the device is provided, where each entry in the list contains an " + "index(type:uint 8), InputType (InputType Enums), Name (type: Strings), and Description(Type:String)\n"); + if (ShouldSkip("MEDIAINPUT.S.A0000")) { NextTest(); return; } - err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailable_1(); + err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Select Input Command\n"); @@ -30996,13 +31615,27 @@ class Test_TC_MEDIAINPUT_3_11 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailable_1() + CHIP_ERROR + TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + @"inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + @"InputType (InputType Enums), Name (type: Strings), and Description(Type:String) Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } CHIP_ERROR TestSelectInputCommand_2() @@ -31095,12 +31728,15 @@ class Test_TC_MEDIAINPUT_3_12 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute media input list\n"); + ChipLogProgress(chipTool, + " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available and Verify " + "list of available inputs supported by the device is provided, where each entry in the list contains an " + "index(type:uint 8), InputType (InputType Enums), Name (type: Strings), and Description(Type:String)\n"); if (ShouldSkip("MEDIAINPUT.S.A0000")) { NextTest(); return; } - err = TestReadAttributeMediaInputList_1(); + err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Hide Input Status Command\n"); @@ -31168,7 +31804,8 @@ class Test_TC_MEDIAINPUT_3_12 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestReadAttributeMediaInputList_1() + CHIP_ERROR + TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1() { MTRBaseDevice * device = GetDevice("alpha"); MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device @@ -31177,11 +31814,13 @@ class Test_TC_MEDIAINPUT_3_12 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"Read attribute media input list Error: %@", err); + NSLog(@"TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + @"inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + @"InputType (InputType Enums), Name (type: Strings), and Description(Type:String) Error: %@", + err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - VerifyOrReturn(CheckConstraintType("inputList", "", "list")); NextTest(); }]; @@ -31270,13 +31909,15 @@ class Test_TC_MEDIAINPUT_3_13 : public TestCommandBridge { err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); break; case 1: - ChipLogProgress( - chipTool, " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available\n"); - if (ShouldSkip("PICS_USER_PROMPT && MEDIAINPUT.S.A0000")) { + ChipLogProgress(chipTool, + " ***** Test Step 1 : TH reads the InputList attribute from the DUT to show list of Inputs available and Verify " + "list of available inputs supported by the device is provided, where each entry in the list contains an " + "index(type:uint 8), InputType (InputType Enums), Name (type: Strings), and Description(Type:String)\n"); + if (ShouldSkip("MEDIAINPUT.S.A0000")) { NextTest(); return; } - err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailable_1(); + err = TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Rename Input Command\n"); @@ -31345,13 +31986,27 @@ class Test_TC_MEDIAINPUT_3_13 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailable_1() + CHIP_ERROR + TestThReadsTheInputListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyListOfAvailableInputsSupportedByTheDeviceIsProvidedWhereEachEntryInTheListContainsAnIndextypeuint8InputTypeInputTypeEnumsNameTypeStringsAndDescriptionTypeString_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads the InputList attribute from the DUT to show list of Inputs available and Verify list of available " + @"inputs supported by the device is provided, where each entry in the list contains an index(type:uint 8), " + @"InputType (InputType Enums), Name (type: Strings), and Description(Type:String) Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } CHIP_ERROR TestRenameInputCommand_2() @@ -31431,13 +32086,15 @@ class Test_TC_CHANNEL_5_1 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, - " ***** Test Step 1 : TH reads the ChannelList attribute from the DUT and Verify that the response contains a list " - "of the known TV channels\n"); - if (ShouldSkip("PICS_USER_PROMPT && CHANNEL.S.A0000")) { + " ***** Test Step 1 : TH reads the ChannelList attribute from the DUT to show list of Inputs available and Verify " + "that the response contains a list of the known TV channels. Each list element should consist of the " + "following,Major number (unsigned 16-bit integer, mandatory),Minor number (unsigned 16-bit integer, " + "mandatory),Name (String, optional),Call sign (String, optional),Affiliate call sign (String, optional)\n"); + if (ShouldSkip("CHANNEL.S.A0000")) { NextTest(); return; } - err = TestThReadsTheChannelListAttributeFromTheDutAndVerifyThatTheResponseContainsAListOfTheKnownTvChannels_1(); + err = TestThReadsTheChannelListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyThatTheResponseContainsAListOfTheKnownTvChannelsEachListElementShouldConsistOfTheFollowingMajorNumberUnsigned16BitIntegerMandatoryMinorNumberUnsigned16BitIntegerMandatoryNameStringOptionalCallSignStringOptionalAffiliateCallSignStringOptional_1(); break; } @@ -31483,13 +32140,26 @@ class Test_TC_CHANNEL_5_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestThReadsTheChannelListAttributeFromTheDutAndVerifyThatTheResponseContainsAListOfTheKnownTvChannels_1() + CHIP_ERROR + TestThReadsTheChannelListAttributeFromTheDutToShowListOfInputsAvailableAndVerifyThatTheResponseContainsAListOfTheKnownTvChannelsEachListElementShouldConsistOfTheFollowingMajorNumberUnsigned16BitIntegerMandatoryMinorNumberUnsigned16BitIntegerMandatoryNameStringOptionalCallSignStringOptionalAffiliateCallSignStringOptional_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads the ChannelList attribute from the DUT to show list of Inputs available and Verify that the response " + @"contains a list of the known TV channels. Each list element should consist of the following,Major number " + @"(unsigned 16-bit integer, mandatory),Minor number (unsigned 16-bit integer, mandatory),Name (String, " + @"optional),Call sign (String, optional),Affiliate call sign (String, optional) Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } }; @@ -31745,13 +32415,13 @@ class Test_TC_CHANNEL_5_3 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, - " ***** Test Step 1 : Reads the Lineup attribute from the DUT and Verify that the response contains a lineup info " - "object\n"); - if (ShouldSkip("CHANNEL.S.A0001 && PICS_USER_PROMPT")) { + " ***** Test Step 1 : TH reads the Lineup attribute from the DUT to show list of Inputs available and Verify that " + "the response contains a lineup info object\n"); + if (ShouldSkip("CHANNEL.S.A0001")) { NextTest(); return; } - err = TestReadsTheLineupAttributeFromTheDutAndVerifyThatTheResponseContainsALineupInfoObject_1(); + err = TestThReadsTheLineupAttributeFromTheDutToShowListOfInputsAvailableAndVerifyThatTheResponseContainsALineupInfoObject_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the ChannelList attribute from the DUT\n"); @@ -31854,13 +32524,25 @@ class Test_TC_CHANNEL_5_3 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestReadsTheLineupAttributeFromTheDutAndVerifyThatTheResponseContainsALineupInfoObject_1() + CHIP_ERROR + TestThReadsTheLineupAttributeFromTheDutToShowListOfInputsAvailableAndVerifyThatTheResponseContainsALineupInfoObject_1() { - chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); - value.expectedValue.Emplace(); - value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); - return UserPrompt("alpha", value); + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster + readAttributeLineupWithCompletionHandler:^(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH reads the Lineup attribute from the DUT to show list of Inputs available and Verify that the response " + @"contains a lineup info object Error: %@", + err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; } CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_2() @@ -35416,11 +36098,11 @@ class Test_TC_CADMIN_1_3 : public TestCommandBridge { , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); AddArgument("nodeId2", 0, UINT64_MAX, &mNodeId2); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); AddArgument("discriminator", 0, UINT16_MAX, &mDiscriminator); AddArgument("payload", &mPayload); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) @@ -35454,16 +36136,28 @@ class Test_TC_CADMIN_1_3 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : TH_CR1 opens a commissioning window on DUT_CE\n"); + if (ShouldSkip("CADMIN.S.C0000")) { + NextTest(); + return; + } err = TestThCr1OpensACommissioningWindowOnDutCe_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_3(); break; case 4: @@ -35476,32 +36170,90 @@ class Test_TC_CADMIN_1_3 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Query fabrics list\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestQueryFabricsList_6(); break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Query fabrics list\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestQueryFabricsList_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : TH_CR2 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestThCr2WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10(); break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : TH_CR2 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestThCr2ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11(); break; + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : TH_CR2 opens a commissioning window on DUT_CE\n"); + if (ShouldSkip("CADMIN.S.C0000")) { + NextTest(); + return; + } + err = TestThCr2OpensACommissioningWindowOnDutCe_12(); + break; + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Wait for the commissioning window in step 13 to timeout\n"); + err = TestWaitForTheCommissioningWindowInStep13ToTimeout_13(); + break; + case 14: + ChipLogProgress( + chipTool, " ***** Test Step 14 : TH_CR2 reads the window status to verify the DUT_CE window is closed\n"); + if (ShouldSkip("CADMIN.S.A0000")) { + NextTest(); + return; + } + err = TestThCr2ReadsTheWindowStatusToVerifyTheDutCeWindowIsClosed_14(); + break; + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : TH_CR2 opens a commissioning window on DUT_CE\n"); + if (ShouldSkip("CADMIN.S.C0000")) { + NextTest(); + return; + } + err = TestThCr2OpensACommissioningWindowOnDutCe_15(); + break; + case 16: + ChipLogProgress(chipTool, + " ***** Test Step 16 : TH_CR1 starts a commissioning process with DUT_CE before the timeout from step 12\n"); + err = TestThCr1StartsACommissioningProcessWithDutCeBeforeTheTimeoutFromStep12_16(); + break; } if (CHIP_NO_ERROR != err) { @@ -35549,27 +36301,39 @@ class Test_TC_CADMIN_1_3 : public TestCommandBridge { case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + break; } // Go on to the next test. ContinueOnChipMainThread(CHIP_NO_ERROR); } - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(300)); } private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 12; + const uint16_t mTestCount = 17; chip::Optional mNodeId; + chip::Optional mTimeout; chip::Optional mNodeId2; chip::Optional mEndpoint; chip::Optional mDiscriminator; chip::Optional mPayload; - chip::Optional mTimeout; CHIP_ERROR TestThCr1StartsACommissioningProcessWithDutCe_0() { @@ -35821,6 +36585,106 @@ class Test_TC_CADMIN_1_3 : public TestCommandBridge { return CHIP_NO_ERROR; } + + CHIP_ERROR TestThCr2OpensACommissioningWindowOnDutCe_12() + { + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; + params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; + params.pakeVerifier = + [[NSData alloc] initWithBytes:"\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357\326" + "\360,D4\362\275\322z\244\371\316\247\015s\216L" + length:97]; + params.discriminator = mDiscriminator.HasValue() ? [NSNumber numberWithUnsignedShort:mDiscriminator.Value()] + : [NSNumber numberWithUnsignedShort:3840U]; + params.iterations = [NSNumber numberWithUnsignedInt:1000UL]; + params.salt = [[NSData alloc] initWithBytes:"SPAKE2P Key Salt" length:16]; + [cluster openCommissioningWindowWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"TH_CR2 opens a commissioning window on DUT_CE Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWaitForTheCommissioningWindowInStep13ToTimeout_13() + { + chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; + value.ms = 180000UL; + return WaitForMs("alpha", value); + } + + CHIP_ERROR TestThCr2ReadsTheWindowStatusToVerifyTheDutCeWindowIsClosed_14() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeWindowStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH_CR2 reads the window status to verify the DUT_CE window is closed Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("WindowStatus", actualValue, 0U)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestThCr2OpensACommissioningWindowOnDutCe_15() + { + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; + params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; + params.pakeVerifier = + [[NSData alloc] initWithBytes:"\006\307V\337\374\327\042e4R\241-\315\224]\214T\332+\017<\275\033M\303\361\255\262#" + "\256\262k\004|\322L\226\206o\227\233\035\203\354P\342\264\2560\315\362\375\263+" + "\330\242\021\2707\334\224\355\315V\364\321Cw\031\020v\277\305\235\231\267\3350S\357\326" + "\360,D4\362\275\322z\244\371\316\247\015s\216L" + length:97]; + params.discriminator = mDiscriminator.HasValue() ? [NSNumber numberWithUnsignedShort:mDiscriminator.Value()] + : [NSNumber numberWithUnsignedShort:3840U]; + params.iterations = [NSNumber numberWithUnsignedInt:1000UL]; + params.salt = [[NSData alloc] initWithBytes:"SPAKE2P Key Salt" length:16]; + [cluster openCommissioningWindowWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"TH_CR2 opens a commissioning window on DUT_CE Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestThCr1StartsACommissioningProcessWithDutCeBeforeTheTimeoutFromStep12_16() + { + chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; + value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:0000000000I31506010", 22); + return PairWithCode("alpha", value); + } }; class Test_TC_CADMIN_1_4 : public TestCommandBridge { @@ -35831,11 +36695,11 @@ class Test_TC_CADMIN_1_4 : public TestCommandBridge { , mTestIndex(0) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); + AddArgument("timeout", 0, UINT16_MAX, &mTimeout); AddArgument("nodeId2", 0, UINT64_MAX, &mNodeId2); AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); AddArgument("discriminator", 0, UINT16_MAX, &mDiscriminator); AddArgument("payload", &mPayload); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); } // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) @@ -35869,16 +36733,28 @@ class Test_TC_CADMIN_1_4 : public TestCommandBridge { break; case 1: ChipLogProgress(chipTool, " ***** Test Step 1 : TH_CR1 opens a commissioning window on DUT_CE\n"); + if (ShouldSkip("CADMIN.S.C0001")) { + NextTest(); + return; + } err = TestThCr1OpensACommissioningWindowOnDutCe_1(); break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_2(); break; case 3: ChipLogProgress(chipTool, " ***** Test Step 3 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_3(); break; case 4: @@ -35891,32 +36767,90 @@ class Test_TC_CADMIN_1_4 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Query fabrics list\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestQueryFabricsList_6(); break; case 7: ChipLogProgress(chipTool, " ***** Test Step 7 : Query fabrics list\n"); + if (ShouldSkip("OPCREDS.S.A0001")) { + NextTest(); + return; + } err = TestQueryFabricsList_7(); break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_9(); break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : TH_CR1 writes the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10(); break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : TH_CR1 reads the Basic Information Clusters NodeLabel mandatory attribute of DUT_CE\n"); + if (ShouldSkip("BINFO.S.A0005")) { + NextTest(); + return; + } err = TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11(); break; + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : TH_CR2 opens a commissioning window on DUT_CE\n"); + if (ShouldSkip("CADMIN.S.C0001")) { + NextTest(); + return; + } + err = TestThCr2OpensACommissioningWindowOnDutCe_12(); + break; + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Wait for the commissioning window in step 13 to timeout\n"); + err = TestWaitForTheCommissioningWindowInStep13ToTimeout_13(); + break; + case 14: + ChipLogProgress( + chipTool, " ***** Test Step 14 : TH_CR2 reads the window status to verify the DUT_CE window is closed\n"); + if (ShouldSkip("CADMIN.S.A0000")) { + NextTest(); + return; + } + err = TestThCr2ReadsTheWindowStatusToVerifyTheDutCeWindowIsClosed_14(); + break; + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : TH_CR2 opens a commissioning window on DUT_CE\n"); + if (ShouldSkip("CADMIN.S.C0001")) { + NextTest(); + return; + } + err = TestThCr2OpensACommissioningWindowOnDutCe_15(); + break; + case 16: + ChipLogProgress(chipTool, + " ***** Test Step 16 : TH_CR1 starts a commissioning process with DUT_CE before the timeout from step 12\n"); + err = TestThCr1StartsACommissioningProcessWithDutCeBeforeTheTimeoutFromStep12_16(); + break; } if (CHIP_NO_ERROR != err) { @@ -35964,27 +36898,39 @@ class Test_TC_CADMIN_1_4 : public TestCommandBridge { case 11: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 12: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 13: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 14: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 15: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; + case 16: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_FAILURE)); + break; } // Go on to the next test. ContinueOnChipMainThread(CHIP_NO_ERROR); } - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds)); - } + chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(300)); } private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 12; + const uint16_t mTestCount = 17; chip::Optional mNodeId; + chip::Optional mTimeout; chip::Optional mNodeId2; chip::Optional mEndpoint; chip::Optional mDiscriminator; chip::Optional mPayload; - chip::Optional mTimeout; CHIP_ERROR TestThCr1StartsACommissioningProcessWithDutCe_0() { @@ -36209,6 +37155,86 @@ class Test_TC_CADMIN_1_4 : public TestCommandBridge { return CHIP_NO_ERROR; } + + CHIP_ERROR TestThCr2OpensACommissioningWindowOnDutCe_12() + { + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; + [cluster openBasicCommissioningWindowWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"TH_CR2 opens a commissioning window on DUT_CE Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestWaitForTheCommissioningWindowInStep13ToTimeout_13() + { + chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; + value.ms = 180000UL; + return WaitForMs("alpha", value); + } + + CHIP_ERROR TestThCr2ReadsTheWindowStatusToVerifyTheDutCeWindowIsClosed_14() + { + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeWindowStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"TH_CR2 reads the window status to verify the DUT_CE window is closed Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + { + id actualValue = value; + VerifyOrReturn(CheckValue("WindowStatus", actualValue, 0U)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestThCr2OpensACommissioningWindowOnDutCe_15() + { + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; + params.commissioningTimeout = [NSNumber numberWithUnsignedShort:180U]; + [cluster openBasicCommissioningWindowWithParams:params + completionHandler:^(NSError * _Nullable err) { + NSLog(@"TH_CR2 opens a commissioning window on DUT_CE Error: %@", err); + + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR TestThCr1StartsACommissioningProcessWithDutCeBeforeTheTimeoutFromStep12_16() + { + chip::app::Clusters::CommissionerCommands::Commands::PairWithCode::Type value; + value.nodeId = mNodeId2.HasValue() ? mNodeId2.Value() : 51966ULL; + value.payload = mPayload.HasValue() ? mPayload.Value() : chip::Span("MT:-24J0AFN00KA0648G00", 22); + return PairWithCode("alpha", value); + } }; class OTA_SuccessfulTransfer : public TestCommandBridge { From 42bdf10fe01a53122600390bf27f7cfed4c38168 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 15 Jul 2022 18:59:41 +0000 Subject: [PATCH 3/4] Restyled by whitespace --- .../certification/Test_TC_CADMIN_1_1.yaml | 74 +++++----- .../certification/Test_TC_CADMIN_1_11.yaml | 8 +- .../certification/Test_TC_CADMIN_1_12.yaml | 20 +-- .../certification/Test_TC_CADMIN_1_13.yaml | 82 +++++------ .../certification/Test_TC_CADMIN_1_14.yaml | 82 +++++------ .../certification/Test_TC_CADMIN_1_16.yaml | 72 +++++----- .../certification/Test_TC_CADMIN_1_17.yaml | 20 +-- .../certification/Test_TC_CADMIN_1_18.yaml | 62 ++++---- .../certification/Test_TC_CADMIN_1_19.yaml | 20 +-- .../certification/Test_TC_CADMIN_1_2.yaml | 134 +++++++++--------- .../certification/Test_TC_CADMIN_1_20.yaml | 62 ++++---- .../certification/Test_TC_CADMIN_1_21.yaml | 2 +- .../certification/Test_TC_CADMIN_1_22.yaml | 16 +-- .../certification/Test_TC_CADMIN_1_23.yaml | 2 +- .../certification/Test_TC_CADMIN_1_24.yaml | 16 +-- .../certification/Test_TC_CADMIN_1_7.yaml | 50 +++---- .../certification/Test_TC_CADMIN_1_8.yaml | 88 ++++++------ .../suites/certification/Test_TC_MOD_1_3.yaml | 60 ++++---- .../suites/certification/Test_TC_MOD_2_2.yaml | 18 +-- .../suites/certification/Test_TC_MOD_3_1.yaml | 2 +- 20 files changed, 445 insertions(+), 445 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml index 7a80f06e00905f..e0a2486c4420c2 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml @@ -76,7 +76,7 @@ tests: [1649245801.244400][10091:10096] CHIP:TOO: VendorId: 65521 [1649245801.244431][10091:10096] CHIP:TOO: FabricId: 1 [1649245801.244461][10091:10096] CHIP:TOO: NodeId: 1 - [1649245801.244491][10091:10096] CHIP:TOO: Label: + [1649245801.244491][10091:10096] CHIP:TOO: Label: [1649245801.244521][10091:10096] CHIP:TOO: FabricIndex: 1 [1649245801.244552][10091:10096] CHIP:TOO: } [1649245801.244671][10091:10096] CHIP:EM: Sending Standalone Ack for MessageCounter:8407998 on exchange 12989i @@ -84,18 +84,18 @@ tests: - label: "DUT_CR2 starts a commissioning process with TH_CE" verification: | - On 2nd controller, using chip-tool connect using manual code. + On 2nd controller, using chip-tool connect using manual code. Below is the example when using chip tool as controller (considering 35998938564 as the manual code generated by 1st controller) ./chip-tool pairing code 2 35998938564 - Verify whether you got below message in the log of TH + Verify whether you got below message in the log of TH Device commissioning completed with success disabled: true - label: "Verify TH_CE is now discoverable over DNS-SD with two SRV Records" verification: | - On the raspi , Verify if the DUT is broadcasting using + On the raspi , Verify if the DUT is broadcasting using ubuntu@ubuntu:~/may10_cntrl2/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matter._tcp + eth0 IPv6 E0AF53B23E580769-0000000000000002 _matter._tcp local @@ -135,16 +135,16 @@ tests: [1649671460.431347][20958:20963] CHIP:DMG: Cluster = 0x28, [1649671460.431364][20958:20963] CHIP:DMG: Attribute = 0x0000_0005, [1649671460.431380][20958:20963] CHIP:DMG: } - [1649671460.431403][20958:20963] CHIP:DMG: + [1649671460.431403][20958:20963] CHIP:DMG: [1649671460.431422][20958:20963] CHIP:DMG: StatusIB = [1649671460.431445][20958:20963] CHIP:DMG: { [1649671460.431467][20958:20963] CHIP:DMG: status = 0x00 (SUCCESS), [1649671460.431488][20958:20963] CHIP:DMG: }, - [1649671460.431511][20958:20963] CHIP:DMG: + [1649671460.431511][20958:20963] CHIP:DMG: [1649671460.431530][20958:20963] CHIP:DMG: }, - [1649671460.431556][20958:20963] CHIP:DMG: + [1649671460.431556][20958:20963] CHIP:DMG: [1649671460.431570][20958:20963] CHIP:DMG: ], - [1649671460.431593][20958:20963] CHIP:DMG: + [1649671460.431593][20958:20963] CHIP:DMG: [1649671460.431607][20958:20963] CHIP:DMG: InteractionModelRevision = 1 [1649671460.431620][20958:20963] CHIP:DMG: } [1649671460.431685][20958:20963] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -171,15 +171,15 @@ tests: [1649671466.310367][20969:20974] CHIP:DMG: Cluster = 0x28, [1649671466.310380][20969:20974] CHIP:DMG: Attribute = 0x0000_0005, [1649671466.310391][20969:20974] CHIP:DMG: } - [1649671466.310405][20969:20974] CHIP:DMG: - [1649671466.310420][20969:20974] CHIP:DMG: Data = "te8", + [1649671466.310405][20969:20974] CHIP:DMG: + [1649671466.310420][20969:20974] CHIP:DMG: Data = "te8", [1649671466.310432][20969:20974] CHIP:DMG: }, - [1649671466.310446][20969:20974] CHIP:DMG: + [1649671466.310446][20969:20974] CHIP:DMG: [1649671466.310457][20969:20974] CHIP:DMG: }, - [1649671466.310471][20969:20974] CHIP:DMG: + [1649671466.310471][20969:20974] CHIP:DMG: [1649671466.310481][20969:20974] CHIP:DMG: ], - [1649671466.310497][20969:20974] CHIP:DMG: - [1649671466.310508][20969:20974] CHIP:DMG: SuppressResponse = true, + [1649671466.310497][20969:20974] CHIP:DMG: + [1649671466.310508][20969:20974] CHIP:DMG: SuppressResponse = true, [1649671466.310518][20969:20974] CHIP:DMG: InteractionModelRevision = 1 [1649671466.310528][20969:20974] CHIP:DMG: } [1649671466.310629][20969:20974] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0005 DataVersion: 3582043624 @@ -204,7 +204,7 @@ tests: [1649245825.315436][10098:10103] CHIP:TOO: VendorId: 65521 [1649245825.315479][10098:10103] CHIP:TOO: FabricId: 1 [1649245825.315518][10098:10103] CHIP:TOO: NodeId: 1 - [1649245825.315557][10098:10103] CHIP:TOO: Label: + [1649245825.315557][10098:10103] CHIP:TOO: Label: [1649245825.315596][10098:10103] CHIP:TOO: FabricIndex: 1 [1649245825.315637][10098:10103] CHIP:TOO: } [1649245825.315697][10098:10103] CHIP:TOO: [2]: { @@ -212,7 +212,7 @@ tests: [1649245825.315789][10098:10103] CHIP:TOO: VendorId: 65521 [1649245825.315830][10098:10103] CHIP:TOO: FabricId: 1 [1649245825.315870][10098:10103] CHIP:TOO: NodeId: 2 - [1649245825.315908][10098:10103] CHIP:TOO: Label: + [1649245825.315908][10098:10103] CHIP:TOO: Label: [1649245825.315947][10098:10103] CHIP:TOO: FabricIndex: 2 [1649245825.315986][10098:10103] CHIP:TOO: } disabled: true @@ -239,16 +239,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -292,16 +292,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -355,7 +355,7 @@ tests: CHIP: [DMG] InvokeResponseMessage = [1648115245106] [6681:3894448] CHIP: [DMG] { - [1648115245106] [6681:3894448] CHIP: [DMG] suppressResponse = false, + [1648115245106] [6681:3894448] CHIP: [DMG] suppressResponse = false, [1648115245106] [6681:3894448] CHIP: [DMG] InvokeResponseIBs = [1648115245106] [6681:3894448] CHIP: [DMG] [ [1648115245106] [6681:3894448] CHIP: [DMG] InvokeResponseIB = @@ -368,18 +368,18 @@ tests: [1648115245106] [6681:3894448] CHIP: [DMG] ClusterId = 0x3c, [1648115245106] [6681:3894448] CHIP: [DMG] CommandId = 0x2, [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] StatusIB = [1648115245106] [6681:3894448] CHIP: [DMG] { [1648115245106] [6681:3894448] CHIP: [DMG] status = 0x0, [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] }, - [1648115245106] [6681:3894448] CHIP: [DMG] + [1648115245106] [6681:3894448] CHIP: [DMG] [1648115245106] [6681:3894448] CHIP: [DMG] ], - [1648115245107] [6681:3894448] CHIP: [DMG] + [1648115245107] [6681:3894448] CHIP: [DMG] [1648115245107] [6681:3894448] CHIP: [DMG] InteractionModelRevision = 1 [1648115245107] [6681:3894448] CHIP: [DMG] }, [1648115245107] [6681:3894448] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x0 @@ -389,8 +389,8 @@ tests: "TH_CR3 attempts to execute a PASE to starts a commissioning process with TH_CE" verification: | - On 3rd controller using chip-tool connect using manual code generated from 1st controller. This attempt should fail, i.e - ./chip-tool pairing code 1 34995354639 + On 3rd controller using chip-tool connect using manual code generated from 1st controller. This attempt should fail, i.e + ./chip-tool pairing code 1 34995354639 verify you got the following message in the TH log CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 @@ -421,16 +421,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -494,7 +494,7 @@ tests: "TH_CR1 starts a commissioning process with TH_CE before the timeout from step 15" verification: | - On 1st controller, using chip-tool connect using manual code. + On 1st controller, using chip-tool connect using manual code. Below is the example when using chip tool as controller (considering 34995354639 as the manual code generated by DUT) ./chip-tool pairing code 2 34995354639 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml index 7729b470a1a9d6..8dc4eb53a8fff6 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_11.yaml @@ -35,7 +35,7 @@ tests: verification: | On the 2nd controller using chip tool, open commissioning window using ECM - ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 + ./chip-tool pairing open-commissioning-window 2 1 400 2000 3840 Controller: @@ -69,7 +69,7 @@ tests: times. This can be done using a valid onboarding payload with an incorrect setupcode" verification: | - 1. On 2nd controller using chip-tool connect using wrong manual code. Repeat the step for 20 times. + 1. On 2nd controller using chip-tool connect using wrong manual code. Repeat the step for 20 times. ./chip-tool pairing code 1 36177160938 --timeout 3 (With wrong manual code) @@ -84,7 +84,7 @@ tests: DUT_CR1 attempts to do PASE to DUT_CE using the correct onboarding payload" verification: | - 1. On 2nd controller using chip tool connect using correct passcode. + 1. On 2nd controller using chip tool connect using correct passcode. ./chip-tool pairing code 1 36177160937 (correct passcode) @@ -99,7 +99,7 @@ tests: PAKEVerifier" PICS: CADMIN.C.C0000 verification: | - 1. On 3rdd controller using chip-tool connect using correct passcode + 1. On 3rdd controller using chip-tool connect using correct passcode ./chip-tool pairing code 1 36177160938 (With wrong manual code) diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml index 9cb22bc6901d63..e4052ba9353710 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_12.yaml @@ -35,12 +35,12 @@ tests: verification: | On the 2nd controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -53,18 +53,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -77,7 +77,7 @@ tests: times. This can be done using a valid onboarding payload with an incorrect setupcode" verification: | - On 2nd controller, using chip-tool connect using wrong passcode. Repeat the step for 20 times. + On 2nd controller, using chip-tool connect using wrong passcode. Repeat the step for 20 times. ./chip-tool pairing onnetwork 1 20202019 --timeout 3 (With wrong passcode) @@ -92,7 +92,7 @@ tests: DUT_CR1 attempts to do PASE to DUT_CE using the correct onboarding payload" verification: | - On 2nd controller, using chip tool connect using correct passcode. + On 2nd controller, using chip tool connect using correct passcode. ./chip-tool pairing onnetwork 1 20202021 (correct passcode) @@ -107,7 +107,7 @@ tests: PAKEVerifier" PICS: CADMIN.C.C0001 verification: | - 1. On 3rd controller using chip-tool connect using correct passcode + 1. On 3rd controller using chip-tool connect using correct passcode ./chip-tool pairing onnetwork 1 20202021 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml index 52b49cf9e4605d..92d8f946db8a58 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_13.yaml @@ -25,7 +25,7 @@ config: tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" verification: | - "1. Provision the device using 1st controller chip tool on the raspi (use above instructions) , + "1. Provision the device using 1st controller chip tool on the raspi (use above instructions) , " disabled: true @@ -145,7 +145,7 @@ tests: CHIP:DMG: InvokeResponseMessage = [1650527291.952055][8566:8571] CHIP:DMG: { - [1650527291.952074][8566:8571] CHIP:DMG: suppressResponse = false, + [1650527291.952074][8566:8571] CHIP:DMG: suppressResponse = false, [1650527291.952091][8566:8571] CHIP:DMG: InvokeResponseIBs = [1650527291.952116][8566:8571] CHIP:DMG: [ [1650527291.952134][8566:8571] CHIP:DMG: InvokeResponseIB = @@ -158,19 +158,19 @@ tests: [1650527291.952334][8566:8571] CHIP:DMG: ClusterId = 0x3c, [1650527291.952369][8566:8571] CHIP:DMG: CommandId = 0x0, [1650527291.952394][8566:8571] CHIP:DMG: }, - [1650527291.952431][8566:8571] CHIP:DMG: + [1650527291.952431][8566:8571] CHIP:DMG: [1650527291.952458][8566:8571] CHIP:DMG: StatusIB = [1650527291.952488][8566:8571] CHIP:DMG: { [1650527291.952519][8566:8571] CHIP:DMG: status = 0x01 (FAILURE), [1650527291.952555][8566:8571] CHIP:DMG: cluster-status = 0x1, [1650527291.952578][8566:8571] CHIP:DMG: }, - [1650527291.952612][8566:8571] CHIP:DMG: + [1650527291.952612][8566:8571] CHIP:DMG: [1650527291.952634][8566:8571] CHIP:DMG: }, - [1650527291.952671][8566:8571] CHIP:DMG: + [1650527291.952671][8566:8571] CHIP:DMG: [1650527291.952694][8566:8571] CHIP:DMG: }, - [1650527291.952731][8566:8571] CHIP:DMG: + [1650527291.952731][8566:8571] CHIP:DMG: [1650527291.952751][8566:8571] CHIP:DMG: ], - [1650527291.952781][8566:8571] CHIP:DMG: + [1650527291.952781][8566:8571] CHIP:DMG: [1650527291.952795][8566:8571] CHIP:DMG: InteractionModelRevision = 1 [1650527291.952807][8566:8571] CHIP:DMG: }, [1650527291.952886][8566:8571] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x1 @@ -191,7 +191,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -199,7 +199,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -207,7 +207,7 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true @@ -226,11 +226,11 @@ tests: verification: | On the 1st controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -243,18 +243,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -281,11 +281,11 @@ tests: verification: | On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry of the above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 3 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 3 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527565.990404][24618:24623] CHIP:DMG: { - [1650527565.990476][24618:24623] CHIP:DMG: suppressResponse = false, + [1650527565.990476][24618:24623] CHIP:DMG: suppressResponse = false, [1650527565.990528][24618:24623] CHIP:DMG: InvokeResponseIBs = [1650527565.990615][24618:24623] CHIP:DMG: [ [1650527565.990667][24618:24623] CHIP:DMG: InvokeResponseIB = @@ -298,19 +298,19 @@ tests: [1650527565.991186][24618:24623] CHIP:DMG: ClusterId = 0x3c, [1650527565.991257][24618:24623] CHIP:DMG: CommandId = 0x1, [1650527565.991332][24618:24623] CHIP:DMG: }, - [1650527565.991441][24618:24623] CHIP:DMG: + [1650527565.991441][24618:24623] CHIP:DMG: [1650527565.991505][24618:24623] CHIP:DMG: StatusIB = [1650527565.991574][24618:24623] CHIP:DMG: { [1650527565.991645][24618:24623] CHIP:DMG: status = 0x01 (FAILURE), [1650527565.991743][24618:24623] CHIP:DMG: cluster-status = 0x1, [1650527565.991830][24618:24623] CHIP:DMG: }, - [1650527565.991918][24618:24623] CHIP:DMG: + [1650527565.991918][24618:24623] CHIP:DMG: [1650527565.991976][24618:24623] CHIP:DMG: }, - [1650527565.992061][24618:24623] CHIP:DMG: + [1650527565.992061][24618:24623] CHIP:DMG: [1650527565.992116][24618:24623] CHIP:DMG: }, - [1650527565.992202][24618:24623] CHIP:DMG: + [1650527565.992202][24618:24623] CHIP:DMG: [1650527565.992253][24618:24623] CHIP:DMG: ], - [1650527565.992316][24618:24623] CHIP:DMG: + [1650527565.992316][24618:24623] CHIP:DMG: [1650527565.992365][24618:24623] CHIP:DMG: InteractionModelRevision = 1 [1650527565.992414][24618:24623] CHIP:DMG: }, [1650527565.992535][24618:24623] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -338,7 +338,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -346,7 +346,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -354,7 +354,7 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true @@ -367,12 +367,12 @@ tests: On the 1st controller using chip tool, open commissioning window using BCM - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -385,18 +385,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -411,11 +411,11 @@ tests: verification: | On the 2nd controller using chip tool, open commissioning window using BCM before timer expiry from above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -428,19 +428,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml index 43997cfb1f74e4..23dc545208f5f9 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_14.yaml @@ -25,7 +25,7 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using your DUT controller (use above instructions) , + "1. Provision the device using your DUT controller (use above instructions) , " disabled: true @@ -129,7 +129,7 @@ tests: CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -142,19 +142,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -175,7 +175,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -183,7 +183,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -191,7 +191,7 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true @@ -212,13 +212,13 @@ tests: On your DUT controller, open commissioning window using BCM Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -231,18 +231,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -258,14 +258,14 @@ tests: verification: | On the 3rd controller using chip tool, open commissioning window using BCM before the timer expiry from above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -278,19 +278,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -318,7 +318,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -326,7 +326,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -334,7 +334,7 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true @@ -347,11 +347,11 @@ tests: On your DUT controller, open commissioning window using BCM Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -364,18 +364,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -391,14 +391,14 @@ tests: verification: | On the 2nd controller using chip tool, open commissioning window using BCM before the timer expiry from above step - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -411,19 +411,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml index 23be3b91598705..db6d5624d975b6 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_16.yaml @@ -25,7 +25,7 @@ config: tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using your DUT controller (use above instructions) , + "1. Provision the device using your DUT controller (use above instructions) , " disabled: true @@ -97,11 +97,11 @@ tests: On your DUT controller, open commissioning window using BCM Below is the example while using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -114,18 +114,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -147,7 +147,7 @@ tests: CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -160,19 +160,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -193,7 +193,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -201,7 +201,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -209,7 +209,7 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true @@ -227,7 +227,7 @@ tests: ECM" PICS: CADMIN.C.C0000 verification: | - On your DUT controller, open commissioning window using ECM + On your DUT controller, open commissioning window using ECM Below is the example while using chip tool as controller @@ -252,14 +252,14 @@ tests: using ECM" PICS: CADMIN.C.C0000 verification: | - On the 3rd controller using chip tool, open commissioning window using ECM + On the 3rd controller using chip tool, open commissioning window using ECM ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -272,19 +272,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 @@ -305,7 +305,7 @@ tests: [1650527361.426923][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.426979][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427033][15792:15797] CHIP:TOO: NodeId: 1 - [1650527361.427088][15792:15797] CHIP:TOO: Label: + [1650527361.427088][15792:15797] CHIP:TOO: Label: [1650527361.427166][15792:15797] CHIP:TOO: FabricIndex: 1 [1650527361.427376][15792:15797] CHIP:TOO: } [1650527361.427464][15792:15797] CHIP:TOO: [2]: { @@ -313,7 +313,7 @@ tests: [1650527361.427595][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.427649][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.427703][15792:15797] CHIP:TOO: NodeId: 3 - [1650527361.427756][15792:15797] CHIP:TOO: Label: + [1650527361.427756][15792:15797] CHIP:TOO: Label: [1650527361.427811][15792:15797] CHIP:TOO: FabricIndex: 2 [1650527361.427868][15792:15797] CHIP:TOO: } [1650527361.427943][15792:15797] CHIP:TOO: [3]: { @@ -321,7 +321,7 @@ tests: [1650527361.428067][15792:15797] CHIP:TOO: VendorId: 65521 [1650527361.428122][15792:15797] CHIP:TOO: FabricId: 1 [1650527361.428176][15792:15797] CHIP:TOO: NodeId: 2 - [1650527361.428229][15792:15797] CHIP:TOO: Label: + [1650527361.428229][15792:15797] CHIP:TOO: Label: [1650527361.428282][15792:15797] CHIP:TOO: FabricIndex: 3 [1650527361.428335][15792:15797] CHIP:TOO: } disabled: true @@ -337,7 +337,7 @@ tests: "DUT_CR1 sends command to TH_CE to open a commissioning window with a commissioning timeout of PIXIT.CADMIN.CwDuration seconds using ECM" verification: | - On your DUT controller, open commissioning window using ECM + On your DUT controller, open commissioning window using ECM Below is the example while using chip tool as controller @@ -362,13 +362,13 @@ tests: PIXIT.CADMIN.CwDuration seconds using ECM" PICS: CADMIN.C.C0000 verification: | - On the 2nd controller using chip tool, open commissioning window using ECM + On the 2nd controller using chip tool, open commissioning window using ECM ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 CHIP:DMG: InvokeResponseMessage = [1650527622.373450][15824:15829] CHIP:DMG: { - [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, + [1650527622.373531][15824:15829] CHIP:DMG: suppressResponse = false, [1650527622.373628][15824:15829] CHIP:DMG: InvokeResponseIBs = [1650527622.373734][15824:15829] CHIP:DMG: [ [1650527622.373817][15824:15829] CHIP:DMG: InvokeResponseIB = @@ -381,19 +381,19 @@ tests: [1650527622.374490][15824:15829] CHIP:DMG: ClusterId = 0x3c, [1650527622.374593][15824:15829] CHIP:DMG: CommandId = 0x1, [1650527622.374682][15824:15829] CHIP:DMG: }, - [1650527622.374799][15824:15829] CHIP:DMG: + [1650527622.374799][15824:15829] CHIP:DMG: [1650527622.374896][15824:15829] CHIP:DMG: StatusIB = [1650527622.374979][15824:15829] CHIP:DMG: { [1650527622.375086][15824:15829] CHIP:DMG: status = 0x01 (FAILURE), [1650527622.375236][15824:15829] CHIP:DMG: cluster-status = 0x1, [1650527622.375320][15824:15829] CHIP:DMG: }, - [1650527622.375426][15824:15829] CHIP:DMG: + [1650527622.375426][15824:15829] CHIP:DMG: [1650527622.375527][15824:15829] CHIP:DMG: }, - [1650527622.375616][15824:15829] CHIP:DMG: + [1650527622.375616][15824:15829] CHIP:DMG: [1650527622.375704][15824:15829] CHIP:DMG: }, - [1650527622.375786][15824:15829] CHIP:DMG: + [1650527622.375786][15824:15829] CHIP:DMG: [1650527622.375864][15824:15829] CHIP:DMG: ], - [1650527622.375940][15824:15829] CHIP:DMG: + [1650527622.375940][15824:15829] CHIP:DMG: [1650527622.376000][15824:15829] CHIP:DMG: InteractionModelRevision = 1 [1650527622.376058][15824:15829] CHIP:DMG: }, [1650527622.376202][15824:15829] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x1 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml index f5bb4ce45c4d50..7066f59e26d452 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_17.yaml @@ -30,7 +30,7 @@ tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , " disabled: true @@ -115,7 +115,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -123,7 +123,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -131,7 +131,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i @@ -160,7 +160,7 @@ tests: verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -190,7 +190,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -198,7 +198,7 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i" @@ -253,7 +253,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -261,7 +261,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -269,7 +269,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml index 650cb43d6223c7..bcbff956bb6429 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_18.yaml @@ -30,7 +30,7 @@ tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , " disabled: true @@ -40,11 +40,11 @@ tests: PICS: CADMIN.S.C0001 verification: | On 1st controller chip tool, open commissioning window - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -57,18 +57,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -92,11 +92,11 @@ tests: PICS: CADMIN.S.C0001 verification: | On 1st controller chip tool, open commissioning window - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -109,18 +109,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -153,7 +153,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -161,7 +161,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -169,7 +169,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i @@ -198,7 +198,7 @@ tests: verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -229,7 +229,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -237,7 +237,7 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i" @@ -250,12 +250,12 @@ tests: verification: | On 1st controller chip tool, open commissioning window - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -268,18 +268,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -313,7 +313,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -321,7 +321,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -329,7 +329,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml index f934e64ee40d63..3bc1ab0c05bc1c 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_19.yaml @@ -30,7 +30,7 @@ tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using DUT controller chip tool(use above instructions) , + "1. Provision the device using DUT controller chip tool(use above instructions) , " disabled: true @@ -148,7 +148,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -156,7 +156,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -164,7 +164,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i @@ -193,7 +193,7 @@ tests: verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -224,7 +224,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -232,7 +232,7 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i @@ -290,7 +290,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -298,7 +298,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -306,7 +306,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml index 3ab2abeedc1522..c774dc887224b1 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_2.yaml @@ -36,11 +36,11 @@ tests: verification: | On first controller, usinadministratorcommissioningg chip tool open commissioning window. - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -53,18 +53,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -86,7 +86,7 @@ tests: [1649245801.244400][10091:10096] CHIP:TOO: VendorId: 65521 [1649245801.244431][10091:10096] CHIP:TOO: FabricId: 1 [1649245801.244461][10091:10096] CHIP:TOO: NodeId: 1 - [1649245801.244491][10091:10096] CHIP:TOO: Label: + [1649245801.244491][10091:10096] CHIP:TOO: Label: [1649245801.244521][10091:10096] CHIP:TOO: FabricIndex: 1 [1649245801.244552][10091:10096] CHIP:TOO: } [1649245801.244671][10091:10096] CHIP:EM: Sending Standalone Ack for MessageCounter:8407998 on exchange 12989i @@ -96,7 +96,7 @@ tests: verification: | Using your DUT Controller connect to the accessory. - Below is the example when using chip tool as controller + Below is the example when using chip tool as controller ./chip-tool pairing onnetwork 1 20202021 Verify you got below message @@ -105,7 +105,7 @@ tests: - label: "Verify TH_CE is now discoverable over DNS-SD with two SRV Records" verification: | - On the raspi , Verify if the DUT is broadcasting using + On the raspi , Verify if the DUT is broadcasting using ubuntu@ubuntu:~/may10_cntrl2/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matter._tcp + eth0 IPv6 E0AF53B23E580769-0000000000000002 _matter._tcp local @@ -129,7 +129,7 @@ tests: verification: | Using your DUT controller write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -144,16 +144,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -171,9 +171,9 @@ tests: verification: | On your DUT controller read fabricList - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool operationalcredentials read fabrics 2 0 --fabric-filtered 0 - + CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0001 DataVersion: 3229397217 [1650277071.834099][40790:40795] CHIP:TOO: Fabrics: 2 entries [1650277071.834120][40790:40795] CHIP:TOO: [1]: { @@ -181,7 +181,7 @@ tests: [1650277071.834134][40790:40795] CHIP:TOO: VendorId: 65521 [1650277071.834137][40790:40795] CHIP:TOO: FabricId: 1 [1650277071.834141][40790:40795] CHIP:TOO: NodeId: 1 - [1650277071.834147][40790:40795] CHIP:TOO: Label: + [1650277071.834147][40790:40795] CHIP:TOO: Label: [1650277071.834151][40790:40795] CHIP:TOO: FabricIndex: 1 [1650277071.834155][40790:40795] CHIP:TOO: } [1650277071.834161][40790:40795] CHIP:TOO: [2]: { @@ -189,7 +189,7 @@ tests: [1650277071.834169][40790:40795] CHIP:TOO: VendorId: 65521 [1650277071.834173][40790:40795] CHIP:TOO: FabricId: 1 [1650277071.834176][40790:40795] CHIP:TOO: NodeId: 2 - [1650277071.834179][40790:40795] CHIP:TOO: Label: + [1650277071.834179][40790:40795] CHIP:TOO: Label: [1650277071.834182][40790:40795] CHIP:TOO: FabricIndex: 2 [1650277071.834186][40790:40795] CHIP:TOO: } [1650277071.834215][40790:40795] CHIP:EM: Sending Standalone Ack for MessageCounter:15057119 on exchange 50631i @@ -202,7 +202,7 @@ tests: verification: | On first controller, using chip-tool write attribute, Verify read attribute returns the updated value written. - ./chip-tool basic write node-label te8 1 0 + ./chip-tool basic write node-label te8 1 0 CHIP:DMG: WriteResponseMessage = [1649245940.788522][10110:10115] CHIP:DMG: { @@ -216,16 +216,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -245,7 +245,7 @@ tests: - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -260,16 +260,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -294,13 +294,13 @@ tests: verification: | On your DUT controller using chip-tool open commissioning widow using BCM. - Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -313,18 +313,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -338,13 +338,13 @@ tests: verification: | On your DUT controller using chip-tool run revoke command - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -357,18 +357,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -379,7 +379,7 @@ tests: "TH_CR3 attempts to execute a PASE to starts a commissioning process with TH_CE" verification: | - 1. On third controller, using chip-tool connect to the accessory. Connect attempt should fail, i.e + 1. On third controller, using chip-tool connect to the accessory. Connect attempt should fail, i.e ./chip-tool pairing onnetwork 3 20202021 verify you got the following message in the TH log @@ -395,7 +395,7 @@ tests: verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -410,16 +410,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -437,13 +437,13 @@ tests: verification: | On your DUT controller using chip-tool open commissioning widow using BCM. - Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 180 2 0 --timedInteractionTimeoutMs 1000 + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 180 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -456,18 +456,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -487,13 +487,13 @@ tests: verification: | On your DUT controller using chip-tool open commissioning widow using BCM. - Below is the example while using chip tool on second controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + Below is the example while using chip tool on second controller, + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -506,18 +506,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -530,7 +530,7 @@ tests: verification: | Using your 1st Controller connect to the accessory. - Below is the example when using chip tool as controller + Below is the example when using chip tool as controller ./chip-tool pairing onnetwork 1 20202021 [1651786200275] [36301:315544] CHIP: [DMG] Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml index 73162be4854e74..282d17dc5e8989 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_20.yaml @@ -30,7 +30,7 @@ tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using DUT controller chip tool(use above instructions) , + "1. Provision the device using DUT controller chip tool(use above instructions) , " disabled: true @@ -42,12 +42,12 @@ tests: On your DUT controller chip tool, open commissioning window Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP: [DMG] InvokeResponseMessage = [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, + [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIBs = [1648116114630] [6871:3898916] CHIP: [DMG] [ [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIB = @@ -60,18 +60,18 @@ tests: [1648116114630] [6871:3898916] CHIP: [DMG] ClusterId = 0x3c, [1648116114630] [6871:3898916] CHIP: [DMG] CommandId = 0x1, [1648116114630] [6871:3898916] CHIP: [DMG] }, - [1648116114630] [6871:3898916] CHIP: [DMG] + [1648116114630] [6871:3898916] CHIP: [DMG] [1648116114630] [6871:3898916] CHIP: [DMG] StatusIB = [1648116114631] [6871:3898916] CHIP: [DMG] { [1648116114631] [6871:3898916] CHIP: [DMG] status = 0x0, [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] ], - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] InteractionModelRevision = 1 [1648116114631] [6871:3898916] CHIP: [DMG] }, [1648116114631] [6871:3898916] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -96,12 +96,12 @@ tests: On your DUT controller chip tool, open commissioning window Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP: [DMG] InvokeResponseMessage = [1648116114630] [6871:3898916] CHIP: [DMG] { - [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, + [1648116114630] [6871:3898916] CHIP: [DMG] suppressResponse = false, [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIBs = [1648116114630] [6871:3898916] CHIP: [DMG] [ [1648116114630] [6871:3898916] CHIP: [DMG] InvokeResponseIB = @@ -114,18 +114,18 @@ tests: [1648116114630] [6871:3898916] CHIP: [DMG] ClusterId = 0x3c, [1648116114630] [6871:3898916] CHIP: [DMG] CommandId = 0x1, [1648116114630] [6871:3898916] CHIP: [DMG] }, - [1648116114630] [6871:3898916] CHIP: [DMG] + [1648116114630] [6871:3898916] CHIP: [DMG] [1648116114630] [6871:3898916] CHIP: [DMG] StatusIB = [1648116114631] [6871:3898916] CHIP: [DMG] { [1648116114631] [6871:3898916] CHIP: [DMG] status = 0x0, [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] }, - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] ], - [1648116114631] [6871:3898916] CHIP: [DMG] + [1648116114631] [6871:3898916] CHIP: [DMG] [1648116114631] [6871:3898916] CHIP: [DMG] InteractionModelRevision = 1 [1648116114631] [6871:3898916] CHIP: [DMG] }, [1648116114631] [6871:3898916] CHIP: [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -159,7 +159,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 1 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 1 CHIP:TOO: } CHIP:TOO: [2]: { @@ -167,7 +167,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 2 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 2 CHIP:TOO: } CHIP:TOO: [3]: { @@ -175,7 +175,7 @@ tests: CHIP:TOO: VendorId: 65521 CHIP:TOO: FabricId: 1 CHIP:TOO: NodeId: 3 - CHIP:TOO: Label: + CHIP:TOO: Label: CHIP:TOO: FabricIndex: 3 CHIP:TOO: } CHIP:EM: Sending Standalone Ack for MessageCounter:9143157 on exchange 1147i @@ -205,7 +205,7 @@ tests: verification: | Using your 2nd controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 Received error (protocol code 2) during pairing process. ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1551: CHIP Error 0x00000054: Invalid CASE parameter @@ -235,7 +235,7 @@ tests: [1647863260.286995][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287026][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287055][9294:9299] CHIP:TOO: NodeId: 1 - [1647863260.287084][9294:9299] CHIP:TOO: Label: + [1647863260.287084][9294:9299] CHIP:TOO: Label: [1647863260.287113][9294:9299] CHIP:TOO: FabricIndex: 1 [1647863260.287144][9294:9299] CHIP:TOO: } [1647863260.287185][9294:9299] CHIP:TOO: [2]: { @@ -243,7 +243,7 @@ tests: [1647863260.287253][9294:9299] CHIP:TOO: VendorId: 65521 [1647863260.287282][9294:9299] CHIP:TOO: FabricId: 1 [1647863260.287310][9294:9299] CHIP:TOO: NodeId: 3 - [1647863260.287339][9294:9299] CHIP:TOO: Label: + [1647863260.287339][9294:9299] CHIP:TOO: Label: [1647863260.287368][9294:9299] CHIP:TOO: FabricIndex: 3 [1647863260.287396][9294:9299] CHIP:TOO: } [1647863260.287515][9294:9299] CHIP:EM: Sending Standalone Ack for MessageCounter:11301761 on exchange 13180i @@ -259,11 +259,11 @@ tests: Below is the example when using chip tool as controller For BCM, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -276,18 +276,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -321,7 +321,7 @@ tests: [1647863342.981322][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981380][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981434][9309:9314] CHIP:TOO: NodeId: 1 - [1647863342.981486][9309:9314] CHIP:TOO: Label: + [1647863342.981486][9309:9314] CHIP:TOO: Label: [1647863342.981539][9309:9314] CHIP:TOO: FabricIndex: 1 [1647863342.981594][9309:9314] CHIP:TOO: } [1647863342.981671][9309:9314] CHIP:TOO: [2]: { @@ -329,7 +329,7 @@ tests: [1647863342.981796][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.981849][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.981901][9309:9314] CHIP:TOO: NodeId: 3 - [1647863342.981952][9309:9314] CHIP:TOO: Label: + [1647863342.981952][9309:9314] CHIP:TOO: Label: [1647863342.982005][9309:9314] CHIP:TOO: FabricIndex: 3 [1647863342.982057][9309:9314] CHIP:TOO: } [1647863342.982131][9309:9314] CHIP:TOO: [3]: { @@ -337,7 +337,7 @@ tests: [1647863342.982252][9309:9314] CHIP:TOO: VendorId: 65521 [1647863342.982305][9309:9314] CHIP:TOO: FabricId: 1 [1647863342.982357][9309:9314] CHIP:TOO: NodeId: 2 - [1647863342.982409][9309:9314] CHIP:TOO: Label: + [1647863342.982409][9309:9314] CHIP:TOO: Label: [1647863342.982460][9309:9314] CHIP:TOO: FabricIndex: 4 [1647863342.982512][9309:9314] CHIP:TOO: } [1647863342.982738][9309:9314] CHIP:EM: Sending Standalone Ack for MessageCounter:5772016 on exchange 3310i diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml index 60a61b9ed5feea..c8a91d79722cd0 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_21.yaml @@ -30,7 +30,7 @@ tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , " disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml index 3be18d144bd2a0..eb66242c6c7aa6 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_22.yaml @@ -30,7 +30,7 @@ tests: - label: "TH_CR1 starts a commissioning process with DUT_CE" verification: | - "1. Provision the device using 1st controller chip tool(use above instructions) , + "1. Provision the device using 1st controller chip tool(use above instructions) , " disabled: true @@ -43,11 +43,11 @@ tests: Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1649756654.928453][3385:3390] CHIP:DMG: { - [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, + [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, [1649756654.928571][3385:3390] CHIP:DMG: InvokeResponseIBs = [1649756654.928647][3385:3390] CHIP:DMG: [ [1649756654.928708][3385:3390] CHIP:DMG: InvokeResponseIB = @@ -60,18 +60,18 @@ tests: [1649756654.929284][3385:3390] CHIP:DMG: ClusterId = 0x3c, [1649756654.929376][3385:3390] CHIP:DMG: CommandId = 0x1, [1649756654.929459][3385:3390] CHIP:DMG: }, - [1649756654.929551][3385:3390] CHIP:DMG: + [1649756654.929551][3385:3390] CHIP:DMG: [1649756654.929632][3385:3390] CHIP:DMG: StatusIB = [1649756654.929720][3385:3390] CHIP:DMG: { [1649756654.929804][3385:3390] CHIP:DMG: status = 0x00 (SUCCESS), [1649756654.929878][3385:3390] CHIP:DMG: }, - [1649756654.929946][3385:3390] CHIP:DMG: + [1649756654.929946][3385:3390] CHIP:DMG: [1649756654.930017][3385:3390] CHIP:DMG: }, - [1649756654.930109][3385:3390] CHIP:DMG: + [1649756654.930109][3385:3390] CHIP:DMG: [1649756654.930176][3385:3390] CHIP:DMG: }, - [1649756654.930256][3385:3390] CHIP:DMG: + [1649756654.930256][3385:3390] CHIP:DMG: [1649756654.930314][3385:3390] CHIP:DMG: ], - [1649756654.930389][3385:3390] CHIP:DMG: + [1649756654.930389][3385:3390] CHIP:DMG: [1649756654.930448][3385:3390] CHIP:DMG: InteractionModelRevision = 1 [1649756654.930555][3385:3390] CHIP:DMG: }, [1649756654.930703][3385:3390] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml index 2762790cb08dd6..93f5589d992d66 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_23.yaml @@ -30,7 +30,7 @@ tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using your DUT controller(use above instructions) , + "1. Provision the device using your DUT controller(use above instructions) , " disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml index 0f73414601dd7d..1d2290ba31dd9c 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_24.yaml @@ -30,7 +30,7 @@ tests: - label: "DUT_CR1 starts a commissioning process with TH_CE" verification: | - "1. Provision the device using your DUT controller(use above instructions) , + "1. Provision the device using your DUT controller(use above instructions) , " disabled: true @@ -43,12 +43,12 @@ tests: Below is the example when using chip tool as controller - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 [CHIP:DMG: InvokeResponseMessage = [1649756654.928453][3385:3390] CHIP:DMG: { - [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, + [1649756654.928511][3385:3390] CHIP:DMG: suppressResponse = false, [1649756654.928571][3385:3390] CHIP:DMG: InvokeResponseIBs = [1649756654.928647][3385:3390] CHIP:DMG: [ [1649756654.928708][3385:3390] CHIP:DMG: InvokeResponseIB = @@ -61,18 +61,18 @@ tests: [1649756654.929284][3385:3390] CHIP:DMG: ClusterId = 0x3c, [1649756654.929376][3385:3390] CHIP:DMG: CommandId = 0x1, [1649756654.929459][3385:3390] CHIP:DMG: }, - [1649756654.929551][3385:3390] CHIP:DMG: + [1649756654.929551][3385:3390] CHIP:DMG: [1649756654.929632][3385:3390] CHIP:DMG: StatusIB = [1649756654.929720][3385:3390] CHIP:DMG: { [1649756654.929804][3385:3390] CHIP:DMG: status = 0x00 (SUCCESS), [1649756654.929878][3385:3390] CHIP:DMG: }, - [1649756654.929946][3385:3390] CHIP:DMG: + [1649756654.929946][3385:3390] CHIP:DMG: [1649756654.930017][3385:3390] CHIP:DMG: }, - [1649756654.930109][3385:3390] CHIP:DMG: + [1649756654.930109][3385:3390] CHIP:DMG: [1649756654.930176][3385:3390] CHIP:DMG: }, - [1649756654.930256][3385:3390] CHIP:DMG: + [1649756654.930256][3385:3390] CHIP:DMG: [1649756654.930314][3385:3390] CHIP:DMG: ], - [1649756654.930389][3385:3390] CHIP:DMG: + [1649756654.930389][3385:3390] CHIP:DMG: [1649756654.930448][3385:3390] CHIP:DMG: InteractionModelRevision = 1 [1649756654.930555][3385:3390] CHIP:DMG: }, [1649756654.930703][3385:3390] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml index fe99f61dcca035..b58d39cea641e1 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_7.yaml @@ -35,7 +35,7 @@ tests: verification: | On your DUT controller open commissioning widow using ECM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 @@ -81,7 +81,7 @@ tests: On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 36366524220 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 36366524220 as the manual code generated by DUT controller) ./chip-tool pairing code 1 36366524220 verify you got the following message in the TH log @@ -104,13 +104,13 @@ tests: verification: | On First controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, ./chip-tool administratorcommissioning revoke-commissioning 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -123,18 +123,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -146,7 +146,7 @@ tests: On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 34921141778 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 34921141778 as the manual code generated by DUT controller) ./chip-tool pairing code 1 34921141778 verify you got the following message in the TH log @@ -160,13 +160,13 @@ tests: verification: | On your DUT controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, /chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650524034.111241][15422:15427] CHIP:DMG: { - [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, + [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, [1650524034.111383][15422:15427] CHIP:DMG: InvokeResponseIBs = [1650524034.111464][15422:15427] CHIP:DMG: [ [1650524034.111531][15422:15427] CHIP:DMG: InvokeResponseIB = @@ -179,19 +179,19 @@ tests: [1650524034.112167][15422:15427] CHIP:DMG: ClusterId = 0x3c, [1650524034.112257][15422:15427] CHIP:DMG: CommandId = 0x2, [1650524034.112345][15422:15427] CHIP:DMG: }, - [1650524034.112456][15422:15427] CHIP:DMG: + [1650524034.112456][15422:15427] CHIP:DMG: [1650524034.112543][15422:15427] CHIP:DMG: StatusIB = [1650524034.112632][15422:15427] CHIP:DMG: { [1650524034.112727][15422:15427] CHIP:DMG: status = 0x01 (FAILURE), [1650524034.112825][15422:15427] CHIP:DMG: cluster-status = 0x3, [1650524034.112914][15422:15427] CHIP:DMG: }, - [1650524034.113005][15422:15427] CHIP:DMG: + [1650524034.113005][15422:15427] CHIP:DMG: [1650524034.113084][15422:15427] CHIP:DMG: }, - [1650524034.113176][15422:15427] CHIP:DMG: + [1650524034.113176][15422:15427] CHIP:DMG: [1650524034.113245][15422:15427] CHIP:DMG: }, - [1650524034.113328][15422:15427] CHIP:DMG: + [1650524034.113328][15422:15427] CHIP:DMG: [1650524034.113392][15422:15427] CHIP:DMG: ], - [1650524034.113477][15422:15427] CHIP:DMG: + [1650524034.113477][15422:15427] CHIP:DMG: [1650524034.113545][15422:15427] CHIP:DMG: InteractionModelRevision = 1 [1650524034.113610][15422:15427] CHIP:DMG: }, [1650524034.113780][15422:15427] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x1 @@ -205,7 +205,7 @@ tests: verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 1 0 CHIP:DMG: WriteResponseMessage = @@ -220,16 +220,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -247,7 +247,7 @@ tests: verification: | On your DUT controller open commissioning widow using ECM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, ./chip-tool pairing open-commissioning-window 1 1 300 1000 3840 @@ -269,7 +269,7 @@ tests: On the 2nd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) ./chip-tool pairing code 1 35256543344 Verify you got below message @@ -281,7 +281,7 @@ tests: On the 3rd controller using chip-tool , connect using manual code generated by DUT Controller - Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) + Below is the example when using chip tool as controller (considering 35256543344 as the manual code generated by DUT controller) ./chip-tool pairing code 1 35256543344 verify you got the following message in the TH log diff --git a/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml b/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml index 53a30f952765d1..05f839461ccb6f 100644 --- a/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_CADMIN_1_8.yaml @@ -35,13 +35,13 @@ tests: verification: | On your DUT controller open commissioning widow using BCM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -54,18 +54,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -100,7 +100,7 @@ tests: verification: | On the 2nd controller using chip-tool , connect to the accessory - ./chip-tool pairing onnetwork 1 20202021 + ./chip-tool pairing onnetwork 1 20202021 verify you got the following message in the TH log CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33 @@ -116,14 +116,14 @@ tests: verification: | On your DUT controller open commissioning widow using BCM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -136,18 +136,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -159,12 +159,12 @@ tests: verification: | On your DUT controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, /chip-tool administratorcommissioning revoke-commissioning 1 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -177,18 +177,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 @@ -212,13 +212,13 @@ tests: verification: | On your DUT controller revoke commissioning - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, /chip-tool administratorcommissioning revoke-commissioning 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650524034.111241][15422:15427] CHIP:DMG: { - [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, + [1650524034.111316][15422:15427] CHIP:DMG: suppressResponse = false, [1650524034.111383][15422:15427] CHIP:DMG: InvokeResponseIBs = [1650524034.111464][15422:15427] CHIP:DMG: [ [1650524034.111531][15422:15427] CHIP:DMG: InvokeResponseIB = @@ -231,19 +231,19 @@ tests: [1650524034.112167][15422:15427] CHIP:DMG: ClusterId = 0x3c, [1650524034.112257][15422:15427] CHIP:DMG: CommandId = 0x2, [1650524034.112345][15422:15427] CHIP:DMG: }, - [1650524034.112456][15422:15427] CHIP:DMG: + [1650524034.112456][15422:15427] CHIP:DMG: [1650524034.112543][15422:15427] CHIP:DMG: StatusIB = [1650524034.112632][15422:15427] CHIP:DMG: { [1650524034.112727][15422:15427] CHIP:DMG: status = 0x01 (FAILURE), [1650524034.112825][15422:15427] CHIP:DMG: cluster-status = 0x3, [1650524034.112914][15422:15427] CHIP:DMG: }, - [1650524034.113005][15422:15427] CHIP:DMG: + [1650524034.113005][15422:15427] CHIP:DMG: [1650524034.113084][15422:15427] CHIP:DMG: }, - [1650524034.113176][15422:15427] CHIP:DMG: + [1650524034.113176][15422:15427] CHIP:DMG: [1650524034.113245][15422:15427] CHIP:DMG: }, - [1650524034.113328][15422:15427] CHIP:DMG: + [1650524034.113328][15422:15427] CHIP:DMG: [1650524034.113392][15422:15427] CHIP:DMG: ], - [1650524034.113477][15422:15427] CHIP:DMG: + [1650524034.113477][15422:15427] CHIP:DMG: [1650524034.113545][15422:15427] CHIP:DMG: InteractionModelRevision = 1 [1650524034.113610][15422:15427] CHIP:DMG: }, [1650524034.113780][15422:15427] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0002 Status=0x1 @@ -257,7 +257,7 @@ tests: verification: | Using your DUT controller, write attribute and read attribute to and from TH_CE - Below is the example while using chip tool on second controller, + Below is the example while using chip tool on second controller, ./chip-tool basic write node-label te5new 2 0 CHIP:DMG: WriteResponseMessage = @@ -272,16 +272,16 @@ tests: [1649245940.789143][10110:10115] CHIP:DMG: Cluster = 0x28, [1649245940.789228][10110:10115] CHIP:DMG: Attribute = 0x0000_0005, [1649245940.789313][10110:10115] CHIP:DMG: } - [1649245940.789388][10110:10115] CHIP:DMG: + [1649245940.789388][10110:10115] CHIP:DMG: [1649245940.789454][10110:10115] CHIP:DMG: StatusIB = [1649245940.789519][10110:10115] CHIP:DMG: { [1649245940.789588][10110:10115] CHIP:DMG: status = 0x00 (SUCCESS), [1649245940.789654][10110:10115] CHIP:DMG: }, - [1649245940.789719][10110:10115] CHIP:DMG: + [1649245940.789719][10110:10115] CHIP:DMG: [1649245940.789778][10110:10115] CHIP:DMG: }, - [1649245940.789841][10110:10115] CHIP:DMG: + [1649245940.789841][10110:10115] CHIP:DMG: [1649245940.789885][10110:10115] CHIP:DMG: ], - [1649245940.789941][10110:10115] CHIP:DMG: + [1649245940.789941][10110:10115] CHIP:DMG: [1649245940.789984][10110:10115] CHIP:DMG: InteractionModelRevision = 1 [1649245940.790033][10110:10115] CHIP:DMG: } [1649245940.790167][10110:10115] CHIP:DMG: WriteClient moving to [AwaitingDe] @@ -300,15 +300,15 @@ tests: verification: | On your DUT controller open commissioning widow using BCM. - Below is the example while using chip tool as controller, + Below is the example while using chip tool as controller, - ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 + ./chip-tool administratorcommissioning open-basic-commissioning-window 500 2 0 --timedInteractionTimeoutMs 1000 CHIP:DMG: InvokeResponseMessage = [1650278416.248379][11064:11069] CHIP:DMG: { - [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, + [1650278416.248436][11064:11069] CHIP:DMG: suppressResponse = false, [1650278416.248495][11064:11069] CHIP:DMG: InvokeResponseIBs = [1650278416.248570][11064:11069] CHIP:DMG: [ [1650278416.248630][11064:11069] CHIP:DMG: InvokeResponseIB = @@ -321,18 +321,18 @@ tests: [1650278416.249186][11064:11069] CHIP:DMG: ClusterId = 0x3c, [1650278416.249268][11064:11069] CHIP:DMG: CommandId = 0x1, [1650278416.249347][11064:11069] CHIP:DMG: }, - [1650278416.249430][11064:11069] CHIP:DMG: + [1650278416.249430][11064:11069] CHIP:DMG: [1650278416.249501][11064:11069] CHIP:DMG: StatusIB = [1650278416.249581][11064:11069] CHIP:DMG: { [1650278416.249664][11064:11069] CHIP:DMG: status = 0x00 (SUCCESS), [1650278416.249738][11064:11069] CHIP:DMG: }, - [1650278416.249823][11064:11069] CHIP:DMG: + [1650278416.249823][11064:11069] CHIP:DMG: [1650278416.249889][11064:11069] CHIP:DMG: }, - [1650278416.249969][11064:11069] CHIP:DMG: + [1650278416.249969][11064:11069] CHIP:DMG: [1650278416.250035][11064:11069] CHIP:DMG: }, - [1650278416.250113][11064:11069] CHIP:DMG: + [1650278416.250113][11064:11069] CHIP:DMG: [1650278416.250169][11064:11069] CHIP:DMG: ], - [1650278416.250241][11064:11069] CHIP:DMG: + [1650278416.250241][11064:11069] CHIP:DMG: [1650278416.250298][11064:11069] CHIP:DMG: InteractionModelRevision = 1 [1650278416.250355][11064:11069] CHIP:DMG: }, [1650278416.250535][11064:11069] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0 diff --git a/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml b/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml index e8693ae77f142d..fda7cf19e15f74 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_1_3.yaml @@ -42,10 +42,10 @@ tests: [1650968776.864023][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968776.864052][12747:12747] CHIP:DMG: Attribute = 0x0000_0002, [1650968776.864085][12747:12747] CHIP:DMG: } - [1650968776.864124][12747:12747] CHIP:DMG: + [1650968776.864124][12747:12747] CHIP:DMG: [1650968776.864153][12747:12747] CHIP:DMG: ], - [1650968776.864190][12747:12747] CHIP:DMG: - [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968776.864190][12747:12747] CHIP:DMG: + [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968776.864251][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968776.864273][12747:12747] CHIP:DMG: }, [1650968776.864361][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -71,10 +71,10 @@ tests: [1650968848.687855][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968848.687887][12747:12747] CHIP:DMG: Attribute = 0x0000_0003, [1650968848.687917][12747:12747] CHIP:DMG: } - [1650968848.687974][12747:12747] CHIP:DMG: + [1650968848.687974][12747:12747] CHIP:DMG: [1650968848.688003][12747:12747] CHIP:DMG: ], - [1650968848.688031][12747:12747] CHIP:DMG: - [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968848.688031][12747:12747] CHIP:DMG: + [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968848.688082][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968848.688105][12747:12747] CHIP:DMG: }, [1650968848.688174][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -95,10 +95,10 @@ tests: [1650968644.224169][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968644.224206][12747:12747] CHIP:DMG: Attribute = 0x0000_0001, [1650968644.224233][12747:12747] CHIP:DMG: } - [1650968644.224272][12747:12747] CHIP:DMG: + [1650968644.224272][12747:12747] CHIP:DMG: [1650968644.224297][12747:12747] CHIP:DMG: ], - [1650968644.224334][12747:12747] CHIP:DMG: - [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968644.224334][12747:12747] CHIP:DMG: + [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968644.224394][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968644.224426][12747:12747] CHIP:DMG: }, [1650968644.224507][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -124,10 +124,10 @@ tests: [1650969447.413989][12747:12747] CHIP:DMG: Cluster = 0x50, [1650969447.414021][12747:12747] CHIP:DMG: Attribute = 0x0000_0000, [1650969447.414051][12747:12747] CHIP:DMG: } - [1650969447.414080][12747:12747] CHIP:DMG: + [1650969447.414080][12747:12747] CHIP:DMG: [1650969447.414108][12747:12747] CHIP:DMG: ], - [1650969447.414137][12747:12747] CHIP:DMG: - [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650969447.414137][12747:12747] CHIP:DMG: + [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650969447.414188][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650969447.414211][12747:12747] CHIP:DMG: }, [1650969447.414280][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -151,10 +151,10 @@ tests: [1650969570.495210][12747:12747] CHIP:DMG: Cluster = 0x50, [1650969570.495242][12747:12747] CHIP:DMG: Attribute = 0x0000_0005, [1650969570.495275][12747:12747] CHIP:DMG: } - [1650969570.495304][12747:12747] CHIP:DMG: + [1650969570.495304][12747:12747] CHIP:DMG: [1650969570.495332][12747:12747] CHIP:DMG: ], - [1650969570.495360][12747:12747] CHIP:DMG: - [1650969570.495386][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650969570.495360][12747:12747] CHIP:DMG: + [1650969570.495386][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650969570.495411][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650969570.495435][12747:12747] CHIP:DMG: }, [1650969570.495503][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -172,10 +172,10 @@ tests: [1650970821.971139][12747:12747] CHIP:DMG: Cluster = 0x50, [1650970821.971164][12747:12747] CHIP:DMG: Attribute = 0x0000_0004, [1650970821.971191][12747:12747] CHIP:DMG: } - [1650970821.971216][12747:12747] CHIP:DMG: + [1650970821.971216][12747:12747] CHIP:DMG: [1650970821.971238][12747:12747] CHIP:DMG: ], - [1650970821.971268][12747:12747] CHIP:DMG: - [1650970821.971295][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650970821.971268][12747:12747] CHIP:DMG: + [1650970821.971295][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650970821.971323][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650970821.971349][12747:12747] CHIP:DMG: }, [1650970821.971419][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -238,10 +238,10 @@ tests: [1650968776.864023][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968776.864052][12747:12747] CHIP:DMG: Attribute = 0x0000_0002, [1650968776.864085][12747:12747] CHIP:DMG: } - [1650968776.864124][12747:12747] CHIP:DMG: + [1650968776.864124][12747:12747] CHIP:DMG: [1650968776.864153][12747:12747] CHIP:DMG: ], - [1650968776.864190][12747:12747] CHIP:DMG: - [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968776.864190][12747:12747] CHIP:DMG: + [1650968776.864216][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968776.864251][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968776.864273][12747:12747] CHIP:DMG: }, [1650968776.864361][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -267,10 +267,10 @@ tests: [1650968848.687855][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968848.687887][12747:12747] CHIP:DMG: Attribute = 0x0000_0003, [1650968848.687917][12747:12747] CHIP:DMG: } - [1650968848.687974][12747:12747] CHIP:DMG: + [1650968848.687974][12747:12747] CHIP:DMG: [1650968848.688003][12747:12747] CHIP:DMG: ], - [1650968848.688031][12747:12747] CHIP:DMG: - [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968848.688031][12747:12747] CHIP:DMG: + [1650968848.688057][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968848.688082][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968848.688105][12747:12747] CHIP:DMG: }, [1650968848.688174][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -293,10 +293,10 @@ tests: [1650968644.224169][12747:12747] CHIP:DMG: Cluster = 0x50, [1650968644.224206][12747:12747] CHIP:DMG: Attribute = 0x0000_0001, [1650968644.224233][12747:12747] CHIP:DMG: } - [1650968644.224272][12747:12747] CHIP:DMG: + [1650968644.224272][12747:12747] CHIP:DMG: [1650968644.224297][12747:12747] CHIP:DMG: ], - [1650968644.224334][12747:12747] CHIP:DMG: - [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650968644.224334][12747:12747] CHIP:DMG: + [1650968644.224369][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650968644.224394][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650968644.224426][12747:12747] CHIP:DMG: }, [1650968644.224507][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports] @@ -324,10 +324,10 @@ tests: [1650969447.413989][12747:12747] CHIP:DMG: Cluster = 0x50, [1650969447.414021][12747:12747] CHIP:DMG: Attribute = 0x0000_0000, [1650969447.414051][12747:12747] CHIP:DMG: } - [1650969447.414080][12747:12747] CHIP:DMG: + [1650969447.414080][12747:12747] CHIP:DMG: [1650969447.414108][12747:12747] CHIP:DMG: ], - [1650969447.414137][12747:12747] CHIP:DMG: - [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, + [1650969447.414137][12747:12747] CHIP:DMG: + [1650969447.414163][12747:12747] CHIP:DMG: isFabricFiltered = true, [1650969447.414188][12747:12747] CHIP:DMG: InteractionModelRevision = 1 [1650969447.414211][12747:12747] CHIP:DMG: }, [1650969447.414280][12747:12747] CHIP:DMG: IM RH moving to [GeneratingReports]" diff --git a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml index f9020a51fe65d3..0fc604fc29a8ad 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml @@ -23,11 +23,11 @@ config: tests: - label: "DUT reads the SupportedModes attribute from the TH" verification: | - verify on Reference app receives the right response for the data sent in the above commands + verify on Reference app receives the right response for the data sent in the above commands ./chip-tool modeselect read supported-modes 1 1 - Verify in TH all-clusters-app + Verify in TH all-clusters-app [1657112483.855657][5411:5417] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 736180028 [1657112483.855821][5411:5417] CHIP:TOO: SupportedModes: 3 entries @@ -66,11 +66,11 @@ tests: ./chip-tool modeselect change-to-mode 4 1 1 - Verify in TH all-clusters-app + Verify in TH all-clusters-app [1657112505.553012][5418:5423] CHIP:DMG: InvokeResponseMessage = [1657112505.553052][5418:5423] CHIP:DMG: { - [1657112505.553091][5418:5423] CHIP:DMG: suppressResponse = false, + [1657112505.553091][5418:5423] CHIP:DMG: suppressResponse = false, [1657112505.553133][5418:5423] CHIP:DMG: InvokeResponseIBs = [1657112505.553183][5418:5423] CHIP:DMG: [ [1657112505.553223][5418:5423] CHIP:DMG: InvokeResponseIB = @@ -83,18 +83,18 @@ tests: [1657112505.553588][5418:5423] CHIP:DMG: ClusterId = 0x50, [1657112505.553645][5418:5423] CHIP:DMG: CommandId = 0x0, [1657112505.553698][5418:5423] CHIP:DMG: }, - [1657112505.553762][5418:5423] CHIP:DMG: + [1657112505.553762][5418:5423] CHIP:DMG: [1657112505.553810][5418:5423] CHIP:DMG: StatusIB = [1657112505.553870][5418:5423] CHIP:DMG: { [1657112505.553929][5418:5423] CHIP:DMG: status = 0x00 (SUCCESS), [1657112505.553983][5418:5423] CHIP:DMG: }, - [1657112505.554037][5418:5423] CHIP:DMG: + [1657112505.554037][5418:5423] CHIP:DMG: [1657112505.554085][5418:5423] CHIP:DMG: }, - [1657112505.554136][5418:5423] CHIP:DMG: + [1657112505.554136][5418:5423] CHIP:DMG: [1657112505.554181][5418:5423] CHIP:DMG: }, - [1657112505.554238][5418:5423] CHIP:DMG: + [1657112505.554238][5418:5423] CHIP:DMG: [1657112505.554277][5418:5423] CHIP:DMG: ], - [1657112505.554325][5418:5423] CHIP:DMG: + [1657112505.554325][5418:5423] CHIP:DMG: [1657112505.554364][5418:5423] CHIP:DMG: InteractionModelRevision = 1 [1657112505.554432][5418:5423] CHIP:DMG: }, [1657112505.554523][5418:5423] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 diff --git a/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml b/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml index c9a6a346f83eb2..72dfb4779156cd 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml @@ -53,7 +53,7 @@ tests: verification: | ./chip-tool modeselect read supported-modes 1 1 - Verify on the TH + Verify on the TH [1654595268.854568][14400:14405] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 366231602 [1654595268.854678][14400:14405] CHIP:TOO: SupportedModes: 3 entries From 53415c2ad4cfa98f51128209b5060427ac2dbc71 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 15 Jul 2022 19:00:16 +0000 Subject: [PATCH 4/4] Restyled by prettier-yaml --- .../suites/certification/Test_TC_MOD_2_2.yaml | 146 +++++++++--------- 1 file changed, 74 insertions(+), 72 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml index 0fc604fc29a8ad..71c34dd4c62697 100644 --- a/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MOD_2_2.yaml @@ -21,82 +21,84 @@ config: endpoint: 0 tests: - - label: "DUT reads the SupportedModes attribute from the TH" - verification: | - verify on Reference app receives the right response for the data sent in the above commands + - label: "DUT reads the SupportedModes attribute from the TH" + verification: | + verify on Reference app receives the right response for the data sent in the above commands - ./chip-tool modeselect read supported-modes 1 1 + ./chip-tool modeselect read supported-modes 1 1 - Verify in TH all-clusters-app + Verify in TH all-clusters-app - [1657112483.855657][5411:5417] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 736180028 - [1657112483.855821][5411:5417] CHIP:TOO: SupportedModes: 3 entries - [1657112483.856016][5411:5417] CHIP:TOO: [1]: { - [1657112483.856069][5411:5417] CHIP:TOO: Label: Black - [1657112483.856158][5411:5417] CHIP:TOO: Mode: 0 - [1657112483.856218][5411:5417] CHIP:TOO: SemanticTags: 1 entries - [1657112483.856281][5411:5417] CHIP:TOO: [1]: { - [1657112483.856397][5411:5417] CHIP:TOO: MfgCode: 0 - [1657112483.856466][5411:5417] CHIP:TOO: Value: 0 - [1657112483.856515][5411:5417] CHIP:TOO: } - [1657112483.856582][5411:5417] CHIP:TOO: } - [1657112483.856652][5411:5417] CHIP:TOO: [2]: { - [1657112483.856700][5411:5417] CHIP:TOO: Label: Cappuccino - [1657112483.856864][5411:5417] CHIP:TOO: Mode: 4 - [1657112483.856924][5411:5417] CHIP:TOO: SemanticTags: 1 entries - [1657112483.857004][5411:5417] CHIP:TOO: [1]: { - [1657112483.857055][5411:5417] CHIP:TOO: MfgCode: 0 - [1657112483.857102][5411:5417] CHIP:TOO: Value: 0 - [1657112483.857166][5411:5417] CHIP:TOO: } - [1657112483.857215][5411:5417] CHIP:TOO: } - [1657112483.857302][5411:5417] CHIP:TOO: [3]: { - [1657112483.857351][5411:5417] CHIP:TOO: Label: Espresso - [1657112483.857414][5411:5417] CHIP:TOO: Mode: 7 - [1657112483.857469][5411:5417] CHIP:TOO: SemanticTags: 1 entries - [1657112483.857549][5411:5417] CHIP:TOO: [1]: { - [1657112483.857598][5411:5417] CHIP:TOO: MfgCode: 0 - [1657112483.857665][5411:5417] CHIP:TOO: Value: 0 - [1657112483.857713][5411:5417] CHIP:TOO: } - [1657112483.857778][5411:5417] CHIP:TOO: } - disabled: true + [1657112483.855657][5411:5417] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0002 DataVersion: 736180028 + [1657112483.855821][5411:5417] CHIP:TOO: SupportedModes: 3 entries + [1657112483.856016][5411:5417] CHIP:TOO: [1]: { + [1657112483.856069][5411:5417] CHIP:TOO: Label: Black + [1657112483.856158][5411:5417] CHIP:TOO: Mode: 0 + [1657112483.856218][5411:5417] CHIP:TOO: SemanticTags: 1 entries + [1657112483.856281][5411:5417] CHIP:TOO: [1]: { + [1657112483.856397][5411:5417] CHIP:TOO: MfgCode: 0 + [1657112483.856466][5411:5417] CHIP:TOO: Value: 0 + [1657112483.856515][5411:5417] CHIP:TOO: } + [1657112483.856582][5411:5417] CHIP:TOO: } + [1657112483.856652][5411:5417] CHIP:TOO: [2]: { + [1657112483.856700][5411:5417] CHIP:TOO: Label: Cappuccino + [1657112483.856864][5411:5417] CHIP:TOO: Mode: 4 + [1657112483.856924][5411:5417] CHIP:TOO: SemanticTags: 1 entries + [1657112483.857004][5411:5417] CHIP:TOO: [1]: { + [1657112483.857055][5411:5417] CHIP:TOO: MfgCode: 0 + [1657112483.857102][5411:5417] CHIP:TOO: Value: 0 + [1657112483.857166][5411:5417] CHIP:TOO: } + [1657112483.857215][5411:5417] CHIP:TOO: } + [1657112483.857302][5411:5417] CHIP:TOO: [3]: { + [1657112483.857351][5411:5417] CHIP:TOO: Label: Espresso + [1657112483.857414][5411:5417] CHIP:TOO: Mode: 7 + [1657112483.857469][5411:5417] CHIP:TOO: SemanticTags: 1 entries + [1657112483.857549][5411:5417] CHIP:TOO: [1]: { + [1657112483.857598][5411:5417] CHIP:TOO: MfgCode: 0 + [1657112483.857665][5411:5417] CHIP:TOO: Value: 0 + [1657112483.857713][5411:5417] CHIP:TOO: } + [1657112483.857778][5411:5417] CHIP:TOO: } + disabled: true - - label: "DUT sends a ChangeToMode command to the TH with a integer from the list in step 1" - verification: | - verify on Reference app receives the right response for the data sent in the above commands + - label: + "DUT sends a ChangeToMode command to the TH with a integer from the + list in step 1" + verification: | + verify on Reference app receives the right response for the data sent in the above commands - ./chip-tool modeselect change-to-mode 4 1 1 + ./chip-tool modeselect change-to-mode 4 1 1 - Verify in TH all-clusters-app + Verify in TH all-clusters-app - [1657112505.553012][5418:5423] CHIP:DMG: InvokeResponseMessage = - [1657112505.553052][5418:5423] CHIP:DMG: { - [1657112505.553091][5418:5423] CHIP:DMG: suppressResponse = false, - [1657112505.553133][5418:5423] CHIP:DMG: InvokeResponseIBs = - [1657112505.553183][5418:5423] CHIP:DMG: [ - [1657112505.553223][5418:5423] CHIP:DMG: InvokeResponseIB = - [1657112505.553276][5418:5423] CHIP:DMG: { - [1657112505.553319][5418:5423] CHIP:DMG: CommandStatusIB = - [1657112505.553371][5418:5423] CHIP:DMG: { - [1657112505.553418][5418:5423] CHIP:DMG: CommandPathIB = - [1657112505.553473][5418:5423] CHIP:DMG: { - [1657112505.553527][5418:5423] CHIP:DMG: EndpointId = 0x1, - [1657112505.553588][5418:5423] CHIP:DMG: ClusterId = 0x50, - [1657112505.553645][5418:5423] CHIP:DMG: CommandId = 0x0, - [1657112505.553698][5418:5423] CHIP:DMG: }, - [1657112505.553762][5418:5423] CHIP:DMG: - [1657112505.553810][5418:5423] CHIP:DMG: StatusIB = - [1657112505.553870][5418:5423] CHIP:DMG: { - [1657112505.553929][5418:5423] CHIP:DMG: status = 0x00 (SUCCESS), - [1657112505.553983][5418:5423] CHIP:DMG: }, - [1657112505.554037][5418:5423] CHIP:DMG: - [1657112505.554085][5418:5423] CHIP:DMG: }, - [1657112505.554136][5418:5423] CHIP:DMG: - [1657112505.554181][5418:5423] CHIP:DMG: }, - [1657112505.554238][5418:5423] CHIP:DMG: - [1657112505.554277][5418:5423] CHIP:DMG: ], - [1657112505.554325][5418:5423] CHIP:DMG: - [1657112505.554364][5418:5423] CHIP:DMG: InteractionModelRevision = 1 - [1657112505.554432][5418:5423] CHIP:DMG: }, - [1657112505.554523][5418:5423] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 - [1657112505.554587][5418:5423] CHIP:DMG: ICR moving to [AwaitingDe] - disabled: true + [1657112505.553012][5418:5423] CHIP:DMG: InvokeResponseMessage = + [1657112505.553052][5418:5423] CHIP:DMG: { + [1657112505.553091][5418:5423] CHIP:DMG: suppressResponse = false, + [1657112505.553133][5418:5423] CHIP:DMG: InvokeResponseIBs = + [1657112505.553183][5418:5423] CHIP:DMG: [ + [1657112505.553223][5418:5423] CHIP:DMG: InvokeResponseIB = + [1657112505.553276][5418:5423] CHIP:DMG: { + [1657112505.553319][5418:5423] CHIP:DMG: CommandStatusIB = + [1657112505.553371][5418:5423] CHIP:DMG: { + [1657112505.553418][5418:5423] CHIP:DMG: CommandPathIB = + [1657112505.553473][5418:5423] CHIP:DMG: { + [1657112505.553527][5418:5423] CHIP:DMG: EndpointId = 0x1, + [1657112505.553588][5418:5423] CHIP:DMG: ClusterId = 0x50, + [1657112505.553645][5418:5423] CHIP:DMG: CommandId = 0x0, + [1657112505.553698][5418:5423] CHIP:DMG: }, + [1657112505.553762][5418:5423] CHIP:DMG: + [1657112505.553810][5418:5423] CHIP:DMG: StatusIB = + [1657112505.553870][5418:5423] CHIP:DMG: { + [1657112505.553929][5418:5423] CHIP:DMG: status = 0x00 (SUCCESS), + [1657112505.553983][5418:5423] CHIP:DMG: }, + [1657112505.554037][5418:5423] CHIP:DMG: + [1657112505.554085][5418:5423] CHIP:DMG: }, + [1657112505.554136][5418:5423] CHIP:DMG: + [1657112505.554181][5418:5423] CHIP:DMG: }, + [1657112505.554238][5418:5423] CHIP:DMG: + [1657112505.554277][5418:5423] CHIP:DMG: ], + [1657112505.554325][5418:5423] CHIP:DMG: + [1657112505.554364][5418:5423] CHIP:DMG: InteractionModelRevision = 1 + [1657112505.554432][5418:5423] CHIP:DMG: }, + [1657112505.554523][5418:5423] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0050 Command=0x0000_0000 Status=0x0 + [1657112505.554587][5418:5423] CHIP:DMG: ICR moving to [AwaitingDe] + disabled: true