Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cluster Testscripts #19580

Merged
merged 5 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 58 additions & 84 deletions src/app/tests/suites/certification/Test_TC_DESC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,101 +13,75 @@
# 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: 84.1.1. [ [TC-DESC-1.1]] Descriptor Cluster Attributes with DUT as Server
name: 84.1.1. [TC-DESC-1.1] Descriptor Cluster Attributes with DUT as Server

config:
nodeId: 0x12344321
cluster: "Basic"
cluster: "Descriptor"
endpoint: 0

tests:
- label: "TH reads DeviceTypeList attribute from DUT."
verification: |
sudo ./chip-tool descriptor read device-list 1 0
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

[1641454498.809603][16120:16125] CHIP:TOO: Descriptor.DeviceList response: 1 entries
[1641454498.809737][16120:16125] CHIP:TOO: [1]: {
[1641454498.809780][16120:16125] CHIP:TOO: Type: 22
[1641454498.809817][16120:16125] CHIP:TOO: Revision: 1
[1641454498.809852][16120:16125] CHIP:TOO: }
[1641454498.809938][16120:16125] CHIP:EM: Sending Standalone Ack for MessageCounter:52943 on exchange 24061i
disabled: true
- label: "Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: uint16

- label: "TH reads 'ServerList' attribute."
verification: |
sudo ./chip-tool descriptor read server-list 1 0
- label: "Read the global attribute: FeatureMap"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: map32

[1641454794.918507][16140:16146] CHIP:DMG: SuppressResponse = true,
[1641454794.918530][16140:16146] CHIP:DMG: }
[1641454794.920033][16140:16146] CHIP:TOO: Descriptor.ServerList response: 23 entries
[1641454794.920083][16140:16146] CHIP:TOO: [1]: 3
[1641454794.920110][16140:16146] CHIP:TOO: [2]: 4
[1641454794.920134][16140:16146] CHIP:TOO: [3]: 29
[1641454794.920157][16140:16146] CHIP:TOO: [4]: 30
[1641454794.920181][16140:16146] CHIP:TOO: [5]: 31
[1641454794.920204][16140:16146] CHIP:TOO: [6]: 40
[1641454794.920227][16140:16146] CHIP:TOO: [7]: 41
[1641454794.920250][16140:16146] CHIP:TOO: [8]: 42
[1641454794.920274][16140:16146] CHIP:TOO: [9]: 46
[1641454794.920297][16140:16146] CHIP:TOO: [10]: 48
[1641454794.920321][16140:16146] CHIP:TOO: [11]: 49
[1641454794.920344][16140:16146] CHIP:TOO: [12]: 50
[1641454794.920367][16140:16146] CHIP:TOO: [13]: 51
[1641454794.920391][16140:16146] CHIP:TOO: [14]: 52
[1641454794.920414][16140:16146] CHIP:TOO: [15]: 53
[1641454794.920437][16140:16146] CHIP:TOO: [16]: 54
[1641454794.920461][16140:16146] CHIP:TOO: [17]: 55
[1641454794.920484][16140:16146] CHIP:TOO: [18]: 60
[1641454794.920507][16140:16146] CHIP:TOO: [19]: 62
[1641454794.920530][16140:16146] CHIP:TOO: [20]: 63
[1641454794.920554][16140:16146] CHIP:TOO: [21]: 64
[1641454794.920577][16140:16146] CHIP:TOO: [22]: 65
[1641454794.920600][16140:16146] CHIP:TOO: [23]: 1029
[1641454794.920687][16140:16146] CHIP:EM: Sending Standalone Ack for MessageCounter:8175897 on exchange 54373i
disabled: true
- label: "Read the global attribute: AttributeList"
command: "readAttribute"
attribute: "AttributeList"
response:
contains: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
constraints:
type: list

- label: "TH reads 'ClientList' attribute"
#issue #11053 disabled steps below Global attributes missing from YAML framework
- label:
"Read EventList attribute from the DUT and Verify that the DUT
response provides a list of supported events."
verification: |
sudo ./chip-tool descriptor read client-list 1 0

[1641456529.633047][16220:16225] CHIP:DMG: SuppressResponse = true,
[1641456529.633105][16220:16225] CHIP:DMG: }
[1641456529.633403][16220:16225] CHIP:TOO: Descriptor.ClientList response: 0 entries
[1641456529.633509][16220:16225] CHIP:EM: Sending Standalone Ack for MessageCounter:3437551 on exchange 887i
Not implemented in chip-tool
disabled: true
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "TH reads 'PartsList' attribute."
verification: |
sudo ./chip-tool descriptor read parts-list 1 0

[1641456769.777217][16238:16244] CHIP:DMG: SuppressResponse = true,
[1641456769.777267][16238:16244] CHIP:DMG: }
[1641456769.777839][16238:16244] CHIP:TOO: Descriptor.PartsList response: 2 entries
[1641456769.777925][16238:16244] CHIP:TOO: [1]: 1
[1641456769.777978][16238:16244] CHIP:TOO: [2]: 2
[1641456769.778080][16238:16244] CHIP:EM: Sending Standalone Ack for MessageCounter:2830202 on exchange 38042i
disabled: true
- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "TH1 reads the AttributeList attribute from the DUT"
verification: |
sudo ./chip-tool descriptor read attribute-list 1 0

[1641456932.082331][16256:16261] CHIP:TOO: Descriptor.AttributeList response: 6 entries
[1641456932.082382][16256:16261] CHIP:TOO: [1]: 0
[1641456932.082409][16256:16261] CHIP:TOO: [2]: 1
[1641456932.082435][16256:16261] CHIP:TOO: [3]: 2
[1641456932.082461][16256:16261] CHIP:TOO: [4]: 3
[1641456932.082487][16256:16261] CHIP:TOO: [5]: 65531
[1641456932.082512][16256:16261] CHIP:TOO: [6]: 65533
[1641456932.082570][16256:16261] CHIP:EM: Sending Standalone Ack for MessageCounter:9736412 on exchange 3286i
disabled: true

- label: "TH1 reads the ClusterRevision attribute from the DUT"
verification: |
sudo ./chip-tool descriptor read cluster-revision 1 0

[1641456975.533390][16268:16274] CHIP:DMG: SuppressResponse = true,
[1641456975.533439][16268:16274] CHIP:DMG: }
[1641456975.533710][16268:16274] CHIP:TOO: Descriptor.ClusterRevision response: 1
[1641456975.533831][16268:16274] CHIP:EM: Sending Standalone Ack for MessageCounter:14484175 on exchange 41618i
disabled: true
- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
87 changes: 87 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DGGEN_1_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 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: 85.1.1. [TC-DGGEN-1.1] Global attributes with server as DUT

config:
nodeId: 0x12344321
cluster: "General Diagnostics"
endpoint: 0

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: uint16

- label: "Read the global attribute: FeatureMap"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: map32

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
attribute: "AttributeList"
response:
contains: [0, 1, 8, 65528, 65529, 65531, 65533]
constraints:
type: list

#issue #11053 disabled steps below Global attributes missing from YAML framework
- label:
"Read EventList attribute from the DUT and Verify that the DUT
response provides a list of supported events."
verification: |
Not implemented in chip-tool
disabled: true
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: [0]
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
Loading