Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TC-CC-8.1] Update test to automate steps #37335

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 16 additions & 39 deletions src/app/tests/suites/certification/Test_TC_CC_8_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ tests:
- name: "OptionsOverride"
value: 0

- label: "Wait 10s"
- label: "Wait 20s"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10000
value: 20000

- label: "Step 2c: TH sends StopMoveStep command to DUT"
PICS: CC.S.C47.Rsp
Expand All @@ -103,27 +103,14 @@ tests:
- name: "OptionsOverride"
value: 0

#Tolerance to be computed from the range
#Start value 200, expected value 250, 200 - 250 = -50, 50 % 15 = 8 , So 250+/-8 We need two range here as 254 is the max value
#242...254...0...4
#Multiple range not supported in YAML: https://github.com/project-chip/connectedhomeip/issues/23197
- label: "Step 2d: TH reads CurrentHue attribute from DUT"
PICS: CC.S.A0000 && CC.S.C01.Rsp && PICS_SKIP_SAMPLE_APP
verification: |
./chip-tool colorcontrol read current-hue 1 1

Verify CurrentHue attribute is 250 on TH(chip-tool) Log and below is the sample log provided for the raspi platform

[1686057413.567938][20912:20914] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 1835932678
[1686057413.567958][20912:20914] CHIP:TOO: CurrentHue: 250
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
PICS: CC.S.A0000 && CC.S.C01.Rsp
command: "readAttribute"
attribute: "CurrentHue"
response:
constraints:
minValue: 20
maxValue: 60

- label: "Wait 2s"
cluster: "DelayCommands"
Expand All @@ -133,24 +120,14 @@ tests:
- name: "ms"
value: 2000

#Multiple range not supported in YAML: https://github.com/project-chip/connectedhomeip/issues/23197
- label: "Step 2e: TH reads CurrentHue attribute from DUT"
PICS: CC.S.A0000 && CC.S.C01.Rsp && PICS_SKIP_SAMPLE_APP
verification: |
./chip-tool colorcontrol read current-hue 1 1

After another 2 seconds, Verify CurrentHue value is stabilized at 250 on TH(chip-tool) Log and below is the sample log provided for the raspi platform

[1686057413.567938][20912:20914] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 1835932678
[1686057413.567958][20912:20914] CHIP:TOO: CurrentHue: 250
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
PICS: CC.S.A0000 && CC.S.C01.Rsp
command: "readAttribute"
attribute: "CurrentHue"
response:
constraints:
minValue: 20
maxValue: 60

- label:
"Step 3a: TH sends MoveToSaturation command to DUT with Saturation=150
Expand Down
Loading