| # 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: 71.2.2. [TC-ILL-2.2] Primary Functionality with Server as DUT |
| |
| PICS: |
| - ILL.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: |
| "Commission DUT to TH (can be skipped if done in a preceding test)." |
| verification: | |
| verification step to be updated. |
| disabled: true |
| |
| - label: |
| "Test Harness Client reads MinMeasuredValue attribute and |
| MaxMeasuredValue attribute from DUT." |
| PICS: ILL.S.A0001 && ILL.S.A0002 |
| verification: | |
| ./chip-tool illuminancemeasurement read min-measured-value 1 1 |
| On TH, verify the MinMeasuredValue as 1 |
| |
| [1650881571.375482][2777:2782] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0400 Attribute 0x0000_0001 DataVersion: 1034665079 |
| [1650881571.375596][2777:2782] CHIP:TOO: MinMeasuredValue: 1 |
| |
| ./chip-tool illuminancemeasurement read max-measured-value 1 1 |
| On TH, verify the MaxMeasuredValue as 65534 |
| |
| [1650881715.935533][2791:2797] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0400 Attribute 0x0000_0002 DataVersion: 1034665079 |
| Verify in TH Log |
| [1650881715.935645][2791:2797] CHIP:TOO: MaxMeasuredValue: 65534 |
| disabled: true |
| |
| - label: "Cover the sensor or darken the room" |
| verification: | |
| currently we can"t do this test-step in chip-tool |
| disabled: true |
| |
| - label: "After a few seconds, TH reads MeasuredValue attribute from DUT." |
| PICS: ILL.S.A0000 |
| verification: | |
| ./chip-tool illuminancemeasurement read measured-value 1 1 |
| disabled: true |
| |
| - label: "Expose the sensor again to light" |
| verification: | |
| currently we can"t do this test-step in chip-tool |
| disabled: true |
| |
| - label: "After a few seconds, TH reads MeasuredValue attribute from DUT." |
| PICS: ILL.S.A0000 |
| verification: | |
| ./chip-tool illuminancemeasurement read measured-value 1 1 |
| disabled: true |