-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WindowCovering: Add TC_WNCV_4.5 + update default config (#17423)
* YAML: Add position storage test WNCV 4.5 * Test : add new WNCV_4_5 to chip-tools * fix: YAML WNCV_4_5 * ZAP: add chip-tool darwin config * YAML Update config for WNCV_4_5 * Fix: Percentage font not supported * Zap: Update default configuration Current/Target * Restyled by clang-format * Restyled by prettier-yaml * FIX: Style not aligned for Tests * CFG: Style prevent clang format over Darwin test lists * ZAP: regen update * Restyled by whitespace * Restyled by google-java-format Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
6fc4608
commit 57a2e53
Showing
6 changed files
with
763 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
162 changes: 162 additions & 0 deletions
162
src/app/tests/suites/certification/Test_TC_WNCV_4_5.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
# 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: | ||
Window Covering [TC-WNCV-4.5] Positions Storage Verification with server as | ||
DUT | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "Window Covering" | ||
endpoint: 1 | ||
discriminator: | ||
type: INT16U | ||
defaultValue: 3840 | ||
|
||
tests: | ||
################ Init Phase ############# | ||
- label: "0a: Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
arguments: | ||
values: | ||
- name: "nodeId" | ||
value: nodeId | ||
|
||
### Trying to randomize DUT's positions | ||
- label: "0b: TH sends UpOrOpen command to preposition the DUT" | ||
command: "UpOrOpen" | ||
|
||
######## Command GoTo 1 ####### | ||
### Step 1x -> Check GoToLiftPercentage NVM effects | ||
- label: | ||
"1a: If (PA_LF & LF) TH sends GoToLiftPercentage command with 90%% to | ||
DUT" | ||
command: "GoToLiftPercentage" | ||
PICS: WNCV_LF && WNCV_PA_LF | ||
arguments: | ||
values: | ||
- name: "LiftPercent100thsValue" | ||
value: 9000 | ||
- name: "LiftPercentageValue" | ||
value: 90 | ||
|
||
- label: "1b: TH Waits for 100ms-1s" | ||
cluster: "DelayCommands" | ||
command: "WaitForMs" | ||
arguments: | ||
values: | ||
- name: "ms" | ||
value: 500 | ||
|
||
- label: "1c: TH sends StopMotion command to DUT" | ||
command: "StopMotion" | ||
|
||
- label: "1d: TH Waits for 100ms-1s" | ||
cluster: "DelayCommands" | ||
command: "WaitForMs" | ||
arguments: | ||
values: | ||
- name: "ms" | ||
value: 500 | ||
|
||
######## Command GoTo 2 ###### | ||
### Step 2x -> Check GoToTiltPercentage NVM effects | ||
- label: | ||
"2a: If (PA_TL & TL) TH sends GoToTiltPercentage command with 90%% to | ||
DUT" | ||
command: "GoToTiltPercentage" | ||
PICS: WNCV_TL && WNCV_PA_TL | ||
arguments: | ||
values: | ||
- name: "TiltPercent100thsValue" | ||
value: 9000 | ||
- name: "TiltPercentageValue" | ||
value: 90 | ||
|
||
- label: "2b: TH Waits for 100ms-1s" | ||
cluster: "DelayCommands" | ||
command: "WaitForMs" | ||
arguments: | ||
values: | ||
- name: "ms" | ||
value: 500 | ||
|
||
- label: "2c: TH sends StopMotion command to DUT" | ||
command: "StopMotion" | ||
|
||
- label: "2d: TH Waits for 100ms-1s" | ||
cluster: "DelayCommands" | ||
command: "WaitForMs" | ||
arguments: | ||
values: | ||
- name: "ms" | ||
value: 500 | ||
|
||
######## Check NVM ###### | ||
### Step 3x -> Store Positions and Reboot | ||
### CONDITIONAL Lift Store CurrentPositionLiftPercent100ths this value for step 3e | ||
- label: "3a: TH reads CurrentPositionLiftPercent100ths from DUT" | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
PICS: WNCV_LF && WNCV_PA_LF | ||
response: | ||
saveAs: attrCurrentPositionLiftPercent100ths | ||
constraints: | ||
notValue: 0 | ||
|
||
### CONDITIONAL Tilt Store CurrentPositionTiltPercent100ths this value for step 3f | ||
- label: "3b: TH reads CurrentPositionTiltPercent100ths from DUT" | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
PICS: WNCV_TL && WNCV_PA_TL | ||
response: | ||
saveAs: attrCurrentPositionTiltPercent100ths | ||
constraints: | ||
notValue: 0 | ||
|
||
### DUT TurnOff | ||
- label: "3c: reboot/restart the DUT" | ||
cluster: "SystemCommands" | ||
endpoint: 0 | ||
command: "Reboot" | ||
arguments: | ||
values: | ||
- name: "discriminator" | ||
value: discriminator | ||
|
||
### DUT GoesOff | ||
- label: "3d: Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
arguments: | ||
values: | ||
- name: "nodeId" | ||
value: nodeId | ||
|
||
### CONDITIONAL Lift Compare CurrentPositionLiftPercent100ths with value for step 3a | ||
- label: "3e: TH reads CurrentPositionLiftPercent100ths from DUT" | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
PICS: WNCV_LF && WNCV_PA_LF | ||
response: | ||
value: attrCurrentPositionLiftPercent100ths | ||
|
||
### CONDITIONAL Tilt Compare CurrentPositionTiltPercent100ths with value for step 3b | ||
- label: "3f: TH reads CurrentPositionTiltPercent100ths from DUT" | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
PICS: WNCV_TL && WNCV_PA_TL | ||
response: | ||
value: attrCurrentPositionTiltPercent100ths |
Oops, something went wrong.