| # 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: 65.2.2. [TC-PSCFG-2.2] Primary functionality with server as DUT |
| |
| PICS: |
| - PSCFG.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic Information" |
| endpoint: 0 |
| |
| tests: |
| - label: "Preconditions:" |
| verification: | |
| This test case is verified after the device is provisioned. Pls provision device first, Pass appropriate nodeID in the below command |
| disabled: true |
| |
| - label: "Commission DUT to TH" |
| verification: | |
| |
| disabled: true |
| |
| - label: "TH reads the Sources attribute from the DUT" |
| PICS: PSCFG.S.A0000 |
| verification: | |
| ./chip-tool powersourceconfiguration read sources 1 0 |
| |
| verify that source attribute provides a list has not more than 6 entries and Each list entry is unique, valid endpoint on TH(chip-tool) log: |
| |
| [...] |
| CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_0000DataVersion: 502821112 |
| CHIP:TOO: Sources: 3 entries |
| CHIP:TOO: [1]: 2 |
| CHIP:TOO: [2]: 1 |
| CHIP:TOO: [3]: 0 |
| disabled: true |
| |
| - label: |
| "TH reads the Order attribute from Power Source Cluster at |
| Enpoint[eNr] of the DUT" |
| verification: | |
| ./chip-tool powersource read order 1 2 |
| |
| verify that order attribute succeeds with no error.The order value is the same or greater than the order value of the previous iteration on TH(chip-tool) log: |
| |
| [1659879820.566144][2615:2620] CHIP:TOO: Endpoint: 2 Cluster: 0x0000_002F Attribute 0x0000_0001 DataVersion: 1842182672 |
| [1659879820.569572][2615:2620] CHIP:TOO: Order: 1 |
| |
| |
| ./chip-tool powersource read order 1 1 |
| |
| verify that order attribute succeeds with no error.The order value is the same or greater than the order value of the previous iteration on TH(chip-tool) log: |
| |
| [...] |
| [1653564242.694964][36231:36236] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_002F Attribute 0x0000_0001 DataVersion: 4212858705 |
| [1653564242.695038][36231:36236] CHIP:TOO: Order: 2 |
| |
| ./chip-tool powersource read order 1 0 |
| |
| verify that order attribute succeeds with no error.The order value is the same or greater than the order value of the previous iteration on TH(chip-tool) log: |
| |
| [1659879944.863570][2633:2638] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002F Attribute 0x0000_0001 DataVersion: 1479870496 |
| [1659879944.863664][2633:2638] CHIP:TOO: Order: 3 |
| disabled: true |