| # 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: 3.14.2. [TC-ALOGIN-12.2] Account Login Verification (DUT as Client) |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: |
| "Make sure there is a Content App endpoint implementing the Account |
| Login cluster. Product maker may provide pre-setup steps" |
| verification: | |
| ./chip-tool applicationlauncher launch-app '{"catalogVendorId": 123, "applicationId": "exampleid"}' 1 1 |
| |
| The following command on the example tv-app will launch a content app on endpoint 6: |
| [1654004240716] [9799:7814889] CHIP: [DMG] Received Command Response Data, Endpoint=1 Cluster=0x0000_050C Command=0x0000_0003 |
| [1654004240717] [9799:7814889] CHIP: [TOO] Endpoint: 1 Cluster: 0x0000_050C Command 0x0000_0003 |
| [1654004240717] [9799:7814889] CHIP: [TOO] LauncherResponse: { |
| [1654004240717] [9799:7814889] CHIP: [TOO] status: 0 |
| [1654004240717] [9799:7814889] CHIP: [TOO] data: 64617461 |
| [1654004240717] [9799:7814889] CHIP: [TOO] } |
| disabled: true |
| |
| - label: "DUT sends GetSetupPIN command to TH" |
| PICS: ALOGIN.C.C0000 |
| verification: | |
| ./chip-tool accountlogin get-setup-pin 1111 1 6 --timedInteractionTimeoutMs 1000 |
| |
| The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. |
| [1654004273684] [9851:7821178] CHIP: [DMG] Received Command Response Data, Endpoint=6 Cluster=0x0000_050E Command=0x0000_0001 |
| [1654004273684] [9851:7821178] CHIP: [TOO] Endpoint: 6 Cluster: 0x0000_050E Command 0x0000_0001 |
| [1654004273684] [9851:7821178] CHIP: [TOO] GetSetupPINResponse: { |
| [1654004273684] [9851:7821178] CHIP: [TOO] setupPIN: 34567890 |
| [1654004273684] [9851:7821178] CHIP: [TOO] } |
| disabled: true |
| |
| - label: "DUT sends Login command to TH" |
| PICS: ALOGIN.C.C0000 |
| verification: | |
| ./chip-tool accountlogin login 11111 34567890 1 6 --timedInteractionTimeoutMs 1000 |
| |
| The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. |
| |
| [1654004350009] [9951:7836487] CHIP: [DMG] Received Command Response Status for Endpoint=6 Cluster=0x0000_050E Command=0x0000_0002 Status=0x0 |
| disabled: true |
| |
| - label: "DUT sends Logout command to TH" |
| PICS: ALOGIN.C.C0000 |
| verification: | |
| ./chip-tool accountlogin logout 1 6 --timedInteractionTimeoutMs 1000 |
| |
| The following chip-tool command simulates the interaction of the DUT and the log below shows the resulting log on the TH. |
| [1654004400892] [9988:7841997] CHIP: [DMG] Received Command Response Status for Endpoint=6 Cluster=0x0000_050E Command=0x0000_0003 Status=0x0 |
| disabled: true |