From 4c2c7c89c8170932d54a3a6f0dd089cbee820258 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Wed, 29 Jan 2025 20:52:49 +0000 Subject: [PATCH 1/9] steps 1x and 2x --- src/app/tests/suites/certification/Test_TC_CC_3_1.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index ed4cf48f1dea58..9025844451ace2 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -39,7 +39,7 @@ tests: arguments: value: 0 - - label: "Step 1b: H sends On command to DUT" + - label: "Step 1b: TH sends On command to DUT" PICS: OO.S.C01.Rsp cluster: "On/Off" command: "On" @@ -98,6 +98,8 @@ tests: - name: "ms" value: 10000 + # Values computed from: current_hue + (final_hue - initial_hue) * Wait / TransitionTime + # 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - label: "Step 2c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -116,6 +118,7 @@ tests: - name: "ms" value: 10000 + # 80 + (120 - 60) * 10 / 30 => 100 +/- 15% => (85, 115) - label: "Step 2d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -134,6 +137,7 @@ tests: - name: "ms" value: 10000 + # 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) - label: "Step 2e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -152,6 +156,7 @@ tests: - name: "ms" value: 5000 + # keeps final_hue - label: "Step 2f: H reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" From f735556251d2c23d40797913b9356edfbfcf493d Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Thu, 30 Jan 2025 19:38:38 +0000 Subject: [PATCH 2/9] updated 3x and 4x --- .../suites/certification/Test_TC_CC_3_1.yaml | 143 +++++++++++------- 1 file changed, 90 insertions(+), 53 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index 9025844451ace2..cde0bbbc9e0da4 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -98,8 +98,9 @@ tests: - name: "ms" value: 10000 - # Values computed from: current_hue + (final_hue - initial_hue) * Wait / TransitionTime - # 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) + # Values computed for shortest distance (Direction=0x00): + # current_hue = last_hue + (final_hue - initial_hue) * wait_in_secs / transition_time_in_secs + # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - label: "Step 2c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -118,7 +119,7 @@ tests: - name: "ms" value: 10000 - # 80 + (120 - 60) * 10 / 30 => 100 +/- 15% => (85, 115) + # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/- 15% => (85, 115) - label: "Step 2d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -137,7 +138,7 @@ tests: - name: "ms" value: 10000 - # 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) + # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) - label: "Step 2e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -156,7 +157,7 @@ tests: - name: "ms" value: 5000 - # keeps final_hue + # keeps final Hue - label: "Step 2f: H reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -221,23 +222,37 @@ tests: value: 10000 #https://github.com/CHIP-Specifications/chip-test-scripts/issues/416#issuecomment-1228072461 + # - label: "Step 3c: TH reads CurrentHue attribute from DUT" + # PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP + # verification: | + # ./chip-tool colorcontrol read current-hue 1 1 + # Verify response contains a CurrentHue value in TH(chip-tool) Logs: + + # [1649661849.854961][8307:8312] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 + # [1649661849.855019][8307:8312] CHIP:TOO: current hue: 0 (value can vary) + # [1649661849.855097][8307:8312] CHIP:EM: Sending Standalone Ack for MessageCounter:13414799 on exchange 39735i + # cluster: "LogCommands" + # command: "UserPrompt" + # arguments: + # values: + # - name: "message" + # value: "Enter 'y' after success" + # - name: "expectedValue" + # value: "y" + + # Values computed for longest distance (Direction=0x01): + # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs + # variation = [60 + (255 - 135)] * 5 / 30 => 30 + # current_hue = last_hue - variation + # current_hue = 60 - 30 = 30 +/-15% => (25, 35) - label: "Step 3c: TH reads CurrentHue attribute from DUT" - PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP - verification: | - ./chip-tool colorcontrol read current-hue 1 1 - Verify response contains a CurrentHue value in TH(chip-tool) Logs: - - [1649661849.854961][8307:8312] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 - [1649661849.855019][8307:8312] CHIP:TOO: current hue: 0 (value can vary) - [1649661849.855097][8307:8312] CHIP:EM: Sending Standalone Ack for MessageCounter:13414799 on exchange 39735i - cluster: "LogCommands" - command: "UserPrompt" - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" + PICS: CC.S.F00 && CC.S.A0000 + command: "readAttribute" + attribute: "CurrentHue" + response: + constraints: + # minValue: 25 + # maxValue: 35 - label: "Wait 10s" PICS: CC.S.F00 @@ -249,23 +264,32 @@ tests: value: 10000 #https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950 + # - label: "Step 3d: TH reads CurrentHue attribute from DUT" + # PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP + # verification: | + # ./chip-tool colorcontrol read current-hue 1 1 + + # After another 10 seconds , Verify that CurrentHue value as 195 On TH(chip-tool) Logs: + # [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 + # [1649661821.298271][8292:8297] CHIP:TOO: current hue: 195 (value can vary) + # [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i + # cluster: "LogCommands" + # command: "UserPrompt" + # arguments: + # values: + # - name: "message" + # value: "Enter 'y' after success" + # - name: "expectedValue" + # value: "y" + - label: "Step 3d: TH reads CurrentHue attribute from DUT" - PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP - verification: | - ./chip-tool colorcontrol read current-hue 1 1 - - After another 10 seconds , Verify that CurrentHue value as 195 On TH(chip-tool) Logs: - [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 - [1649661821.298271][8292:8297] CHIP:TOO: current hue: 195 (value can vary) - [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i - cluster: "LogCommands" - command: "UserPrompt" - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" + PICS: CC.S.F00 && CC.S.A0000 + command: "readAttribute" + attribute: "CurrentHue" + response: + constraints: + # minValue: 25 + # maxValue: 35 - label: "Wait 10s" PICS: CC.S.F00 @@ -277,23 +301,32 @@ tests: value: 10000 #https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950 + # - label: "Step 3e: TH reads CurrentHue attribute from DUT" + # PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP + # verification: | + # ./chip-tool colorcontrol read current-hue 1 1 + # After another 10 seconds , Verify that CurrentHue value as 135 On TH(chip-tool) Logs: + + # [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 + # [1649661821.298271][8292:8297] CHIP:TOO: current hue: 135 + # [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i" + # cluster: "LogCommands" + # command: "UserPrompt" + # arguments: + # values: + # - name: "message" + # value: "Enter 'y' after success" + # - name: "expectedValue" + # value: "y" + - label: "Step 3e: TH reads CurrentHue attribute from DUT" - PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP - verification: | - ./chip-tool colorcontrol read current-hue 1 1 - After another 10 seconds , Verify that CurrentHue value as 135 On TH(chip-tool) Logs: - - [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 - [1649661821.298271][8292:8297] CHIP:TOO: current hue: 135 - [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i" - cluster: "LogCommands" - command: "UserPrompt" - arguments: - values: - - name: "message" - value: "Enter 'y' after success" - - name: "expectedValue" - value: "y" + PICS: CC.S.F00 && CC.S.A0000 + command: "readAttribute" + attribute: "CurrentHue" + response: + constraints: + # minValue: 25 + # maxValue: 35 - label: "Wait 5s" PICS: CC.S.F00 @@ -367,6 +400,7 @@ tests: - name: "ms" value: 10000 + # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - label: "Step 4c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -385,6 +419,7 @@ tests: - name: "ms" value: 10000 + # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) - label: "Step 4d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -403,6 +438,7 @@ tests: - name: "ms" value: 10000 + # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) - label: "Step 4e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -421,6 +457,7 @@ tests: - name: "ms" value: 5000 + # keeps final Hue - label: "Step 4f: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" From a02c2e8cbfa4cf402fc8725bb2f6f96eede037f8 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Thu, 30 Jan 2025 20:23:21 +0000 Subject: [PATCH 3/9] updated 3x --- .../suites/certification/Test_TC_CC_3_1.yaml | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index cde0bbbc9e0da4..a75fd06ec13476 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# SPECS: +# https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/colorcontrol.adoc name: 25.3.1. [TC-CC-3.1] Hue MoveTo functionality with server as DUT PICS: @@ -219,7 +221,7 @@ tests: arguments: values: - name: "ms" - value: 10000 + value: 5000 #https://github.com/CHIP-Specifications/chip-test-scripts/issues/416#issuecomment-1228072461 # - label: "Step 3c: TH reads CurrentHue attribute from DUT" @@ -251,8 +253,8 @@ tests: attribute: "CurrentHue" response: constraints: - # minValue: 25 - # maxValue: 35 + minValue: 25 + maxValue: 35 - label: "Wait 10s" PICS: CC.S.F00 @@ -261,7 +263,7 @@ tests: arguments: values: - name: "ms" - value: 10000 + value: 15000 #https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950 # - label: "Step 3d: TH reads CurrentHue attribute from DUT" @@ -282,14 +284,19 @@ tests: # - name: "expectedValue" # value: "y" + # Values computed for longest distance (Direction=0x01): + # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs + # variation = [60 + (255 - 135)] * 15 / 30 => 90 + # current_hue = last_hue - variation + # current_hue = 30 - 90 = 255 - 60 (underflow) = 195 +/-15% => (165, 225) - label: "Step 3d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - # minValue: 25 - # maxValue: 35 + minValue: 165 + maxValue: 225 - label: "Wait 10s" PICS: CC.S.F00 @@ -319,14 +326,19 @@ tests: # - name: "expectedValue" # value: "y" + # Values computed for longest distance (Direction=0x01): + # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs + # variation = [60 + (255 - 135)] * 10 / 30 => 60 + # current_hue = last_hue - variation + # current_hue = 195 - 60 = 135 +/-15% => (115, 155) - label: "Step 3e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - # minValue: 25 - # maxValue: 35 + minValue: 115 + maxValue: 155 - label: "Wait 5s" PICS: CC.S.F00 @@ -521,6 +533,7 @@ tests: - name: "ms" value: 10000 + # current_hue = 120 - (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) - label: "Step 5c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -539,6 +552,7 @@ tests: - name: "ms" value: 10000 + # current_hue = 100 - (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - label: "Step 5d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -557,6 +571,7 @@ tests: - name: "ms" value: 10000 + # current_hue = 80 - (120 - 60) * 10 / 30 => 60 +/-15% => (51, 69) - label: "Step 5e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -575,6 +590,7 @@ tests: - name: "ms" value: 5000 + # keeps final Hue - label: "Step 5f: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" From 57ca69592cf8d499c386abc59229dc8cdb633290 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Thu, 30 Jan 2025 20:25:05 +0000 Subject: [PATCH 4/9] deleted manual steps from 3x --- .../suites/certification/Test_TC_CC_3_1.yaml | 59 +------------------ 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index a75fd06ec13476..237af63aab5833 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -223,25 +223,6 @@ tests: - name: "ms" value: 5000 - #https://github.com/CHIP-Specifications/chip-test-scripts/issues/416#issuecomment-1228072461 - # - label: "Step 3c: TH reads CurrentHue attribute from DUT" - # PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP - # verification: | - # ./chip-tool colorcontrol read current-hue 1 1 - # Verify response contains a CurrentHue value in TH(chip-tool) Logs: - - # [1649661849.854961][8307:8312] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 - # [1649661849.855019][8307:8312] CHIP:TOO: current hue: 0 (value can vary) - # [1649661849.855097][8307:8312] CHIP:EM: Sending Standalone Ack for MessageCounter:13414799 on exchange 39735i - # cluster: "LogCommands" - # command: "UserPrompt" - # arguments: - # values: - # - name: "message" - # value: "Enter 'y' after success" - # - name: "expectedValue" - # value: "y" - # Values computed for longest distance (Direction=0x01): # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs # variation = [60 + (255 - 135)] * 5 / 30 => 30 @@ -265,30 +246,11 @@ tests: - name: "ms" value: 15000 - #https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950 - # - label: "Step 3d: TH reads CurrentHue attribute from DUT" - # PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP - # verification: | - # ./chip-tool colorcontrol read current-hue 1 1 - - # After another 10 seconds , Verify that CurrentHue value as 195 On TH(chip-tool) Logs: - # [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 - # [1649661821.298271][8292:8297] CHIP:TOO: current hue: 195 (value can vary) - # [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i - # cluster: "LogCommands" - # command: "UserPrompt" - # arguments: - # values: - # - name: "message" - # value: "Enter 'y' after success" - # - name: "expectedValue" - # value: "y" - # Values computed for longest distance (Direction=0x01): # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs # variation = [60 + (255 - 135)] * 15 / 30 => 90 # current_hue = last_hue - variation - # current_hue = 30 - 90 = 255 - 60 (underflow) = 195 +/-15% => (165, 225) + # current_hue = 30 - 90 (underflow) => 255 - 60 = 195 +/-15% => (165, 225) - label: "Step 3d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -307,25 +269,6 @@ tests: - name: "ms" value: 10000 - #https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950 - # - label: "Step 3e: TH reads CurrentHue attribute from DUT" - # PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP - # verification: | - # ./chip-tool colorcontrol read current-hue 1 1 - # After another 10 seconds , Verify that CurrentHue value as 135 On TH(chip-tool) Logs: - - # [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517 - # [1649661821.298271][8292:8297] CHIP:TOO: current hue: 135 - # [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i" - # cluster: "LogCommands" - # command: "UserPrompt" - # arguments: - # values: - # - name: "message" - # value: "Enter 'y' after success" - # - name: "expectedValue" - # value: "y" - # Values computed for longest distance (Direction=0x01): # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs # variation = [60 + (255 - 135)] * 10 / 30 => 60 From 4780322785c7d909d95e3f13c67fe393c876b7b7 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Fri, 31 Jan 2025 14:29:22 +0000 Subject: [PATCH 5/9] Updated labels in 3b and 3c --- src/app/tests/suites/certification/Test_TC_CC_3_1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index 237af63aab5833..046d180bf6c9ac 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -214,7 +214,7 @@ tests: - name: "OptionsOverride" value: 0 - - label: "Wait 10s" + - label: "Wait 5s" PICS: CC.S.F00 cluster: "DelayCommands" command: "WaitForMs" @@ -237,7 +237,7 @@ tests: minValue: 25 maxValue: 35 - - label: "Wait 10s" + - label: "Wait 15s" PICS: CC.S.F00 cluster: "DelayCommands" command: "WaitForMs" From d7cc36e70901aac4766258e417072b846874940e Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Fri, 31 Jan 2025 17:00:11 +0000 Subject: [PATCH 6/9] updated comments --- .../suites/certification/Test_TC_CC_3_1.yaml | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index 046d180bf6c9ac..c6ada24db3962f 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -11,9 +11,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - +# # SPECS: # https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/colorcontrol.adoc + name: 25.3.1. [TC-CC-3.1] Hue MoveTo functionality with server as DUT PICS: @@ -100,10 +101,10 @@ tests: - name: "ms" value: 10000 + - label: "Step 2c: TH reads CurrentHue attribute from DUT" # Values computed for shortest distance (Direction=0x00): # current_hue = last_hue + (final_hue - initial_hue) * wait_in_secs / transition_time_in_secs # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - - label: "Step 2c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -121,8 +122,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/- 15% => (85, 115) - label: "Step 2d: TH reads CurrentHue attribute from DUT" + # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/- 15% => (85, 115) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -140,8 +141,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) - label: "Step 2e: TH reads CurrentHue attribute from DUT" + # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -159,8 +160,8 @@ tests: - name: "ms" value: 5000 - # keeps final Hue - label: "Step 2f: H reads CurrentHue attribute from DUT" + # keeps final Hue PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -223,12 +224,12 @@ tests: - name: "ms" value: 5000 + - label: "Step 3c: TH reads CurrentHue attribute from DUT" # Values computed for longest distance (Direction=0x01): # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs # variation = [60 + (255 - 135)] * 5 / 30 => 30 # current_hue = last_hue - variation # current_hue = 60 - 30 = 30 +/-15% => (25, 35) - - label: "Step 3c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -246,12 +247,12 @@ tests: - name: "ms" value: 15000 + - label: "Step 3d: TH reads CurrentHue attribute from DUT" # Values computed for longest distance (Direction=0x01): # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs # variation = [60 + (255 - 135)] * 15 / 30 => 90 # current_hue = last_hue - variation # current_hue = 30 - 90 (underflow) => 255 - 60 = 195 +/-15% => (165, 225) - - label: "Step 3d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -269,12 +270,12 @@ tests: - name: "ms" value: 10000 + - label: "Step 3e: TH reads CurrentHue attribute from DUT" # Values computed for longest distance (Direction=0x01): # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs # variation = [60 + (255 - 135)] * 10 / 30 => 60 # current_hue = last_hue - variation # current_hue = 195 - 60 = 135 +/-15% => (115, 155) - - label: "Step 3e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -355,8 +356,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - label: "Step 4c: TH reads CurrentHue attribute from DUT" + # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -374,8 +375,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) - label: "Step 4d: TH reads CurrentHue attribute from DUT" + # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -393,8 +394,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) - label: "Step 4e: TH reads CurrentHue attribute from DUT" + # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -412,8 +413,8 @@ tests: - name: "ms" value: 5000 - # keeps final Hue - label: "Step 4f: TH reads CurrentHue attribute from DUT" + # keeps final Hue PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -476,8 +477,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 120 - (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) - label: "Step 5c: TH reads CurrentHue attribute from DUT" + # current_hue = 120 - (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -495,8 +496,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 100 - (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) - label: "Step 5d: TH reads CurrentHue attribute from DUT" + # current_hue = 100 - (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -514,8 +515,8 @@ tests: - name: "ms" value: 10000 - # current_hue = 80 - (120 - 60) * 10 / 30 => 60 +/-15% => (51, 69) - label: "Step 5e: TH reads CurrentHue attribute from DUT" + # current_hue = 80 - (120 - 60) * 10 / 30 => 60 +/-15% => (51, 69) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -533,8 +534,8 @@ tests: - name: "ms" value: 5000 - # keeps final Hue - label: "Step 5f: TH reads CurrentHue attribute from DUT" + # keeps final Hue PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" From e051f2a83f667e4b4b5c98e716517363fc718254 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Fri, 31 Jan 2025 18:05:17 +0000 Subject: [PATCH 7/9] removed comments --- .../suites/certification/Test_TC_CC_3_1.yaml | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index c6ada24db3962f..c2f1fa5297e035 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -11,9 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# -# SPECS: -# https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/colorcontrol.adoc name: 25.3.1. [TC-CC-3.1] Hue MoveTo functionality with server as DUT @@ -102,9 +99,6 @@ tests: value: 10000 - label: "Step 2c: TH reads CurrentHue attribute from DUT" - # Values computed for shortest distance (Direction=0x00): - # current_hue = last_hue + (final_hue - initial_hue) * wait_in_secs / transition_time_in_secs - # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -123,7 +117,6 @@ tests: value: 10000 - label: "Step 2d: TH reads CurrentHue attribute from DUT" - # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/- 15% => (85, 115) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -142,7 +135,6 @@ tests: value: 10000 - label: "Step 2e: TH reads CurrentHue attribute from DUT" - # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -161,7 +153,6 @@ tests: value: 5000 - label: "Step 2f: H reads CurrentHue attribute from DUT" - # keeps final Hue PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -225,11 +216,6 @@ tests: value: 5000 - label: "Step 3c: TH reads CurrentHue attribute from DUT" - # Values computed for longest distance (Direction=0x01): - # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs - # variation = [60 + (255 - 135)] * 5 / 30 => 30 - # current_hue = last_hue - variation - # current_hue = 60 - 30 = 30 +/-15% => (25, 35) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -248,11 +234,6 @@ tests: value: 15000 - label: "Step 3d: TH reads CurrentHue attribute from DUT" - # Values computed for longest distance (Direction=0x01): - # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs - # variation = [60 + (255 - 135)] * 15 / 30 => 90 - # current_hue = last_hue - variation - # current_hue = 30 - 90 (underflow) => 255 - 60 = 195 +/-15% => (165, 225) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -271,11 +252,6 @@ tests: value: 10000 - label: "Step 3e: TH reads CurrentHue attribute from DUT" - # Values computed for longest distance (Direction=0x01): - # variation = [initial_hue + (255 - final_hue)] * wait_in_secs / transition_time_in_secs - # variation = [60 + (255 - 135)] * 10 / 30 => 60 - # current_hue = last_hue - variation - # current_hue = 195 - 60 = 135 +/-15% => (115, 155) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -357,7 +333,6 @@ tests: value: 10000 - label: "Step 4c: TH reads CurrentHue attribute from DUT" - # current_hue = 60 + (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -376,7 +351,6 @@ tests: value: 10000 - label: "Step 4d: TH reads CurrentHue attribute from DUT" - # current_hue = 80 + (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -395,7 +369,6 @@ tests: value: 10000 - label: "Step 4e: TH reads CurrentHue attribute from DUT" - # current_hue = 100 + (120 - 60) * 10 / 30 => 120 +/-15% => (102, 138) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -414,7 +387,6 @@ tests: value: 5000 - label: "Step 4f: TH reads CurrentHue attribute from DUT" - # keeps final Hue PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -478,7 +450,6 @@ tests: value: 10000 - label: "Step 5c: TH reads CurrentHue attribute from DUT" - # current_hue = 120 - (120 - 60) * 10 / 30 => 100 +/-15% => (85, 115) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -497,7 +468,6 @@ tests: value: 10000 - label: "Step 5d: TH reads CurrentHue attribute from DUT" - # current_hue = 100 - (120 - 60) * 10 / 30 => 80 +/-15% => (68, 92) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -516,7 +486,6 @@ tests: value: 10000 - label: "Step 5e: TH reads CurrentHue attribute from DUT" - # current_hue = 80 - (120 - 60) * 10 / 30 => 60 +/-15% => (51, 69) PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" @@ -535,7 +504,6 @@ tests: value: 5000 - label: "Step 5f: TH reads CurrentHue attribute from DUT" - # keeps final Hue PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" From c036f062046d0a34b1e17c8c9461a076884d4a69 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Wed, 5 Feb 2025 14:00:29 +0000 Subject: [PATCH 8/9] updated 2x and 3x with tolerance in change and added comments --- .../suites/certification/Test_TC_CC_3_1.yaml | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index c2f1fa5297e035..01281f38f0939e 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -98,14 +98,15 @@ tests: - name: "ms" value: 10000 + # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be 80+/-3 => (77, 83) - label: "Step 2c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 68 - maxValue: 92 + minValue: 77 + maxValue: 83 - label: "Wait 10s" PICS: CC.S.F00 @@ -116,14 +117,15 @@ tests: - name: "ms" value: 10000 + # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be 100+/-6 => (94, 106) - label: "Step 2d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 85 - maxValue: 115 + minValue: 94 + maxValue: 106 - label: "Wait 10s" PICS: CC.S.F00 @@ -134,14 +136,15 @@ tests: - name: "ms" value: 10000 + # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be 120+/-9 => (111, 129) - label: "Step 2e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 102 - maxValue: 138 + minValue: 111 + maxValue: 129 - label: "Wait 5s" PICS: CC.S.F00 @@ -158,8 +161,8 @@ tests: attribute: "CurrentHue" response: constraints: - minValue: 102 - maxValue: 138 + minValue: 111 + maxValue: 129 - label: "Step 3a: TH sends MoveToHue command to DUT with Hue=60, @@ -215,6 +218,8 @@ tests: - name: "ms" value: 5000 + # In 30s, the value will have changed by 180 (total change) + # In 5s, the value will have changed by 180*5/30 = 30. A 15% tolerance is 4.5, so ~5, and value must be 30+/-5 => (25, 35) - label: "Step 3c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -233,14 +238,16 @@ tests: - name: "ms" value: 15000 + # In 20s, the value will have changed by 180*20/30 = 120. A 15% tolerance is 18, so value must be + # 60-120 = 255-60 = 195+/-18 => (177, 213) - label: "Step 3d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 165 - maxValue: 225 + minValue: 177 + maxValue: 213 - label: "Wait 10s" PICS: CC.S.F00 @@ -251,14 +258,16 @@ tests: - name: "ms" value: 10000 + # In 30s, the value will have changed by 180*30/30 = 180. A 15% tolerance is 27, so value must be + # 60-180 = 255-120 = 135+/-27 => (108, 162) - label: "Step 3e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 115 - maxValue: 155 + minValue: 108 + maxValue: 162 - label: "Wait 5s" PICS: CC.S.F00 @@ -275,8 +284,8 @@ tests: attribute: "CurrentHue" response: constraints: - minValue: 115 - maxValue: 155 + minValue: 108 + maxValue: 162 - label: "Step 4a: TH sends MoveToHue command to DUT with Hue=60, From db558f35b7034f919b4a231b930064188eb1b417 Mon Sep 17 00:00:00 2001 From: Alejandro Buezo Date: Wed, 5 Feb 2025 14:38:22 +0000 Subject: [PATCH 9/9] updated 4x, 5x with tolerance in change and added comments --- .../suites/certification/Test_TC_CC_3_1.yaml | 46 +++++++++++-------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index 01281f38f0939e..30dc9840186ab0 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -98,7 +98,7 @@ tests: - name: "ms" value: 10000 - # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be 80+/-3 => (77, 83) + # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be in range 80+/-3 => [77, 83] - label: "Step 2c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -117,7 +117,7 @@ tests: - name: "ms" value: 10000 - # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be 100+/-6 => (94, 106) + # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be in range 100+/-6 => [94, 106] - label: "Step 2d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -136,7 +136,7 @@ tests: - name: "ms" value: 10000 - # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be 120+/-9 => (111, 129) + # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be in range 120+/-9 => [111, 129] - label: "Step 2e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -219,7 +219,7 @@ tests: value: 5000 # In 30s, the value will have changed by 180 (total change) - # In 5s, the value will have changed by 180*5/30 = 30. A 15% tolerance is 4.5, so ~5, and value must be 30+/-5 => (25, 35) + # In 5s, the value will have changed by 180*5/30 = 30. A 15% tolerance is 4.5, so ~5, and value must be in range 30+/-5 => [25, 35] - label: "Step 3c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -238,8 +238,8 @@ tests: - name: "ms" value: 15000 - # In 20s, the value will have changed by 180*20/30 = 120. A 15% tolerance is 18, so value must be - # 60-120 = 255-60 = 195+/-18 => (177, 213) + # In 20s, the value will have changed by 180*20/30 = 120. A 15% tolerance is 18, so value must be in range + # 60-120 = 255-60 = 195+/-18 => [177, 213] - label: "Step 3d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -258,8 +258,8 @@ tests: - name: "ms" value: 10000 - # In 30s, the value will have changed by 180*30/30 = 180. A 15% tolerance is 27, so value must be - # 60-180 = 255-120 = 135+/-27 => (108, 162) + # In 30s, the value will have changed by 180*30/30 = 180. A 15% tolerance is 27, so value must be in range + # 60-180 = 255-120 = 135+/-27 => [108, 162] - label: "Step 3e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" @@ -341,14 +341,15 @@ tests: - name: "ms" value: 10000 + # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be in range 80+/-3 => [77, 83] - label: "Step 4c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 68 - maxValue: 92 + minValue: 77 + maxValue: 83 - label: "Wait 10s" PICS: CC.S.F00 @@ -359,14 +360,15 @@ tests: - name: "ms" value: 10000 + # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be in range 100+/-6 => [94, 106] - label: "Step 4d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 85 - maxValue: 115 + minValue: 94 + maxValue: 106 - label: "Wait 10s" PICS: CC.S.F00 @@ -377,14 +379,15 @@ tests: - name: "ms" value: 10000 + # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be in range 120+/-9 => [111, 129] - label: "Step 4e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 102 - maxValue: 138 + minValue: 111 + maxValue: 129 - label: "Wait 5s" PICS: CC.S.F00 @@ -401,8 +404,8 @@ tests: attribute: "CurrentHue" response: constraints: - minValue: 102 - maxValue: 138 + minValue: 111 + maxValue: 129 - label: "Step 5a: TH sends MoveToHue command to DUT with Hue=120, @@ -458,14 +461,15 @@ tests: - name: "ms" value: 10000 + # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be in range 100+/-3 => [97, 103] - label: "Step 5c: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 85 - maxValue: 115 + minValue: 97 + maxValue: 103 - label: "Wait 10s" PICS: CC.S.F00 @@ -476,14 +480,15 @@ tests: - name: "ms" value: 10000 + # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be in range 80+/-6 => [74, 86] - label: "Step 5d: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute" attribute: "CurrentHue" response: constraints: - minValue: 68 - maxValue: 92 + minValue: 74 + maxValue: 86 - label: "Wait 10s" PICS: CC.S.F00 @@ -494,6 +499,7 @@ tests: - name: "ms" value: 10000 + # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be in range 60+/-9 => [51, 69] - label: "Step 5e: TH reads CurrentHue attribute from DUT" PICS: CC.S.F00 && CC.S.A0000 command: "readAttribute"