blob: 682d30ffbd9e49125badff257f0712700c8424df [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.4. [TC-CC-3.4] Hue functionality 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.
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.F00(HS)
disabled: true
- label: "DUT sends MoveToHue command to TH"
PICS: CC.C.C00.Tx
verification: |
./chip-tool colorcontrol move-to-hue 1 0 300 0 0 1 1
Verify success response in TH(all-clusters-app) Log:
InvokeResponseMessage =
[1666870032.550840][28972:28972] CHIP:DMG: {
[1666870032.550844][28972:28972] CHIP:DMG: suppressResponse = false,
[1666870032.550847][28972:28972] CHIP:DMG: InvokeResponseIBs =
[1666870032.550852][28972:28972] CHIP:DMG: [
[1666870032.550855][28972:28972] CHIP:DMG: InvokeResponseIB =
[1666870032.550861][28972:28972] CHIP:DMG: {
[1666870032.550864][28972:28972] CHIP:DMG: CommandStatusIB =
[1666870032.550867][28972:28972] CHIP:DMG: {
[1666870032.550870][28972:28972] CHIP:DMG: CommandPathIB =
[1666870032.550874][28972:28972] CHIP:DMG: {
[1666870032.550877][28972:28972] CHIP:DMG: EndpointId = 0x1,
[1666870032.550881][28972:28972] CHIP:DMG: ClusterId = 0x300,
[1666870032.550888][28972:28972] CHIP:DMG: CommandId = 0x0,
[1666870032.550892][28972:28972] CHIP:DMG: },
[1666870032.550898][28972:28972] CHIP:DMG:
[1666870032.550901][28972:28972] CHIP:DMG: StatusIB =
[1666870032.550905][28972:28972] CHIP:DMG: {
[1666870032.550909][28972:28972] CHIP:DMG: status = 0x00 (SUCCESS),
[1666870032.550912][28972:28972] CHIP:DMG: },
[1666870032.550915][28972:28972] CHIP:DMG:
[1666870032.550918][28972:28972] CHIP:DMG: },
[1666870032.550923][28972:28972] CHIP:DMG:
[1666870032.550926][28972:28972] CHIP:DMG: },
[1666870032.550930][28972:28972] CHIP:DMG:
[1666870032.550932][28972:28972] CHIP:DMG: ],
[1666870032.550936][28972:28972] CHIP:DMG:
[1666870032.550939][28972:28972] CHIP:DMG: InteractionModelRevision = 1
[1666870032.550942][28972:28972] CHIP:DMG: },
disabled: true
- label:
"DUT reads CurrentHue attribute from TH (potentially multiple times)"
PICS: CC.C.C00.Tx && CC.C.A0000
verification: |
./chip-tool colorcontrol read current-hue 1 1
After 30 Seconds, Verify response contains a CurrentHue value in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666949574.856267][53285:53285] CHIP:DMG: {
[1666949574.856270][53285:53285] CHIP:DMG: AttributeReportIBs =
[1666949574.856277][53285:53285] CHIP:DMG: [
[1666949574.856282][53285:53285] CHIP:DMG: AttributeReportIB =
[1666949574.856288][53285:53285] CHIP:DMG: {
[1666949574.856293][53285:53285] CHIP:DMG: AttributeDataIB =
[1666949574.856300][53285:53285] CHIP:DMG: {
[1666949574.856305][53285:53285] CHIP:DMG: DataVersion = 0x2574734d,
[1666949574.856312][53285:53285] CHIP:DMG: AttributePathIB =
[1666949574.856317][53285:53285] CHIP:DMG: {
[1666949574.856323][53285:53285] CHIP:DMG: Endpoint = 0x1,
[1666949574.856328][53285:53285] CHIP:DMG: Cluster = 0x300,
[1666949574.856334][53285:53285] CHIP:DMG: Attribute = 0x0000_0000,
[1666949574.856338][53285:53285] CHIP:DMG: }
[1666949574.856346][53285:53285] CHIP:DMG:
[1666949574.856351][53285:53285] CHIP:DMG: Data = 1,
[1666949574.856355][53285:53285] CHIP:DMG: },
[1666949574.856361][53285:53285] CHIP:DMG:
[1666949574.856366][53285:53285] CHIP:DMG: },
[1666949574.856372][53285:53285] CHIP:DMG:
[1666949574.856376][53285:53285] CHIP:DMG: ],
[1666949574.856382][53285:53285] CHIP:DMG:
[1666949574.856388][53285:53285] CHIP:DMG: SuppressResponse = true,
[1666949574.856392][53285:53285] CHIP:DMG: InteractionModelRevision = 1
[1666949574.856395][53285:53285] CHIP:DMG: }
disabled: true
- label: "DUT sends MoveHue command to TH"
PICS: CC.C.C01.Tx
verification: |
./chip-tool colorcontrol move-hue 1 10 0 0 1 1
Verify success response in TH(all-clusters-app) Log:
InvokeResponseMessage =
[1666870102.191351][28972:28972] CHIP:DMG: {
[1666870102.191354][28972:28972] CHIP:DMG: suppressResponse = false,
[1666870102.191357][28972:28972] CHIP:DMG: InvokeResponseIBs =
[1666870102.191362][28972:28972] CHIP:DMG: [
[1666870102.191365][28972:28972] CHIP:DMG: InvokeResponseIB =
[1666870102.191370][28972:28972] CHIP:DMG: {
[1666870102.191373][28972:28972] CHIP:DMG: CommandStatusIB =
[1666870102.191377][28972:28972] CHIP:DMG: {
[1666870102.191380][28972:28972] CHIP:DMG: CommandPathIB =
[1666870102.191383][28972:28972] CHIP:DMG: {
[1666870102.191387][28972:28972] CHIP:DMG: EndpointId = 0x1,
[1666870102.191390][28972:28972] CHIP:DMG: ClusterId = 0x300,
[1666870102.191394][28972:28972] CHIP:DMG: CommandId = 0x1,
[1666870102.191396][28972:28972] CHIP:DMG: },
[1666870102.191401][28972:28972] CHIP:DMG:
[1666870102.191404][28972:28972] CHIP:DMG: StatusIB =
[1666870102.191408][28972:28972] CHIP:DMG: {
[1666870102.191411][28972:28972] CHIP:DMG: status = 0x00 (SUCCESS),
[1666870102.191414][28972:28972] CHIP:DMG: },
[1666870102.191418][28972:28972] CHIP:DMG:
[1666870102.191421][28972:28972] CHIP:DMG: },
[1666870102.191426][28972:28972] CHIP:DMG:
[1666870102.191428][28972:28972] CHIP:DMG: },
[1666870102.191432][28972:28972] CHIP:DMG:
[1666870102.191435][28972:28972] CHIP:DMG: ],
[1666870102.191439][28972:28972] CHIP:DMG:
[1666870102.191442][28972:28972] CHIP:DMG: InteractionModelRevision = 1
[1666870102.191444][28972:28972] CHIP:DMG: },
disabled: true
- label: "DUT reads CurrentHue attribute (potentially multiple times)"
PICS: CC.C.C01.Tx && CC.C.A0000
verification: |
./chip-tool colorcontrol read current-hue 1 1
After 10 seconds, Verify response contains a CurrentHue value in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666949623.429109][53285:53285] CHIP:DMG: {
[1666949623.429112][53285:53285] CHIP:DMG: AttributeReportIBs =
[1666949623.429117][53285:53285] CHIP:DMG: [
[1666949623.429120][53285:53285] CHIP:DMG: AttributeReportIB =
[1666949623.429125][53285:53285] CHIP:DMG: {
[1666949623.429128][53285:53285] CHIP:DMG: AttributeDataIB =
[1666949623.429130][53285:53285] CHIP:DMG: {
[1666949623.429134][53285:53285] CHIP:DMG: DataVersion = 0x25747484,
[1666949623.429137][53285:53285] CHIP:DMG: AttributePathIB =
[1666949623.429141][53285:53285] CHIP:DMG: {
[1666949623.429144][53285:53285] CHIP:DMG: Endpoint = 0x1,
[1666949623.429147][53285:53285] CHIP:DMG: Cluster = 0x300,
[1666949623.429153][53285:53285] CHIP:DMG: Attribute = 0x0000_0000,
[1666949623.429156][53285:53285] CHIP:DMG: }
[1666949623.429161][53285:53285] CHIP:DMG:
[1666949623.429164][53285:53285] CHIP:DMG: Data = 101,
[1666949623.429167][53285:53285] CHIP:DMG: },
[1666949623.429172][53285:53285] CHIP:DMG:
[1666949623.429175][53285:53285] CHIP:DMG: },
[1666949623.429180][53285:53285] CHIP:DMG:
[1666949623.429182][53285:53285] CHIP:DMG: ],
[1666949623.429187][53285:53285] CHIP:DMG:
[1666949623.429191][53285:53285] CHIP:DMG: SuppressResponse = true,
[1666949623.429193][53285:53285] CHIP:DMG: InteractionModelRevision = 1
[1666949623.429196][53285:53285] CHIP:DMG: }
[1666870203.891709][28972:28972] CHIP:DMG: }
disabled: true
- label: "DUT sends StepHue command to TH"
PICS: CC.C.C02.Tx
verification: |
./chip-tool colorcontrol step-hue 1 10 200 0 0 1 1
Verify success response in TH(all-clusters-app) Log:
InvokeResponseMessage =
[1666870245.178660][28972:28972] CHIP:DMG: {
[1666870245.178664][28972:28972] CHIP:DMG: suppressResponse = false,
[1666870245.178668][28972:28972] CHIP:DMG: InvokeResponseIBs =
[1666870245.178675][28972:28972] CHIP:DMG: [
[1666870245.178678][28972:28972] CHIP:DMG: InvokeResponseIB =
[1666870245.178687][28972:28972] CHIP:DMG: {
[1666870245.178691][28972:28972] CHIP:DMG: CommandStatusIB =
[1666870245.178696][28972:28972] CHIP:DMG: {
[1666870245.178700][28972:28972] CHIP:DMG: CommandPathIB =
[1666870245.178705][28972:28972] CHIP:DMG: {
[1666870245.178710][28972:28972] CHIP:DMG: EndpointId = 0x1,
[1666870245.178715][28972:28972] CHIP:DMG: ClusterId = 0x300,
[1666870245.178720][28972:28972] CHIP:DMG: CommandId = 0x2,
[1666870245.178724][28972:28972] CHIP:DMG: },
[1666870245.178731][28972:28972] CHIP:DMG:
[1666870245.178736][28972:28972] CHIP:DMG: StatusIB =
[1666870245.178740][28972:28972] CHIP:DMG: {
[1666870245.178745][28972:28972] CHIP:DMG: status = 0x00 (SUCCESS),
[1666870245.178749][28972:28972] CHIP:DMG: },
[1666870245.178755][28972:28972] CHIP:DMG:
[1666870245.178759][28972:28972] CHIP:DMG: },
[1666870245.178764][28972:28972] CHIP:DMG:
[1666870245.178769][28972:28972] CHIP:DMG: },
[1666870245.178776][28972:28972] CHIP:DMG:
[1666870245.178779][28972:28972] CHIP:DMG: ],
[1666870245.178785][28972:28972] CHIP:DMG:
[1666870245.178789][28972:28972] CHIP:DMG: InteractionModelRevision = 1
[1666870245.178793][28972:28972] CHIP:DMG: },
[1666870245.178797][28972:28972] CHIP:DMG:
disabled: true
- label:
"DUT reads CurrentHue attribute from TH (potentially multiple times)"
PICS: CC.C.C02.Tx && CC.C.A0000
verification: |
./chip-tool colorcontrol read current-hue 1 1
After 20 Seconds, Verify response contains a CurrentHue value in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666949869.970496][53285:53285] CHIP:DMG: {
[1666949869.970499][53285:53285] CHIP:DMG: AttributeReportIBs =
[1666949869.970506][53285:53285] CHIP:DMG: [
[1666949869.970510][53285:53285] CHIP:DMG: AttributeReportIB =
[1666949869.970518][53285:53285] CHIP:DMG: {
[1666949869.970522][53285:53285] CHIP:DMG: AttributeDataIB =
[1666949869.970527][53285:53285] CHIP:DMG: {
[1666949869.970532][53285:53285] CHIP:DMG: DataVersion = 0x2574821f,
[1666949869.970538][53285:53285] CHIP:DMG: AttributePathIB =
[1666949869.970543][53285:53285] CHIP:DMG: {
[1666949869.970548][53285:53285] CHIP:DMG: Endpoint = 0x1,
[1666949869.970554][53285:53285] CHIP:DMG: Cluster = 0x300,
[1666949869.970560][53285:53285] CHIP:DMG: Attribute = 0x0000_0000,
[1666949869.970565][53285:53285] CHIP:DMG: }
[1666949869.970571][53285:53285] CHIP:DMG:
[1666949869.970576][53285:53285] CHIP:DMG: Data = 111,
[1666949869.970581][53285:53285] CHIP:DMG: },
[1666949869.970590][53285:53285] CHIP:DMG:
[1666949869.970595][53285:53285] CHIP:DMG: },
[1666949869.970601][53285:53285] CHIP:DMG:
[1666949869.970605][53285:53285] CHIP:DMG: ],
[1666949869.970612][53285:53285] CHIP:DMG:
[1666949869.970617][53285:53285] CHIP:DMG: SuppressResponse = true,
[1666949869.970621][53285:53285] CHIP:DMG: InteractionModelRevision = 1
[1666949869.970625][53285:53285] CHIP:DMG: }
disabled: true
- label: "DUT sends StopMoveStep command to TH."
PICS: CC.C.C47.Tx
verification: |
./chip-tool colorcontrol stop-move-step 0 0 1 1
Verify success response in TH(all-clusters-app) Log:
InvokeResponseMessage =
[1666870295.408009][28972:28972] CHIP:DMG: {
[1666870295.408013][28972:28972] CHIP:DMG: suppressResponse = false,
[1666870295.408016][28972:28972] CHIP:DMG: InvokeResponseIBs =
[1666870295.408021][28972:28972] CHIP:DMG: [
[1666870295.408023][28972:28972] CHIP:DMG: InvokeResponseIB =
[1666870295.408029][28972:28972] CHIP:DMG: {
[1666870295.408032][28972:28972] CHIP:DMG: CommandStatusIB =
[1666870295.408036][28972:28972] CHIP:DMG: {
[1666870295.408039][28972:28972] CHIP:DMG: CommandPathIB =
[1666870295.408042][28972:28972] CHIP:DMG: {
[1666870295.408045][28972:28972] CHIP:DMG: EndpointId = 0x1,
[1666870295.408050][28972:28972] CHIP:DMG: ClusterId = 0x300,
[1666870295.408054][28972:28972] CHIP:DMG: CommandId = 0x47,
[1666870295.408057][28972:28972] CHIP:DMG: },
[1666870295.408062][28972:28972] CHIP:DMG:
[1666870295.408065][28972:28972] CHIP:DMG: StatusIB =
[1666870295.408070][28972:28972] CHIP:DMG: {
[1666870295.408074][28972:28972] CHIP:DMG: status = 0x00 (SUCCESS),
[1666870295.408078][28972:28972] CHIP:DMG: },
[1666870295.408082][28972:28972] CHIP:DMG:
[1666870295.408085][28972:28972] CHIP:DMG: },
[1666870295.408090][28972:28972] CHIP:DMG:
[1666870295.408093][28972:28972] CHIP:DMG: },
[1666870295.408098][28972:28972] CHIP:DMG:
[1666870295.408101][28972:28972] CHIP:DMG: ],
[1666870295.408106][28972:28972] CHIP:DMG:
[1666870295.408109][28972:28972] CHIP:DMG: InteractionModelRevision = 1
[1666870295.408111][28972:28972] CHIP:DMG: },
disabled: true
- label: "Over TransitionTime, DUT reads CurrentHue attribute from TH."
PICS: CC.C.C47.Tx && CC.C.A0000
verification: |
./chip-tool colorcontrol read current-hue 1 1
Verify response contains a CurrentHue value in TH(all-clusters-app) Logs:
ReportDataMessage =
[1666949915.651039][53285:53285] CHIP:DMG: {
[1666949915.651042][53285:53285] CHIP:DMG: AttributeReportIBs =
[1666949915.651048][53285:53285] CHIP:DMG: [
[1666949915.651051][53285:53285] CHIP:DMG: AttributeReportIB =
[1666949915.651056][53285:53285] CHIP:DMG: {
[1666949915.651059][53285:53285] CHIP:DMG: AttributeDataIB =
[1666949915.651062][53285:53285] CHIP:DMG: {
[1666949915.651066][53285:53285] CHIP:DMG: DataVersion = 0x2574821f,
[1666949915.651069][53285:53285] CHIP:DMG: AttributePathIB =
[1666949915.651072][53285:53285] CHIP:DMG: {
[1666949915.651079][53285:53285] CHIP:DMG: Endpoint = 0x1,
[1666949915.651084][53285:53285] CHIP:DMG: Cluster = 0x300,
[1666949915.651089][53285:53285] CHIP:DMG: Attribute = 0x0000_0000,
[1666949915.651093][53285:53285] CHIP:DMG: }
[1666949915.651100][53285:53285] CHIP:DMG:
[1666949915.651105][53285:53285] CHIP:DMG: Data = 111,
[1666949915.651110][53285:53285] CHIP:DMG: },
[1666949915.651116][53285:53285] CHIP:DMG:
[1666949915.651121][53285:53285] CHIP:DMG: },
[1666949915.651128][53285:53285] CHIP:DMG:
[1666949915.651131][53285:53285] CHIP:DMG: ],
[1666949915.651137][53285:53285] CHIP:DMG:
[1666949915.651141][53285:53285] CHIP:DMG: SuppressResponse = true,
[1666949915.651145][53285:53285] CHIP:DMG: InteractionModelRevision = 1
[1666949915.651148][53285:53285] CHIP:DMG: }
disabled: true