blob: a902918714be651636e0e86ff235efd8e9636c77 [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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
name: 3.2.27. [TC-CC-9.4] ColorLoopSet Validation with client as DUT
PICS:
- CC.C
config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
tests:
- label: "Note"
verification: |
For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command.
Commission TH(all-clusters-app) to TH(chip-tool) using below command
TH(all-clusters-app) : sudo ./chip-all-clusters-app --trace_decode 1
TH(chip-tool) : ./chip-tool pairing onnetwork 1 20202021 --trace_decode 1
disabled: true
- label: "Precondition"
verification: |
1. Commission DUT to TH
2. Set DUT OnOff to On
./chip-tool onoff on 1 1
Verify response contains a success (value 0x00) status On TH(chip-tool) Logs:
[1659710262.390398][4459:4464] CHIP:DMG: InvokeResponseMessage =
[1659710262.390424][4459:4464] CHIP:DMG: {
[1659710262.390448][4459:4464] CHIP:DMG: suppressResponse = false,
[1659710262.390472][4459:4464] CHIP:DMG: InvokeResponseIBs =
[1659710262.390503][4459:4464] CHIP:DMG: [
[1659710262.390527][4459:4464] CHIP:DMG: InvokeResponseIB =
[1659710262.390559][4459:4464] CHIP:DMG: {
[1659710262.390584][4459:4464] CHIP:DMG: CommandStatusIB =
[1659710262.390617][4459:4464] CHIP:DMG: {
[1659710262.390642][4459:4464] CHIP:DMG: CommandPathIB =
[1659710262.390681][4459:4464] CHIP:DMG: {
[1659710262.390715][4459:4464] CHIP:DMG: EndpointId = 0x1,
[1659710262.390754][4459:4464] CHIP:DMG: ClusterId = 0x6,
[1659710262.390791][4459:4464] CHIP:DMG: CommandId = 0x1,
[1659710262.390826][4459:4464] CHIP:DMG: },
[1659710262.390866][4459:4464] CHIP:DMG:
[1659710262.390896][4459:4464] CHIP:DMG: StatusIB =
[1659710262.390938][4459:4464] CHIP:DMG: {
[1659710262.390977][4459:4464] CHIP:DMG: status = 0x00 (SUCCESS),
[1659710262.391012][4459:4464] CHIP:DMG: },
[1659710262.391050][4459:4464] CHIP:DMG:
[1659710262.391078][4459:4464] CHIP:DMG: },
[1659710262.391114][4459:4464] CHIP:DMG:
[1659710262.391143][4459:4464] CHIP:DMG: },
[1659710262.391174][4459:4464] CHIP:DMG:
[1659710262.391198][4459:4464] CHIP:DMG: ],
[1659710262.391227][4459:4464] CHIP:DMG:
[1659710262.391251][4459:4464] CHIP:DMG: InteractionModelRevision = 1
[1659710262.391273][4459:4464] CHIP:DMG: },
[1659710262.391331][4459:4464] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0001 Status=0x0
[1659710262.391373][4459:4464] CHIP:DMG: ICR moving to [AwaitingDe]
3. DUT supports CC.C.F02(CL) and CC.C.F01(EHUE)
disabled: true
- label: "DUT sends ColorLoopSet command to TH."
PICS: CC.C.C44.Tx
verification: |
./chip-tool colorcontrol color-loop-set 15 0 0 30 160 0 0 1 1
Verify success response in TH(all-clusters-app) Log:
InvokeResponseMessage =
[1666943432.354542][50787:50787] CHIP:DMG: {
[1666943432.354546][50787:50787] CHIP:DMG: suppressResponse = false,
[1666943432.354549][50787:50787] CHIP:DMG: InvokeResponseIBs =
[1666943432.354554][50787:50787] CHIP:DMG: [
[1666943432.354558][50787:50787] CHIP:DMG: InvokeResponseIB =
[1666943432.354563][50787:50787] CHIP:DMG: {
[1666943432.354565][50787:50787] CHIP:DMG: CommandStatusIB =
[1666943432.354570][50787:50787] CHIP:DMG: {
[1666943432.354573][50787:50787] CHIP:DMG: CommandPathIB =
[1666943432.354578][50787:50787] CHIP:DMG: {
[1666943432.354582][50787:50787] CHIP:DMG: EndpointId = 0x1,
[1666943432.354586][50787:50787] CHIP:DMG: ClusterId = 0x300,
[1666943432.354590][50787:50787] CHIP:DMG: CommandId = 0x44,
[1666943432.354594][50787:50787] CHIP:DMG: },
[1666943432.354600][50787:50787] CHIP:DMG:
[1666943432.354604][50787:50787] CHIP:DMG: StatusIB =
[1666943432.354608][50787:50787] CHIP:DMG: {
[1666943432.354612][50787:50787] CHIP:DMG: status = 0x00 (SUCCESS),
[1666943432.354616][50787:50787] CHIP:DMG: },
[1666943432.354620][50787:50787] CHIP:DMG:
[1666943432.354623][50787:50787] CHIP:DMG: },
[1666943432.354628][50787:50787] CHIP:DMG:
[1666943432.354632][50787:50787] CHIP:DMG: },
[1666943432.354637][50787:50787] CHIP:DMG:
[1666943432.354639][50787:50787] CHIP:DMG: ],
[1666943432.354644][50787:50787] CHIP:DMG:
[1666943432.354647][50787:50787] CHIP:DMG: InteractionModelRevision = 1
[1666943432.354651][50787:50787] CHIP:DMG: },
disabled: true
- label: "DUT read ColorLoopActive attribute from TH."
PICS: CC.C.A4002
verification: |
./chip-tool colorcontrol read color-loop-active 1 1
Verify response contains a value consistent in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666943470.409724][50787:50787] CHIP:DMG: {
[1666943470.409725][50787:50787] CHIP:DMG: AttributeReportIBs =
[1666943470.409730][50787:50787] CHIP:DMG: [
[1666943470.409733][50787:50787] CHIP:DMG: AttributeReportIB =
[1666943470.409738][50787:50787] CHIP:DMG: {
[1666943470.409742][50787:50787] CHIP:DMG: AttributeDataIB =
[1666943470.409745][50787:50787] CHIP:DMG: {
[1666943470.409749][50787:50787] CHIP:DMG: DataVersion = 0x71ecef04,
[1666943470.409752][50787:50787] CHIP:DMG: AttributePathIB =
[1666943470.409756][50787:50787] CHIP:DMG: {
[1666943470.409761][50787:50787] CHIP:DMG: Endpoint = 0x1,
[1666943470.409766][50787:50787] CHIP:DMG: Cluster = 0x300,
[1666943470.409770][50787:50787] CHIP:DMG: Attribute = 0x0000_4002,
[1666943470.409773][50787:50787] CHIP:DMG: }
[1666943470.409777][50787:50787] CHIP:DMG:
[1666943470.409780][50787:50787] CHIP:DMG: Data = 0,
[1666943470.409784][50787:50787] CHIP:DMG: },
[1666943470.409789][50787:50787] CHIP:DMG:
[1666943470.409791][50787:50787] CHIP:DMG: },
[1666943470.409795][50787:50787] CHIP:DMG:
[1666943470.409798][50787:50787] CHIP:DMG: ],
[1666943470.409802][50787:50787] CHIP:DMG:
[1666943470.409805][50787:50787] CHIP:DMG: SuppressResponse = true,
[1666943470.409808][50787:50787] CHIP:DMG: InteractionModelRevision = 1
[1666943470.409811][50787:50787] CHIP:DMG: }
disabled: true
- label: "DUT read ColorLoopDirection attribute from TH."
PICS: CC.C.A4003
verification: |
./chip-tool colorcontrol read color-loop-direction 1 1
Verify response contains a value consistent in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666943502.981937][50787:50787] CHIP:DMG: {
[1666943502.981940][50787:50787] CHIP:DMG: AttributeReportIBs =
[1666943502.981945][50787:50787] CHIP:DMG: [
[1666943502.981948][50787:50787] CHIP:DMG: AttributeReportIB =
[1666943502.981953][50787:50787] CHIP:DMG: {
[1666943502.981956][50787:50787] CHIP:DMG: AttributeDataIB =
[1666943502.981960][50787:50787] CHIP:DMG: {
[1666943502.981965][50787:50787] CHIP:DMG: DataVersion = 0x71ecef04,
[1666943502.981968][50787:50787] CHIP:DMG: AttributePathIB =
[1666943502.981971][50787:50787] CHIP:DMG: {
[1666943502.981977][50787:50787] CHIP:DMG: Endpoint = 0x1,
[1666943502.981980][50787:50787] CHIP:DMG: Cluster = 0x300,
[1666943502.981984][50787:50787] CHIP:DMG: Attribute = 0x0000_4003,
[1666943502.981987][50787:50787] CHIP:DMG: }
[1666943502.981991][50787:50787] CHIP:DMG:
[1666943502.981995][50787:50787] CHIP:DMG: Data = 0,
[1666943502.981998][50787:50787] CHIP:DMG: },
[1666943502.982003][50787:50787] CHIP:DMG:
[1666943502.982006][50787:50787] CHIP:DMG: },
[1666943502.982010][50787:50787] CHIP:DMG:
[1666943502.982013][50787:50787] CHIP:DMG: ],
[1666943502.982018][50787:50787] CHIP:DMG:
[1666943502.982021][50787:50787] CHIP:DMG: SuppressResponse = true,
[1666943502.982026][50787:50787] CHIP:DMG: InteractionModelRevision = 1
[1666943502.982028][50787:50787] CHIP:DMG: }
disabled: true
- label: "DUT read ColorLoopTime attribute from TH."
PICS: CC.C.A4004
verification: |
./chip-tool colorcontrol read color-loop-time 1 1
Verify response contains a value consistent in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666943523.885364][50787:50787] CHIP:DMG: {
[1666943523.885366][50787:50787] CHIP:DMG: AttributeReportIBs =
[1666943523.885371][50787:50787] CHIP:DMG: [
[1666943523.885374][50787:50787] CHIP:DMG: AttributeReportIB =
[1666943523.885378][50787:50787] CHIP:DMG: {
[1666943523.885381][50787:50787] CHIP:DMG: AttributeDataIB =
[1666943523.885384][50787:50787] CHIP:DMG: {
[1666943523.885387][50787:50787] CHIP:DMG: DataVersion = 0x71ecef04,
[1666943523.885390][50787:50787] CHIP:DMG: AttributePathIB =
[1666943523.885393][50787:50787] CHIP:DMG: {
[1666943523.885397][50787:50787] CHIP:DMG: Endpoint = 0x1,
[1666943523.885400][50787:50787] CHIP:DMG: Cluster = 0x300,
[1666943523.885403][50787:50787] CHIP:DMG: Attribute = 0x0000_4004,
[1666943523.885407][50787:50787] CHIP:DMG: }
[1666943523.885411][50787:50787] CHIP:DMG:
[1666943523.885415][50787:50787] CHIP:DMG: Data = 30,
[1666943523.885419][50787:50787] CHIP:DMG: },
[1666943523.885424][50787:50787] CHIP:DMG:
[1666943523.885427][50787:50787] CHIP:DMG: },
[1666943523.885431][50787:50787] CHIP:DMG:
[1666943523.885434][50787:50787] CHIP:DMG: ],
[1666943523.885439][50787:50787] CHIP:DMG:
[1666943523.885442][50787:50787] CHIP:DMG: SuppressResponse = true,
[1666943523.885445][50787:50787] CHIP:DMG: InteractionModelRevision = 1
[1666943523.885448][50787:50787] CHIP:DMG: }
disabled: true
- label: "DUT read ColorLoopStartEnhancedHue attribute from TH."
PICS: CC.C.A4005
verification: |
./chip-tool colorcontrol read color-loop-start-enhanced-hue 1 1
Verify response contains a value consistent in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666943561.448178][50787:50787] CHIP:DMG: {
[1666943561.448181][50787:50787] CHIP:DMG: AttributeReportIBs =
[1666943561.448186][50787:50787] CHIP:DMG: [
[1666943561.448189][50787:50787] CHIP:DMG: AttributeReportIB =
[1666943561.448193][50787:50787] CHIP:DMG: {
[1666943561.448196][50787:50787] CHIP:DMG: AttributeDataIB =
[1666943561.448199][50787:50787] CHIP:DMG: {
[1666943561.448203][50787:50787] CHIP:DMG: DataVersion = 0x71ecef04,
[1666943561.448206][50787:50787] CHIP:DMG: AttributePathIB =
[1666943561.448209][50787:50787] CHIP:DMG: {
[1666943561.448213][50787:50787] CHIP:DMG: Endpoint = 0x1,
[1666943561.448216][50787:50787] CHIP:DMG: Cluster = 0x300,
[1666943561.448220][50787:50787] CHIP:DMG: Attribute = 0x0000_4005,
[1666943561.448224][50787:50787] CHIP:DMG: }
[1666943561.448228][50787:50787] CHIP:DMG:
[1666943561.448232][50787:50787] CHIP:DMG: Data = 160,
[1666943561.448235][50787:50787] CHIP:DMG: },
[1666943561.448240][50787:50787] CHIP:DMG:
[1666943561.448243][50787:50787] CHIP:DMG: },
[1666943561.448247][50787:50787] CHIP:DMG:
[1666943561.448250][50787:50787] CHIP:DMG: ],
[1666943561.448254][50787:50787] CHIP:DMG:
[1666943561.448257][50787:50787] CHIP:DMG: SuppressResponse = true,
[1666943561.448260][50787:50787] CHIP:DMG: InteractionModelRevision = 1
[1666943561.448263][50787:50787] CHIP:DMG: }
disabled: true
- label:
"Over next 30 seconds, at 5 seconds interval, DUT read
EnhancedCurrentHue attribute from TH."
PICS: CC.C.A4000
verification: |
./chip-tool colorcontrol read enhanced-current-hue 1 1
Verify response contains a value consistent in TH(all-clusters-app) Logs:
[ReportDataMessage =
[1666943589.470649][50787:50787] CHIP:DMG: {
[1666943589.470651][50787:50787] CHIP:DMG: AttributeReportIBs =
[1666943589.470656][50787:50787] CHIP:DMG: [
[1666943589.470659][50787:50787] CHIP:DMG: AttributeReportIB =
[1666943589.470664][50787:50787] CHIP:DMG: {
[1666943589.470667][50787:50787] CHIP:DMG: AttributeDataIB =
[1666943589.470670][50787:50787] CHIP:DMG: {
[1666943589.470673][50787:50787] CHIP:DMG: DataVersion = 0x71ecef04,
[1666943589.470676][50787:50787] CHIP:DMG: AttributePathIB =
[1666943589.470680][50787:50787] CHIP:DMG: {
[1666943589.470684][50787:50787] CHIP:DMG: Endpoint = 0x1,
[1666943589.470687][50787:50787] CHIP:DMG: Cluster = 0x300,
[1666943589.470691][50787:50787] CHIP:DMG: Attribute = 0x0000_4000,
[1666943589.470694][50787:50787] CHIP:DMG: }
[1666943589.470698][50787:50787] CHIP:DMG:
[1666943589.470703][50787:50787] CHIP:DMG: Data = 0,
[1666943589.470706][50787:50787] CHIP:DMG: },
[1666943589.470710][50787:50787] CHIP:DMG:
[1666943589.470713][50787:50787] CHIP:DMG: },
[1666943589.470717][50787:50787] CHIP:DMG:
[1666943589.470720][50787:50787] CHIP:DMG: ],
[1666943589.470725][50787:50787] CHIP:DMG:
[1666943589.470728][50787:50787] CHIP:DMG: SuppressResponse = true,
[1666943589.470731][50787:50787] CHIP:DMG: InteractionModelRevision = 1
[1666943589.470733][50787:50787] CHIP:DMG: }
disabled: true