blob: 5638f482cddbc2cd5974bfd66b234772f965e797 [file] [log] [blame]
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
name: 27.2.9. [TC-CC-5.1] Color MoveTo functionality with server as DUT
PICS:
- CC.S
config:
nodeId: 0x12344321
cluster: "Color Control"
endpoint: 1
tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"
- label: "Check on/off attribute value is true after on command"
PICS: OO.S.A0000
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
response:
value: 1
- label: "TH writes 0 to the Options attribute"
PICS: CC.S.F03 && CC.S.A000f
command: "writeAttribute"
attribute: "Options"
arguments:
value: 0
- label: "TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003
command: "readAttribute"
attribute: "CurrentX"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label: "TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004
command: "readAttribute"
attribute: "CurrentY"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 13107
- name: "colorY"
value: 13107
- name: "TransitionTime"
value: 10
- name: "OptionsMask"
value: 0
- name: "OptionsOverride"
value: 0
- label: "Wait 1500ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1500
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 13107
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 13107
constraints:
type: int16u
minValue: 0
maxValue: 65279
- label: "TH writes 0 to the Options attribute"
PICS: CC.S.F03 && CC.S.A000f
command: "writeAttribute"
attribute: "Options"
arguments:
value: 0
- label: "TH reads Options attribute"
PICS: CC.S.F03 && CC.S.A000f
command: "writeAttribute"
attribute: "Options"
arguments:
value: 0
- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 32768
- name: "colorY"
value: 19660
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 0
- name: "OptionsOverride"
value: 0
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 32768
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 19660
- label: "TH sends Off command to DUT"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 13107
- name: "colorY"
value: 13107
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 0
- name: "OptionsOverride"
value: 0
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 32768
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 19660
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 13107
- name: "colorY"
value: 32768
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 1
- name: "OptionsOverride"
value: 0
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 32768
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 19660
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 26214
- name: "colorY"
value: 32768
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 1
- name: "OptionsOverride"
value: 1
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 26214
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 32768
- label: "TH writes 1 to the Options attribute"
PICS: CC.S.F03 && CC.S.A000f
command: "writeAttribute"
attribute: "Options"
arguments:
value: 1
- label: "TH reads Options attribute"
PICS: CC.S.F03 && CC.S.A000f
command: "writeAttribute"
attribute: "Options"
arguments:
value: 1
- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 32768
- name: "colorY"
value: 19660
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 0
- name: "OptionsOverride"
value: 0
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 32768
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 19660
- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 13107
- name: "colorY"
value: 13107
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 0
- name: "OptionsOverride"
value: 0
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 13107
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 13107
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 13107
- name: "colorY"
value: 32768
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 1
- name: "OptionsOverride"
value: 0
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 13107
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 13107
- label: "TH sends MoveToColor command to DUT"
PICS: CC.S.F03 && CC.S.C07.Rsp
command: "MoveToColor"
arguments:
values:
- name: "colorX"
value: 26214
- name: "colorY"
value: 32768
- name: "TransitionTime"
value: 0
- name: "OptionsMask"
value: 1
- name: "OptionsOverride"
value: 1
- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Over TransitionTime, TH reads CurrentX attribute from DUT"
PICS: CC.S.F03 && CC.S.A0003 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentX"
response:
value: 26214
- label: "Over TransitionTime, TH reads CurrentY attribute from DUT"
PICS: CC.S.F03 && CC.S.A0004 && CC.S.C07.Rsp
command: "readAttribute"
attribute: "CurrentY"
response:
value: 32768