From 2241586605950100a3f0915200e63ded89bb81f3 Mon Sep 17 00:00:00 2001 From: EricZijian_Siter Date: Fri, 25 Aug 2023 02:00:15 +0800 Subject: [PATCH] Update smokeco tests as per test plan document update (#28843) * Add SMOKECO tests serial number * Fix the difference between scripts and test plan * Keep priorities and examples consistent * Reduce WaitForMs time * Modify minInterval and maxInterval * Remove keepSubscriptions * Add subscribe after WaitForMs * Disable TC-SMOKECO-2.6 in darwin and regen zap --------- Co-authored-by: Hare --- .../templates/tests/ciTests.json | 2 + .../certification/Test_TC_SMOKECO_1_1.yaml | 71 +- .../certification/Test_TC_SMOKECO_2_1.yaml | 30 +- .../certification/Test_TC_SMOKECO_2_2.yaml | 58 +- .../certification/Test_TC_SMOKECO_2_3.yaml | 58 +- .../certification/Test_TC_SMOKECO_2_4.yaml | 154 +- .../certification/Test_TC_SMOKECO_2_5.yaml | 330 +-- .../certification/Test_TC_SMOKECO_2_6.yaml | 202 +- .../zap-generated/test/Commands.h | 1906 ++--------------- 9 files changed, 661 insertions(+), 2150 deletions(-) diff --git a/examples/darwin-framework-tool/templates/tests/ciTests.json b/examples/darwin-framework-tool/templates/tests/ciTests.json index 597af3c96270d8..4898f5fd8b4518 100644 --- a/examples/darwin-framework-tool/templates/tests/ciTests.json +++ b/examples/darwin-framework-tool/templates/tests/ciTests.json @@ -39,6 +39,8 @@ "Test_TC_SMOKECO_2_3", "Test_TC_SMOKECO_2_4", "Test_TC_SMOKECO_2_5", + "Disabled due to undefined properties", + "Test_TC_SMOKECO_2_6", "Disabled because the power source configuration cluster is now deprecated and not present in all-clusters", "Test_TC_PSCFG_1_1", "Test_TC_PSCFG_2_1", diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml index c9762f148a7dc1..c1f997bb3939dc 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml @@ -23,7 +23,7 @@ config: endpoint: 1 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -31,7 +31,7 @@ tests: - name: "nodeId" value: nodeId - - label: "TH reads the ClusterRevision attribute from the DUT" + - label: "Step 2: TH reads the ClusterRevision attribute from the DUT" command: "readAttribute" attribute: "ClusterRevision" response: @@ -39,7 +39,7 @@ tests: constraints: type: int16u - - label: "TH reads from the DUT the FeatureMap attribute" + - label: "Step 3a: TH reads from the DUT the FeatureMap attribute" PICS: "!SMOKECO.S.F00 && !SMOKECO.S.F01" command: "readAttribute" attribute: "FeatureMap" @@ -48,7 +48,8 @@ tests: constraints: type: bitmap32 - - label: "TH reads from the DUT the FeatureMap attribute(Smoke Alarm)" + - label: + "Step 3b: TH reads from the DUT the FeatureMap attribute(Smoke Alarm)" PICS: SMOKECO.S.F00 && !SMOKECO.S.F01 command: "readAttribute" attribute: "FeatureMap" @@ -57,7 +58,7 @@ tests: constraints: type: bitmap32 - - label: "TH reads from the DUT the FeatureMap attribute(CO Alarm)" + - label: "Step 3c: TH reads from the DUT the FeatureMap attribute(CO Alarm)" PICS: SMOKECO.S.F01 && !SMOKECO.S.F00 command: "readAttribute" attribute: "FeatureMap" @@ -67,8 +68,8 @@ tests: type: bitmap32 - label: - "TH reads from the DUT the FeatureMap attribute(Smoke Alarm & CO - Alarm)" + "Step 3d: TH reads from the DUT the FeatureMap attribute(Smoke Alarm & + CO Alarm)" PICS: SMOKECO.S.F00 && SMOKECO.S.F01 command: "readAttribute" attribute: "FeatureMap" @@ -77,16 +78,18 @@ tests: constraints: type: bitmap32 - - label: "TH reads from the DUT the AttributeList attribute" + - label: "Step 4a: TH reads from the DUT the AttributeList attribute" command: "readAttribute" attribute: "AttributeList" response: constraints: type: list - contains: [0, 3, 5, 6, 7] + contains: [0, 3, 5, 6, 7, 65528, 65529, 65531, 65532, 65533] - - label: "TH reads from the DUT the AttributeList attribute(SmokeState)" - PICS: SMOKECO.S.A0001 + - label: + "Step 4b: TH reads from the DUT the AttributeList + attribute(SmokeState)" + PICS: SMOKECO.S.A0001 && SMOKECO.S.F00 command: "readAttribute" attribute: "AttributeList" response: @@ -94,8 +97,9 @@ tests: type: list contains: [1] - - label: "TH reads from the DUT the AttributeList attribute(COState)" - PICS: SMOKECO.S.A0002 + - label: + "Step 4c: TH reads from the DUT the AttributeList attribute(COState)" + PICS: SMOKECO.S.A0002 && SMOKECO.S.F01 command: "readAttribute" attribute: "AttributeList" response: @@ -103,7 +107,9 @@ tests: type: list contains: [2] - - label: "TH reads from the DUT the AttributeList attribute(DeviceMuted)" + - label: + "Step 4d: TH reads from the DUT the AttributeList + attribute(DeviceMuted)" PICS: SMOKECO.S.A0004 command: "readAttribute" attribute: "AttributeList" @@ -113,7 +119,7 @@ tests: contains: [4] - label: - "TH reads from the DUT the AttributeList + "Step 4e: TH reads from the DUT the AttributeList attribute(InterconnectSmokeAlarm)" PICS: SMOKECO.S.A0008 command: "readAttribute" @@ -124,7 +130,7 @@ tests: contains: [8] - label: - "TH reads from the DUT the AttributeList + "Step 4f: TH reads from the DUT the AttributeList attribute(InterconnectCOAlarm)" PICS: SMOKECO.S.A0009 command: "readAttribute" @@ -135,7 +141,8 @@ tests: contains: [9] - label: - "TH reads from the DUT the AttributeList attribute(ContaminationState)" + "Step 4g: TH reads from the DUT the AttributeList + attribute(ContaminationState)" PICS: SMOKECO.S.A000a command: "readAttribute" attribute: "AttributeList" @@ -145,7 +152,7 @@ tests: contains: [10] - label: - "TH reads from the DUT the AttributeList + "Step 4h: TH reads from the DUT the AttributeList attribute(SmokeSensitivityLevel)" PICS: SMOKECO.S.A000b command: "readAttribute" @@ -155,7 +162,9 @@ tests: type: list contains: [11] - - label: "TH reads from the DUT the AttributeList attribute(ExpiryDate)" + - label: + "Step 4i: TH reads from the DUT the AttributeList + attribute(ExpiryDate)" PICS: SMOKECO.S.A000c command: "readAttribute" attribute: "AttributeList" @@ -164,7 +173,7 @@ tests: type: list contains: [12] - - label: "TH reads from the DUT the EventList attribute" + - label: "Step 5a: TH reads from the DUT the EventList attribute" PICS: PICS_EVENT_LIST_ENABLED command: "readAttribute" attribute: "EventList" @@ -173,7 +182,8 @@ tests: type: list contains: [2, 3, 4, 5, 10] - - label: "TH reads from the DUT the EventList attribute(SmokeAlarm)" + - label: + "Step 5b: TH reads from the DUT the EventList attribute(SmokeAlarm)" PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E00 command: "readAttribute" attribute: "EventList" @@ -182,7 +192,7 @@ tests: type: list contains: [0] - - label: "TH reads from the DUT the EventList attribute(COAlarm)" + - label: "Step 5c: TH reads from the DUT the EventList attribute(COAlarm)" PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E01 command: "readAttribute" attribute: "EventList" @@ -191,7 +201,8 @@ tests: type: list contains: [1] - - label: "TH reads from the DUT the EventList attribute(AlarmMuted)" + - label: + "Step 5d: TH reads from the DUT the EventList attribute(AlarmMuted)" PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E06 command: "readAttribute" attribute: "EventList" @@ -200,7 +211,7 @@ tests: type: list contains: [6] - - label: "TH reads from the DUT the EventList attribute(MuteEnded)" + - label: "Step 5e: TH reads from the DUT the EventList attribute(MuteEnded)" PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E07 command: "readAttribute" attribute: "EventList" @@ -210,7 +221,8 @@ tests: contains: [7] - label: - "TH reads from the DUT the EventList attribute(InterconnectSmokeAlarm)" + "Step 5f: TH reads from the DUT the EventList + attribute(InterconnectSmokeAlarm)" PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E08 command: "readAttribute" attribute: "EventList" @@ -220,7 +232,8 @@ tests: contains: [8] - label: - "TH reads from the DUT the EventList attribute(InterconnectCOAlarm)" + "Step 5g: TH reads from the DUT the EventList + attribute(InterconnectCOAlarm)" PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E09 command: "readAttribute" attribute: "EventList" @@ -229,7 +242,7 @@ tests: type: list contains: [9] - - label: "TH reads from the DUT the AcceptedCommandList attribute" + - label: "Step 6a: TH reads from the DUT the AcceptedCommandList attribute" PICS: "!SMOKECO.S.C00.Rsp" command: "readAttribute" attribute: "AcceptedCommandList" @@ -238,7 +251,7 @@ tests: constraints: type: list - - label: "TH reads from the DUT the AcceptedCommandList attribute" + - label: "Step 6b: TH reads from the DUT the AcceptedCommandList attribute" PICS: SMOKECO.S.C00.Rsp command: "readAttribute" attribute: "AcceptedCommandList" @@ -247,7 +260,7 @@ tests: type: list contains: [0] - - label: "TH reads from the DUT the GeneratedCommandList attribute" + - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute" command: "readAttribute" attribute: "GeneratedCommandList" response: diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_1.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_1.yaml index 5959a3d6da1dc5..27010e8b59d27f 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_1.yaml @@ -23,7 +23,7 @@ config: endpoint: 1 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -31,7 +31,7 @@ tests: - name: "nodeId" value: nodeId - - label: "TH reads from the DUT the ExpressedState attribute" + - label: "Step 2: TH reads from the DUT the ExpressedState attribute" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -41,7 +41,7 @@ tests: minValue: 0 maxValue: 8 - - label: "TH reads from the DUT the SmokeState attribute" + - label: "Step 3: TH reads from the DUT the SmokeState attribute" PICS: SMOKECO.S.A0001 command: "readAttribute" attribute: "SmokeState" @@ -51,7 +51,7 @@ tests: minValue: 0 maxValue: 2 - - label: "TH reads from the DUT the COState attribute" + - label: "Step 4: TH reads from the DUT the COState attribute" PICS: SMOKECO.S.A0002 command: "readAttribute" attribute: "COState" @@ -61,7 +61,7 @@ tests: minValue: 0 maxValue: 2 - - label: "TH reads from the DUT the BatteryAlert attribute" + - label: "Step 5: TH reads from the DUT the BatteryAlert attribute" PICS: SMOKECO.S.A0003 command: "readAttribute" attribute: "BatteryAlert" @@ -71,7 +71,7 @@ tests: minValue: 0 maxValue: 2 - - label: "TH reads from the DUT the DeviceMuted attribute" + - label: "Step 6: TH reads from the DUT the DeviceMuted attribute" PICS: SMOKECO.S.A0004 command: "readAttribute" attribute: "DeviceMuted" @@ -81,7 +81,7 @@ tests: minValue: 0 maxValue: 1 - - label: "TH reads from the DUT the TestInProgress attribute" + - label: "Step 7: TH reads from the DUT the TestInProgress attribute" PICS: SMOKECO.S.A0005 command: "readAttribute" attribute: "TestInProgress" @@ -89,7 +89,7 @@ tests: constraints: type: boolean - - label: "TH reads from the DUT the HardwareFaultAlert attribute" + - label: "Step 8: TH reads from the DUT the HardwareFaultAlert attribute" PICS: SMOKECO.S.A0006 command: "readAttribute" attribute: "HardwareFaultAlert" @@ -97,7 +97,7 @@ tests: constraints: type: boolean - - label: "TH reads from the DUT the EndOfServiceAlert attribute" + - label: "Step 9: TH reads from the DUT the EndOfServiceAlert attribute" PICS: SMOKECO.S.A0007 command: "readAttribute" attribute: "EndOfServiceAlert" @@ -107,7 +107,8 @@ tests: minValue: 0 maxValue: 1 - - label: "TH reads from the DUT the InterconnectSmokeAlarm attribute" + - label: + "Step 10: TH reads from the DUT the InterconnectSmokeAlarm attribute" PICS: SMOKECO.S.A0008 command: "readAttribute" attribute: "InterconnectSmokeAlarm" @@ -117,7 +118,7 @@ tests: minValue: 0 maxValue: 2 - - label: "TH reads from the DUT the InterconnectCOAlarm attribute" + - label: "Step 11: TH reads from the DUT the InterconnectCOAlarm attribute" PICS: SMOKECO.S.A0009 command: "readAttribute" attribute: "InterconnectCOAlarm" @@ -127,7 +128,7 @@ tests: minValue: 0 maxValue: 2 - - label: "TH reads from the DUT the ContaminationState attribute" + - label: "Step 12: TH reads from the DUT the ContaminationState attribute" PICS: SMOKECO.S.A000a command: "readAttribute" attribute: "ContaminationState" @@ -137,7 +138,8 @@ tests: minValue: 0 maxValue: 3 - - label: "TH reads from the DUT the SmokeSensitivityLevel attribute" + - label: + "Step 13: TH reads from the DUT the SmokeSensitivityLevel attribute" PICS: SMOKECO.S.A000b command: "readAttribute" attribute: "SmokeSensitivityLevel" @@ -147,7 +149,7 @@ tests: minValue: 0 maxValue: 2 - - label: "TH reads from the DUT the ExpiryDate attribute" + - label: "Step 14: TH reads from the DUT the ExpiryDate attribute" PICS: SMOKECO.S.A000c command: "readAttribute" attribute: "ExpiryDate" diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_2.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_2.yaml index 0e44017c4df7ec..7c239e0ec22c35 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_2.yaml @@ -41,7 +41,7 @@ config: defaultValue: 0 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -49,18 +49,18 @@ tests: - name: "nodeId" value: nodeId - - label: "TH subscribes to SmokeState attribute from DUT" + - label: "Step 2: TH subscribes to SmokeState attribute from DUT" PICS: SMOKECO.S.A0001 command: "subscribeAttribute" attribute: "SmokeState" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 3: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -70,8 +70,8 @@ tests: type: enum8 - label: - "TH reads TestEventTriggersEnabled attribute from General Diagnostics - Cluster" + "Step 4: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" PICS: DGGEN.S.A0008 cluster: "General Diagnostics" endpoint: 0 @@ -81,8 +81,8 @@ tests: value: 1 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 5: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Smoke Alarm Test Event" PICS: DGGEN.S.C00.Rsp @@ -97,8 +97,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_SMOKE_ALARM - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 6: TH waits for a report of SmokeState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -108,7 +108,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 7: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -117,7 +117,7 @@ tests: constraints: type: enum8 - - label: "TH reads SmokeAlarm event from DUT" + - label: "Step 8: TH reads SmokeAlarm event from DUT" PICS: SMOKECO.S.E00 command: "readEvent" event: "SmokeAlarm" @@ -125,7 +125,7 @@ tests: response: value: { AlarmSeverityLevel: 1 } - - label: "Start manually DUT self-test" + - label: "Step 9:Start manually DUT self-test" cluster: "LogCommands" PICS: PICS_USER_PROMPT && SMOKECO.M.ManuallyControlledTest command: "UserPrompt" @@ -136,7 +136,7 @@ tests: - name: "expectedValue" value: "y" - - label: "TH reads TestInProgress attribute from DUT" + - label: "Step 10: TH reads TestInProgress attribute from DUT" PICS: SMOKECO.S.A0005 command: "readAttribute" attribute: "TestInProgress" @@ -145,13 +145,13 @@ tests: constraints: type: boolean - - label: "TH sends SelfTestRequest command to DUT" + - label: "Step 11 & 12: TH sends SelfTestRequest command to DUT" PICS: SMOKECO.S.C00.Rsp command: "SelfTestRequest" response: error: BUSY - - label: "TH reads TestInProgress attribute from DUT" + - label: "Step 13: TH reads TestInProgress attribute from DUT" PICS: SMOKECO.S.A0005 command: "readAttribute" attribute: "TestInProgress" @@ -161,8 +161,8 @@ tests: type: boolean - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 14: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Critical Smoke Alarm Test Event" PICS: DGGEN.S.C00.Rsp @@ -177,8 +177,8 @@ tests: value: TEST_EVENT_TRIGGER_CRITICAL_SMOKE_ALARM - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 15: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -188,7 +188,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 16: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -197,7 +197,7 @@ tests: constraints: type: enum8 - - label: "TH reads SmokeAlarm event from DUT" + - label: "Step 17: TH reads SmokeAlarm event from DUT" PICS: SMOKECO.S.E00 command: "readEvent" event: "SmokeAlarm" @@ -206,8 +206,8 @@ tests: value: { AlarmSeverityLevel: 2 } - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 18: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Alarm Test Event Clear" PICS: DGGEN.S.C00.Rsp @@ -222,8 +222,8 @@ tests: value: TEST_EVENT_TRIGGER_SMOKE_ALARM_CLEAR - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 19: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -233,7 +233,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 20: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -242,7 +242,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 21: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_3.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_3.yaml index caad36dd80ac2e..7ce62ab407c78a 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_3.yaml @@ -40,7 +40,7 @@ config: defaultValue: 0 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -48,18 +48,18 @@ tests: - name: "nodeId" value: nodeId - - label: "TH subscribes to COState attribute from DUT" + - label: "Step 2: TH subscribes to COState attribute from DUT" PICS: SMOKECO.S.A0002 command: "subscribeAttribute" attribute: "COState" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 3: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -69,8 +69,8 @@ tests: type: enum8 - label: - "TH reads TestEventTriggersEnabled attribute from General Diagnostics - Cluster" + "Step 4: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" PICS: DGGEN.S.A0008 cluster: "General Diagnostics" endpoint: 0 @@ -80,8 +80,8 @@ tests: value: 1 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 5: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning CO Alarm Test Event" PICS: DGGEN.S.C00.Rsp @@ -96,8 +96,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_CO_ALARM - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 6: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -107,7 +107,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 7: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -116,7 +116,7 @@ tests: constraints: type: enum8 - - label: "TH reads COAlarm event from DUT" + - label: "Step 8: TH reads COAlarm event from DUT" PICS: SMOKECO.S.E01 command: "readEvent" event: "COAlarm" @@ -124,7 +124,7 @@ tests: response: value: { AlarmSeverityLevel: 1 } - - label: "Start manually DUT self-test" + - label: "Step 9: Start manually DUT self-test" cluster: "LogCommands" PICS: PICS_USER_PROMPT && SMOKECO.M.ManuallyControlledTest command: "UserPrompt" @@ -135,7 +135,7 @@ tests: - name: "expectedValue" value: "y" - - label: "TH reads TestInProgress attribute from DUT" + - label: "Step 10: TH reads TestInProgress attribute from DUT" PICS: SMOKECO.S.A0005 command: "readAttribute" attribute: "TestInProgress" @@ -144,13 +144,13 @@ tests: constraints: type: boolean - - label: "TH sends SelfTestRequest command to DUT" + - label: "Step 11 & 12: TH sends SelfTestRequest command to DUT" PICS: SMOKECO.S.C00.Rsp command: "SelfTestRequest" response: error: BUSY - - label: "TH reads TestInProgress attribute from DUT" + - label: "Step 13: TH reads TestInProgress attribute from DUT" PICS: SMOKECO.S.A0005 command: "readAttribute" attribute: "TestInProgress" @@ -160,8 +160,8 @@ tests: type: boolean - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 14: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Critical CO Alarm Test Event" PICS: DGGEN.S.C00.Rsp @@ -176,8 +176,8 @@ tests: value: TEST_EVENT_TRIGGER_CRITICAL_CO_ALARM - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 15: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -187,7 +187,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 16: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -196,7 +196,7 @@ tests: constraints: type: enum8 - - label: "TH reads COAlarm event from DUT" + - label: "Step 17: TH reads COAlarm event from DUT" PICS: SMOKECO.S.E01 command: "readEvent" event: "COAlarm" @@ -205,8 +205,8 @@ tests: value: { AlarmSeverityLevel: 2 } - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 18: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for CO Alarm Test Event Clear" PICS: DGGEN.S.C00.Rsp @@ -221,8 +221,8 @@ tests: value: TEST_EVENT_TRIGGER_CO_ALARM_CLEAR - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 19: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -232,7 +232,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 20: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -241,7 +241,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 21: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_4.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_4.yaml index 5326a83d5fe16b..29e403aa9e5fba 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_4.yaml @@ -53,7 +53,7 @@ config: defaultValue: 0 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -61,18 +61,18 @@ tests: - name: "nodeId" value: nodeId - - label: "TH subscribes to BatteryAlert attribute from DUT" + - label: "Step 2: TH subscribes to BatteryAlert attribute from DUT" PICS: SMOKECO.S.A0003 command: "subscribeAttribute" attribute: "BatteryAlert" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 3: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -82,8 +82,8 @@ tests: type: enum8 - label: - "TH reads TestEventTriggersEnabled attribute from General Diagnostics - Cluster" + "Step 4: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" PICS: DGGEN.S.A0008 cluster: "General Diagnostics" endpoint: 0 @@ -93,8 +93,8 @@ tests: value: 1 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 5: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Battery Alert Test Event" PICS: DGGEN.S.C00.Rsp @@ -109,8 +109,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_BATTERY_ALERT - label: - "TH waits for a report of BatteryAlert attribute from DUT with a - timeout of 300 seconds" + "Step 6: TH waits for a report of BatteryAlert attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0003 command: "waitForReport" attribute: "BatteryAlert" @@ -120,7 +120,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 7: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -129,7 +129,7 @@ tests: constraints: type: enum8 - - label: "TH reads LowBattery event from DUT" + - label: "Step 8: TH reads LowBattery event from DUT" PICS: SMOKECO.S.E02 command: "readEvent" event: "LowBattery" @@ -138,8 +138,8 @@ tests: value: { AlarmSeverityLevel: 1 } - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 9: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Critical Battery Alert Test Event" PICS: DGGEN.S.C00.Rsp @@ -154,8 +154,8 @@ tests: value: TEST_EVENT_TRIGGER_CRITICAL_BATTERY_ALERT - label: - "TH waits for a report of BatteryAlert attribute from DUT with a - timeout of 300 seconds" + "Step 10: TH waits for a report of BatteryAlert attribute from DUT + with a timeout of 300 seconds" PICS: SMOKECO.S.A0003 command: "waitForReport" attribute: "BatteryAlert" @@ -165,7 +165,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 11: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -174,7 +174,7 @@ tests: constraints: type: enum8 - - label: "TH reads LowBattery event from DUT" + - label: "Step 12: TH reads LowBattery event from DUT" PICS: SMOKECO.S.E02 command: "readEvent" event: "LowBattery" @@ -183,8 +183,8 @@ tests: value: { AlarmSeverityLevel: 2 } - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 13: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Battery Alert Test Event Clear" PICS: DGGEN.S.C00.Rsp @@ -199,8 +199,8 @@ tests: value: TEST_EVENT_TRIGGER_BATTERY_ALERT_CLEAR - label: - "TH waits for a report of BatteryAlert attribute from DUT with a - timeout of 300 seconds" + "Step 14: TH waits for a report of BatteryAlert attribute from DUT + with a timeout of 300 seconds" PICS: SMOKECO.S.A0003 command: "waitForReport" attribute: "BatteryAlert" @@ -210,7 +210,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 15: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -219,7 +219,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 16: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" @@ -227,20 +227,20 @@ tests: response: value: {} - - label: "TH subscribes to HardwareFaultAlert attribute from DUT" + - label: "Step 17: TH subscribes to HardwareFaultAlert attribute from DUT" PICS: SMOKECO.S.A0006 command: "subscribeAttribute" attribute: "HardwareFaultAlert" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: boolean - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 18: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Hardware Fault Alert Test Event" PICS: DGGEN.S.C00.Rsp @@ -255,8 +255,8 @@ tests: value: TEST_EVENT_TRIGGER_HARDWARE_FAULT_ALERT - label: - "TH waits for a report of HardwareFaultAlert attribute from DUT with a - timeout of 300 seconds" + "Step 19: TH waits for a report of HardwareFaultAlert attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0006 command: "waitForReport" attribute: "HardwareFaultAlert" @@ -266,7 +266,7 @@ tests: constraints: type: boolean - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 20: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -275,7 +275,7 @@ tests: constraints: type: enum8 - - label: "TH reads HardwareFault event from DUT" + - label: "Step 21: TH reads HardwareFault event from DUT" PICS: SMOKECO.S.E03 command: "readEvent" event: "HardwareFault" @@ -284,8 +284,8 @@ tests: value: {} - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 22: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Hardware Fault Alert Test Event Clear" @@ -301,8 +301,8 @@ tests: value: TEST_EVENT_TRIGGER_HARDWARE_FAULT_ALERT_CLEAR - label: - "TH waits for a report of HardwareFaultAlert attribute from DUT with a - timeout of 300 seconds" + "Step 23: TH waits for a report of HardwareFaultAlert attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0006 command: "waitForReport" attribute: "HardwareFaultAlert" @@ -312,7 +312,7 @@ tests: constraints: type: boolean - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 24: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -321,7 +321,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 25: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" @@ -329,20 +329,20 @@ tests: response: value: {} - - label: "TH subscribes to EndOfServiceAlert attribute from DUT" + - label: "Step 26: TH subscribes to EndOfServiceAlert attribute from DUT" PICS: SMOKECO.S.A0007 command: "subscribeAttribute" attribute: "EndOfServiceAlert" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 27: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for End of Service Alert Test Event" PICS: DGGEN.S.C00.Rsp @@ -357,8 +357,8 @@ tests: value: TEST_EVENT_TRIGGER_END_OF_SERVICE_ALERT - label: - "TH waits for a report of EndOfServiceAlert attribute from DUT with a - timeout of 300 seconds" + "Step 28: TH waits for a report of EndOfServiceAlert attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0007 command: "waitForReport" attribute: "EndOfServiceAlert" @@ -368,7 +368,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 29: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -377,7 +377,7 @@ tests: constraints: type: enum8 - - label: "TH reads EndOfService event from DUT" + - label: "Step 30: TH reads EndOfService event from DUT" PICS: SMOKECO.S.E04 command: "readEvent" event: "EndOfService" @@ -386,8 +386,8 @@ tests: value: {} - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 31: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for End of Service Alert Test Event Clear" @@ -403,8 +403,8 @@ tests: value: TEST_EVENT_TRIGGER_END_OF_SERVICE_ALERT_CLEAR - label: - "TH waits for a report of EndOfServiceAlert attribute from DUT with a - timeout of 300 seconds" + "Step 32: TH waits for a report of EndOfServiceAlert attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0007 command: "waitForReport" attribute: "EndOfServiceAlert" @@ -414,7 +414,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 33: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -423,7 +423,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 34: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" @@ -431,18 +431,18 @@ tests: response: value: {} - - label: "TH subscribes to TestInProgress attribute from DUT" + - label: "Step 35: TH subscribes to TestInProgress attribute from DUT" PICS: SMOKECO.S.A0005 command: "subscribeAttribute" attribute: "TestInProgress" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: boolean - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 36: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -451,7 +451,7 @@ tests: constraints: type: enum8 - - label: "Start manually DUT self-test" + - label: "Step 37: Start manually DUT self-test" cluster: "LogCommands" PICS: PICS_USER_PROMPT && SMOKECO.M.ManuallyControlledTest command: "UserPrompt" @@ -463,8 +463,8 @@ tests: value: "y" - label: - "TH waits for a report of TestInProgress attribute from DUT with a - timeout of 180 seconds" + "Step 38: TH waits for a report of TestInProgress attribute from DUT + with a timeout of 180 seconds" PICS: SMOKECO.S.A0005 command: "waitForReport" attribute: "TestInProgress" @@ -474,7 +474,7 @@ tests: constraints: type: boolean - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 39: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -484,8 +484,8 @@ tests: type: enum8 - label: - "TH waits for a report of TestInProgress attribute from DUT with a - timeout of 180 seconds" + "Step 40: TH waits for a report of TestInProgress attribute from DUT + with a timeout of 180 seconds" PICS: SMOKECO.S.A0005 command: "waitForReport" attribute: "TestInProgress" @@ -495,7 +495,7 @@ tests: constraints: type: boolean - - label: "TH reads SelfTestComplete event from DUT" + - label: "Step 41: TH reads SelfTestComplete event from DUT" PICS: SMOKECO.S.E05 command: "readEvent" event: "SelfTestComplete" @@ -503,7 +503,7 @@ tests: response: value: {} - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 42: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -512,7 +512,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 43: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" @@ -520,13 +520,13 @@ tests: response: value: {} - - label: "TH sends SelfTestRequest command to DUT" + - label: "Step 44: TH sends SelfTestRequest command to DUT" PICS: SMOKECO.S.C00.Rsp command: "SelfTestRequest" - label: - "TH waits for a report of TestInProgress attribute from DUT with a - timeout of 180 seconds" + "Step 45: TH waits for a report of TestInProgress attribute from DUT + with a timeout of 180 seconds" PICS: SMOKECO.S.A0005 command: "waitForReport" attribute: "TestInProgress" @@ -536,7 +536,7 @@ tests: constraints: type: boolean - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 46: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -546,8 +546,8 @@ tests: type: enum8 - label: - "TH waits for a report of TestInProgress attribute from DUT with a - timeout of 180 seconds" + "Step 47: TH waits for a report of TestInProgress attribute from DUT + with a timeout of 180 seconds" PICS: SMOKECO.S.A0005 command: "waitForReport" attribute: "TestInProgress" @@ -557,7 +557,7 @@ tests: constraints: type: boolean - - label: "TH reads SelfTestComplete event from DUT" + - label: "Step 48: TH reads SelfTestComplete event from DUT" PICS: SMOKECO.S.E05 command: "readEvent" event: "SelfTestComplete" @@ -565,7 +565,7 @@ tests: response: value: {} - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 49: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -574,7 +574,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 50: TH reads AllClear event from DUT" PICS: SMOKECO.S.E0a command: "readEvent" event: "AllClear" diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_5.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_5.yaml index 3607665b0c8f46..d41f1c662672e6 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_5.yaml @@ -86,7 +86,7 @@ config: defaultValue: 0 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -94,18 +94,19 @@ tests: - name: "nodeId" value: nodeId - - label: "TH subscribes to InterconnectSmokeAlarm attribute from DUT" + - label: + "Step 2: TH subscribes to InterconnectSmokeAlarm attribute from DUT" PICS: SMOKECO.S.A0008 command: "subscribeAttribute" attribute: "InterconnectSmokeAlarm" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 3: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0008 && SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -115,8 +116,8 @@ tests: type: enum8 - label: - "TH reads TestEventTriggersEnabled attribute from General Diagnostics - Cluster" + "Step 4: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" PICS: SMOKECO.S.A0008 && DGGEN.S.A0008 cluster: "General Diagnostics" endpoint: 0 @@ -126,8 +127,8 @@ tests: value: 1 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 5: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event" @@ -143,8 +144,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_SMOKE_ALARM - label: - "TH waits for a report of InterconnectSmokeAlarm attribute from DUT - with a timeout of 300 seconds" + "Step 6: TH waits for a report of InterconnectSmokeAlarm attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0008 command: "waitForReport" attribute: "InterconnectSmokeAlarm" @@ -156,7 +157,7 @@ tests: minValue: 1 maxValue: 2 - - label: "TH reads InterconnectSmokeAlarm event from DUT" + - label: "Step 7: TH reads InterconnectSmokeAlarm event from DUT" PICS: SMOKECO.S.A0008 && SMOKECO.S.E08 command: "readEvent" event: "InterconnectSmokeAlarm" @@ -164,7 +165,7 @@ tests: response: value: { AlarmSeverityLevel: interconnectSmokeAlarmSeverityLevel } - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 8: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0008 && SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -174,8 +175,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 9: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event Clear" @@ -191,8 +192,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_SMOKE_ALARM_CLEAR - label: - "TH waits for a report of InterconnectSmokeAlarm attribute from DUT - with a timeout of 300 seconds" + "Step 10: TH waits for a report of InterconnectSmokeAlarm attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0008 command: "waitForReport" attribute: "InterconnectSmokeAlarm" @@ -202,7 +203,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 11: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0008 && SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -211,7 +212,7 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" + - label: "Step 12: TH reads AllClear event from DUT" PICS: SMOKECO.S.A0008 && SMOKECO.S.E0a command: "readEvent" event: "AllClear" @@ -219,18 +220,18 @@ tests: response: value: {} - - label: "TH subscribes to InterconnectCOAlarm attribute from DUT" + - label: "Step 13: TH subscribes to InterconnectCOAlarm attribute from DUT" PICS: SMOKECO.S.A0009 command: "subscribeAttribute" attribute: "InterconnectCOAlarm" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 14: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0009 && SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -240,8 +241,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 15: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event" PICS: SMOKECO.S.A0009 && DGGEN.S.C00.Rsp @@ -256,8 +257,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_CO_ALARM - label: - "TH waits for a report of InterconnectCOAlarm attribute from DUT with - a timeout of 300 seconds" + "Step 16: TH waits for a report of InterconnectCOAlarm attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0009 command: "waitForReport" attribute: "InterconnectCOAlarm" @@ -269,7 +270,7 @@ tests: minValue: 1 maxValue: 2 - - label: "TH reads InterconnectCOAlarm event from DUT" + - label: "Step 17: TH reads InterconnectCOAlarm event from DUT" PICS: SMOKECO.S.A0009 && SMOKECO.S.E09 command: "readEvent" event: "InterconnectCOAlarm" @@ -277,7 +278,7 @@ tests: response: value: { AlarmSeverityLevel: interconnectCOAlarmSeverityLevel } - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 18: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0009 && SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -287,8 +288,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 19: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event Clear" @@ -304,8 +305,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_CO_ALARM_CLEAR - label: - "TH waits for a report of InterconnectCOAlarm attribute from DUT with - a timeout of 300 seconds" + "Step 20: TH waits for a report of InterconnectCOAlarm attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0009 command: "waitForReport" attribute: "InterconnectCOAlarm" @@ -315,7 +316,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 21: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0009 && SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -324,28 +325,28 @@ tests: constraints: type: enum8 - - label: "TH reads AllClear event from DUT" - PICS: SMOKECO.S.E0a + - label: "Step 22: TH reads AllClear event from DUT" + PICS: SMOKECO.S.A0009 && SMOKECO.S.E0a command: "readEvent" event: "AllClear" EVENT_NUMBER: EVENT_NUMBER + 4 response: value: {} - - label: "TH subscribes to ContaminationState attribute from DUT" + - label: "Step 23: TH subscribes to ContaminationState attribute from DUT" PICS: SMOKECO.S.A000a command: "subscribeAttribute" attribute: "ContaminationState" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 24: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Contamination State (High) Test Event" @@ -361,8 +362,8 @@ tests: value: TEST_EVENT_TRIGGER_CONTAMINATION_STATE_HIGH - label: - "TH waits for a report of ContaminationState attribute from DUT with a - timeout of 300 seconds" + "Step 25: TH waits for a report of ContaminationState attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000a command: "waitForReport" attribute: "ContaminationState" @@ -374,8 +375,8 @@ tests: maxValue: 3 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 26: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Contamination State Test Event Clear" @@ -391,8 +392,8 @@ tests: value: TTEST_EVENT_TRIGGER_CONTAMINATION_STATE_CLEAR - label: - "TH waits for a report of ContaminationState attribute from DUT with a - timeout of 300 seconds" + "Step 27: TH waits for a report of ContaminationState attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000a command: "waitForReport" attribute: "ContaminationState" @@ -403,8 +404,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 28: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Contamination State (Low) Test Event" @@ -420,8 +421,8 @@ tests: value: TEST_EVENT_TRIGGER_CONTAMINATION_STATE_LOW - label: - "TH waits for a report of ContaminationState attribute from DUT with a - timeout of 300 seconds" + "Step 29: TH waits for a report of ContaminationState attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000a command: "waitForReport" attribute: "ContaminationState" @@ -432,8 +433,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 30: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Contamination State Test Event Clear" @@ -449,8 +450,8 @@ tests: value: TTEST_EVENT_TRIGGER_CONTAMINATION_STATE_CLEAR - label: - "TH waits for a report of ContaminationState attribute from DUT with a - timeout of 300 seconds" + "Step 31: TH waits for a report of ContaminationState attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000a command: "waitForReport" attribute: "ContaminationState" @@ -460,20 +461,21 @@ tests: constraints: type: enum8 - - label: "TH subscribes to SmokeSensitivityLevel attribute from DUT" + - label: + "Step 32: TH subscribes to SmokeSensitivityLevel attribute from DUT" PICS: SMOKECO.S.A000b command: "subscribeAttribute" attribute: "SmokeSensitivityLevel" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 1 constraints: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 33: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Sensitivity Level (High) Test Event" @@ -489,8 +491,8 @@ tests: value: TEST_EVENT_TRIGGER_SENSITIVITY_LEVEL_HIGH - label: - "TH waits for a report of SmokeSensitivityLevel attribute from DUT - with a timeout of 300 seconds" + "Step 34: TH waits for a report of SmokeSensitivityLevel attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000b command: "waitForReport" attribute: "SmokeSensitivityLevel" @@ -501,8 +503,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 35: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Sensitivity Level Test Event Clear" @@ -518,8 +520,8 @@ tests: value: TTEST_EVENT_TRIGGER_SENSITIVITY_LEVEL_CLEAR - label: - "TH waits for a report of SmokeSensitivityLevel attribute from DUT - with a timeout of 300 seconds" + "Step 36: TH waits for a report of SmokeSensitivityLevel attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000b command: "waitForReport" attribute: "SmokeSensitivityLevel" @@ -530,8 +532,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 37: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Sensitivity Level (Low) Test Event" @@ -547,8 +549,8 @@ tests: value: TEST_EVENT_TRIGGER_SENSITIVITY_LEVEL_LOW - label: - "TH waits for a report of SmokeSensitivityLevel attribute from DUT - with a timeout of 300 seconds" + "Step 38: TH waits for a report of SmokeSensitivityLevel attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000b command: "waitForReport" attribute: "SmokeSensitivityLevel" @@ -559,8 +561,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 39: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Sensitivity Level Test Event Clear" @@ -576,8 +578,8 @@ tests: value: TTEST_EVENT_TRIGGER_SENSITIVITY_LEVEL_CLEAR - label: - "TH waits for a report of SmokeSensitivityLevel attribute from DUT - with a timeout of 300 seconds" + "Step 40: TH waits for a report of SmokeSensitivityLevel attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A000b command: "waitForReport" attribute: "SmokeSensitivityLevel" @@ -587,18 +589,18 @@ tests: constraints: type: enum8 - - label: "TH subscribes to DeviceMuted attribute from DUT" + - label: "Step 41: TH subscribes to DeviceMuted attribute from DUT" PICS: SMOKECO.S.A0004 command: "subscribeAttribute" attribute: "DeviceMuted" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH reads FeatureMap attribute(Smoke Alarm) from DUT" + - label: "Step 42: TH reads FeatureMap attribute(Smoke Alarm) from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 command: "readAttribute" attribute: "FeatureMap" @@ -607,21 +609,20 @@ tests: type: bitmap32 hasMasksSet: [0x1] - - label: "TH subscribes to SmokeState attribute from DUT" + - label: "Step 43: TH subscribes to SmokeState attribute from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.A0001 command: "subscribeAttribute" attribute: "SmokeState" - minInterval: 3 - maxInterval: 30 - keepSubscriptions: true + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 44: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Smoke Alarm Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && DGGEN.S.C00.Rsp @@ -636,8 +637,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_SMOKE_ALARM - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 45: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -647,9 +648,16 @@ tests: constraints: type: enum8 + - label: "Step 46a: TH subscribes to DeviceMuted attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 + command: "subscribeAttribute" + attribute: "DeviceMuted" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 46n: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Manual Device Mute Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && DGGEN.S.C00.Rsp @@ -664,8 +672,8 @@ tests: value: TEST_EVENT_TRIGGER_DEVICE_MUTED - label: - "TH waits for a report of DeviceMuted attribute from DUT with a - timeout of 120 seconds" + "Step 47: TH waits for a report of DeviceMuted attribute from DUT with + a timeout of 120 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 command: "waitForReport" attribute: "DeviceMuted" @@ -675,7 +683,7 @@ tests: constraints: type: enum8 - - label: "TH reads AlarmMuted event from DUT" + - label: "Step 48: TH reads AlarmMuted event from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.E06 command: "readEvent" event: "AlarmMuted" @@ -684,8 +692,8 @@ tests: value: {} - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 49: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Manual Device Mute Test Event Clear" @@ -701,8 +709,8 @@ tests: value: TEST_EVENT_TRIGGER_DEVICE_MUTED_CLEAR - label: - "TH waits for a report of DeviceMuted attribute from DUT with a - timeout of 120 seconds" + "Step 50: TH waits for a report of DeviceMuted attribute from DUT with + a timeout of 120 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 command: "waitForReport" attribute: "DeviceMuted" @@ -712,7 +720,7 @@ tests: constraints: type: enum8 - - label: "TH reads MuteEnded event from DUT" + - label: "Step 51: TH reads MuteEnded event from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.E07 command: "readEvent" event: "MuteEnded" @@ -720,9 +728,16 @@ tests: response: value: {} + - label: "Step 52a: TH subscribes to SmokeState attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.A0001 + command: "subscribeAttribute" + attribute: "SmokeState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 52b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Critical Smoke Alarm Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && DGGEN.S.C00.Rsp @@ -737,8 +752,8 @@ tests: value: TEST_EVENT_TRIGGER_CRITICAL_SMOKE_ALARM - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 53: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -749,8 +764,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 54: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Manual Device Mute Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && DGGEN.S.C00.Rsp @@ -764,17 +779,17 @@ tests: - name: "EventTrigger" value: TEST_EVENT_TRIGGER_DEVICE_MUTED - - label: "TH waits 60 Seconds" + - label: "Step 55a: TH waits 5 Seconds" PICS: "!PICS_SDK_CI_ONLY" cluster: "DelayCommands" command: "WaitForMs" arguments: values: - name: "ms" - value: 60000 + value: 5000 - - label: "TH reads DeviceMuted attribute from DUT" - PICS: SMOKECO.S.A0004 + - label: "Step 55b: TH reads DeviceMuted attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 command: "readAttribute" attribute: "DeviceMuted" response: @@ -782,9 +797,16 @@ tests: constraints: type: enum8 + - label: "Step 56a: TH subscribes to SmokeState attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.A0001 + command: "subscribeAttribute" + attribute: "SmokeState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 56b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Alarm Test Event Clear" PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && DGGEN.S.C00.Rsp @@ -799,9 +821,9 @@ tests: value: TEST_EVENT_TRIGGER_SMOKE_ALARM_CLEAR - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" - PICS: SMOKECO.S.A0004 && SMOKECO.S.A0001 && SMOKECO.S.F00 + "Step 57: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F00 && SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" timeout: 300 @@ -810,7 +832,7 @@ tests: constraints: type: enum8 - - label: "TH reads FeatureMap attribute(CO Alarm) from DUT" + - label: "Step 58: TH reads FeatureMap attribute(CO Alarm) from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 command: "readAttribute" attribute: "FeatureMap" @@ -819,21 +841,20 @@ tests: type: bitmap32 hasMasksSet: [0x2] - - label: "TH subscribes to COState attribute from DUT" + - label: "Step 59: TH subscribes to COState attribute from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.A0002 command: "subscribeAttribute" attribute: "COState" - minInterval: 3 - maxInterval: 30 - keepSubscriptions: true + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 60: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning CO Alarm Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && DGGEN.S.C00.Rsp @@ -848,8 +869,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_CO_ALARM - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 61: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -859,9 +880,16 @@ tests: constraints: type: enum8 + - label: "Step 62a: TH subscribes to DeviceMuted attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 + command: "subscribeAttribute" + attribute: "DeviceMuted" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 62b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Manual Device Mute Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && DGGEN.S.C00.Rsp @@ -876,8 +904,8 @@ tests: value: TEST_EVENT_TRIGGER_DEVICE_MUTED - label: - "TH waits for a report of DeviceMuted attribute from DUT with a - timeout of 120 seconds" + "Step 63: TH waits for a report of DeviceMuted attribute from DUT with + a timeout of 120 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 command: "waitForReport" attribute: "DeviceMuted" @@ -887,7 +915,7 @@ tests: constraints: type: enum8 - - label: "TH reads AlarmMuted event from DUT" + - label: "Step 64: TH reads AlarmMuted event from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.E06 command: "readEvent" event: "AlarmMuted" @@ -896,8 +924,8 @@ tests: value: {} - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 65: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Manual Device Mute Test Event Clear" @@ -913,8 +941,8 @@ tests: value: TEST_EVENT_TRIGGER_DEVICE_MUTED_CLEAR - label: - "TH waits for a report of DeviceMuted attribute from DUT with a - timeout of 120 seconds" + "Step 66: TH waits for a report of DeviceMuted attribute from DUT with + a timeout of 120 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 command: "waitForReport" attribute: "DeviceMuted" @@ -924,7 +952,7 @@ tests: constraints: type: enum8 - - label: "TH reads MuteEnded event from DUT" + - label: "Step 67: TH reads MuteEnded event from DUT" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.E07 command: "readEvent" event: "MuteEnded" @@ -932,9 +960,16 @@ tests: response: value: {} + - label: "Step 68a: TH subscribes to COState attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.A0002 + command: "subscribeAttribute" + attribute: "COState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 68b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Critical CO Alarm Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && DGGEN.S.C00.Rsp @@ -949,8 +984,8 @@ tests: value: TEST_EVENT_TRIGGER_CRITICAL_CO_ALARM - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 69: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -961,8 +996,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 70: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Manual Device Mute Test Event" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && DGGEN.S.C00.Rsp @@ -976,17 +1011,17 @@ tests: - name: "EventTrigger" value: TEST_EVENT_TRIGGER_DEVICE_MUTED - - label: "TH waits 60 Seconds" + - label: "Step 71a: TH waits 5 Seconds" PICS: "!PICS_SDK_CI_ONLY" cluster: "DelayCommands" command: "WaitForMs" arguments: values: - name: "ms" - value: 60000 + value: 5000 - - label: "TH reads DeviceMuted attribute from DUT" - PICS: SMOKECO.S.A0004 + - label: "Step 71b: TH reads DeviceMuted attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 command: "readAttribute" attribute: "DeviceMuted" response: @@ -994,9 +1029,16 @@ tests: constraints: type: enum8 + - label: "Step 72a: TH subscribes to COState attribute from DUT" + PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.A0002 + command: "subscribeAttribute" + attribute: "COState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 72b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for CO Alarm Test Event Clear" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && DGGEN.S.C00.Rsp @@ -1011,8 +1053,8 @@ tests: value: TEST_EVENT_TRIGGER_CO_ALARM_CLEAR - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 73: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0004 && SMOKECO.S.F01 && SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_6.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_6.yaml index 6aba1c9adf70da..870c8f5c850acb 100644 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_2_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_SMOKECO_2_6.yaml @@ -62,7 +62,7 @@ config: defaultValue: 1 HIEST_PRI_ALARM_2: type: int8u - defaultValue: 2 + defaultValue: 7 HIEST_PRI_ALARM_3: type: int8u defaultValue: 7 @@ -74,7 +74,7 @@ config: defaultValue: 3 tests: - - label: "Commission DUT to TH" + - label: "Step 1: Commission DUT to TH" cluster: "DelayCommands" command: "WaitForCommissionee" arguments: @@ -82,7 +82,7 @@ tests: - name: "nodeId" value: nodeId - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 2: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -91,68 +91,65 @@ tests: constraints: type: enum8 - - label: "TH subscribes to BatteryAlert attribute from DUT" + - label: "Step 3: TH subscribes to BatteryAlert attribute from DUT" PICS: SMOKECO.S.A0003 command: "subscribeAttribute" attribute: "BatteryAlert" - minInterval: 3 - maxInterval: 30 + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH subscribes to InterconnectSmokeAlarm attribute from DUT" + - label: + "Step 4: TH subscribes to InterconnectSmokeAlarm attribute from DUT" PICS: SMOKECO.S.A0008 command: "subscribeAttribute" attribute: "InterconnectSmokeAlarm" - minInterval: 3 - maxInterval: 30 - keepSubscriptions: true + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH subscribes to InterconnectCOAlarm attribute from DUT" + - label: "Step 5: TH subscribes to InterconnectCOAlarm attribute from DUT" PICS: SMOKECO.S.A0009 command: "subscribeAttribute" attribute: "InterconnectCOAlarm" - minInterval: 3 - maxInterval: 30 - keepSubscriptions: true + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH subscribes to COState attribute from DUT" + - label: "Step 6: TH subscribes to COState attribute from DUT" PICS: SMOKECO.S.A0002 command: "subscribeAttribute" attribute: "COState" - minInterval: 3 - maxInterval: 30 - keepSubscriptions: true + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - - label: "TH subscribes to SmokeState attribute from DUT" + - label: "Step 7: TH subscribes to SmokeState attribute from DUT" PICS: SMOKECO.S.A0001 command: "subscribeAttribute" attribute: "SmokeState" - minInterval: 3 - maxInterval: 30 - keepSubscriptions: true + minInterval: 1 + maxInterval: 900 response: value: 0 constraints: type: enum8 - label: - "TH reads TestEventTriggersEnabled attribute from General Diagnostics - Cluster" + "Step 8: TH reads TestEventTriggersEnabled attribute from General + Diagnostics Cluster" PICS: DGGEN.S.A0008 cluster: "General Diagnostics" endpoint: 0 @@ -161,9 +158,16 @@ tests: response: value: 1 + - label: "Step 9a: TH subscribes to BatteryAlert attribute from DUT" + PICS: SMOKECO.S.A0003 + command: "subscribeAttribute" + attribute: "BatteryAlert" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 9b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Battery Alert Test Event" PICS: DGGEN.S.C00.Rsp @@ -178,8 +182,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_BATTERY_ALERT - label: - "TH waits for a report of BatteryAlert attribute from DUT with a - timeout of 300 seconds" + "Step 10: TH waits for a report of BatteryAlert attribute from DUT + with a timeout of 300 seconds" PICS: SMOKECO.S.A0003 command: "waitForReport" attribute: "BatteryAlert" @@ -190,8 +194,16 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 11a: TH subscribes to InterconnectSmokeAlarm attribute from DUT" + PICS: SMOKECO.S.A0008 + command: "subscribeAttribute" + attribute: "InterconnectSmokeAlarm" + minInterval: 1 + maxInterval: 900 + + - label: + "Step 11b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event" @@ -207,8 +219,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_SMOKE_ALARM - label: - "TH waits for a report of InterconnectSmokeAlarm attribute from DUT - with a timeout of 300 seconds" + "Step 12: TH waits for a report of InterconnectSmokeAlarm attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0008 command: "waitForReport" attribute: "InterconnectSmokeAlarm" @@ -219,9 +231,16 @@ tests: minValue: 1 maxValue: 2 + - label: "Step 13a: TH subscribes to InterconnectCOAlarm attribute from DUT" + PICS: SMOKECO.S.A0009 + command: "subscribeAttribute" + attribute: "InterconnectCOAlarm" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 13b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event" PICS: SMOKECO.S.A0009 && DGGEN.S.C00.Rsp @@ -236,8 +255,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_CO_ALARM - label: - "TH waits for a report of InterconnectCOAlarm attribute from DUT with - a timeout of 300 seconds" + "Step 14: TH waits for a report of InterconnectCOAlarm attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0009 command: "waitForReport" attribute: "InterconnectCOAlarm" @@ -248,9 +267,16 @@ tests: minValue: 1 maxValue: 2 + - label: "Step 15a: TH subscribes to COState attribute from DUT" + PICS: SMOKECO.S.A0002 + command: "subscribeAttribute" + attribute: "COState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 15b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning CO Alarm Test Event" PICS: DGGEN.S.C00.Rsp @@ -265,8 +291,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_CO_ALARM - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 16: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -276,9 +302,16 @@ tests: constraints: type: enum8 + - label: "Step 17a: TH subscribes to SmokeState attribute from DUT" + PICS: SMOKECO.S.A0001 + command: "subscribeAttribute" + attribute: "SmokeState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 17b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Smoke Alarm Test Event" PICS: DGGEN.S.C00.Rsp @@ -293,8 +326,8 @@ tests: value: TEST_EVENT_TRIGGER_WARNING_SMOKE_ALARM - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 18: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -304,7 +337,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 19: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -314,8 +347,8 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 20: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Alarm Test Event Clear" PICS: DGGEN.S.C00.Rsp @@ -330,8 +363,8 @@ tests: value: TEST_EVENT_TRIGGER_SMOKE_ALARM_CLEAR - label: - "TH waits for a report of SmokeState attribute from DUT with a timeout - of 300 seconds" + "Step 21: TH waits for a report of SmokeState attribute from DUT with + a timeout of 300 seconds" PICS: SMOKECO.S.A0001 command: "waitForReport" attribute: "SmokeState" @@ -341,7 +374,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 22: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -350,9 +383,16 @@ tests: constraints: type: enum8 + - label: "Step 23a: TH subscribes to COState attribute from DUT" + PICS: SMOKECO.S.A0002 + command: "subscribeAttribute" + attribute: "COState" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 23b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for CO Alarm Test Event clear" PICS: DGGEN.S.C00.Rsp @@ -367,8 +407,8 @@ tests: value: TEST_EVENT_TRIGGER_CO_ALARM_CLEAR - label: - "TH waits for a report of COState attribute from DUT with a timeout of - 300 seconds" + "Step 24: TH waits for a report of COState attribute from DUT with a + timeout of 300 seconds" PICS: SMOKECO.S.A0002 command: "waitForReport" attribute: "COState" @@ -378,7 +418,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 25: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -387,9 +427,16 @@ tests: constraints: type: enum8 + - label: "Step 26a: TH subscribes to InterconnectCOAlarm attribute from DUT" + PICS: SMOKECO.S.A0009 + command: "subscribeAttribute" + attribute: "InterconnectCOAlarm" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 26b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event Clear" @@ -405,8 +452,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_CO_ALARM_CLEAR - label: - "TH waits for a report of InterconnectCOAlarm attribute from DUT with - a timeout of 300 seconds" + "Step 27: TH waits for a report of InterconnectCOAlarm attribute from + DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0009 command: "waitForReport" attribute: "InterconnectCOAlarm" @@ -416,7 +463,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 28: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -426,8 +473,16 @@ tests: type: enum8 - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 29a: TH subscribes to InterconnectSmokeAlarm attribute from DUT" + PICS: SMOKECO.S.A0008 + command: "subscribeAttribute" + attribute: "InterconnectSmokeAlarm" + minInterval: 1 + maxInterval: 900 + + - label: + "Step 29b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event Clear" @@ -443,8 +498,8 @@ tests: value: TEST_EVENT_TRIGGER_INTERCONNECT_SMOKE_ALARM_CLEAR - label: - "TH waits for a report of InterconnectSmokeAlarm attribute from DUT - with a timeout of 300 seconds" + "Step 30: TH waits for a report of InterconnectSmokeAlarm attribute + from DUT with a timeout of 300 seconds" PICS: SMOKECO.S.A0008 command: "waitForReport" attribute: "InterconnectSmokeAlarm" @@ -454,7 +509,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 31: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" @@ -463,9 +518,16 @@ tests: constraints: type: enum8 + - label: "Step 32a: TH subscribes to BatteryAlert attribute from DUT" + PICS: SMOKECO.S.A0003 + command: "subscribeAttribute" + attribute: "BatteryAlert" + minInterval: 1 + maxInterval: 900 + - label: - "TH sends TestEventTrigger command to General Diagnostics Cluster on - Endpoint 0 with EnableKey field set to + "Step 32b: TH sends TestEventTrigger command to General Diagnostics + Cluster on Endpoint 0 with EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Battery Alert Test Event Clear" PICS: DGGEN.S.C00.Rsp @@ -480,8 +542,8 @@ tests: value: TEST_EVENT_TRIGGER_BATTERY_ALERT_CLEAR - label: - "TH waits for a report of BatteryAlert attribute from DUT with a - timeout of 300 seconds" + "Step 33: TH waits for a report of BatteryAlert attribute from DUT + with a timeout of 300 seconds" PICS: SMOKECO.S.A0003 command: "waitForReport" attribute: "BatteryAlert" @@ -491,7 +553,7 @@ tests: constraints: type: enum8 - - label: "TH reads ExpressedState attribute from DUT" + - label: "Step 34: TH reads ExpressedState attribute from DUT" PICS: SMOKECO.S.A0000 command: "readAttribute" attribute: "ExpressedState" 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 b8c70cb2b803dc..84fbd29b40a7bb 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -195,7 +195,6 @@ class TestList : public Command { printf("Test_TC_RH_2_1\n"); printf("Test_TC_SMOKECO_1_1\n"); printf("Test_TC_SMOKECO_2_1\n"); - printf("Test_TC_SMOKECO_2_6\n"); printf("Test_TC_SWTCH_1_1\n"); printf("Test_TC_RVCOPSTATE_1_1\n"); printf("Test_TC_TMP_1_1\n"); @@ -92394,120 +92393,124 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { // incorrect mTestIndex value observed when we get the response. switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Commission DUT to TH\n"); - err = TestCommissionDutToTh_0(); + ChipLogProgress(chipTool, " ***** Test Step 0 : Step 1: Commission DUT to TH\n"); + err = TestStep1CommissionDutToTh_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : TH reads the ClusterRevision attribute from the DUT\n"); - err = TestThReadsTheClusterRevisionAttributeFromTheDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: TH reads the ClusterRevision attribute from the DUT\n"); + err = TestStep2ThReadsTheClusterRevisionAttributeFromTheDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : TH reads from the DUT the FeatureMap attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3a: TH reads from the DUT the FeatureMap attribute\n"); if (ShouldSkip("!SMOKECO.S.F00 && !SMOKECO.S.F01")) { NextTest(); return; } - err = TestThReadsFromTheDutTheFeatureMapAttribute_2(); + err = TestStep3aThReadsFromTheDutTheFeatureMapAttribute_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : TH reads from the DUT the FeatureMap attribute(Smoke Alarm)\n"); + ChipLogProgress( + chipTool, " ***** Test Step 3 : Step 3b: TH reads from the DUT the FeatureMap attribute(Smoke Alarm)\n"); if (ShouldSkip("SMOKECO.S.F00 && !SMOKECO.S.F01")) { NextTest(); return; } - err = TestThReadsFromTheDutTheFeatureMapAttributeSmokeAlarm_3(); + err = TestStep3bThReadsFromTheDutTheFeatureMapAttributeSmokeAlarm_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : TH reads from the DUT the FeatureMap attribute(CO Alarm)\n"); + ChipLogProgress(chipTool, " ***** Test Step 4 : Step 3c: TH reads from the DUT the FeatureMap attribute(CO Alarm)\n"); if (ShouldSkip("SMOKECO.S.F01 && !SMOKECO.S.F00")) { NextTest(); return; } - err = TestThReadsFromTheDutTheFeatureMapAttributeCOAlarm_4(); + err = TestStep3cThReadsFromTheDutTheFeatureMapAttributeCOAlarm_4(); break; case 5: ChipLogProgress( - chipTool, " ***** Test Step 5 : TH reads from the DUT the FeatureMap attribute(Smoke Alarm & CO Alarm)\n"); + chipTool, " ***** Test Step 5 : Step 3d: TH reads from the DUT the FeatureMap attribute(Smoke Alarm & CO Alarm)\n"); if (ShouldSkip("SMOKECO.S.F00 && SMOKECO.S.F01")) { NextTest(); return; } - err = TestThReadsFromTheDutTheFeatureMapAttributeSmokeAlarmCoAlarm_5(); + err = TestStep3dThReadsFromTheDutTheFeatureMapAttributeSmokeAlarmCoAlarm_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : TH reads from the DUT the AttributeList attribute\n"); - err = TestThReadsFromTheDutTheAttributeListAttribute_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Step 4a: TH reads from the DUT the AttributeList attribute\n"); + err = TestStep4aThReadsFromTheDutTheAttributeListAttribute_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : TH reads from the DUT the AttributeList attribute(SmokeState)\n"); - if (ShouldSkip("SMOKECO.S.A0001")) { + ChipLogProgress( + chipTool, " ***** Test Step 7 : Step 4b: TH reads from the DUT the AttributeList attribute(SmokeState)\n"); + if (ShouldSkip("SMOKECO.S.A0001 && SMOKECO.S.F00")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeSmokeState_7(); + err = TestStep4bThReadsFromTheDutTheAttributeListAttributeSmokeState_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : TH reads from the DUT the AttributeList attribute(COState)\n"); - if (ShouldSkip("SMOKECO.S.A0002")) { + ChipLogProgress(chipTool, " ***** Test Step 8 : Step 4c: TH reads from the DUT the AttributeList attribute(COState)\n"); + if (ShouldSkip("SMOKECO.S.A0002 && SMOKECO.S.F01")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeCOState_8(); + err = TestStep4cThReadsFromTheDutTheAttributeListAttributeCOState_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : TH reads from the DUT the AttributeList attribute(DeviceMuted)\n"); + ChipLogProgress( + chipTool, " ***** Test Step 9 : Step 4d: TH reads from the DUT the AttributeList attribute(DeviceMuted)\n"); if (ShouldSkip("SMOKECO.S.A0004")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeDeviceMuted_9(); + err = TestStep4dThReadsFromTheDutTheAttributeListAttributeDeviceMuted_9(); break; case 10: - ChipLogProgress( - chipTool, " ***** Test Step 10 : TH reads from the DUT the AttributeList attribute(InterconnectSmokeAlarm)\n"); + ChipLogProgress(chipTool, + " ***** Test Step 10 : Step 4e: TH reads from the DUT the AttributeList attribute(InterconnectSmokeAlarm)\n"); if (ShouldSkip("SMOKECO.S.A0008")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeInterconnectSmokeAlarm_10(); + err = TestStep4eThReadsFromTheDutTheAttributeListAttributeInterconnectSmokeAlarm_10(); break; case 11: - ChipLogProgress( - chipTool, " ***** Test Step 11 : TH reads from the DUT the AttributeList attribute(InterconnectCOAlarm)\n"); + ChipLogProgress(chipTool, + " ***** Test Step 11 : Step 4f: TH reads from the DUT the AttributeList attribute(InterconnectCOAlarm)\n"); if (ShouldSkip("SMOKECO.S.A0009")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeInterconnectCOAlarm_11(); + err = TestStep4fThReadsFromTheDutTheAttributeListAttributeInterconnectCOAlarm_11(); break; case 12: ChipLogProgress( - chipTool, " ***** Test Step 12 : TH reads from the DUT the AttributeList attribute(ContaminationState)\n"); + chipTool, " ***** Test Step 12 : Step 4g: TH reads from the DUT the AttributeList attribute(ContaminationState)\n"); if (ShouldSkip("SMOKECO.S.A000a")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeContaminationState_12(); + err = TestStep4gThReadsFromTheDutTheAttributeListAttributeContaminationState_12(); break; case 13: - ChipLogProgress( - chipTool, " ***** Test Step 13 : TH reads from the DUT the AttributeList attribute(SmokeSensitivityLevel)\n"); + ChipLogProgress(chipTool, + " ***** Test Step 13 : Step 4h: TH reads from the DUT the AttributeList attribute(SmokeSensitivityLevel)\n"); if (ShouldSkip("SMOKECO.S.A000b")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeSmokeSensitivityLevel_13(); + err = TestStep4hThReadsFromTheDutTheAttributeListAttributeSmokeSensitivityLevel_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : TH reads from the DUT the AttributeList attribute(ExpiryDate)\n"); + ChipLogProgress( + chipTool, " ***** Test Step 14 : Step 4i: TH reads from the DUT the AttributeList attribute(ExpiryDate)\n"); if (ShouldSkip("SMOKECO.S.A000c")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAttributeListAttributeExpiryDate_14(); + err = TestStep4iThReadsFromTheDutTheAttributeListAttributeExpiryDate_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : TH reads from the DUT the EventList attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 15 : Step 5a: TH reads from the DUT the EventList attribute\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED")) { NextTest(); return; @@ -92515,7 +92518,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { NextTest(); return; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : TH reads from the DUT the EventList attribute(SmokeAlarm)\n"); + ChipLogProgress(chipTool, " ***** Test Step 16 : Step 5b: TH reads from the DUT the EventList attribute(SmokeAlarm)\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED && SMOKECO.S.E00")) { NextTest(); return; @@ -92523,7 +92526,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { NextTest(); return; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : TH reads from the DUT the EventList attribute(COAlarm)\n"); + ChipLogProgress(chipTool, " ***** Test Step 17 : Step 5c: TH reads from the DUT the EventList attribute(COAlarm)\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED && SMOKECO.S.E01")) { NextTest(); return; @@ -92531,7 +92534,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { NextTest(); return; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : TH reads from the DUT the EventList attribute(AlarmMuted)\n"); + ChipLogProgress(chipTool, " ***** Test Step 18 : Step 5d: TH reads from the DUT the EventList attribute(AlarmMuted)\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED && SMOKECO.S.E06")) { NextTest(); return; @@ -92539,7 +92542,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { NextTest(); return; case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : TH reads from the DUT the EventList attribute(MuteEnded)\n"); + ChipLogProgress(chipTool, " ***** Test Step 19 : Step 5e: TH reads from the DUT the EventList attribute(MuteEnded)\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED && SMOKECO.S.E07")) { NextTest(); return; @@ -92548,7 +92551,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return; case 20: ChipLogProgress( - chipTool, " ***** Test Step 20 : TH reads from the DUT the EventList attribute(InterconnectSmokeAlarm)\n"); + chipTool, " ***** Test Step 20 : Step 5f: TH reads from the DUT the EventList attribute(InterconnectSmokeAlarm)\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED && SMOKECO.S.E08")) { NextTest(); return; @@ -92556,7 +92559,8 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { NextTest(); return; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : TH reads from the DUT the EventList attribute(InterconnectCOAlarm)\n"); + ChipLogProgress( + chipTool, " ***** Test Step 21 : Step 5g: TH reads from the DUT the EventList attribute(InterconnectCOAlarm)\n"); if (ShouldSkip("PICS_EVENT_LIST_ENABLED && SMOKECO.S.E09")) { NextTest(); return; @@ -92564,24 +92568,24 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { NextTest(); return; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : TH reads from the DUT the AcceptedCommandList attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 22 : Step 6a: TH reads from the DUT the AcceptedCommandList attribute\n"); if (ShouldSkip("!SMOKECO.S.C00.Rsp")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAcceptedCommandListAttribute_22(); + err = TestStep6aThReadsFromTheDutTheAcceptedCommandListAttribute_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : TH reads from the DUT the AcceptedCommandList attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 23 : Step 6b: TH reads from the DUT the AcceptedCommandList attribute\n"); if (ShouldSkip("SMOKECO.S.C00.Rsp")) { NextTest(); return; } - err = TestThReadsFromTheDutTheAcceptedCommandListAttribute_23(); + err = TestStep6bThReadsFromTheDutTheAcceptedCommandListAttribute_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : TH reads from the DUT the GeneratedCommandList attribute\n"); - err = TestThReadsFromTheDutTheGeneratedCommandListAttribute_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Step 7: TH reads from the DUT the GeneratedCommandList attribute\n"); + err = TestStep7ThReadsFromTheDutTheGeneratedCommandListAttribute_24(); break; } @@ -92689,7 +92693,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { chip::Optional mEndpoint; chip::Optional mTimeout; - CHIP_ERROR TestCommissionDutToTh_0() + CHIP_ERROR TestStep1CommissionDutToTh_0() { chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; @@ -92697,7 +92701,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() + CHIP_ERROR TestStep2ThReadsTheClusterRevisionAttributeFromTheDut_1() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92705,7 +92709,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads the ClusterRevision attribute from the DUT Error: %@", err); + NSLog(@"Step 2: TH reads the ClusterRevision attribute from the DUT Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92721,7 +92725,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheFeatureMapAttribute_2() + CHIP_ERROR TestStep3aThReadsFromTheDutTheFeatureMapAttribute_2() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92729,7 +92733,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the FeatureMap attribute Error: %@", err); + NSLog(@"Step 3a: TH reads from the DUT the FeatureMap attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92745,7 +92749,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheFeatureMapAttributeSmokeAlarm_3() + CHIP_ERROR TestStep3bThReadsFromTheDutTheFeatureMapAttributeSmokeAlarm_3() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92753,7 +92757,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the FeatureMap attribute(Smoke Alarm) Error: %@", err); + NSLog(@"Step 3b: TH reads from the DUT the FeatureMap attribute(Smoke Alarm) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92769,7 +92773,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheFeatureMapAttributeCOAlarm_4() + CHIP_ERROR TestStep3cThReadsFromTheDutTheFeatureMapAttributeCOAlarm_4() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92777,7 +92781,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the FeatureMap attribute(CO Alarm) Error: %@", err); + NSLog(@"Step 3c: TH reads from the DUT the FeatureMap attribute(CO Alarm) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92793,7 +92797,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheFeatureMapAttributeSmokeAlarmCoAlarm_5() + CHIP_ERROR TestStep3dThReadsFromTheDutTheFeatureMapAttributeSmokeAlarmCoAlarm_5() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92801,7 +92805,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the FeatureMap attribute(Smoke Alarm & CO Alarm) Error: %@", err); + NSLog(@"Step 3d: TH reads from the DUT the FeatureMap attribute(Smoke Alarm & CO Alarm) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92817,7 +92821,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttribute_6() + CHIP_ERROR TestStep4aThReadsFromTheDutTheAttributeListAttribute_6() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92825,7 +92829,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute Error: %@", err); + NSLog(@"Step 4a: TH reads from the DUT the AttributeList attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92835,6 +92839,11 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturn(CheckConstraintContains("attributeList", value, 5UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 6UL)); VerifyOrReturn(CheckConstraintContains("attributeList", value, 7UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65528UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65529UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65531UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65532UL)); + VerifyOrReturn(CheckConstraintContains("attributeList", value, 65533UL)); NextTest(); }]; @@ -92842,7 +92851,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeSmokeState_7() + CHIP_ERROR TestStep4bThReadsFromTheDutTheAttributeListAttributeSmokeState_7() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92850,7 +92859,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(SmokeState) Error: %@", err); + NSLog(@"Step 4b: TH reads from the DUT the AttributeList attribute(SmokeState) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92863,7 +92872,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeCOState_8() + CHIP_ERROR TestStep4cThReadsFromTheDutTheAttributeListAttributeCOState_8() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92871,7 +92880,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(COState) Error: %@", err); + NSLog(@"Step 4c: TH reads from the DUT the AttributeList attribute(COState) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92884,7 +92893,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeDeviceMuted_9() + CHIP_ERROR TestStep4dThReadsFromTheDutTheAttributeListAttributeDeviceMuted_9() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92892,7 +92901,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(DeviceMuted) Error: %@", err); + NSLog(@"Step 4d: TH reads from the DUT the AttributeList attribute(DeviceMuted) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92905,7 +92914,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeInterconnectSmokeAlarm_10() + CHIP_ERROR TestStep4eThReadsFromTheDutTheAttributeListAttributeInterconnectSmokeAlarm_10() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92913,7 +92922,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(InterconnectSmokeAlarm) Error: %@", err); + NSLog(@"Step 4e: TH reads from the DUT the AttributeList attribute(InterconnectSmokeAlarm) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92926,7 +92935,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeInterconnectCOAlarm_11() + CHIP_ERROR TestStep4fThReadsFromTheDutTheAttributeListAttributeInterconnectCOAlarm_11() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92934,7 +92943,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(InterconnectCOAlarm) Error: %@", err); + NSLog(@"Step 4f: TH reads from the DUT the AttributeList attribute(InterconnectCOAlarm) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92947,7 +92956,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeContaminationState_12() + CHIP_ERROR TestStep4gThReadsFromTheDutTheAttributeListAttributeContaminationState_12() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92955,7 +92964,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(ContaminationState) Error: %@", err); + NSLog(@"Step 4g: TH reads from the DUT the AttributeList attribute(ContaminationState) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92968,7 +92977,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeSmokeSensitivityLevel_13() + CHIP_ERROR TestStep4hThReadsFromTheDutTheAttributeListAttributeSmokeSensitivityLevel_13() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92976,7 +92985,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(SmokeSensitivityLevel) Error: %@", err); + NSLog(@"Step 4h: TH reads from the DUT the AttributeList attribute(SmokeSensitivityLevel) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -92989,7 +92998,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAttributeListAttributeExpiryDate_14() + CHIP_ERROR TestStep4iThReadsFromTheDutTheAttributeListAttributeExpiryDate_14() { MTRBaseDevice * device = GetDevice("alpha"); @@ -92997,7 +93006,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AttributeList attribute(ExpiryDate) Error: %@", err); + NSLog(@"Step 4i: TH reads from the DUT the AttributeList attribute(ExpiryDate) Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93010,7 +93019,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAcceptedCommandListAttribute_22() + CHIP_ERROR TestStep6aThReadsFromTheDutTheAcceptedCommandListAttribute_22() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93018,7 +93027,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AcceptedCommandList attribute Error: %@", err); + NSLog(@"Step 6a: TH reads from the DUT the AcceptedCommandList attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93034,7 +93043,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheAcceptedCommandListAttribute_23() + CHIP_ERROR TestStep6bThReadsFromTheDutTheAcceptedCommandListAttribute_23() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93042,7 +93051,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the AcceptedCommandList attribute Error: %@", err); + NSLog(@"Step 6b: TH reads from the DUT the AcceptedCommandList attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93055,7 +93064,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheGeneratedCommandListAttribute_24() + CHIP_ERROR TestStep7ThReadsFromTheDutTheGeneratedCommandListAttribute_24() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93063,7 +93072,7 @@ class Test_TC_SMOKECO_1_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the GeneratedCommandList attribute Error: %@", err); + NSLog(@"Step 7: TH reads from the DUT the GeneratedCommandList attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93119,112 +93128,112 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { // incorrect mTestIndex value observed when we get the response. switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Commission DUT to TH\n"); - err = TestCommissionDutToTh_0(); + ChipLogProgress(chipTool, " ***** Test Step 0 : Step 1: Commission DUT to TH\n"); + err = TestStep1CommissionDutToTh_0(); break; case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : TH reads from the DUT the ExpressedState attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 1 : Step 2: TH reads from the DUT the ExpressedState attribute\n"); if (ShouldSkip("SMOKECO.S.A0000")) { NextTest(); return; } - err = TestThReadsFromTheDutTheExpressedStateAttribute_1(); + err = TestStep2ThReadsFromTheDutTheExpressedStateAttribute_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : TH reads from the DUT the SmokeState attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 2 : Step 3: TH reads from the DUT the SmokeState attribute\n"); if (ShouldSkip("SMOKECO.S.A0001")) { NextTest(); return; } - err = TestThReadsFromTheDutTheSmokeStateAttribute_2(); + err = TestStep3ThReadsFromTheDutTheSmokeStateAttribute_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : TH reads from the DUT the COState attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 3 : Step 4: TH reads from the DUT the COState attribute\n"); if (ShouldSkip("SMOKECO.S.A0002")) { NextTest(); return; } - err = TestThReadsFromTheDutTheCOStateAttribute_3(); + err = TestStep4ThReadsFromTheDutTheCOStateAttribute_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : TH reads from the DUT the BatteryAlert attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 4 : Step 5: TH reads from the DUT the BatteryAlert attribute\n"); if (ShouldSkip("SMOKECO.S.A0003")) { NextTest(); return; } - err = TestThReadsFromTheDutTheBatteryAlertAttribute_4(); + err = TestStep5ThReadsFromTheDutTheBatteryAlertAttribute_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : TH reads from the DUT the DeviceMuted attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 5 : Step 6: TH reads from the DUT the DeviceMuted attribute\n"); if (ShouldSkip("SMOKECO.S.A0004")) { NextTest(); return; } - err = TestThReadsFromTheDutTheDeviceMutedAttribute_5(); + err = TestStep6ThReadsFromTheDutTheDeviceMutedAttribute_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : TH reads from the DUT the TestInProgress attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 6 : Step 7: TH reads from the DUT the TestInProgress attribute\n"); if (ShouldSkip("SMOKECO.S.A0005")) { NextTest(); return; } - err = TestThReadsFromTheDutTheTestInProgressAttribute_6(); + err = TestStep7ThReadsFromTheDutTheTestInProgressAttribute_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : TH reads from the DUT the HardwareFaultAlert attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 7 : Step 8: TH reads from the DUT the HardwareFaultAlert attribute\n"); if (ShouldSkip("SMOKECO.S.A0006")) { NextTest(); return; } - err = TestThReadsFromTheDutTheHardwareFaultAlertAttribute_7(); + err = TestStep8ThReadsFromTheDutTheHardwareFaultAlertAttribute_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : TH reads from the DUT the EndOfServiceAlert attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 8 : Step 9: TH reads from the DUT the EndOfServiceAlert attribute\n"); if (ShouldSkip("SMOKECO.S.A0007")) { NextTest(); return; } - err = TestThReadsFromTheDutTheEndOfServiceAlertAttribute_8(); + err = TestStep9ThReadsFromTheDutTheEndOfServiceAlertAttribute_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : TH reads from the DUT the InterconnectSmokeAlarm attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 9 : Step 10: TH reads from the DUT the InterconnectSmokeAlarm attribute\n"); if (ShouldSkip("SMOKECO.S.A0008")) { NextTest(); return; } - err = TestThReadsFromTheDutTheInterconnectSmokeAlarmAttribute_9(); + err = TestStep10ThReadsFromTheDutTheInterconnectSmokeAlarmAttribute_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : TH reads from the DUT the InterconnectCOAlarm attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 10 : Step 11: TH reads from the DUT the InterconnectCOAlarm attribute\n"); if (ShouldSkip("SMOKECO.S.A0009")) { NextTest(); return; } - err = TestThReadsFromTheDutTheInterconnectCOAlarmAttribute_10(); + err = TestStep11ThReadsFromTheDutTheInterconnectCOAlarmAttribute_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : TH reads from the DUT the ContaminationState attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 11 : Step 12: TH reads from the DUT the ContaminationState attribute\n"); if (ShouldSkip("SMOKECO.S.A000a")) { NextTest(); return; } - err = TestThReadsFromTheDutTheContaminationStateAttribute_11(); + err = TestStep12ThReadsFromTheDutTheContaminationStateAttribute_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : TH reads from the DUT the SmokeSensitivityLevel attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 12 : Step 13: TH reads from the DUT the SmokeSensitivityLevel attribute\n"); if (ShouldSkip("SMOKECO.S.A000b")) { NextTest(); return; } - err = TestThReadsFromTheDutTheSmokeSensitivityLevelAttribute_12(); + err = TestStep13ThReadsFromTheDutTheSmokeSensitivityLevelAttribute_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : TH reads from the DUT the ExpiryDate attribute\n"); + ChipLogProgress(chipTool, " ***** Test Step 13 : Step 14: TH reads from the DUT the ExpiryDate attribute\n"); if (ShouldSkip("SMOKECO.S.A000c")) { NextTest(); return; } - err = TestThReadsFromTheDutTheExpiryDateAttribute_13(); + err = TestStep14ThReadsFromTheDutTheExpiryDateAttribute_13(); break; } @@ -93299,7 +93308,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { chip::Optional mEndpoint; chip::Optional mTimeout; - CHIP_ERROR TestCommissionDutToTh_0() + CHIP_ERROR TestStep1CommissionDutToTh_0() { chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; @@ -93307,7 +93316,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return WaitForCommissionee("alpha", value); } - CHIP_ERROR TestThReadsFromTheDutTheExpressedStateAttribute_1() + CHIP_ERROR TestStep2ThReadsFromTheDutTheExpressedStateAttribute_1() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93315,7 +93324,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the ExpressedState attribute Error: %@", err); + NSLog(@"Step 2: TH reads from the DUT the ExpressedState attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93329,7 +93338,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheSmokeStateAttribute_2() + CHIP_ERROR TestStep3ThReadsFromTheDutTheSmokeStateAttribute_2() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93337,7 +93346,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSmokeStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the SmokeState attribute Error: %@", err); + NSLog(@"Step 3: TH reads from the DUT the SmokeState attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93351,7 +93360,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheCOStateAttribute_3() + CHIP_ERROR TestStep4ThReadsFromTheDutTheCOStateAttribute_3() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93359,7 +93368,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCOStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the COState attribute Error: %@", err); + NSLog(@"Step 4: TH reads from the DUT the COState attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93373,7 +93382,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheBatteryAlertAttribute_4() + CHIP_ERROR TestStep5ThReadsFromTheDutTheBatteryAlertAttribute_4() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93381,7 +93390,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryAlertWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the BatteryAlert attribute Error: %@", err); + NSLog(@"Step 5: TH reads from the DUT the BatteryAlert attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93395,7 +93404,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheDeviceMutedAttribute_5() + CHIP_ERROR TestStep6ThReadsFromTheDutTheDeviceMutedAttribute_5() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93403,7 +93412,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDeviceMutedWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the DeviceMuted attribute Error: %@", err); + NSLog(@"Step 6: TH reads from the DUT the DeviceMuted attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93417,7 +93426,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheTestInProgressAttribute_6() + CHIP_ERROR TestStep7ThReadsFromTheDutTheTestInProgressAttribute_6() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93425,7 +93434,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTestInProgressWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the TestInProgress attribute Error: %@", err); + NSLog(@"Step 7: TH reads from the DUT the TestInProgress attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93436,7 +93445,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheHardwareFaultAlertAttribute_7() + CHIP_ERROR TestStep8ThReadsFromTheDutTheHardwareFaultAlertAttribute_7() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93444,7 +93453,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeHardwareFaultAlertWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the HardwareFaultAlert attribute Error: %@", err); + NSLog(@"Step 8: TH reads from the DUT the HardwareFaultAlert attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93455,7 +93464,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheEndOfServiceAlertAttribute_8() + CHIP_ERROR TestStep9ThReadsFromTheDutTheEndOfServiceAlertAttribute_8() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93463,7 +93472,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEndOfServiceAlertWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the EndOfServiceAlert attribute Error: %@", err); + NSLog(@"Step 9: TH reads from the DUT the EndOfServiceAlert attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93477,7 +93486,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheInterconnectSmokeAlarmAttribute_9() + CHIP_ERROR TestStep10ThReadsFromTheDutTheInterconnectSmokeAlarmAttribute_9() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93485,7 +93494,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInterconnectSmokeAlarmWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the InterconnectSmokeAlarm attribute Error: %@", err); + NSLog(@"Step 10: TH reads from the DUT the InterconnectSmokeAlarm attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93499,7 +93508,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheInterconnectCOAlarmAttribute_10() + CHIP_ERROR TestStep11ThReadsFromTheDutTheInterconnectCOAlarmAttribute_10() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93507,7 +93516,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInterconnectCOAlarmWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the InterconnectCOAlarm attribute Error: %@", err); + NSLog(@"Step 11: TH reads from the DUT the InterconnectCOAlarm attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93521,7 +93530,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheContaminationStateAttribute_11() + CHIP_ERROR TestStep12ThReadsFromTheDutTheContaminationStateAttribute_11() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93529,7 +93538,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeContaminationStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the ContaminationState attribute Error: %@", err); + NSLog(@"Step 12: TH reads from the DUT the ContaminationState attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93543,7 +93552,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheSmokeSensitivityLevelAttribute_12() + CHIP_ERROR TestStep13ThReadsFromTheDutTheSmokeSensitivityLevelAttribute_12() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93551,7 +93560,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSmokeSensitivityLevelWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the SmokeSensitivityLevel attribute Error: %@", err); + NSLog(@"Step 13: TH reads from the DUT the SmokeSensitivityLevel attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93565,7 +93574,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR TestThReadsFromTheDutTheExpiryDateAttribute_13() + CHIP_ERROR TestStep14ThReadsFromTheDutTheExpiryDateAttribute_13() { MTRBaseDevice * device = GetDevice("alpha"); @@ -93573,7 +93582,7 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeExpiryDateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads from the DUT the ExpiryDate attribute Error: %@", err); + NSLog(@"Step 14: TH reads from the DUT the ExpiryDate attribute Error: %@", err); VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); @@ -93585,1624 +93594,6 @@ class Test_TC_SMOKECO_2_1 : public TestCommandBridge { } }; -class Test_TC_SMOKECO_2_6 : public TestCommandBridge { -public: - // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced - Test_TC_SMOKECO_2_6() - : TestCommandBridge("Test_TC_SMOKECO_2_6") - , mTestIndex(0) - { - AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); - AddArgument("cluster", &mCluster); - AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); - AddArgument("timeout", 0, UINT16_MAX, &mTimeout); - AddArgument("TEST_EVENT_TRIGGER_KEY", &mTestEventTriggerKey); - AddArgument("TEST_EVENT_TRIGGER_WARNING_SMOKE_ALARM", 0, UINT64_MAX, &mTestEventTriggerWarningSmokeAlarm); - AddArgument("TEST_EVENT_TRIGGER_SMOKE_ALARM_CLEAR", 0, UINT64_MAX, &mTestEventTriggerSmokeAlarmClear); - AddArgument("TEST_EVENT_TRIGGER_WARNING_CO_ALARM", 0, UINT64_MAX, &mTestEventTriggerWarningCoAlarm); - AddArgument("TEST_EVENT_TRIGGER_CO_ALARM_CLEAR", 0, UINT64_MAX, &mTestEventTriggerCoAlarmClear); - AddArgument("TEST_EVENT_TRIGGER_WARNING_BATTERY_ALERT", 0, UINT64_MAX, &mTestEventTriggerWarningBatteryAlert); - AddArgument("TEST_EVENT_TRIGGER_BATTERY_ALERT_CLEAR", 0, UINT64_MAX, &mTestEventTriggerBatteryAlertClear); - AddArgument("TEST_EVENT_TRIGGER_INTERCONNECT_SMOKE_ALARM", 0, UINT64_MAX, &mTestEventTriggerInterconnectSmokeAlarm); - AddArgument( - "TEST_EVENT_TRIGGER_INTERCONNECT_SMOKE_ALARM_CLEAR", 0, UINT64_MAX, &mTestEventTriggerInterconnectSmokeAlarmClear); - AddArgument("TEST_EVENT_TRIGGER_INTERCONNECT_CO_ALARM", 0, UINT64_MAX, &mTestEventTriggerInterconnectCoAlarm); - AddArgument("TEST_EVENT_TRIGGER_INTERCONNECT_CO_ALARM_CLEAR", 0, UINT64_MAX, &mTestEventTriggerInterconnectCoAlarmClear); - AddArgument("HIEST_PRI_ALARM", 0, UINT8_MAX, &mHiestPriAlarm); - AddArgument("HIEST_PRI_ALARM_2", 0, UINT8_MAX, &mHiestPriAlarm2); - AddArgument("HIEST_PRI_ALARM_3", 0, UINT8_MAX, &mHiestPriAlarm3); - AddArgument("HIEST_PRI_ALARM_4", 0, UINT8_MAX, &mHiestPriAlarm4); - AddArgument("HIEST_PRI_ALARM_5", 0, UINT8_MAX, &mHiestPriAlarm5); - } - // NOLINTEND(clang-analyzer-nullability.NullPassedToNonnull) - - ~Test_TC_SMOKECO_2_6() {} - - /////////// TestCommand Interface ///////// - void NextTest() override - { - CHIP_ERROR err = CHIP_NO_ERROR; - - if (0 == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Start: Test_TC_SMOKECO_2_6\n"); - } - - if (mTestCount == mTestIndex) { - ChipLogProgress(chipTool, " **** Test Complete: Test_TC_SMOKECO_2_6\n"); - SetCommandExitStatus(CHIP_NO_ERROR); - return; - } - - Wait(); - - // Ensure we increment mTestIndex before we start running the relevant - // command. That way if we lose the timeslice after we send the message - // but before our function call returns, we won't end up with an - // incorrect mTestIndex value observed when we get the response. - switch (mTestIndex++) { - case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Commission DUT to TH\n"); - err = TestCommissionDutToTh_0(); - break; - case 1: - ChipLogProgress(chipTool, " ***** Test Step 1 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_1(); - break; - case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Report: TH subscribes to BatteryAlert attribute from DUT\n"); - err = TestReportThSubscribesToBatteryAlertAttributeFromDut_2(); - break; - case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : TH subscribes to BatteryAlert attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0003")) { - NextTest(); - return; - } - err = TestThSubscribesToBatteryAlertAttributeFromDut_3(); - break; - case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Report: TH subscribes to InterconnectSmokeAlarm attribute from DUT\n"); - err = TestReportThSubscribesToInterconnectSmokeAlarmAttributeFromDut_4(); - break; - case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : TH subscribes to InterconnectSmokeAlarm attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0008")) { - NextTest(); - return; - } - err = TestThSubscribesToInterconnectSmokeAlarmAttributeFromDut_5(); - break; - case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Report: TH subscribes to InterconnectCOAlarm attribute from DUT\n"); - err = TestReportThSubscribesToInterconnectCOAlarmAttributeFromDut_6(); - break; - case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : TH subscribes to InterconnectCOAlarm attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0009")) { - NextTest(); - return; - } - err = TestThSubscribesToInterconnectCOAlarmAttributeFromDut_7(); - break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Report: TH subscribes to COState attribute from DUT\n"); - err = TestReportThSubscribesToCOStateAttributeFromDut_8(); - break; - case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : TH subscribes to COState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0002")) { - NextTest(); - return; - } - err = TestThSubscribesToCOStateAttributeFromDut_9(); - break; - case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Report: TH subscribes to SmokeState attribute from DUT\n"); - err = TestReportThSubscribesToSmokeStateAttributeFromDut_10(); - break; - case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : TH subscribes to SmokeState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0001")) { - NextTest(); - return; - } - err = TestThSubscribesToSmokeStateAttributeFromDut_11(); - break; - case 12: - ChipLogProgress( - chipTool, " ***** Test Step 12 : TH reads TestEventTriggersEnabled attribute from General Diagnostics Cluster\n"); - if (ShouldSkip("DGGEN.S.A0008")) { - NextTest(); - return; - } - err = TestThReadsTestEventTriggersEnabledAttributeFromGeneralDiagnosticsCluster_12(); - break; - case 13: - ChipLogProgress(chipTool, - " ***** Test Step 13 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Battery Alert Test Event\n"); - if (ShouldSkip("DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForWarningBatteryAlertTestEvent_13(); - break; - case 14: - ChipLogProgress(chipTool, - " ***** Test Step 14 : TH waits for a report of BatteryAlert attribute from DUT with a timeout of 300 seconds\n"); - if (ShouldSkip("SMOKECO.S.A0003")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfBatteryAlertAttributeFromDutWithATimeoutOf300Seconds_14(); - break; - case 15: - ChipLogProgress(chipTool, - " ***** Test Step 15 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event\n"); - if (ShouldSkip("SMOKECO.S.A0008 && DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectSmokeAlarmTestEvent_15(); - break; - case 16: - ChipLogProgress(chipTool, - " ***** Test Step 16 : TH waits for a report of InterconnectSmokeAlarm attribute from DUT with a timeout of 300 " - "seconds\n"); - if (ShouldSkip("SMOKECO.S.A0008")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfInterconnectSmokeAlarmAttributeFromDutWithATimeoutOf300Seconds_16(); - break; - case 17: - ChipLogProgress(chipTool, - " ***** Test Step 17 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event\n"); - if (ShouldSkip("SMOKECO.S.A0009 && DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectCoAlarmTestEvent_17(); - break; - case 18: - ChipLogProgress(chipTool, - " ***** Test Step 18 : TH waits for a report of InterconnectCOAlarm attribute from DUT with a timeout of 300 " - "seconds\n"); - if (ShouldSkip("SMOKECO.S.A0009")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfInterconnectCOAlarmAttributeFromDutWithATimeoutOf300Seconds_18(); - break; - case 19: - ChipLogProgress(chipTool, - " ***** Test Step 19 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning CO Alarm Test Event\n"); - if (ShouldSkip("DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForWarningCoAlarmTestEvent_19(); - break; - case 20: - ChipLogProgress(chipTool, - " ***** Test Step 20 : TH waits for a report of COState attribute from DUT with a timeout of 300 seconds\n"); - if (ShouldSkip("SMOKECO.S.A0002")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfCOStateAttributeFromDutWithATimeoutOf300Seconds_20(); - break; - case 21: - ChipLogProgress(chipTool, - " ***** Test Step 21 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Smoke Alarm Test Event\n"); - if (ShouldSkip("DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForWarningSmokeAlarmTestEvent_21(); - break; - case 22: - ChipLogProgress(chipTool, - " ***** Test Step 22 : TH waits for a report of SmokeState attribute from DUT with a timeout of 300 seconds\n"); - if (ShouldSkip("SMOKECO.S.A0001")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfSmokeStateAttributeFromDutWithATimeoutOf300Seconds_22(); - break; - case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_23(); - break; - case 24: - ChipLogProgress(chipTool, - " ***** Test Step 24 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Alarm Test Event Clear\n"); - if (ShouldSkip("DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForSmokeAlarmTestEventClear_24(); - break; - case 25: - ChipLogProgress(chipTool, - " ***** Test Step 25 : TH waits for a report of SmokeState attribute from DUT with a timeout of 300 seconds\n"); - if (ShouldSkip("SMOKECO.S.A0001")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfSmokeStateAttributeFromDutWithATimeoutOf300Seconds_25(); - break; - case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_26(); - break; - case 27: - ChipLogProgress(chipTool, - " ***** Test Step 27 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for CO Alarm Test Event clear\n"); - if (ShouldSkip("DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForCoAlarmTestEventClear_27(); - break; - case 28: - ChipLogProgress(chipTool, - " ***** Test Step 28 : TH waits for a report of COState attribute from DUT with a timeout of 300 seconds\n"); - if (ShouldSkip("SMOKECO.S.A0002")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfCOStateAttributeFromDutWithATimeoutOf300Seconds_28(); - break; - case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_29(); - break; - case 30: - ChipLogProgress(chipTool, - " ***** Test Step 30 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event Clear\n"); - if (ShouldSkip("SMOKECO.S.A0009 && DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectCoAlarmTestEventClear_30(); - break; - case 31: - ChipLogProgress(chipTool, - " ***** Test Step 31 : TH waits for a report of InterconnectCOAlarm attribute from DUT with a timeout of 300 " - "seconds\n"); - if (ShouldSkip("SMOKECO.S.A0009")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfInterconnectCOAlarmAttributeFromDutWithATimeoutOf300Seconds_31(); - break; - case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_32(); - break; - case 33: - ChipLogProgress(chipTool, - " ***** Test Step 33 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event Clear\n"); - if (ShouldSkip("SMOKECO.S.A0008 && DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectSmokeAlarmTestEventClear_33(); - break; - case 34: - ChipLogProgress(chipTool, - " ***** Test Step 34 : TH waits for a report of InterconnectSmokeAlarm attribute from DUT with a timeout of 300 " - "seconds\n"); - if (ShouldSkip("SMOKECO.S.A0008")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfInterconnectSmokeAlarmAttributeFromDutWithATimeoutOf300Seconds_34(); - break; - case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_35(); - break; - case 36: - ChipLogProgress(chipTool, - " ***** Test Step 36 : TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - "EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - "PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Battery Alert Test Event Clear\n"); - if (ShouldSkip("DGGEN.S.C00.Rsp")) { - NextTest(); - return; - } - err = TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForBatteryAlertTestEventClear_36(); - break; - case 37: - ChipLogProgress(chipTool, - " ***** Test Step 37 : TH waits for a report of BatteryAlert attribute from DUT with a timeout of 300 seconds\n"); - if (ShouldSkip("SMOKECO.S.A0003")) { - NextTest(); - return; - } - err = TestThWaitsForAReportOfBatteryAlertAttributeFromDutWithATimeoutOf300Seconds_37(); - break; - case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : TH reads ExpressedState attribute from DUT\n"); - if (ShouldSkip("SMOKECO.S.A0000")) { - NextTest(); - return; - } - err = TestThReadsExpressedStateAttributeFromDut_38(); - break; - } - - if (CHIP_NO_ERROR != err) { - ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); - SetCommandExitStatus(err); - } - } - - void OnStatusUpdate(const chip::app::StatusIB & status) override - { - switch (mTestIndex - 1) { - case 0: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - 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)); - break; - case 4: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 5: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 6: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 7: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - 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; - 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), 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; - case 20: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 21: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 22: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 23: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 24: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 25: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 26: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 27: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 28: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 29: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 30: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 31: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 32: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 33: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 34: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 35: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 36: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 37: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - break; - case 38: - VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); - 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(3090)); } - -private: - std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 39; - - chip::Optional mNodeId; - chip::Optional mCluster; - chip::Optional mEndpoint; - chip::Optional mTimeout; - chip::Optional mTestEventTriggerKey; - chip::Optional mTestEventTriggerWarningSmokeAlarm; - chip::Optional mTestEventTriggerSmokeAlarmClear; - chip::Optional mTestEventTriggerWarningCoAlarm; - chip::Optional mTestEventTriggerCoAlarmClear; - chip::Optional mTestEventTriggerWarningBatteryAlert; - chip::Optional mTestEventTriggerBatteryAlertClear; - chip::Optional mTestEventTriggerInterconnectSmokeAlarm; - chip::Optional mTestEventTriggerInterconnectSmokeAlarmClear; - chip::Optional mTestEventTriggerInterconnectCoAlarm; - chip::Optional mTestEventTriggerInterconnectCoAlarmClear; - chip::Optional mHiestPriAlarm; - chip::Optional mHiestPriAlarm2; - chip::Optional mHiestPriAlarm3; - chip::Optional mHiestPriAlarm4; - chip::Optional mHiestPriAlarm5; - - CHIP_ERROR TestCommissionDutToTh_0() - { - - chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; - value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; - return WaitForCommissionee("alpha", value); - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_1() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("ExpressedState", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - bool testSendClusterTest_TC_SMOKECO_2_6_2_WaitForReport_Fulfilled = false; - ResponseHandler _Nullable test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported = nil; - - CHIP_ERROR TestReportThSubscribesToBatteryAlertAttributeFromDut_2() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Report: TH subscribes to BatteryAlert attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("BatteryAlert", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("batteryAlert", "enum8", "enum8")); - testSendClusterTest_TC_SMOKECO_2_6_2_WaitForReport_Fulfilled = true; - }; - - NextTest(); - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThSubscribesToBatteryAlertAttributeFromDut_3() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - uint16_t minIntervalArgument = 3U; - uint16_t maxIntervalArgument = 30U; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(minIntervalArgument) - maxInterval:@(maxIntervalArgument)]; - params.filterByFabric = true; - params.replaceExistingSubscriptions = true; - [cluster subscribeAttributeBatteryAlertWithParams:params - subscriptionEstablished:^{ - VerifyOrReturn( - testSendClusterTest_TC_SMOKECO_2_6_2_WaitForReport_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); - NextTest(); - } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH subscribes to BatteryAlert attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - if (test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported != nil) { - ResponseHandler callback = test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported; - test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported = nil; - callback(value, err); - } - }]; - - return CHIP_NO_ERROR; - } - bool testSendClusterTest_TC_SMOKECO_2_6_4_WaitForReport_Fulfilled = false; - ResponseHandler _Nullable test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported = nil; - - CHIP_ERROR TestReportThSubscribesToInterconnectSmokeAlarmAttributeFromDut_4() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Report: TH subscribes to InterconnectSmokeAlarm attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("InterconnectSmokeAlarm", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("interconnectSmokeAlarm", "enum8", "enum8")); - testSendClusterTest_TC_SMOKECO_2_6_4_WaitForReport_Fulfilled = true; - }; - - NextTest(); - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThSubscribesToInterconnectSmokeAlarmAttributeFromDut_5() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - uint16_t minIntervalArgument = 3U; - uint16_t maxIntervalArgument = 30U; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(minIntervalArgument) - maxInterval:@(maxIntervalArgument)]; - params.filterByFabric = true; - params.replaceExistingSubscriptions = false; - [cluster subscribeAttributeInterconnectSmokeAlarmWithParams:params - subscriptionEstablished:^{ - VerifyOrReturn( - testSendClusterTest_TC_SMOKECO_2_6_4_WaitForReport_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); - NextTest(); - } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH subscribes to InterconnectSmokeAlarm attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - if (test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported != nil) { - ResponseHandler callback = test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported; - test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported = nil; - callback(value, err); - } - }]; - - return CHIP_NO_ERROR; - } - bool testSendClusterTest_TC_SMOKECO_2_6_6_WaitForReport_Fulfilled = false; - ResponseHandler _Nullable test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported = nil; - - CHIP_ERROR TestReportThSubscribesToInterconnectCOAlarmAttributeFromDut_6() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Report: TH subscribes to InterconnectCOAlarm attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("InterconnectCOAlarm", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("interconnectCOAlarm", "enum8", "enum8")); - testSendClusterTest_TC_SMOKECO_2_6_6_WaitForReport_Fulfilled = true; - }; - - NextTest(); - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThSubscribesToInterconnectCOAlarmAttributeFromDut_7() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - uint16_t minIntervalArgument = 3U; - uint16_t maxIntervalArgument = 30U; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(minIntervalArgument) - maxInterval:@(maxIntervalArgument)]; - params.filterByFabric = true; - params.replaceExistingSubscriptions = false; - [cluster subscribeAttributeInterconnectCOAlarmWithParams:params - subscriptionEstablished:^{ - VerifyOrReturn( - testSendClusterTest_TC_SMOKECO_2_6_6_WaitForReport_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); - NextTest(); - } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH subscribes to InterconnectCOAlarm attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - if (test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported != nil) { - ResponseHandler callback = test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported; - test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported = nil; - callback(value, err); - } - }]; - - return CHIP_NO_ERROR; - } - bool testSendClusterTest_TC_SMOKECO_2_6_8_WaitForReport_Fulfilled = false; - ResponseHandler _Nullable test_Test_TC_SMOKECO_2_6_COState_Reported = nil; - - CHIP_ERROR TestReportThSubscribesToCOStateAttributeFromDut_8() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_COState_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Report: TH subscribes to COState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("COState", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("COState", "enum8", "enum8")); - testSendClusterTest_TC_SMOKECO_2_6_8_WaitForReport_Fulfilled = true; - }; - - NextTest(); - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThSubscribesToCOStateAttributeFromDut_9() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - uint16_t minIntervalArgument = 3U; - uint16_t maxIntervalArgument = 30U; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(minIntervalArgument) - maxInterval:@(maxIntervalArgument)]; - params.filterByFabric = true; - params.replaceExistingSubscriptions = false; - [cluster subscribeAttributeCOStateWithParams:params - subscriptionEstablished:^{ - VerifyOrReturn( - testSendClusterTest_TC_SMOKECO_2_6_8_WaitForReport_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); - NextTest(); - } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH subscribes to COState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - if (test_Test_TC_SMOKECO_2_6_COState_Reported != nil) { - ResponseHandler callback = test_Test_TC_SMOKECO_2_6_COState_Reported; - test_Test_TC_SMOKECO_2_6_COState_Reported = nil; - callback(value, err); - } - }]; - - return CHIP_NO_ERROR; - } - bool testSendClusterTest_TC_SMOKECO_2_6_10_WaitForReport_Fulfilled = false; - ResponseHandler _Nullable test_Test_TC_SMOKECO_2_6_SmokeState_Reported = nil; - - CHIP_ERROR TestReportThSubscribesToSmokeStateAttributeFromDut_10() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_SmokeState_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Report: TH subscribes to SmokeState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("SmokeState", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("smokeState", "enum8", "enum8")); - testSendClusterTest_TC_SMOKECO_2_6_10_WaitForReport_Fulfilled = true; - }; - - NextTest(); - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThSubscribesToSmokeStateAttributeFromDut_11() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - uint16_t minIntervalArgument = 3U; - uint16_t maxIntervalArgument = 30U; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(minIntervalArgument) - maxInterval:@(maxIntervalArgument)]; - params.filterByFabric = true; - params.replaceExistingSubscriptions = false; - [cluster subscribeAttributeSmokeStateWithParams:params - subscriptionEstablished:^{ - VerifyOrReturn(testSendClusterTest_TC_SMOKECO_2_6_10_WaitForReport_Fulfilled, - SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); - NextTest(); - } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH subscribes to SmokeState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - if (test_Test_TC_SMOKECO_2_6_SmokeState_Reported != nil) { - ResponseHandler callback = test_Test_TC_SMOKECO_2_6_SmokeState_Reported; - test_Test_TC_SMOKECO_2_6_SmokeState_Reported = nil; - callback(value, err); - } - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsTestEventTriggersEnabledAttributeFromGeneralDiagnosticsCluster_12() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeTestEventTriggersEnabledWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads TestEventTriggersEnabled attribute from General Diagnostics Cluster Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("TestEventTriggersEnabled", actualValue, 1)); - } - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForWarningBatteryAlertTestEvent_13() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerWarningBatteryAlert.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerWarningBatteryAlert.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff00000095ULL]; - [cluster - testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - @"PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Battery Alert Test Event Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfBatteryAlertAttributeFromDutWithATimeoutOf300Seconds_14() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of BatteryAlert attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("BatteryAlert", actualValue, 1U)); - } - - VerifyOrReturn(CheckConstraintType("batteryAlert", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectSmokeAlarmTestEvent_15() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerInterconnectSmokeAlarm.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerInterconnectSmokeAlarm.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff00000092ULL]; - [cluster - testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - @"PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfInterconnectSmokeAlarmAttributeFromDutWithATimeoutOf300Seconds_16() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog( - @"TH waits for a report of InterconnectSmokeAlarm attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("interconnectSmokeAlarm", "enum8", "enum8")); - VerifyOrReturn(CheckConstraintMinValue("interconnectSmokeAlarm", [value unsignedCharValue], 1U)); - VerifyOrReturn(CheckConstraintMaxValue("interconnectSmokeAlarm", [value unsignedCharValue], 2U)); - - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectCoAlarmTestEvent_17() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerInterconnectCoAlarm.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerInterconnectCoAlarm.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff00000094ULL]; - [cluster - testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - @"PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfInterconnectCOAlarmAttributeFromDutWithATimeoutOf300Seconds_18() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of InterconnectCOAlarm attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - VerifyOrReturn(CheckConstraintType("interconnectCOAlarm", "enum8", "enum8")); - VerifyOrReturn(CheckConstraintMinValue("interconnectCOAlarm", [value unsignedCharValue], 1U)); - VerifyOrReturn(CheckConstraintMaxValue("interconnectCOAlarm", [value unsignedCharValue], 2U)); - - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForWarningCoAlarmTestEvent_19() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerWarningCoAlarm.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerWarningCoAlarm.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff00000091ULL]; - [cluster testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field " - @"set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning CO Alarm Test Event Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfCOStateAttributeFromDutWithATimeoutOf300Seconds_20() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_COState_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of COState attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("COState", actualValue, 1U)); - } - - VerifyOrReturn(CheckConstraintType("COState", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForWarningSmokeAlarmTestEvent_21() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerWarningSmokeAlarm.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerWarningSmokeAlarm.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff00000090ULL]; - [cluster testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field " - @"set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Warning Smoke Alarm Test Event Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfSmokeStateAttributeFromDutWithATimeoutOf300Seconds_22() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_SmokeState_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of SmokeState attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("SmokeState", actualValue, 1U)); - } - - VerifyOrReturn(CheckConstraintType("smokeState", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_23() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("ExpressedState", actualValue, mHiestPriAlarm.HasValue() ? mHiestPriAlarm.Value() : 1U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForSmokeAlarmTestEventClear_24() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerSmokeAlarmClear.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerSmokeAlarmClear.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff000000a0ULL]; - [cluster testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field " - @"set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Smoke Alarm Test Event Clear Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfSmokeStateAttributeFromDutWithATimeoutOf300Seconds_25() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_SmokeState_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of SmokeState attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("SmokeState", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("smokeState", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_26() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn( - CheckValue("ExpressedState", actualValue, mHiestPriAlarm2.HasValue() ? mHiestPriAlarm2.Value() : 2U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForCoAlarmTestEventClear_27() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerCoAlarmClear.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerCoAlarmClear.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff000000a1ULL]; - [cluster testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field " - @"set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for CO Alarm Test Event clear Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfCOStateAttributeFromDutWithATimeoutOf300Seconds_28() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_COState_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of COState attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("COState", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("COState", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_29() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn( - CheckValue("ExpressedState", actualValue, mHiestPriAlarm3.HasValue() ? mHiestPriAlarm3.Value() : 7U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectCoAlarmTestEventClear_30() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerInterconnectCoAlarmClear.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerInterconnectCoAlarmClear.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff000000a4ULL]; - [cluster - testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - @"PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect CO Alarm Test Event Clear Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfInterconnectCOAlarmAttributeFromDutWithATimeoutOf300Seconds_31() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_InterconnectCOAlarm_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of InterconnectCOAlarm attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("InterconnectCOAlarm", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("interconnectCOAlarm", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_32() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn( - CheckValue("ExpressedState", actualValue, mHiestPriAlarm4.HasValue() ? mHiestPriAlarm4.Value() : 7U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForInterconnectSmokeAlarmTestEventClear_33() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerInterconnectSmokeAlarmClear.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerInterconnectSmokeAlarmClear.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff000000a2ULL]; - [cluster - testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to " - @"PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Interconnect Smoke Alarm Test Event Clear Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfInterconnectSmokeAlarmAttributeFromDutWithATimeoutOf300Seconds_34() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_InterconnectSmokeAlarm_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog( - @"TH waits for a report of InterconnectSmokeAlarm attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("InterconnectSmokeAlarm", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("interconnectSmokeAlarm", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_35() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn( - CheckValue("ExpressedState", actualValue, mHiestPriAlarm5.HasValue() ? mHiestPriAlarm5.Value() : 3U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR - TestThSendsTestEventTriggerCommandToGeneralDiagnosticsClusterOnEndpoint0WithEnableKeyFieldSetToPixitsmokecotestEventTriggerKeyAndEventTriggerFieldSetToPixitsmokecotestEventTriggerForBatteryAlertTestEventClear_36() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device - endpointID:@(0) - queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; - params.enableKey = mTestEventTriggerKey.HasValue() - ? [NSData dataWithBytes:mTestEventTriggerKey.Value().data() length:mTestEventTriggerKey.Value().size()] - : [[NSData alloc] initWithBytes:"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff" length:16]; - params.eventTrigger = mTestEventTriggerBatteryAlertClear.HasValue() - ? [NSNumber numberWithUnsignedLongLong:mTestEventTriggerBatteryAlertClear.Value()] - : [NSNumber numberWithUnsignedLongLong:0xffffffff000000a5ULL]; - [cluster testEventTriggerWithParams:params - completion:^(NSError * _Nullable err) { - NSLog(@"TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with " - @"EnableKey field set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER_KEY and EventTrigger field " - @"set to PIXIT.SMOKECO.TEST_EVENT_TRIGGER for Battery Alert Test Event Clear Error: %@", - err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - NextTest(); - }]; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThWaitsForAReportOfBatteryAlertAttributeFromDutWithATimeoutOf300Seconds_37() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - test_Test_TC_SMOKECO_2_6_BatteryAlert_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH waits for a report of BatteryAlert attribute from DUT with a timeout of 300 seconds Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("BatteryAlert", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("batteryAlert", "enum8", "enum8")); - NextTest(); - }; - - return CHIP_NO_ERROR; - } - - CHIP_ERROR TestThReadsExpressedStateAttributeFromDut_38() - { - - MTRBaseDevice * device = GetDevice("alpha"); - __auto_type * cluster = [[MTRBaseClusterSmokeCOAlarm alloc] initWithDevice:device endpointID:@(1) queue:mCallbackQueue]; - VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - - [cluster readAttributeExpressedStateWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"TH reads ExpressedState attribute from DUT Error: %@", err); - - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - - { - id actualValue = value; - VerifyOrReturn(CheckValue("ExpressedState", actualValue, 0U)); - } - - VerifyOrReturn(CheckConstraintType("expressedState", "enum8", "enum8")); - NextTest(); - }]; - - return CHIP_NO_ERROR; - } -}; - class Test_TC_SWTCH_1_1 : public TestCommandBridge { public: // NOLINTBEGIN(clang-analyzer-nullability.NullPassedToNonnull): Test constructor nullability not enforced @@ -178676,7 +177067,6 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), - make_unique(), make_unique(), make_unique(), make_unique(),