Skip to content

Commit

Permalink
Use move to handler as precondition level setter as it doesn't depend…
Browse files Browse the repository at this point in the history
… of the current level
  • Loading branch information
jmartinez-silabs committed Dec 17, 2021
1 parent 2ade6b4 commit a7157d3
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 110 deletions.
15 changes: 14 additions & 1 deletion src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,20 @@ tests:
cluster: "On/Off"
command: "on"

- label: "Precondition: DUT level is set to 0x80"
- label: "Precondition: DUT move to minimal level"
command: "MoveToLevel"
arguments:
values:
- name: "level"
value: 0
- name: "transitionTime"
value: 0
- name: "optionMask"
value: 1
- name: "optionOverride"
value: 1

- label: "Sends step Up command to DUT with by a step of 0x80"
command: "Step"
arguments:
values:
Expand Down
16 changes: 6 additions & 10 deletions src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ tests:
command: "on"

- label: "Precondition: DUT level is set to 0x80"
command: "Step"
command: "MoveToLevel"
arguments:
values:
- name: "stepMode"
value: 0
- name: "stepSize"
- name: "level"
value: 128
- name: "transitionTime"
value: 20
- name: "optionMask"
value: 0
- name: "optionMask"
value: 1
- name: "optionOverride"
value: 0
value: 1

- label: "Wait 3000ms"
cluster: "DelayCommands"
Expand All @@ -56,9 +54,7 @@ tests:
command: "readAttribute"
attribute: "current level"
response:
constraints:
minValue: 128
maxValue: 129
value: 128

- label: "Sends a move up command to DUT"
command: "Move"
Expand Down
74 changes: 49 additions & 25 deletions src/darwin/Framework/CHIPTests/CHIPClustersTests.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a7157d3

Please sign in to comment.