From a761c0c3dde5154918593f5f5e96cf14349f6c57 Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Thu, 11 Jan 2024 17:58:57 +0300 Subject: [PATCH 01/10] add initial Test_TC_SECA_1_1 Signed-off-by: Dmitry Maslov --- .../certification/Test_TC_SECA_1_1.yaml | 180 ++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml diff --git a/src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml b/src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml new file mode 100644 index 00000000000000..9efcad9717cb88 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml @@ -0,0 +1,180 @@ +# 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: 262.1.1. [TC-SECA-1.1] Global Attributes with DUT as Server + +PICS: + - SECA.S + +config: + nodeId: 0x12344321 + cluster: "Energy Calendar" + endpoint: 1 + +tests: + - label: "Step 1: Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Step 2: Read the global attribute: ClusterRevision" + command: "readAttribute" + attribute: "ClusterRevision" + response: + value: 3 + constraints: + type: int16u + + - label: "Step 3a: Read the global attribute: FeatureMap" + command: "readAttribute" + attribute: "FeatureMap" + PICS: ( !SECA.S.F00 && !SECA.S.F01 && !SECA.S.F02 && !SECA.S.F03 ) + response: + value: 0 + constraints: + type: bitmap32 + + - label: + "Step 3b: Given SECA.S.F00(PTIER) ensure featuremap has the correct bit set" + command: "readAttribute" + attribute: "FeatureMap" + PICS: SECA.S.F00 + response: + constraints: + type: bitmap32 + hasMasksSet: [0x1] + + - label: + "Step 3c: Given SECA.S.F01(FCRED) ensure featuremap has the correct bit set" + command: "readAttribute" + attribute: "FeatureMap" + PICS: SECA.S.F01 + response: + constraints: + type: bitmap32 + hasMasksSet: [0x2] + + - label: + "Step 3d: Given SECA.S.F02(AUXLD) ensure featuremap has the correct bit set" + command: "readAttribute" + attribute: "FeatureMap" + PICS: SECA.S.F02 + response: + constraints: + type: bitmap32 + hasMasksSet: [0x3] + + - label: + "Step 3e: Given SECA.S.F03(PEAKP) ensure featuremap has the correct bit set" + command: "readAttribute" + attribute: "FeatureMap" + PICS: SECA.S.F03 + response: + constraints: + type: bitmap32 + hasMasksSet: [0x4] + + - label: "Step 4a: Read the global attribute: AttributeList" + PICS: PICS_EVENT_LIST_ENABLED + command: "readAttribute" + attribute: "AttributeList" + response: + constraints: + type: list + contains: [ + 0x0000, + 0x0001, + 0x0002, + 0x0003, + 0x0004, + 0x0005, + 0x0006, + 0x0007, + 0x0008, + 0x0009, + 0xFFF8, # GeneratedCommandList + 0xFFF9, # AcceptedCommandList + 0xFFFA, # EventList + 0xFFFB, # AttributeList + 0xFFFC, # FeatureMap + 0xFFFD # ClusterRevision + ] + + - label: "Step 4a: Read the global attribute: AttributeList" + PICS: "!PICS_EVENT_LIST_ENABLED" + command: "readAttribute" + attribute: "AttributeList" + response: + constraints: + type: list + contains: [ + 0x0000, + 0x0001, + 0x0002, + 0x0003, + 0x0004, + 0x0005, + 0x0006, + 0x0007, + 0x0008, + 0x0009, + 0xFFF8, # GeneratedCommandList + 0xFFF9, # AcceptedCommandList + 0xFFFB, # AttributeList + 0xFFFC, # FeatureMap + 0xFFFD # ClusterRevision + ] + + - label: + "Step 4b: Read the feature dependent(SECA.S.F02) attribute in + AttributeList" + PICS: SECA.S.F02 + command: "readAttribute" + attribute: "AttributeList" + response: + constraints: + type: list + contains: [ + 0x000B, # PeakPeriodStatus + 0x000C, # PeakPeriodStartTime + 0x000D # PeakPeriodEndTime + ] + + - label: "Step 5: Read the global attribute: EventList" + PICS: PICS_EVENT_LIST_ENABLED + command: "readAttribute" + attribute: "EventList" + response: + value: [] + constraints: + type: list + + - label: "Step 6: Read the global attribute: AcceptedCommandList" + command: "readAttribute" + attribute: "AcceptedCommandList" + response: + value: [] + constraints: + type: list + + - label: "Step 7: Read the global attribute: GeneratedCommandList" + command: "readAttribute" + attribute: "GeneratedCommandList" + response: + value: [] + constraints: + type: list From 71dc5dd0692194677194a409f3f3c0974002b9a3 Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Tue, 5 Mar 2024 17:40:33 +0300 Subject: [PATCH 02/10] change PICS code from SECA to ECAL Signed-off-by: Dmitry Maslov --- ...TC_SECA_1_1.yaml => Test_TC_ECAL_1_1.yaml} | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) rename src/app/tests/suites/certification/{Test_TC_SECA_1_1.yaml => Test_TC_ECAL_1_1.yaml} (89%) diff --git a/src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml similarity index 89% rename from src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml rename to src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml index 9efcad9717cb88..e7e5dc2b76d1c5 100644 --- a/src/app/tests/suites/certification/Test_TC_SECA_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml @@ -12,10 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: 262.1.1. [TC-SECA-1.1] Global Attributes with DUT as Server +name: 262.1.1. [TC-ECAL-1.1] Global Attributes with DUT as Server PICS: - - SECA.S + - ECAL.S config: nodeId: 0x12344321 @@ -42,47 +42,47 @@ tests: - label: "Step 3a: Read the global attribute: FeatureMap" command: "readAttribute" attribute: "FeatureMap" - PICS: ( !SECA.S.F00 && !SECA.S.F01 && !SECA.S.F02 && !SECA.S.F03 ) + PICS: ( !ECAL.S.F00 && !ECAL.S.F01 && !ECAL.S.F02 && !ECAL.S.F03 ) response: value: 0 constraints: type: bitmap32 - label: - "Step 3b: Given SECA.S.F00(PTIER) ensure featuremap has the correct bit set" + "Step 3b: Given ECAL.S.F00(PTIER) ensure featuremap has the correct bit set" command: "readAttribute" attribute: "FeatureMap" - PICS: SECA.S.F00 + PICS: ECAL.S.F00 response: constraints: type: bitmap32 hasMasksSet: [0x1] - label: - "Step 3c: Given SECA.S.F01(FCRED) ensure featuremap has the correct bit set" + "Step 3c: Given ECAL.S.F01(FCRED) ensure featuremap has the correct bit set" command: "readAttribute" attribute: "FeatureMap" - PICS: SECA.S.F01 + PICS: ECAL.S.F01 response: constraints: type: bitmap32 hasMasksSet: [0x2] - label: - "Step 3d: Given SECA.S.F02(AUXLD) ensure featuremap has the correct bit set" + "Step 3d: Given ECAL.S.F02(AUXLD) ensure featuremap has the correct bit set" command: "readAttribute" attribute: "FeatureMap" - PICS: SECA.S.F02 + PICS: ECAL.S.F02 response: constraints: type: bitmap32 hasMasksSet: [0x3] - label: - "Step 3e: Given SECA.S.F03(PEAKP) ensure featuremap has the correct bit set" + "Step 3e: Given ECAL.S.F03(PEAKP) ensure featuremap has the correct bit set" command: "readAttribute" attribute: "FeatureMap" - PICS: SECA.S.F03 + PICS: ECAL.S.F03 response: constraints: type: bitmap32 @@ -140,9 +140,9 @@ tests: ] - label: - "Step 4b: Read the feature dependent(SECA.S.F02) attribute in + "Step 4b: Read the feature dependent(ECAL.S.F02) attribute in AttributeList" - PICS: SECA.S.F02 + PICS: ECAL.S.F02 command: "readAttribute" attribute: "AttributeList" response: From a7c1943e671a2f2ea004c9dd357b52ea3b3fa77c Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Thu, 11 Apr 2024 10:22:32 +0300 Subject: [PATCH 03/10] add TC_ECAL_2_1 test script Signed-off-by: Dmitry Maslov --- .../certification/Test_TC_ECAL_2_1.yaml | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml new file mode 100644 index 00000000000000..889cfa6119aa4f --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml @@ -0,0 +1,148 @@ +# 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: 262.2.1. [TC-ECAL-2.1] Attributes with server as DUT + +PICS: + - ECAL.S + +config: + nodeId: 0x12344321 + cluster: "Energy Calendar" + endpoint: 1 + +tests: + - label: "Step 1: Commission DUT to TH" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Step 2: TH reads the CalendarID attribute from the DUT" + PICS: ECAL.S.A0000 + command: "readAttribute" + attribute: "CalendarID" + response: + constraints: + type: int32u + + - label: "Step 3: TH reads the Name attribute from the DUT" + PICS: ECAL.S.A0001 + command: "readAttribute" + attribute: "Name" + response: + constraints: + type: char_string + maxLength: 12 + + - label: "Step 4: TH reads the ProviderID attribute from the DUT" + PICS: ECAL.S.A0002 + command: "readAttribute" + attribute: "ProviderID" + response: + constraints: + type: int32u + + - label: "Step 5: TH reads the EventID attribute from the DUT" + PICS: ECAL.S.A0003 + command: "readAttribute" + attribute: "EventID" + response: + constraints: + type: int32u + + - label: "Step 6: TH reads the StartDate attribute from the DUT" + PICS: ECAL.S.A0004 + command: "readAttribute" + attribute: "StartDate" + response: + constraints: + type: epoch_s + + - label: "Step 7: TH reads the TimeReference attribute from the DUT" + PICS: ECAL.S.A0005 + command: "readAttribute" + attribute: "TimeReference" + response: + constraints: + type: enum8 + minValue: 0 + maxValue: 2 + + - label: "Step 8: TH reads the CalendarPeriods attribute from the DUT" + PICS: ECAL.S.A0006 + command: "readAttribute" + attribute: "CalendarPeriods" + response: + constraints: + type: list + + - label: "Step 9: TH reads the SpecialDays attribute from the DUT" + PICS: ECAL.S.A0008 + command: "readAttribute" + attribute: "SpecialDays" + response: + constraints: + type: list + + - label: "Step 10: TH reads the CurrentDay attribute from the DUT" + PICS: ECAL.S.A0007 + command: "readAttribute" + attribute: "CurrentDay" + response: + constraints: + type: DayStruct + + - label: "Step 11: TH reads the NextDay attribute from the DUT" + PICS: ECAL.S.A0009 + command: "readAttribute" + attribute: "NextDay" + response: + constraints: + type: DayStruct + + - label: "Step 12: TH reads the CurrentTransition attribute from the DUT" + PICS: ECAL.S.A000A + command: "readAttribute" + attribute: "CurrentTransition" + response: + constraints: + type: TransitionStruct + + - label: "Step 13: TH reads the PeakPeriodStatus attribute from the DUT" + PICS: ECAL.S.A000B + command: "readAttribute" + attribute: "PeakPeriodStatus" + response: + constraints: + type: PeakPeriodStatusStruct + + - label: "Step 14: TH reads the PeakPeriodStartTime attribute from the DUT" + PICS: ECAL.S.A000B + command: "readAttribute" + attribute: "PeakPeriodStartTime" + response: + constraints: + type: epoch_s + + - label: "Step 15: TH reads the PeakPeriodEndTime attribute from the DUT" + PICS: ECAL.S.A000D + command: "readAttribute" + attribute: "PeakPeriodEndTime" + response: + constraints: + type: epoch_s \ No newline at end of file From 8a120c7e7d37ca84a9d4380de639319ee5b8b4da Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Fri, 12 Apr 2024 17:29:10 +0300 Subject: [PATCH 04/10] add feature PICS in steps of Test_TC_ECAL_2_1 Signed-off-by: Dmitry Maslov --- src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml index 889cfa6119aa4f..346fc2e88cbbf6 100644 --- a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml @@ -124,7 +124,7 @@ tests: type: TransitionStruct - label: "Step 13: TH reads the PeakPeriodStatus attribute from the DUT" - PICS: ECAL.S.A000B + PICS: ECAL.S.A000B && ECAL.S.F03 command: "readAttribute" attribute: "PeakPeriodStatus" response: @@ -132,7 +132,7 @@ tests: type: PeakPeriodStatusStruct - label: "Step 14: TH reads the PeakPeriodStartTime attribute from the DUT" - PICS: ECAL.S.A000B + PICS: ECAL.S.A000B && ECAL.S.F03 command: "readAttribute" attribute: "PeakPeriodStartTime" response: @@ -140,7 +140,7 @@ tests: type: epoch_s - label: "Step 15: TH reads the PeakPeriodEndTime attribute from the DUT" - PICS: ECAL.S.A000D + PICS: ECAL.S.A000D && ECAL.S.F03 command: "readAttribute" attribute: "PeakPeriodEndTime" response: From 8626561ad391c8c25b0587cc8e998b86063041d9 Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Fri, 12 Apr 2024 18:09:32 +0300 Subject: [PATCH 05/10] fix reading of feature dependent attributes Test_TC_ECAL_1_1.yaml Signed-off-by: Dmitry Maslov --- src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml index e7e5dc2b76d1c5..cdaefbbda9deb4 100644 --- a/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml @@ -140,18 +140,17 @@ tests: ] - label: - "Step 4b: Read the feature dependent(ECAL.S.F02) attribute in + "Step 4b: Read the feature dependent(ECAL.S.F03) attribute in AttributeList" - PICS: ECAL.S.F02 + PICS: ECAL.S.F03 command: "readAttribute" attribute: "AttributeList" response: constraints: type: list contains: [ - 0x000B, # PeakPeriodStatus - 0x000C, # PeakPeriodStartTime - 0x000D # PeakPeriodEndTime + 0x000A, # CurrentPeakPeriod + 0x000B # NextPeakPeriod ] - label: "Step 5: Read the global attribute: EventList" From 0eaf87d9e34adfaa98d3e0b3a5f25fa8da3d2513 Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Tue, 16 Apr 2024 10:58:34 +0300 Subject: [PATCH 06/10] add CalendarPeriods, CurrentPeakPeriod, NextPeakPeriod attributes validaiton; remove TimeReference, PeakPeriodStatus, PeakPeriodEndTime attributes validation based on PR #7829 Signed-off-by: Dmitry Maslov --- .../certification/Test_TC_ECAL_2_1.yaml | 55 +++++++------------ 1 file changed, 20 insertions(+), 35 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml index 346fc2e88cbbf6..68f074ddfe5464 100644 --- a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml @@ -71,35 +71,28 @@ tests: attribute: "StartDate" response: constraints: - type: epoch_s + type: date - - label: "Step 7: TH reads the TimeReference attribute from the DUT" + - label: "Step 7: TH reads the CalendarPeriods attribute from the DUT" PICS: ECAL.S.A0005 command: "readAttribute" - attribute: "TimeReference" - response: - constraints: - type: enum8 - minValue: 0 - maxValue: 2 - - - label: "Step 8: TH reads the CalendarPeriods attribute from the DUT" - PICS: ECAL.S.A0006 - command: "readAttribute" attribute: "CalendarPeriods" response: constraints: type: list + minLength: 1 + maxLength: 4 - - label: "Step 9: TH reads the SpecialDays attribute from the DUT" - PICS: ECAL.S.A0008 + - label: "Step 8: TH reads the SpecialDays attribute from the DUT" + PICS: ECAL.S.A0006 command: "readAttribute" attribute: "SpecialDays" response: constraints: type: list + maxLength: 50 - - label: "Step 10: TH reads the CurrentDay attribute from the DUT" + - label: "Step 9: TH reads the CurrentDay attribute from the DUT" PICS: ECAL.S.A0007 command: "readAttribute" attribute: "CurrentDay" @@ -107,42 +100,34 @@ tests: constraints: type: DayStruct - - label: "Step 11: TH reads the NextDay attribute from the DUT" - PICS: ECAL.S.A0009 + - label: "Step 10: TH reads the NextDay attribute from the DUT" + PICS: ECAL.S.A0008 command: "readAttribute" attribute: "NextDay" response: constraints: type: DayStruct - - label: "Step 12: TH reads the CurrentTransition attribute from the DUT" - PICS: ECAL.S.A000A + - label: "Step 11: TH reads the CurrentTransition attribute from the DUT" + PICS: ECAL.S.A0009 command: "readAttribute" attribute: "CurrentTransition" response: constraints: type: TransitionStruct - - label: "Step 13: TH reads the PeakPeriodStatus attribute from the DUT" - PICS: ECAL.S.A000B && ECAL.S.F03 - command: "readAttribute" - attribute: "PeakPeriodStatus" - response: - constraints: - type: PeakPeriodStatusStruct - - - label: "Step 14: TH reads the PeakPeriodStartTime attribute from the DUT" - PICS: ECAL.S.A000B && ECAL.S.F03 + - label: "Step 12: TH reads the CurrentPeakPeriod attribute from the DUT" + PICS: ECAL.S.A000A command: "readAttribute" - attribute: "PeakPeriodStartTime" + attribute: "CurrentPeakPeriod" response: constraints: - type: epoch_s + type: PeakPeriodStruct - - label: "Step 15: TH reads the PeakPeriodEndTime attribute from the DUT" - PICS: ECAL.S.A000D && ECAL.S.F03 + - label: "Step 13: TH reads the NextPeakPeriod attribute from the DUT" + PICS: ECAL.S.A000B command: "readAttribute" - attribute: "PeakPeriodEndTime" + attribute: "NextPeakPeriod" response: constraints: - type: epoch_s \ No newline at end of file + type: PeakPeriodStruct \ No newline at end of file From 5baf1aefdef41e10be57d13253ec267f4cfc073a Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Fri, 14 Jun 2024 16:29:15 +0300 Subject: [PATCH 07/10] change StartDate data type to epoch-s Signed-off-by: Dmitry Maslov --- src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml index 68f074ddfe5464..7fe3dec7798b2d 100644 --- a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml @@ -71,7 +71,7 @@ tests: attribute: "StartDate" response: constraints: - type: date + type: epoch-s - label: "Step 7: TH reads the CalendarPeriods attribute from the DUT" PICS: ECAL.S.A0005 From a4b759184ee5ebbac0ccd7847df19052e91c8785 Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Mon, 24 Jun 2024 10:43:04 +0300 Subject: [PATCH 08/10] remove TC ECAL 1.1. Global Attributes with {DUT_Server} Signed-off-by: Dmitry Maslov --- .../certification/Test_TC_ECAL_1_1.yaml | 179 ------------------ 1 file changed, 179 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml deleted file mode 100644 index cdaefbbda9deb4..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_ECAL_1_1.yaml +++ /dev/null @@ -1,179 +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: 262.1.1. [TC-ECAL-1.1] Global Attributes with DUT as Server - -PICS: - - ECAL.S - -config: - nodeId: 0x12344321 - cluster: "Energy Calendar" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: "Step 3a: Read the global attribute: FeatureMap" - command: "readAttribute" - attribute: "FeatureMap" - PICS: ( !ECAL.S.F00 && !ECAL.S.F01 && !ECAL.S.F02 && !ECAL.S.F03 ) - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3b: Given ECAL.S.F00(PTIER) ensure featuremap has the correct bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: ECAL.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given ECAL.S.F01(FCRED) ensure featuremap has the correct bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: ECAL.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3d: Given ECAL.S.F02(AUXLD) ensure featuremap has the correct bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: ECAL.S.F02 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x3] - - - label: - "Step 3e: Given ECAL.S.F03(PEAKP) ensure featuremap has the correct bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: ECAL.S.F03 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4] - - - label: "Step 4a: Read the global attribute: AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [ - 0x0000, - 0x0001, - 0x0002, - 0x0003, - 0x0004, - 0x0005, - 0x0006, - 0x0007, - 0x0008, - 0x0009, - 0xFFF8, # GeneratedCommandList - 0xFFF9, # AcceptedCommandList - 0xFFFA, # EventList - 0xFFFB, # AttributeList - 0xFFFC, # FeatureMap - 0xFFFD # ClusterRevision - ] - - - label: "Step 4a: Read the global attribute: AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [ - 0x0000, - 0x0001, - 0x0002, - 0x0003, - 0x0004, - 0x0005, - 0x0006, - 0x0007, - 0x0008, - 0x0009, - 0xFFF8, # GeneratedCommandList - 0xFFF9, # AcceptedCommandList - 0xFFFB, # AttributeList - 0xFFFC, # FeatureMap - 0xFFFD # ClusterRevision - ] - - - label: - "Step 4b: Read the feature dependent(ECAL.S.F03) attribute in - AttributeList" - PICS: ECAL.S.F03 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [ - 0x000A, # CurrentPeakPeriod - 0x000B # NextPeakPeriod - ] - - - label: "Step 5: Read the global attribute: EventList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: Read the global attribute: AcceptedCommandList" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: Read the global attribute: GeneratedCommandList" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list From a5af4de51c0414904fb2436063e574f7bd5ff38c Mon Sep 17 00:00:00 2001 From: Dmitry Maslov Date: Mon, 3 Mar 2025 16:59:41 +0300 Subject: [PATCH 09/10] add TC-ET-2.1, 2.2, 2.3, 3.1; remove TC_ECAL_2_1 Signed-off-by: Dmitry Maslov --- .../certification/Test_TC_ECAL_2_1.yaml | 133 ------- .../suites/certification/Test_TC_ET_2_1.yaml | 324 ++++++++++++++++++ .../suites/certification/Test_TC_ET_2_2.yaml | 91 +++++ .../suites/certification/Test_TC_ET_2_3.yaml | 38 ++ .../suites/certification/Test_TC_ET_3_1.yaml | 155 +++++++++ 5 files changed, 608 insertions(+), 133 deletions(-) delete mode 100644 src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_ET_2_1.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_ET_2_2.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_ET_2_3.yaml create mode 100644 src/app/tests/suites/certification/Test_TC_ET_3_1.yaml diff --git a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml deleted file mode 100644 index 7fe3dec7798b2d..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_ECAL_2_1.yaml +++ /dev/null @@ -1,133 +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: 262.2.1. [TC-ECAL-2.1] Attributes with server as DUT - -PICS: - - ECAL.S - -config: - nodeId: 0x12344321 - cluster: "Energy Calendar" - endpoint: 1 - -tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads the CalendarID attribute from the DUT" - PICS: ECAL.S.A0000 - command: "readAttribute" - attribute: "CalendarID" - response: - constraints: - type: int32u - - - label: "Step 3: TH reads the Name attribute from the DUT" - PICS: ECAL.S.A0001 - command: "readAttribute" - attribute: "Name" - response: - constraints: - type: char_string - maxLength: 12 - - - label: "Step 4: TH reads the ProviderID attribute from the DUT" - PICS: ECAL.S.A0002 - command: "readAttribute" - attribute: "ProviderID" - response: - constraints: - type: int32u - - - label: "Step 5: TH reads the EventID attribute from the DUT" - PICS: ECAL.S.A0003 - command: "readAttribute" - attribute: "EventID" - response: - constraints: - type: int32u - - - label: "Step 6: TH reads the StartDate attribute from the DUT" - PICS: ECAL.S.A0004 - command: "readAttribute" - attribute: "StartDate" - response: - constraints: - type: epoch-s - - - label: "Step 7: TH reads the CalendarPeriods attribute from the DUT" - PICS: ECAL.S.A0005 - command: "readAttribute" - attribute: "CalendarPeriods" - response: - constraints: - type: list - minLength: 1 - maxLength: 4 - - - label: "Step 8: TH reads the SpecialDays attribute from the DUT" - PICS: ECAL.S.A0006 - command: "readAttribute" - attribute: "SpecialDays" - response: - constraints: - type: list - maxLength: 50 - - - label: "Step 9: TH reads the CurrentDay attribute from the DUT" - PICS: ECAL.S.A0007 - command: "readAttribute" - attribute: "CurrentDay" - response: - constraints: - type: DayStruct - - - label: "Step 10: TH reads the NextDay attribute from the DUT" - PICS: ECAL.S.A0008 - command: "readAttribute" - attribute: "NextDay" - response: - constraints: - type: DayStruct - - - label: "Step 11: TH reads the CurrentTransition attribute from the DUT" - PICS: ECAL.S.A0009 - command: "readAttribute" - attribute: "CurrentTransition" - response: - constraints: - type: TransitionStruct - - - label: "Step 12: TH reads the CurrentPeakPeriod attribute from the DUT" - PICS: ECAL.S.A000A - command: "readAttribute" - attribute: "CurrentPeakPeriod" - response: - constraints: - type: PeakPeriodStruct - - - label: "Step 13: TH reads the NextPeakPeriod attribute from the DUT" - PICS: ECAL.S.A000B - command: "readAttribute" - attribute: "NextPeakPeriod" - response: - constraints: - type: PeakPeriodStruct \ No newline at end of file diff --git a/src/app/tests/suites/certification/Test_TC_ET_2_1.yaml b/src/app/tests/suites/certification/Test_TC_ET_2_1.yaml new file mode 100644 index 00000000000000..0b65c5175ea918 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ET_2_1.yaml @@ -0,0 +1,324 @@ +# Copyright (c) 2025 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: X.2.1. [TC-ET-2.1] Attributes with DUT as Server + +PICS: + - ET.S + +config: + nodeId: 0x12344321 + cluster: "Energy Tariff" + endpoint: 1 + TEST_EVENT_TRIGGER_KEY: + type: octet_string + defaultValue: "hex:00112233445566778899aabbccddeeff" + TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE: + type: int64u + defaultValue: "0x0700000000000000" + TEST_EVENT_TRIGGER_TEST_EVENT_CLEAR: + type: int64u + defaultValue: "0x0700000000000001" + +tests: + - label: "Step 1: Commission DUT to TH" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Step 2: TH reads the TariffInfo attribute from the DUT" + command: "readAttribute" + attribute: "TariffInfo" + response: + value: null + + - label: "Step 3: TH reads the MeteringUnit attribute from the DUT" + command: "readAttribute" + attribute: "MeteringUnit" + response: + value: null + + - label: "Step 4: TH reads the StartDate attribute from the DUT" + command: "readAttribute" + attribute: "StartDate" + response: + value: null + + - label: "Step 5: TH reads the Transitions attribute from the DUT" + command: "readAttribute" + attribute: "Transitions" + response: + value: null + + - label: "Step 6: TH reads the DayPatterns attribute from the DUT" + command: "readAttribute" + attribute: "DayPatterns" + response: + value: null + + - label: "Step 7: TH reads the CalendarPeriods attribute from the DUT" + command: "readAttribute" + attribute: "CalendarPeriods" + response: + value: null + + - label: "Step 8: TH reads the IndividualDays attribute from the DUT" + command: "readAttribute" + attribute: "IndividualDays" + response: + value: null + + - label: "Step 9: TH reads the CurrentDay attribute from the DUT" + command: "readAttribute" + attribute: "CurrentDay" + response: + value: null + + - label: "Step 10: TH reads the NextDay attribute from the DUT" + command: "readAttribute" + attribute: "NextDay" + response: + value: null + + - label: "Step 11: TH reads the CurrentTransition attribute from the DUT" + command: "readAttribute" + attribute: "CurrentTransition" + response: + value: null + + - label: "Step 12: TH reads the CurrentTransitionDate attribute from the DUT" + command: "readAttribute" + attribute: "CurrentTransitionDate" + response: + value: null + + - label: "Step 13: TH reads the NextTransition attribute from the DUT" + command: "readAttribute" + attribute: "NextTransition" + response: + value: null + + - label: "Step 14: TH reads the NextTransitionDate attribute from the DUT" + command: "readAttribute" + attribute: "NextTransitionDate" + response: + value: null + + - label: "Step 15: TH reads the TariffComponents attribute from the DUT" + command: "readAttribute" + attribute: "TariffComponents" + response: + value: null + + - label: "Step 16: TH reads the TariffPeriods attribute from the DUT" + command: "readAttribute" + attribute: "TariffPeriods" + response: + value: null + + - label: "Step 17: TH reads the CurrentTariffComponents attribute from the DUT" + command: "readAttribute" + attribute: "CurrentTariffComponents" + response: + value: null + + - label: "Step 18: TH reads the NextTariffComponents attribute from the DUT" + command: "readAttribute" + attribute: "NextTariffComponents" + response: + value: null + + - label: "Step 19: TH reads the DefaultRandomizationOffset attribute from the DUT" + PICS: ET.S.A0011 + command: "readAttribute" + attribute: "DefaultRandomizationOffset" + response: + value: null + + - label: "Step 20: TH reads the DefaultRandomizationType attribute from the DUT" + PICS: ET.S.A0012 + command: "readAttribute" + attribute: "DefaultRandomizationType" + response: + value: null + + - label: "Step 21: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" + PICS: DGGEN.S.A0008 + cluster: "General Diagnostics" + endpoint: 0 + command: "readAttribute" + attribute: "TestEventTriggersEnabled" + response: + value: 1 + + - label: "Step 22: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to + PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PICS: DGGEN.S.C00.Rsp + cluster: "General Diagnostics" + endpoint: 0 + command: "TestEventTrigger" + arguments: + values: + - name: "EnableKey" + value: TEST_EVENT_TRIGGER_KEY + - name: "EventTrigger" + value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE + + - label: "Step 23: TH reads the TariffInfo attribute from the DUT" + command: "readAttribute" + attribute: "TariffInfo" + response: + constraints: + type: "TariffInformationStruct" + + - label: "Step 24: TH reads the MeteringUnit attribute from the DUT" + command: "readAttribute" + attribute: "MeteringUnit" + response: + constraints: + type: "MeteringUnitEnum" + anyOf: [0, 1, 2, 3, 4, 5, 6, 7, 8] + + - label: "Step 25: TH reads the StartDate attribute from the DUT" + command: "readAttribute" + attribute: "StartDate" + response: + constraints: + type: epoch-s + + - label: "Step 26: TH reads the Transitions attribute from the DUT" + command: "readAttribute" + attribute: "Transitions" + response: + constraints: + type: list + + - label: "Step 27: TH reads the DayPatterns attribute from the DUT" + command: "readAttribute" + attribute: "DayPatterns" + response: + constraints: + type: list + + - label: "Step 28: TH reads the CalendarPeriods attribute from the DUT" + command: "readAttribute" + attribute: "CalendarPeriods" + response: + constraints: + type: list + minLength: 1 + maxLength: 4 + + - label: "Step 29: TH reads the IndividualDays attribute from the DUT" + command: "readAttribute" + attribute: "IndividualDays" + response: + constraints: + type: list + maxLength: 50 + + - label: "Step 30: TH reads the CurrentDay attribute from the DUT" + command: "readAttribute" + attribute: "CurrentDay" + response: + constraints: + type: "DayStruct" + + - label: "Step 31: TH reads the NextDay attribute from the DUT" + command: "readAttribute" + attribute: "NextDay" + response: + constraints: + type: "DayStruct" + + - label: "Step 32: TH reads the CurrentTransition attribute from the DUT" + command: "readAttribute" + attribute: "CurrentTransition" + response: + constraints: + type: "CalendarTransitionStruct" + + - label: "Step 33: TH reads the CurrentTransitionDate attribute from the DUT" + command: "readAttribute" + attribute: "CurrentTransitionDate" + response: + constraints: + type: epoch-s + + - label: "Step 34: TH reads the NextTransition attribute from the DUT" + command: "readAttribute" + attribute: "NextTransition" + response: + constraints: + type: "CalendarTransitionStruct" + + - label: "Step 35: TH reads the NextTransitionDate attribute from the DUT" + command: "readAttribute" + attribute: "NextTransitionDate" + response: + constraints: + type: epoch-s + + - label: "Step 36: TH reads the TariffComponents attribute from the DUT" + command: "readAttribute" + attribute: "TariffComponents" + response: + constraints: + type: list + minLength: 1 + + - label: "Step 37: TH reads the TariffPeriods attribute from the DUT" + command: "readAttribute" + attribute: "TariffPeriods" + response: + constraints: + type: list + minLength: 1 + + - label: "Step 38: TH reads the CurrentTariffComponents attribute from the DUT" + command: "readAttribute" + attribute: "CurrentTariffComponents" + response: + constraints: + type: list + + - label: "Step 39: TH reads the NextTariffComponents attribute from the DUT" + command: "readAttribute" + attribute: "NextTariffComponents" + response: + constraints: + type: list + + - label: "Step 40: TH reads the DefaultRandomizationOffset attribute from the DUT" + PICS: ET.S.A0011 + command: "readAttribute" + attribute: "DefaultRandomizationOffset" + response: + constraints: + type: int16s + + - label: "Step 41: TH reads the DefaultRandomizationType attribute from the DUT" + PICS: ET.S.A0012 + command: "readAttribute" + attribute: "DefaultRandomizationType" + response: + constraints: + type: "TransitionRandomizationType" + anyOf: [0, 1, 2, 3, 4] diff --git a/src/app/tests/suites/certification/Test_TC_ET_2_2.yaml b/src/app/tests/suites/certification/Test_TC_ET_2_2.yaml new file mode 100644 index 00000000000000..335660490162d4 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ET_2_2.yaml @@ -0,0 +1,91 @@ +# Copyright (c) 2025 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: X.2.2. [TC-ET-2.2] Commands with Server as DUT + +PICS: + - ET.S + +config: + nodeId: 0x12344321 + cluster: "Energy Tariff" + endpoint: 1 + TEST_EVENT_TRIGGER_KEY: + type: octet_string + defaultValue: "hex:00112233445566778899aabbccddeeff" + TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE: + type: int64u + defaultValue: "0x0700000000000000" + TEST_EVENT_TRIGGER_TEST_EVENT_CLEAR: + type: int64u + defaultValue: "0x0700000000000001" + +tests: + - label: "Step 1: Commission DUT to TH" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Step 2: TH sends command GetTariffComponent command with TariffComponentID field set to 0." + command: "GetTariffComponent" + arguments: + values: + - name: "TariffComponentID" + value: 0 + response: + values: + - name: "Label" + constraints: + type: char_string + maxLength: 128 + - name: "CalendarTransitionIDs" + constraints: + type: list + minLength: 1 + - name: "TariffComponent" + constraints: + type: "TariffComponentStruct" + + - label: "Step 3: TH sends command GetTariffComponent command with TariffComponentID field set to 0." + command: "GetTariffComponent" + arguments: + values: + - name: "TariffComponentID" + value: 100 + response: + error: NOT_FOUND + + - label: "Step 4: TH sends command GetCalendarTransition command with CalendarTransitionID field set to 0." + command: "GetCalendarTransition" + arguments: + values: + - name: "CalendarTransitionID" + value: 0 + response: + values: + - name: "Transition" + constraints: + type: "CalendarTransitionStruct" + + - label: "Step 5: TH sends command GetCalendarTransition command with CalendarTransitionID field set to 0." + command: "GetCalendarTransition" + arguments: + values: + - name: "CalendarTransitionID" + value: 100 + response: + error: NOT_FOUND diff --git a/src/app/tests/suites/certification/Test_TC_ET_2_3.yaml b/src/app/tests/suites/certification/Test_TC_ET_2_3.yaml new file mode 100644 index 00000000000000..42fe1c99dc84d2 --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ET_2_3.yaml @@ -0,0 +1,38 @@ +# Copyright (c) 2025 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: X.2.3. [TC-ET-2.3] Commands with Client as DUT + +PICS: + - ET.C + +config: + nodeId: 0x12344321 + cluster: "Energy Tariff" + endpoint: 1 + +tests: + - label: "Step 1: Commission DUT to TH" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Step 2: DUT sends GetTariffComponent command to TH." + wait: "GetTariffComponent" + + - label: "Step 3: DUT sends GetCalendarTransition command to TH." + wait: "GetCalendarTransition" diff --git a/src/app/tests/suites/certification/Test_TC_ET_3_1.yaml b/src/app/tests/suites/certification/Test_TC_ET_3_1.yaml new file mode 100644 index 00000000000000..20a07436351a7b --- /dev/null +++ b/src/app/tests/suites/certification/Test_TC_ET_3_1.yaml @@ -0,0 +1,155 @@ +# Copyright (c) 2025 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: X.3.1. [TC-ET-3.1] Subscription Report Verification with DUT as Server + +PICS: + - ET.S + +config: + nodeId: 0x12344321 + cluster: "Energy Tariff" + endpoint: 1 + TEST_EVENT_TRIGGER_KEY: + type: octet_string + defaultValue: "hex:00112233445566778899aabbccddeeff" + TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE: + type: int64u + defaultValue: "0x0700000000000000" + TEST_EVENT_TRIGGER_TEST_EVENT_CLEAR: + type: int64u + defaultValue: "0x0700000000000001" + +tests: + - label: "Step 1: Commission DUT to TH" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId + + - label: "Step 2: TH subscribes to TariffInfo attribute from DUT" + PICS: ET.S.A0004 + command: "subscribeAttribute" + attribute: "TariffInfo" + minInterval: 5 + maxInterval: 30 + timeout: 30 + response: + value: null + + - label: "Step 3: TH reads the TariffInfo attribute from the DUT" + PICS: ET.S.A0004 + command: "readAttribute" + attribute: "TariffInfo" + response: + saveAs: Saved + value: null + + - label: "Step 4: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" + PICS: DGGEN.S.A0008 + cluster: "General Diagnostics" + endpoint: 0 + command: "readAttribute" + attribute: "TestEventTriggersEnabled" + response: + value: 1 + + - label: "Step 5: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to + PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PICS: DGGEN.S.C00.Rsp + cluster: "General Diagnostics" + endpoint: 0 + command: "TestEventTrigger" + arguments: + values: + - name: "EnableKey" + value: TEST_EVENT_TRIGGER_KEY + - name: "EventTrigger" + value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE + + - label: "Step 6: Check for TariffInfo attribute report" + PICS: ET.S.A0004 + command: "waitForReport" + attribute: "TariffInfo" + response: + notValue: Saved + constraints: + type: TariffInformationStruct + + - label: "Step 7: TH reads the TariffInfo attribute from the DUT" + PICS: ET.S.A0004 + command: "readAttribute" + attribute: "TariffInfo" + response: + saveAs: Saved + + - label: "Step 8: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to + PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PICS: DGGEN.S.C00.Rsp + cluster: "General Diagnostics" + endpoint: 0 + command: "TestEventTrigger" + arguments: + values: + - name: "EnableKey" + value: TEST_EVENT_TRIGGER_KEY + - name: "EventTrigger" + value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE + + - label: "Step 9: Check for TariffInfo attribute report" + PICS: ET.S.A0004 + command: "waitForReport" + attribute: "TariffInfo" + response: + notValue: Saved + constraints: + type: TariffInformationStruct + + - label: "Step 10: TH reads the TariffInfo attribute from the DUT" + PICS: ET.S.A0004 + command: "readAttribute" + attribute: "TariffInfo" + response: + saveAs: Saved + + - label: "Step 11: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to + PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PICS: DGGEN.S.C00.Rsp + cluster: "General Diagnostics" + endpoint: 0 + command: "TestEventTrigger" + arguments: + values: + - name: "EnableKey" + value: TEST_EVENT_TRIGGER_KEY + - name: "EventTrigger" + value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE + + - label: "Step 12: Check for TariffInfo attribute report" + PICS: ET.S.A0004 + command: "waitForReport" + attribute: "TariffInfo" + response: + notValue: Saved + constraints: + type: TariffInformationStruct From 3b203c4e0de66183d2fc2ed07b1b554ef20e3d29 Mon Sep 17 00:00:00 2001 From: "artem.burgonov" Date: Fri, 7 Mar 2025 19:07:23 +0300 Subject: [PATCH 10/10] Energy Tariff TCs are updated in context of change to Commodity Tariff --- ..._TC_ET_2_1.yaml => Test_TC_SETRF_2_1.yaml} | 72 +++++++++---------- ..._TC_ET_2_2.yaml => Test_TC_SETRF_2_2.yaml} | 24 +++---- ..._TC_ET_2_3.yaml => Test_TC_SETRF_2_3.yaml} | 28 ++++---- ..._TC_ET_3_1.yaml => Test_TC_SETRF_3_1.yaml} | 41 +++++------ 4 files changed, 81 insertions(+), 84 deletions(-) rename src/app/tests/suites/certification/{Test_TC_ET_2_1.yaml => Test_TC_SETRF_2_1.yaml} (81%) rename src/app/tests/suites/certification/{Test_TC_ET_2_2.yaml => Test_TC_SETRF_2_2.yaml} (78%) rename src/app/tests/suites/certification/{Test_TC_ET_2_3.yaml => Test_TC_SETRF_2_3.yaml} (56%) rename src/app/tests/suites/certification/{Test_TC_ET_3_1.yaml => Test_TC_SETRF_3_1.yaml} (83%) diff --git a/src/app/tests/suites/certification/Test_TC_ET_2_1.yaml b/src/app/tests/suites/certification/Test_TC_SETRF_2_1.yaml similarity index 81% rename from src/app/tests/suites/certification/Test_TC_ET_2_1.yaml rename to src/app/tests/suites/certification/Test_TC_SETRF_2_1.yaml index 0b65c5175ea918..368185359f5c7b 100644 --- a/src/app/tests/suites/certification/Test_TC_ET_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SETRF_2_1.yaml @@ -12,14 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: X.2.1. [TC-ET-2.1] Attributes with DUT as Server +name: X.2.1. [TC-SETRF-2.1] Attributes with DUT as Server PICS: - - ET.S + - SETRF.S config: nodeId: 0x12344321 - cluster: "Energy Tariff" + cluster: "Commodity Tariff" endpoint: 1 TEST_EVENT_TRIGGER_KEY: type: octet_string @@ -46,9 +46,9 @@ tests: response: value: null - - label: "Step 3: TH reads the MeteringUnit attribute from the DUT" + - label: "Step 3: TH reads the TariffUnit attribute from the DUT" command: "readAttribute" - attribute: "MeteringUnit" + attribute: "TariffUnit" response: value: null @@ -58,9 +58,9 @@ tests: response: value: null - - label: "Step 5: TH reads the Transitions attribute from the DUT" + - label: "Step 5: TH reads the DayEntries attribute from the DUT" command: "readAttribute" - attribute: "Transitions" + attribute: "DayEntries" response: value: null @@ -94,27 +94,27 @@ tests: response: value: null - - label: "Step 11: TH reads the CurrentTransition attribute from the DUT" + - label: "Step 11: TH reads the CurrentDayEntry attribute from the DUT" command: "readAttribute" - attribute: "CurrentTransition" + attribute: "CurrentDayEntry" response: value: null - - label: "Step 12: TH reads the CurrentTransitionDate attribute from the DUT" + - label: "Step 12: TH reads the CurrentDayEntryDate attribute from the DUT" command: "readAttribute" - attribute: "CurrentTransitionDate" + attribute: "CurrentDayEntryDate" response: value: null - - label: "Step 13: TH reads the NextTransition attribute from the DUT" + - label: "Step 13: TH reads the NextDayEntry attribute from the DUT" command: "readAttribute" - attribute: "NextTransition" + attribute: "NextDayEntry" response: value: null - - label: "Step 14: TH reads the NextTransitionDate attribute from the DUT" + - label: "Step 14: TH reads the NextDayEntryDate attribute from the DUT" command: "readAttribute" - attribute: "NextTransitionDate" + attribute: "NextDayEntryDate" response: value: null @@ -143,14 +143,14 @@ tests: value: null - label: "Step 19: TH reads the DefaultRandomizationOffset attribute from the DUT" - PICS: ET.S.A0011 + PICS: SETRF.S.A0011 command: "readAttribute" attribute: "DefaultRandomizationOffset" response: value: null - label: "Step 20: TH reads the DefaultRandomizationType attribute from the DUT" - PICS: ET.S.A0012 + PICS: SETRF.S.A0012 command: "readAttribute" attribute: "DefaultRandomizationType" response: @@ -168,8 +168,8 @@ tests: - label: "Step 22: TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to - PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to - PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PIXIT.SETRF.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.SETRF.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" PICS: DGGEN.S.C00.Rsp cluster: "General Diagnostics" endpoint: 0 @@ -188,12 +188,12 @@ tests: constraints: type: "TariffInformationStruct" - - label: "Step 24: TH reads the MeteringUnit attribute from the DUT" + - label: "Step 24: TH reads the TariffUnit attribute from the DUT" command: "readAttribute" - attribute: "MeteringUnit" + attribute: "TariffUnit" response: constraints: - type: "MeteringUnitEnum" + type: "TariffUnitEnum" anyOf: [0, 1, 2, 3, 4, 5, 6, 7, 8] - label: "Step 25: TH reads the StartDate attribute from the DUT" @@ -203,9 +203,9 @@ tests: constraints: type: epoch-s - - label: "Step 26: TH reads the Transitions attribute from the DUT" + - label: "Step 26: TH reads the DayEntries attribute from the DUT" command: "readAttribute" - attribute: "Transitions" + attribute: "DayEntries" response: constraints: type: list @@ -248,30 +248,30 @@ tests: constraints: type: "DayStruct" - - label: "Step 32: TH reads the CurrentTransition attribute from the DUT" + - label: "Step 32: TH reads the CurrentDayEntry attribute from the DUT" command: "readAttribute" - attribute: "CurrentTransition" + attribute: "CurrentDayEntry" response: constraints: - type: "CalendarTransitionStruct" + type: "DayEntryStruct" - - label: "Step 33: TH reads the CurrentTransitionDate attribute from the DUT" + - label: "Step 33: TH reads the CurrentDayEntryDate attribute from the DUT" command: "readAttribute" - attribute: "CurrentTransitionDate" + attribute: "CurrentDayEntryDate" response: constraints: type: epoch-s - - label: "Step 34: TH reads the NextTransition attribute from the DUT" + - label: "Step 34: TH reads the NextDayEntry attribute from the DUT" command: "readAttribute" - attribute: "NextTransition" + attribute: "NextDayEntry" response: constraints: - type: "CalendarTransitionStruct" + type: "DayEntryStruct" - - label: "Step 35: TH reads the NextTransitionDate attribute from the DUT" + - label: "Step 35: TH reads the NextDayEntryDate attribute from the DUT" command: "readAttribute" - attribute: "NextTransitionDate" + attribute: "NextDayEntryDate" response: constraints: type: epoch-s @@ -307,7 +307,7 @@ tests: type: list - label: "Step 40: TH reads the DefaultRandomizationOffset attribute from the DUT" - PICS: ET.S.A0011 + PICS: SETRF.S.A0011 command: "readAttribute" attribute: "DefaultRandomizationOffset" response: @@ -315,7 +315,7 @@ tests: type: int16s - label: "Step 41: TH reads the DefaultRandomizationType attribute from the DUT" - PICS: ET.S.A0012 + PICS: SETRF.S.A0012 command: "readAttribute" attribute: "DefaultRandomizationType" response: diff --git a/src/app/tests/suites/certification/Test_TC_ET_2_2.yaml b/src/app/tests/suites/certification/Test_TC_SETRF_2_2.yaml similarity index 78% rename from src/app/tests/suites/certification/Test_TC_ET_2_2.yaml rename to src/app/tests/suites/certification/Test_TC_SETRF_2_2.yaml index 335660490162d4..5332e528f8f8e0 100644 --- a/src/app/tests/suites/certification/Test_TC_ET_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SETRF_2_2.yaml @@ -12,14 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: X.2.2. [TC-ET-2.2] Commands with Server as DUT +name: X.2.2. [TC-SETRF-2.2] Commands with Server as DUT PICS: - - ET.S + - SETRF.S config: nodeId: 0x12344321 - cluster: "Energy Tariff" + cluster: "Commodity Tariff" endpoint: 1 TEST_EVENT_TRIGGER_KEY: type: octet_string @@ -52,7 +52,7 @@ tests: constraints: type: char_string maxLength: 128 - - name: "CalendarTransitionIDs" + - name: "DayEntryIDs" constraints: type: list minLength: 1 @@ -69,23 +69,23 @@ tests: response: error: NOT_FOUND - - label: "Step 4: TH sends command GetCalendarTransition command with CalendarTransitionID field set to 0." - command: "GetCalendarTransition" + - label: "Step 4: TH sends command GetDayEntry command with DayEntryID field set to 0." + command: "GetDayEntry" arguments: values: - - name: "CalendarTransitionID" + - name: "DayEntryID" value: 0 response: values: - - name: "Transition" + - name: "DayEntry" constraints: - type: "CalendarTransitionStruct" + type: "DayEntryStruct" - - label: "Step 5: TH sends command GetCalendarTransition command with CalendarTransitionID field set to 0." - command: "GetCalendarTransition" + - label: "Step 5: TH sends command GetDayEntry command with DayEntryID field set to 0." + command: "GetDayEntry" arguments: values: - - name: "CalendarTransitionID" + - name: "DayEntryID" value: 100 response: error: NOT_FOUND diff --git a/src/app/tests/suites/certification/Test_TC_ET_2_3.yaml b/src/app/tests/suites/certification/Test_TC_SETRF_2_3.yaml similarity index 56% rename from src/app/tests/suites/certification/Test_TC_ET_2_3.yaml rename to src/app/tests/suites/certification/Test_TC_SETRF_2_3.yaml index 42fe1c99dc84d2..6a0558ae1f6d31 100644 --- a/src/app/tests/suites/certification/Test_TC_ET_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_SETRF_2_3.yaml @@ -12,27 +12,27 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: X.2.3. [TC-ET-2.3] Commands with Client as DUT +name: X.2.3. [TC-SETRF-2.3] Commands with Client as DUT PICS: - - ET.C + - SETRF.C config: nodeId: 0x12344321 - cluster: "Energy Tariff" + cluster: "Commodity Tariff" endpoint: 1 tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId + - label: "Step 1: Commission DUT to TH" + cluster: "DelayCommands" + command: "WaitForCommissionee" + arguments: + values: + - name: "nodeId" + value: nodeId - - label: "Step 2: DUT sends GetTariffComponent command to TH." - wait: "GetTariffComponent" + - label: "Step 2: DUT sends GetTariffComponent command to TH." + wait: "GetTariffComponent" - - label: "Step 3: DUT sends GetCalendarTransition command to TH." - wait: "GetCalendarTransition" + - label: "Step 3: DUT sends GetDayEntry command to TH." + wait: "GetDayEntry" diff --git a/src/app/tests/suites/certification/Test_TC_ET_3_1.yaml b/src/app/tests/suites/certification/Test_TC_SETRF_3_1.yaml similarity index 83% rename from src/app/tests/suites/certification/Test_TC_ET_3_1.yaml rename to src/app/tests/suites/certification/Test_TC_SETRF_3_1.yaml index 20a07436351a7b..720394462c79f2 100644 --- a/src/app/tests/suites/certification/Test_TC_ET_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SETRF_3_1.yaml @@ -12,14 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: X.3.1. [TC-ET-3.1] Subscription Report Verification with DUT as Server +name: X.3.1. [TC-SETRF-3.1] Subscription Report Verification with DUT as Server PICS: - - ET.S + - SETRF.S config: nodeId: 0x12344321 - cluster: "Energy Tariff" + cluster: "Commodity Tariff" endpoint: 1 TEST_EVENT_TRIGGER_KEY: type: octet_string @@ -41,22 +41,19 @@ tests: value: nodeId - label: "Step 2: TH subscribes to TariffInfo attribute from DUT" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "subscribeAttribute" attribute: "TariffInfo" minInterval: 5 maxInterval: 30 timeout: 30 - response: - value: null - label: "Step 3: TH reads the TariffInfo attribute from the DUT" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "readAttribute" attribute: "TariffInfo" response: saveAs: Saved - value: null - label: "Step 4: TH reads TestEventTriggersEnabled attribute from General Diagnostics Cluster" @@ -70,8 +67,8 @@ tests: - label: "Step 5: TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to - PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to - PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PIXIT.SETRF.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.SETRF.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" PICS: DGGEN.S.C00.Rsp cluster: "General Diagnostics" endpoint: 0 @@ -84,16 +81,16 @@ tests: value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE - label: "Step 6: Check for TariffInfo attribute report" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "waitForReport" attribute: "TariffInfo" response: - notValue: Saved constraints: type: TariffInformationStruct + notValue: Saved - label: "Step 7: TH reads the TariffInfo attribute from the DUT" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "readAttribute" attribute: "TariffInfo" response: @@ -101,8 +98,8 @@ tests: - label: "Step 8: TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to - PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to - PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PIXIT.SETRF.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.SETRF.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" PICS: DGGEN.S.C00.Rsp cluster: "General Diagnostics" endpoint: 0 @@ -115,16 +112,16 @@ tests: value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE - label: "Step 9: Check for TariffInfo attribute report" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "waitForReport" attribute: "TariffInfo" response: - notValue: Saved constraints: type: TariffInformationStruct + notValue: Saved - label: "Step 10: TH reads the TariffInfo attribute from the DUT" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "readAttribute" attribute: "TariffInfo" response: @@ -132,8 +129,8 @@ tests: - label: "Step 11: TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to - PIXIT.ET.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to - PIXIT.ET.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" + PIXIT.SETRF.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to + PIXIT.SETRF.TEST_EVENT_TRIGGER for Attributes Value Update Test Event" PICS: DGGEN.S.C00.Rsp cluster: "General Diagnostics" endpoint: 0 @@ -146,10 +143,10 @@ tests: value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE - label: "Step 12: Check for TariffInfo attribute report" - PICS: ET.S.A0004 + PICS: SETRF.S.A0004 command: "waitForReport" attribute: "TariffInfo" response: - notValue: Saved constraints: type: TariffInformationStruct + notValue: Saved