| # 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: 85.2.1. [TC-DGGEN-2.1] Attributes with server as DUT |
| |
| PICS: |
| - DGGEN.S |
| - DGGEN.S.A |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "General Diagnostics" |
| endpoint: 0 |
| |
| tests: |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: "TH reads NetworkInterfaces structure attribute from DUT." |
| PICS: DGGEN.S.A0000 |
| command: "readAttribute" |
| attribute: "NetworkInterfaces" |
| response: |
| constraints: |
| type: list |
| |
| - label: "TH reads a RebootCount attribute value from DUT." |
| PICS: DGGEN.S.A0001 |
| command: "readAttribute" |
| attribute: "RebootCount" |
| response: |
| constraints: |
| type: int16u |
| minValue: 0 |
| maxValue: 65535 |
| |
| - label: "Reboot target device" |
| PICS: PICS_SDK_CI_ONLY |
| cluster: "SystemCommands" |
| command: "Reboot" |
| |
| - label: "Reboot target device(DUT)" |
| verification: | |
| Not implemented in YAML |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_SKIP_SAMPLE_APP |
| arguments: |
| values: |
| - name: "message" |
| value: "Please reboot the DUT and enter 'y' after DUT starts" |
| - name: "expectedValue" |
| value: "y" |
| |
| - label: "Reboot target device" |
| PICS: PICS_SDK_CI_ONLY |
| cluster: "SystemCommands" |
| command: "Reboot" |
| |
| - label: "Reboot target device(DUT)" |
| verification: | |
| Not implemented in YAML |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_SKIP_SAMPLE_APP |
| arguments: |
| values: |
| - name: "message" |
| value: "Please reboot the DUT and enter 'y' after DUT starts" |
| - name: "expectedValue" |
| value: "y" |
| |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: |
| "DUT reboots and TH reads a UpTime attribute value of DUT since some |
| arbitrary start time of DUT rebooting." |
| PICS: DGGEN.S.A0002 |
| command: "readAttribute" |
| attribute: "UpTime" |
| response: |
| constraints: |
| type: int64u |
| |
| - label: "TH reads a TotalOperationalHours attribute value from DUT." |
| PICS: DGGEN.S.A0003 |
| command: "readAttribute" |
| attribute: "TotalOperationalHours" |
| response: |
| constraints: |
| type: int32u |
| minValue: 0x0 |
| maxValue: 0xFFFFFFFE |
| |
| - label: "Reboot target device" |
| PICS: PICS_SDK_CI_ONLY |
| cluster: "SystemCommands" |
| command: "Reboot" |
| |
| - label: "Reboot target device(DUT)" |
| verification: | |
| Not implemented in YAML |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_SKIP_SAMPLE_APP |
| arguments: |
| values: |
| - name: "message" |
| value: "Please reboot the DUT and enter 'y' after DUT starts" |
| - name: "expectedValue" |
| value: "y" |
| |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: "TH reads BootReason attribute value from DUT." |
| PICS: DGGEN.S.A0004 |
| command: "readAttribute" |
| attribute: "BootReasons" |
| response: |
| constraints: |
| minValue: 0 |
| maxValue: 6 |
| |
| #issue #13029 |
| - label: "TH reads ActiveHardwareFaults attribute value from DUT." |
| verification: | |
| ./chip-tool generaldiagnostics read active-hardware-faults 1 0 |
| |
| On TH(chip-tool), verify that ActiveHardwareFaults attribute the attribute response should be empty. But when a hardware fault occurs, the return attribute value must match the value listed in the HardwareFault ENUM table 11.11.6.1 |
| |
| [1654682785.894724][33006:33011] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0005 DataVersion: 804003636 |
| [1654682785.894846][33006:33011] CHIP:TOO: ActiveHardwareFaults: 0 entries |
| [1654682785.894952][33006:33011] CHIP:EM: Sending Standalone Ack for MessageCounter:30803984 on exchange 62441i |
| |
| |
| Please use Interactive mode to Verify subscription test cases |
| Here the command to enter interactive mode:-- ./chip-tool interactive start |
| |
| generaldiagnostics subscribe active-hardware-faults 0 100 1 0 |
| |
| Verify in TH(chip-tool) log |
| |
| [1657539676.878976][10068:10073] CHIP:DMG: ReportDataMessage = |
| [1657539676.879047][10068:10073] CHIP:DMG: { |
| [1657539676.879109][10068:10073] CHIP:DMG: SubscriptionId = 0xd985fd71, |
| [1657539676.879215][10068:10073] CHIP:DMG: AttributeReportIBs = |
| [1657539676.879302][10068:10073] CHIP:DMG: [ |
| [1657539676.879366][10068:10073] CHIP:DMG: AttributeReportIB = |
| [1657539676.879490][10068:10073] CHIP:DMG: { |
| [1657539676.879588][10068:10073] CHIP:DMG: AttributeDataIB = |
| [1657539676.879833][10068:10073] CHIP:DMG: { |
| [1657539676.879952][10068:10073] CHIP:DMG: DataVersion = 0x3dc6b482, |
| [1657539676.880061][10068:10073] CHIP:DMG: AttributePathIB = |
| [1657539676.880175][10068:10073] CHIP:DMG: { |
| [1657539676.880291][10068:10073] CHIP:DMG: Endpoint = 0x0, |
| [1657539676.880410][10068:10073] CHIP:DMG: Cluster = 0x33, |
| [1657539676.880528][10068:10073] CHIP:DMG: Attribute = 0x0000_0005, |
| [1657539676.880639][10068:10073] CHIP:DMG: } |
| [1657539676.880758][10068:10073] CHIP:DMG: |
| [1657539676.880870][10068:10073] CHIP:DMG: Data = [ |
| [1657539676.880981][10068:10073] CHIP:DMG: |
| [1657539676.881097][10068:10073] CHIP:DMG: ], |
| [1657539676.881205][10068:10073] CHIP:DMG: }, |
| [1657539676.881321][10068:10073] CHIP:DMG: |
| [1657539676.881415][10068:10073] CHIP:DMG: }, |
| [1657539676.881523][10068:10073] CHIP:DMG: |
| [1657539676.881589][10068:10073] CHIP:DMG: ], |
| [1657539676.881667][10068:10073] CHIP:DMG: |
| [1657539676.881728][10068:10073] CHIP:DMG: InteractionModelRevision = 1 |
| [1657539676.881816][10068:10073] CHIP:DMG: } |
| [1657539676.882117][10068:10073] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0005 DataVersion: 1036432514 |
| [1657539676.882225][10068:10073] CHIP:TOO: ActiveHardwareFaults: 0 entries |
| [1657539676.882319][10068:10073] CHIP:DMG: MoveToState ReadClient[0xffff70009ef0]: Moving to [AwaitingSu] |
| [1657539676.882445][10068:10073] CHIP:EM: Piggybacking Ack for MessageCounter:144228832 on exchange: 14723i |
| [1657539676.882594][10068:10073] CHIP:IN: Prepared secure message 0xffff700046b8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 14723i with MessageCounter:6634271. |
| [1657539676.882686][10068:10073] CHIP:IN: Sending encrypted msg 0xffff700046b8 with MessageCounter:6634271 to 0x0000000000000001 (1) at monotonic time: 00000000016FEF43 msec |
| [1657539676.884825][10068:10073] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:144228833 on exchange 14723i |
| [1657539676.884920][10068:10073] CHIP:EM: Found matching exchange: 14723i, Delegate: 0xffff70009ef0 |
| [1657539676.885002][10068:10073] CHIP:EM: Rxd Ack; Removing MessageCounter:6634271 from Retrans Table on exchange 14723i |
| [1657539676.885062][10068:10073] CHIP:EM: Removed CHIP MessageCounter:6634271 from RetransTable on exchange 14723i |
| [1657539676.885171][10068:10073] CHIP:DMG: SubscribeResponseMessage = |
| [1657539676.885237][10068:10073] CHIP:DMG: { |
| [1657539676.885298][10068:10073] CHIP:DMG: SubscriptionId = 0xd985fd71, |
| [1657539676.885407][10068:10073] CHIP:DMG: MaxInterval = 0x64, |
| [1657539676.885477][10068:10073] CHIP:DMG: InteractionModelRevision = 1 |
| [1657539676.885549][10068:10073] CHIP:DMG: } |
| [1657539676.885617][10068:10073] CHIP:DMG: Subscription established with SubscriptionID = 0xd985fd71 MinInterval = 20s MaxInterval = 100s Peer = 01:0000000000000001 |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_USER_PROMPT && DGGEN.S.A0005 |
| arguments: |
| values: |
| - name: "message" |
| value: "Please enter 'y' for success" |
| - name: "expectedValue" |
| value: "y" |
| |
| - label: "TH reads ActiveRadioFaults attribute value from DUT." |
| verification: | |
| ./chip-tool generaldiagnostics read active-radio-faults 1 0 |
| On TH(chip-tool), verify that ActiveRadioFaults attribute response should be empty. But when a radio fault occurs, the return attribute value must match the value listed in the RadioFault ENUM table. 11.11.6.2. |
| |
| [1654682886.109092][33026:33031] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0006 DataVersion: 804003636 |
| [1654682886.109197][33026:33031] CHIP:TOO: ActiveRadioFaults: 0 entries |
| [1654682886.109321][33026:33031] CHIP:EM: Sending Standalone Ack for MessageCounter:174138703 on exchange 49820i |
| |
| Please use Interactive mode to Verify subscription test cases |
| Here the command to enter interactive mode:-- ./chip-tool interactive start |
| generaldiagnostics subscribe active-radio-faults 100 1000 1 0 |
| |
| Verify in TH(chip-tool) Log |
| [1654682933.931539][33037:33042] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0006 DataVersion: 804003636 |
| [1654682933.931617][33037:33042] CHIP:TOO: ActiveRadioFaults: 0 entries |
| [1654682933.931659][33037:33042] CHIP:DMG: MoveToState ReadClient[0xffff7c0042e0]: Moving to [AwaitingSu] |
| [1654682933.931711][33037:33042] CHIP:EM: Piggybacking Ack for MessageCounter:4435222 on exchange: 32960i |
| [1654682933.931773][33037:33042] CHIP:IN: Prepared secure message 0xaaab093c04b8 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 32960i with MessageCounter:3568188. |
| [1654682933.931813][33037:33042] CHIP:IN: Sending encrypted msg 0xaaab093c04b8 with MessageCounter:3568188 to 0x0000000000000001 (1) at monotonic time: 0000000000CD8AFA msec |
| [1654682933.933165][33037:33042] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:4435223 on exchange 32960i |
| [1654682933.933260][33037:33042] CHIP:EM: Found matching exchange: 32960i, Delegate: 0xffff7c0042e0 |
| [1654682933.933312][33037:33042] CHIP:EM: Rxd Ack; Removing MessageCounter:3568188 from Retrans Table on exchange 32960i |
| [1654682933.933345][33037:33042] CHIP:EM: Removed CHIP MessageCounter:3568188 from RetransTable on exchange 32960i |
| [1654682933.933408][33037:33042] CHIP:DMG: SubscribeResponseMessage = |
| [1654682933.933445][33037:33042] CHIP:DMG: { |
| [1654682933.933478][33037:33042] CHIP:DMG: SubscriptionId = 0xc5357d7e, |
| [1654682933.933513][33037:33042] CHIP:DMG: MinIntervalFloorSeconds = 0x64, |
| [1654682933.933548][33037:33042] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, |
| [1654682933.933583][33037:33042] CHIP:DMG: InteractionModelRevision = 1 |
| [1654682933.933615][33037:33042] CHIP:DMG: } |
| [1654682933.933655][33037:33042] CHIP:DMG: Subscription established with SubscriptionID = 0xc5357d7e MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_USER_PROMPT && DGGEN.S.A0006 |
| arguments: |
| values: |
| - name: "message" |
| value: "Please enter 'y' for success" |
| - name: "expectedValue" |
| value: "y" |
| |
| - label: "TH reads ActiveNetworkFaults attribute value from DUT." |
| verification: | |
| ./chip-tool generaldiagnostics read active-network-faults 1 0 |
| |
| On TH(chip-tool), verify that ActiveNetworkFaults attribute value attribute response should be empty. But when a network fault occurs, the return attribute value must match the value listed in the NetworkFault ENUM table 11.11.6.3 |
| |
| [1654683004.591353][33044:33049] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0007 DataVersion: 804003636 |
| [1654683004.591438][33044:33049] CHIP:TOO: ActiveNetworkFaults: 0 entries |
| [1654683004.591526][33044:33049] CHIP:EM: Sending Standalone Ack for MessageCounter:113863817 on exchange 44900i |
| |
| Please use Interactive mode to Verify subscription test cases |
| Here the command to enter interactive mode:-- ./chip-tool interactive start |
| generaldiagnostics subscribe active-network-faults 100 1000 1 0 |
| |
| Verify on TH(chip-tool) |
| [1654683075.593822][33054:33059] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0007 DataVersion: 804003636 |
| [1654683075.593966][33054:33059] CHIP:TOO: ActiveNetworkFaults: 0 entries |
| [1654683075.594038][33054:33059] CHIP:DMG: MoveToState ReadClient[0xffff80004340]: Moving to [AwaitingSu] |
| [1654683075.594125][33054:33059] CHIP:EM: Piggybacking Ack for MessageCounter:222691244 on exchange: 29895i |
| [1654683075.594231][33054:33059] CHIP:IN: Prepared secure message 0xaaaadcf2ae78 to 0x0000000000000001 (1) of type 0x1 and protocolId (0, 1) on exchange 29895i with MessageCounter:9439431. |
| [1654683075.594299][33054:33059] CHIP:IN: Sending encrypted msg 0xaaaadcf2ae78 with MessageCounter:9439431 to 0x0000000000000001 (1) at monotonic time: 0000000000CFB459 msec |
| [1654683075.595402][33054:33059] CHIP:EM: Received message of type 0x4 with protocolId (0, 1) and MessageCounter:222691245 on exchange 29895i |
| [1654683075.595461][33054:33059] CHIP:EM: Found matching exchange: 29895i, Delegate: 0xffff80004340 |
| [1654683075.595522][33054:33059] CHIP:EM: Rxd Ack; Removing MessageCounter:9439431 from Retrans Table on exchange 29895i |
| [1654683075.595568][33054:33059] CHIP:EM: Removed CHIP MessageCounter:9439431 from RetransTable on exchange 29895i |
| [1654683075.595649][33054:33059] CHIP:DMG: SubscribeResponseMessage = |
| [1654683075.595700][33054:33059] CHIP:DMG: { |
| [1654683075.595743][33054:33059] CHIP:DMG: SubscriptionId = 0x41507073, |
| [1654683075.595792][33054:33059] CHIP:DMG: MinIntervalFloorSeconds = 0x64, |
| [1654683075.595840][33054:33059] CHIP:DMG: MaxIntervalCeilingSeconds = 0x3e8, |
| [1654683075.595886][33054:33059] CHIP:DMG: InteractionModelRevision = 1 |
| [1654683075.595929][33054:33059] CHIP:DMG: } |
| [1654683075.595984][33054:33059] CHIP:DMG: Subscription established with SubscriptionID = 0x41507073 MinInterval = 100s MaxInterval = 1000s Peer = 01:0000000000000001 |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_USER_PROMPT && DGGEN.S.A0007 |
| arguments: |
| values: |
| - name: "message" |
| value: "Please enter 'y' for success" |
| - name: "expectedValue" |
| value: "y" |
| |
| - label: "TH reads TestEventTriggersEnabled attribute value" |
| verification: | |
| ./chip-tool generaldiagnostics read test-event-triggers-enabled 1 0 |
| On TH (chip-tool), verify that TestEventTriggersEnabled attribute value should be data type bool |
| |
| [1655188892.957794][2868:2873] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0008 DataVersion: 3562689442 |
| [1655188892.957869][2868:2873] CHIP:TOO: TestEventTriggersEnabled: FALSE |
| [1655188892.957999][2868:2873] CHIP:EM: Sending Standalone Ack for MessageCounter:133140817 on exchange 23176i |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_USER_PROMPT && DGGEN.S.A0008 |
| arguments: |
| values: |
| - name: "message" |
| value: "Please enter 'y' for success" |
| - name: "expectedValue" |
| value: "y" |