blob: edafcffe6ae85671e7749d057e60ce5939b37667 [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: Media Playback Cluster Tests
config:
cluster: "Media Playback"
endpoint: 3
tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
- label: "Read attribute playback state"
command: "readAttribute"
attribute: "playback state"
response:
value: 0
- label: "Read attribute start time"
command: "readAttribute"
attribute: "start time"
response:
value: 0
- label: "Read attribute duration"
command: "readAttribute"
attribute: "duration"
response:
value: 0
# TODO: Enable once attribute struct is supported
- label: "Read attribute position"
disabled: true
command: "readAttribute"
attribute: "position"
response:
value: { updatedAt: 0, position: 0 }
- label: "Read attribute playback speed"
command: "readAttribute"
attribute: "playback speed"
response:
value: 0.0
- label: "Read attribute seek range end"
command: "readAttribute"
attribute: "seek range end"
response:
value: 0
- label: "Read attribute seek range start"
command: "readAttribute"
attribute: "seek range start"
response:
value: 0
- label: "Media Playback Play Command"
command: "playRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Pause Command"
command: "pauseRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Stop Command"
command: "stopRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Start Over Command"
command: "startOverRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Previous Command"
command: "previousRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Next Command"
command: "nextRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Rewind Command"
command: "rewindRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Fast Forward Command"
command: "fastForwardRequest"
response:
values:
- name: "status"
value: 0
- label: "Media Playback Skip Forward Command"
command: "skipForwardRequest"
arguments:
values:
- name: "deltaPositionMilliseconds"
value: 100
response:
values:
- name: "status"
value: 0
- label: "Media Playback Skip Backward Command"
command: "skipBackwardRequest"
arguments:
values:
- name: "deltaPositionMilliseconds"
value: 100
response:
values:
- name: "status"
value: 0
- label: "Media Playback Seek Command"
command: "seekRequest"
arguments:
values:
- name: "position"
value: 100
response:
values:
- name: "status"
value: 0