|
| 1 | +# Copyright (c) 2021 Project CHIP Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default |
| 15 | + |
| 16 | +name: 44.1.1. [TC-PWRTL-1.1] Global Attributes with DUT as Server |
| 17 | + |
| 18 | +PICS: |
| 19 | + - PWRTL.S |
| 20 | + |
| 21 | +config: |
| 22 | + nodeId: 0x12344321 |
| 23 | + cluster: "Power Topology" |
| 24 | + endpoint: 1 |
| 25 | + |
| 26 | +tests: |
| 27 | + - label: "Step 1: Wait for the commissioned device to be retrieved" |
| 28 | + cluster: "DelayCommands" |
| 29 | + command: "WaitForCommissionee" |
| 30 | + arguments: |
| 31 | + values: |
| 32 | + - name: "nodeId" |
| 33 | + value: nodeId |
| 34 | + |
| 35 | + - label: "Step 2: TH reads the ClusterRevision from DUT" |
| 36 | + command: "readAttribute" |
| 37 | + attribute: "ClusterRevision" |
| 38 | + response: |
| 39 | + value: 1 |
| 40 | + constraints: |
| 41 | + type: int16u |
| 42 | + |
| 43 | + - label: |
| 44 | + "Step 3a: Given PWRTL.S.F00(Node) ensure featuremap has the correct |
| 45 | + bit set" |
| 46 | + PICS: PWRTL.S.F00 |
| 47 | + command: "readAttribute" |
| 48 | + attribute: "FeatureMap" |
| 49 | + response: |
| 50 | + constraints: |
| 51 | + type: bitmap32 |
| 52 | + hasMasksSet: [0x1] |
| 53 | + hasMasksClear: [0x2, 0x4, 0x8] |
| 54 | + |
| 55 | + - label: |
| 56 | + "Step 3b: Given PWRTL.S.F01(Leaf) ensure featuremap has the correct |
| 57 | + bit set" |
| 58 | + PICS: PWRTL.S.F01 |
| 59 | + command: "readAttribute" |
| 60 | + attribute: "FeatureMap" |
| 61 | + response: |
| 62 | + constraints: |
| 63 | + type: bitmap32 |
| 64 | + hasMasksSet: [0x2] |
| 65 | + hasMasksClear: [0x1, 0x4, 0x8] |
| 66 | + |
| 67 | + - label: |
| 68 | + "Step 3c: Given PWRTL.S.F02(Set) ensure featuremap has the correct bit |
| 69 | + set" |
| 70 | + PICS: PWRTL.S.F02 |
| 71 | + command: "readAttribute" |
| 72 | + attribute: "FeatureMap" |
| 73 | + response: |
| 74 | + constraints: |
| 75 | + type: bitmap32 |
| 76 | + hasMasksSet: [0x4] |
| 77 | + hasMasksClear: [0x1, 0x2] |
| 78 | + |
| 79 | + - label: |
| 80 | + "Step 3d: Given PWRTL.S.F03(Dynamic Power Flow) ensure featuremap has |
| 81 | + the correct bit set" |
| 82 | + PICS: PWRTL.S.F03 |
| 83 | + command: "readAttribute" |
| 84 | + attribute: "FeatureMap" |
| 85 | + response: |
| 86 | + constraints: |
| 87 | + type: bitmap32 |
| 88 | + hasMasksSet: [0x4, 0x8] |
| 89 | + |
| 90 | + - label: "Step 4a: TH reads AttributeList from DUT" |
| 91 | + PICS: "!PICS_SF_SET && !PICS_SF_DYPF" |
| 92 | + command: "readAttribute" |
| 93 | + attribute: "AttributeList" |
| 94 | + response: |
| 95 | + constraints: |
| 96 | + type: list |
| 97 | + contains: [] |
| 98 | + |
| 99 | + - label: |
| 100 | + "Step 4b: TH reads feature dependent attribute(AvailableEndpoints) |
| 101 | + AttributeList from DUT" |
| 102 | + PICS: "PICS_SF_SET && !PICS_SF_DYPF" |
| 103 | + command: "readAttribute" |
| 104 | + attribute: "AttributeList" |
| 105 | + response: |
| 106 | + constraints: |
| 107 | + type: list |
| 108 | + contains: [0] |
| 109 | + |
| 110 | + - label: |
| 111 | + "Step 4c: TH reads feature dependent attribute(ActiveEndpoints) |
| 112 | + AttributeList from DUT" |
| 113 | + PICS: "PICS_SF_SET && PICS_SF_DYPF" |
| 114 | + command: "readAttribute" |
| 115 | + attribute: "AttributeList" |
| 116 | + response: |
| 117 | + constraints: |
| 118 | + type: list |
| 119 | + contains: [0, 1] |
0 commit comments