Skip to content

Commit

Permalink
Test added manualscripts (#18639)
Browse files Browse the repository at this point in the history
* Added manual scripts

* Added auto generated file

* Restyled by whitespace

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Jul 19, 2023
1 parent a5d3ad4 commit 2635986
Show file tree
Hide file tree
Showing 61 changed files with 8,099 additions and 4,058 deletions.
84 changes: 84 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ACT_1_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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.1.1. [TC-ACT-1.1] Global attributes with server as DUT

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

tests:
- label: "Commission DUT to TH (can be skipped if done in a preceding test)"
verification: |
disabled: true

- label: "Read ClusterRevision (global attribute 65533)"
verification: |
./chip-tool bridgedactions read cluster-revision 1 1
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_FFFD DataVersion: 3573360937
[1649664569.312693][8655:8660] CHIP:TOO: ClusterRevision: 1
disabled: true

- label: "Read FeatureMap (global attribute 65532)"
verification: |
./chip-tool bridgedactions read feature-map 1 1
Need to implement in SDK
disabled: true

- label: "Read AttributeList (global attribute 65531)"
verification: |
./chip-tool bridgedactions read attribute-list 1 1
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_FFFB DataVersion: 3573360937
[1649664685.946524][8671:8676] CHIP:TOO: AttributeList: 7 entries
[1649664685.946600][8671:8676] CHIP:TOO: [1]: 0
[1649664685.946649][8671:8676] CHIP:TOO: [2]: 1
[1649664685.946696][8671:8676] CHIP:TOO: [3]: 2
[1649664685.946744][8671:8676] CHIP:TOO: [4]: 65528
[1649664685.946790][8671:8676] CHIP:TOO: [5]: 65529
[1649664685.946836][8671:8676] CHIP:TOO: [6]: 65531
[1649664685.946901][8671:8676] CHIP:TOO: [7]: 65533
disabled: true

- label: "Read EventList (global attribute 65530)"
verification: |
./chip-tool bridgedactions read event-list 1 1
Need to implement in chip-tool
disabled: true

- label:
"Read AcceptedCommandList (global attribute 65529) ; retain this list
for reference in test [TC-ACT-2.2] step 4d"
verification: |
./chip-tool bridgedactions read accepted-command-list 1 1
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_FFF9 DataVersion: 2809940331
CHIP:TOO: AcceptedCommandList: 0 entries
CHIP:EM: Sending Standalone Ack for MessageCounter:3357407 on exchange 13031i
disabled: true

- label: "Read GeneratedCommandList (global attribute 65528)"
verification: |
./chip-tool bridgedactions read generated-command-list 1 1
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_FFF8 DataVersion: 2809940331
CHIP:TOO: GeneratedCommandList: 0 entries
CHIP:EM: Sending Standalone Ack for MessageCounter:14920557 on exchange 16149i
disabled: true
177 changes: 177 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ACT_2_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# 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.1. [TC-ACT-2.1] Attributes with server as DUT

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

tests:
- label: "Commission DUT to TH (can be skipped if done in a preceding test)"
verification: |
disabled: true

- label:
"Use manufacturer provided means (e.g. app) to define groups of
endpoints that can be exposed using the Actions server cluster (NOTE
if this is not provided, it is assumed the DUT automagically creates
these)"
verification: |
no Matter messages, result will be used in steps 4a and beyond
disabled: true

- label:
"Use manufacturer provided means (e.g. app) to define available
actions that can be exposed using the Actions server cluster (NOTE if
this is not provided, it is assumed the DUT automagically creates
these)"
verification: |
no Matter messages, result will be used in steps 5a and beyond
disabled: true

- label:
"Read PartsList attribute of Descriptor cluster on all endpoints of
the DUT"
verification: |
Read PartsList attribute of Descriptor cluster on all endpoints of the DUT (start with EP 0 and recursively handle all the EP found in the PartsList)
disabled: true

- label: "Compile a list of all endpoints on the server"
verification: |
internal TH: create list of all EP on this server
disabled: true

- label:
"Read EndpointLists attribute of Actions server and validate the
EndpointListStructs using the following steps"
verification: |
Read EndpointLists attribute
disabled: true

- label:
"For each EndpointListStruct, verify that the endpoints in the
Endpoints field are in the list of endpoints of the DUT"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label: "For each EndpointListStruct, verify that the Name is present"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"For each EndpointListStruct, verify that the Type is present and
valid"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"Verify that the EndPointListIDs of all EndpointListStruct are unique
(no duplicates)"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"For each EndpointListStruct, verify Name and Type against the
name/type of each group of endpoints provided by the manufacturers
means"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"Read ActionList attribute of Actions server and validate the
ActionStructs using the following steps"
verification: |
Read ActionList attribute
disabled: true

- label: "For each ActionStruct, verify the Name is present"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label: "For each ActionStruct, verify the Type is present and valid"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"For each ActionStruct, verify the EndpointListID is present in one of
the EndpointListStructs (see step 4a)"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"For each ActionStruct, verify the SupportedCommands field is present
and valid (at least one bit is set)"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"For each ActionStruct, verify the State field is present and valid"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"Verify that the ActionIDs of all ActionStructs are unique (no
duplicates)"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"For each ActionStruct, verify Name, Type and State against the
name/type/state info for the action provided by the manufacturers
means"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label: "Read SetupURL attribute"
verification: |
Read SetupURL attribute
disabled: true

- label:
"Verify that its syntax follows the syntax as specified in RFC 3986,
max. 512 ASCII characters"
verification: |
no Matter messages, but TH internal checking
disabled: true

- label:
"Verify SetupURL points to a site providing information about the
actions"
verification: |
no Matter messages, but TH internal checking + accessing the URL on the internet
disabled: true

- label:
'Verify SetupURL appended by "?/a=" and the decimal numeric value of
one of the exposed ActionIDs (see step 5a) points to a site providing
information about the action'
verification: |
no Matter messages, but TH internal checking + accessing the URL on the internet
disabled: true
Loading

0 comments on commit 2635986

Please sign in to comment.