| # 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. |
| |
| name: 60.2.1. [TC-PS-2.1] Attributes with server as DUT |
| |
| PICS: |
| - PS.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Power Source" |
| endpoint: 1 |
| |
| tests: |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: "Test Harness Client reads Status attribute from Server DUT" |
| PICS: PS.S.A0000 |
| command: "readAttribute" |
| attribute: "Status" |
| response: |
| constraints: |
| type: enum8 |
| minValue: 0 |
| maxValue: 3 |
| |
| - label: "Test Harness Client reads Order attribute from Server DUT" |
| PICS: PS.S.A0001 |
| command: "readAttribute" |
| attribute: "Order" |
| response: |
| constraints: |
| type: int8u |
| minValue: 0 |
| maxValue: 255 |
| |
| - label: "Test Harness Client reads Description attribute from Server DUT" |
| PICS: PS.S.A0002 |
| command: "readAttribute" |
| attribute: "Description" |
| response: |
| constraints: |
| type: char_string |
| |
| - label: |
| "Test Harness Client reads WiredAssessedInputVoltage attribue from |
| Server DUT" |
| PICS: PS.S.A0003 |
| command: "readAttribute" |
| attribute: "WiredAssessedInputVoltage" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: |
| "Test Harness Client reads WiredAssessedInputFrequency attribute from |
| Server DUT" |
| PICS: PS.S.A0004 |
| command: "readAttribute" |
| attribute: "WiredAssessedInputFrequency" |
| response: |
| constraints: |
| type: int16u |
| minValue: 0 |
| maxValue: 65535 |
| |
| - label: |
| "Test Harness Client reads WiredCurrentType attribute from Server DUT" |
| PICS: PS.S.A0005 |
| command: "readAttribute" |
| attribute: "WiredCurrentType" |
| response: |
| constraints: |
| type: enum8 |
| minValue: 0 |
| maxValue: 1 |
| |
| - label: |
| "Test Harness Client reads WiredAssessedCurrent attribute from Server |
| DUT" |
| PICS: PS.S.A0006 |
| command: "readAttribute" |
| attribute: "WiredAssessedCurrent" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads WiredNominalVoltage from Server DUT" |
| PICS: PS.S.A0007 |
| command: "readAttribute" |
| attribute: "WiredNominalVoltage" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads WiredMaximumCurrent from Server DUT" |
| PICS: PS.S.A0008 |
| command: "readAttribute" |
| attribute: "WiredMaximumCurrent" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads WiredPresent from Server DUT" |
| PICS: PS.S.A0009 |
| command: "readAttribute" |
| attribute: "WiredPresent" |
| response: |
| constraints: |
| type: boolean |
| |
| - label: "Test Harness Client reads ActiveWiredFaults from Server DUT" |
| PICS: PS.S.A000a |
| command: "readAttribute" |
| attribute: "ActiveWiredFaults" |
| response: |
| constraints: |
| type: list |
| maxLength: 8 |
| |
| - label: "Test Harness Client reads BatVoltage from Server DUT" |
| PICS: PS.S.A000b |
| command: "readAttribute" |
| attribute: "BatVoltage" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads BatPercentRemaining from Server DUT" |
| PICS: PS.S.A000c |
| command: "readAttribute" |
| attribute: "BatPercentRemaining" |
| response: |
| constraints: |
| type: int8u |
| minValue: 0 |
| maxValue: 200 |
| |
| - label: "Test Harness Client reads BatTimeRemaining from Server DUT" |
| PICS: PS.S.A000d |
| command: "readAttribute" |
| attribute: "BatTimeRemaining" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads BatChargeLevel from Server DUT" |
| PICS: PS.S.A000e |
| command: "readAttribute" |
| attribute: "BatChargeLevel" |
| response: |
| constraints: |
| type: enum8 |
| minValue: 0 |
| maxValue: 2 |
| |
| - label: "Test Harness Client reads BatReplacementNeeded from Server DUT" |
| PICS: PS.S.A000f |
| command: "readAttribute" |
| attribute: "BatReplacementNeeded" |
| response: |
| constraints: |
| type: boolean |
| |
| - label: "Test Harness Client reads BatReplaceability from Server DUT" |
| PICS: PS.S.A0010 |
| command: "readAttribute" |
| attribute: "BatReplaceability" |
| response: |
| constraints: |
| type: enum8 |
| minValue: 0 |
| maxValue: 3 |
| |
| - label: "Test Harness Client reads BatPresent from Server DUT" |
| PICS: PS.S.A0011 |
| command: "readAttribute" |
| attribute: "BatPresent" |
| response: |
| constraints: |
| type: boolean |
| |
| - label: "Test Harness Client readsActiveBatFaults from Server DUT" |
| PICS: PS.S.A0012 |
| command: "readAttribute" |
| attribute: "ActiveBatFaults" |
| response: |
| constraints: |
| type: list |
| maxLength: 8 |
| |
| - label: |
| "Test Harness Client reads BatReplacementDescription from Server DUT" |
| PICS: PS.S.A0013 |
| command: "readAttribute" |
| attribute: "BatReplacementDescription" |
| response: |
| constraints: |
| type: char_string |
| maxLength: 60 |
| |
| - label: "Test Harness Client reads BatCommonDesignation from Server DUT" |
| PICS: PS.S.A0014 |
| command: "readAttribute" |
| attribute: "BatCommonDesignation" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0 |
| maxValue: 80 |
| |
| - label: "Test Harness Client reads BatANSIDesignation from Server DUT" |
| PICS: PS.S.A0015 |
| command: "readAttribute" |
| attribute: "BatANSIDesignation" |
| response: |
| constraints: |
| type: char_string |
| maxLength: 20 |
| |
| - label: "Test Harness Client reads BatIECDesignation from Server DUT" |
| PICS: PS.S.A0016 |
| command: "readAttribute" |
| attribute: "BatIECDesignation" |
| response: |
| constraints: |
| type: char_string |
| maxLength: 20 |
| |
| - label: "Test Harness Client reads BatApprovedChemistry from Server DUT" |
| PICS: PS.S.A0017 |
| command: "readAttribute" |
| attribute: "BatApprovedChemistry" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0 |
| maxValue: 32 |
| |
| - label: "Test Harness Client reads BatCapacity from Server DUT" |
| PICS: PS.S.A0018 |
| command: "readAttribute" |
| attribute: "BatCapacity" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads BatQuantity from Server DUT" |
| PICS: PS.S.A0019 |
| command: "readAttribute" |
| attribute: "BatQuantity" |
| response: |
| constraints: |
| type: int8u |
| minValue: 0 |
| maxValue: 255 |
| |
| - label: "Test Harness Client reads BatChargeState from Server DUT" |
| PICS: PS.S.A001a |
| command: "readAttribute" |
| attribute: "BatChargeState" |
| response: |
| constraints: |
| type: enum8 |
| minValue: 0 |
| maxValue: 3 |
| |
| - label: "Test Harness Client reads BatTimeToFullCharge from Server DUT" |
| PICS: PS.S.A001b |
| command: "readAttribute" |
| attribute: "BatTimeToFullCharge" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: |
| "Test Harness Client reads BatFunctionalWhileCharging from Server DUT" |
| PICS: PS.S.A001c |
| command: "readAttribute" |
| attribute: "BatFunctionalWhileCharging" |
| response: |
| constraints: |
| type: boolean |
| |
| - label: "Test Harness Client reads BatChargingCurrent from Server DUT" |
| PICS: PS.S.A001d |
| command: "readAttribute" |
| attribute: "BatChargingCurrent" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFF |
| |
| - label: "Test Harness Client reads ActiveBatChargeFaults from Server DUT" |
| PICS: PS.S.A001e |
| command: "readAttribute" |
| attribute: "ActiveBatChargeFaults" |
| response: |
| constraints: |
| type: list |