From 947b6e2d3581085d7ef6c88dea5471096984f32f Mon Sep 17 00:00:00 2001 From: C Freeman Date: Mon, 23 Oct 2023 16:05:08 -0400 Subject: [PATCH] TC-CC-5.4: Remove read steps (#29897) * TC-CC-5.4: Rmove read steps As discussed at the MM, most clients don't use individual reads to verify attributes. The reads in the test do not test any real client behaviour and are not requird in the spec. * zap * Restyled by whitespace --------- Co-authored-by: Restyled.io --- .../Test_TC_CC_5_4_Simulated.yaml | 82 ------------ .../app1/zap-generated/test/Commands.h | 118 +++--------------- .../app2/zap-generated/test/Commands.h | 118 +++--------------- 3 files changed, 36 insertions(+), 282 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_5_4_Simulated.yaml b/src/app/tests/suites/certification/Test_TC_CC_5_4_Simulated.yaml index dcae56a5d9c56e..3e5b2202221188 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_5_4_Simulated.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_5_4_Simulated.yaml @@ -39,16 +39,6 @@ tests: PICS: CC.C.C07.Tx && CC.C.F03 wait: "MoveToColor" - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C07.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C07.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "Wait for ConfigTransitionTime" cluster: "DelayCommands" command: "WaitForMs" @@ -57,30 +47,10 @@ tests: - name: "ms" value: ConfigTransitionTime - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C07.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C07.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "DUT sends MoveColor command to TH" PICS: CC.C.C08.Tx && CC.C.F03 wait: "MoveColor" - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C08.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C08.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "Wait for ConfigTransitionTime" cluster: "DelayCommands" command: "WaitForMs" @@ -89,30 +59,10 @@ tests: - name: "ms" value: ConfigTransitionTime - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C08.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C08.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "DUT sends StepColor command to TH" PICS: CC.C.C09.Tx wait: "StepColor" - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C09.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C09.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "Wait for ConfigTransitionTime" cluster: "DelayCommands" command: "WaitForMs" @@ -121,30 +71,10 @@ tests: - name: "ms" value: ConfigTransitionTime - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C09.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C09.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "DUT sends StopMoveStep command to TH" PICS: CC.C.C47.Tx wait: "StopMoveStep" - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C47.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: "DUT reads CurrentY attribute from TH(potentially multiple times)" - PICS: CC.C.C47.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" - - label: "Wait for ConfigTransitionTime" cluster: "DelayCommands" command: "WaitForMs" @@ -152,15 +82,3 @@ tests: values: - name: "ms" value: ConfigTransitionTime - - - label: "DUT reads CurrentX attribute from TH(potentially multiple times)" - PICS: CC.C.C47.Tx && CC.C.A0003 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentX" - - - label: - "DUT reads CurrentY attribute from ConfiguredTime: type: int16u - defaultValue: 30000TH(potentially multiple times)" - PICS: CC.C.C47.Tx && CC.C.A0004 && CC.C.F03 - wait: "readAttribute" - attribute: "CurrentY" diff --git a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h index ac254a6f41f108..09f959a75058dc 100644 --- a/zzz_generated/placeholder/app1/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app1/zap-generated/test/Commands.h @@ -815,7 +815,7 @@ class Test_TC_CC_4_5_SimulatedSuite : public TestCommand class Test_TC_CC_5_4_SimulatedSuite : public TestCommand { public: - Test_TC_CC_5_4_SimulatedSuite() : TestCommand("Test_TC_CC_5_4_Simulated", 25) + Test_TC_CC_5_4_SimulatedSuite() : TestCommand("Test_TC_CC_5_4_Simulated", 9) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -845,19 +845,19 @@ class Test_TC_CC_5_4_SimulatedSuite : public TestCommand switch (mTestIndex - 1) { - case 4: + case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 10: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 16: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 22: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; @@ -886,130 +886,48 @@ class Test_TC_CC_5_4_SimulatedSuite : public TestCommand return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToColor::Id); } case 2: { - LogStep(2, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 3: { - LogStep(3, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 4: { - LogStep(4, "Wait for ConfigTransitionTime"); + LogStep(2, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 5: { - LogStep(5, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 6: { - LogStep(6, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 7: { - LogStep(7, "DUT sends MoveColor command to TH"); + case 3: { + LogStep(3, "DUT sends MoveColor command to TH"); VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColor::Id); } - case 8: { - LogStep(8, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 9: { - LogStep(9, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 10: { - LogStep(10, "Wait for ConfigTransitionTime"); + case 4: { + LogStep(4, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 11: { - LogStep(11, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 12: { - LogStep(12, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 13: { - LogStep(13, "DUT sends StepColor command to TH"); + case 5: { + LogStep(5, "DUT sends StepColor command to TH"); VerifyOrDo(!ShouldSkip("CC.C.C09.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepColor::Id); } - case 14: { - LogStep(14, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 15: { - LogStep(15, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 16: { - LogStep(16, "Wait for ConfigTransitionTime"); + case 6: { + LogStep(6, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 17: { - LogStep(17, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 18: { - LogStep(18, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 19: { - LogStep(19, "DUT sends StopMoveStep command to TH"); + case 7: { + LogStep(7, "DUT sends StopMoveStep command to TH"); VerifyOrDo(!ShouldSkip("CC.C.C47.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id); } - case 20: { - LogStep(20, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 21: { - LogStep(21, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 22: { - LogStep(22, "Wait for ConfigTransitionTime"); + case 8: { + LogStep(8, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 23: { - LogStep(23, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 24: { - LogStep( - 24, - "DUT reads CurrentY attribute from ConfiguredTime: type: int16u defaultValue: 30000TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } } return CHIP_NO_ERROR; } diff --git a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h index ac254a6f41f108..09f959a75058dc 100644 --- a/zzz_generated/placeholder/app2/zap-generated/test/Commands.h +++ b/zzz_generated/placeholder/app2/zap-generated/test/Commands.h @@ -815,7 +815,7 @@ class Test_TC_CC_4_5_SimulatedSuite : public TestCommand class Test_TC_CC_5_4_SimulatedSuite : public TestCommand { public: - Test_TC_CC_5_4_SimulatedSuite() : TestCommand("Test_TC_CC_5_4_Simulated", 25) + Test_TC_CC_5_4_SimulatedSuite() : TestCommand("Test_TC_CC_5_4_Simulated", 9) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -845,19 +845,19 @@ class Test_TC_CC_5_4_SimulatedSuite : public TestCommand switch (mTestIndex - 1) { - case 4: + case 2: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 10: + case 4: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 16: + case 6: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; - case 22: + case 8: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; @@ -886,130 +886,48 @@ class Test_TC_CC_5_4_SimulatedSuite : public TestCommand return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToColor::Id); } case 2: { - LogStep(2, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 3: { - LogStep(3, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 4: { - LogStep(4, "Wait for ConfigTransitionTime"); + LogStep(2, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 5: { - LogStep(5, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 6: { - LogStep(6, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C07.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 7: { - LogStep(7, "DUT sends MoveColor command to TH"); + case 3: { + LogStep(3, "DUT sends MoveColor command to TH"); VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColor::Id); } - case 8: { - LogStep(8, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 9: { - LogStep(9, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 10: { - LogStep(10, "Wait for ConfigTransitionTime"); + case 4: { + LogStep(4, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 11: { - LogStep(11, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 12: { - LogStep(12, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C08.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 13: { - LogStep(13, "DUT sends StepColor command to TH"); + case 5: { + LogStep(5, "DUT sends StepColor command to TH"); VerifyOrDo(!ShouldSkip("CC.C.C09.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepColor::Id); } - case 14: { - LogStep(14, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 15: { - LogStep(15, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 16: { - LogStep(16, "Wait for ConfigTransitionTime"); + case 6: { + LogStep(6, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 17: { - LogStep(17, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 18: { - LogStep(18, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C09.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 19: { - LogStep(19, "DUT sends StopMoveStep command to TH"); + case 7: { + LogStep(7, "DUT sends StopMoveStep command to TH"); VerifyOrDo(!ShouldSkip("CC.C.C47.Tx"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return WaitCommand(GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id); } - case 20: { - LogStep(20, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 21: { - LogStep(21, "DUT reads CurrentY attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } - case 22: { - LogStep(22, "Wait for ConfigTransitionTime"); + case 8: { + LogStep(8, "Wait for ConfigTransitionTime"); ListFreer listFreer; chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value; value.ms = mConfigTransitionTime.HasValue() ? mConfigTransitionTime.Value() : 3000UL; return WaitForMs(kIdentityAlpha, value); } - case 23: { - LogStep(23, "DUT reads CurrentX attribute from TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0003 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id); - } - case 24: { - LogStep( - 24, - "DUT reads CurrentY attribute from ConfiguredTime: type: int16u defaultValue: 30000TH(potentially multiple times)"); - VerifyOrDo(!ShouldSkip("CC.C.C47.Tx && CC.C.A0004 && CC.C.F03"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); - return WaitAttribute(GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id); - } } return CHIP_NO_ERROR; }