-
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 mandatory commands test case (#9496)
* WC: Add new test cases * WC: Add Mandatory Command support in all cluster app * WC: Add autogen test case generated + add WindowCovering handler in all cluster app * WC: Add missing StopMotion as weak callback definition * Restyled by whitespace * Restyled by clang-format * Restyled by prettier-yaml * WC: Yaml remove useless returnValue checks * WC: Update autogen Zap Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
8319ab0
commit 80f7986
Showing
11 changed files
with
1,253 additions
and
6 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
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
110 changes: 110 additions & 0 deletions
110
src/app/tests/suites/certification/Test_TC_WNCV_3_1.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,110 @@ | ||
# 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-3.1] UpOrOpen Verification with server as DUT | ||
|
||
# TODO: WindowCovering tests TC-WNCV-3.1 finalize featuremap conditional dependencies | ||
|
||
config: | ||
cluster: "Window Covering" | ||
endpoint: 1 | ||
|
||
tests: | ||
### Step 1x -> Initialize Position | ||
### MANDATORY Command | ||
- label: "1a: TH adjusts the the DUT to a non-open position" | ||
command: "DownOrClose" | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"1b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"1b: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Step 2x -> Check Command instant effect | ||
### MANDATORY Command | ||
- label: "2a: TH sends UpOrOpen command to DUT" | ||
command: "UpOrOpen" | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"2b: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "TargetPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"2c: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "TargetPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on a sleep/wait command how to do this with a real device | ||
- label: "2d: Wait for the movement to finish" | ||
disabled: true | ||
|
||
### Step 3x -> Check longer period effect | ||
### MANDATORY reads | ||
- label: "3a: TH reads OperationalStatus attribute from DUT" | ||
command: "readAttribute" | ||
attribute: "OperationalStatus" | ||
response: | ||
value: 0 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"3b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"3c: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 |
110 changes: 110 additions & 0 deletions
110
src/app/tests/suites/certification/Test_TC_WNCV_3_2.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,110 @@ | ||
# 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-3.2] DownOrClose Verification with server as DUT | ||
|
||
# TODO: WindowCovering tests TC-WNCV-3.2 finalize featuremap conditional dependencies | ||
|
||
config: | ||
cluster: "Window Covering" | ||
endpoint: 1 | ||
|
||
tests: | ||
### Step 1x -> Initialize Position | ||
### MANDATORY Command | ||
- label: "1a: TH adjusts the the DUT to a non-closed position" | ||
command: "UpOrOpen" | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"1b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"1b: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Step 2x -> Check Command instant effect | ||
### MANDATORY Command | ||
- label: "2a: TH sends DownOrClose command to DUT" | ||
command: "DownOrClose" | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"2b: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "TargetPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"2c: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "TargetPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on a sleep/wait command how to do this with a real device | ||
- label: "2d: Wait for the movement to finish" | ||
disabled: true | ||
|
||
### Step 3x -> Check longer period effect | ||
### MANDATORY reads | ||
- label: "3a: TH reads OperationalStatus attribute from DUT" | ||
command: "readAttribute" | ||
attribute: "OperationalStatus" | ||
response: | ||
value: 0 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"3b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### Depends on the FeatureMap | ||
- label: | ||
"3c: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 |
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,87 @@ | ||
# 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-3.3] StopMotion Verification with server as DUT | ||
|
||
# TODO: WindowCovering tests TC-WNCV-3.3 finalize featuremap conditional dependencies | ||
|
||
config: | ||
cluster: "Window Covering" | ||
endpoint: 1 | ||
|
||
tests: | ||
### Step 1x -> Initialize Position | ||
### MANDATORY Command | ||
- label: "1a: TH adjusts the the DUT to a non-open position" | ||
command: "UpOrOpen" | ||
|
||
### Depends on a sleep/wait command how to do this with a real device | ||
- label: "1b: Wait for the movement to start and go on for a few seconds" | ||
disabled: true | ||
|
||
### Step 2x -> Check Command instant effects + longer effects | ||
### MANDATORY Command | ||
- label: "2a: TH sends StopMotion command to DUT" | ||
command: "StopMotion" | ||
|
||
### MANDATORY reads | ||
- label: "2b: TH reads OperationalStatus attribute from DUT" | ||
command: "readAttribute" | ||
attribute: "OperationalStatus" | ||
response: | ||
value: 0 | ||
|
||
### 2c Check equality with a tolerance between Target & Current for Lift | ||
### Depends on the FeatureMap | ||
- label: | ||
"2c-1: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "TargetPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
- label: | ||
"2c-2: If (PA & LF) TH reads CurrentPositionLiftPercent100ths | ||
attribute from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionLiftPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
### 2d Check equality with a tolerance between Target & Current for Tilt | ||
### Depends on the FeatureMap | ||
- label: | ||
"2d-1: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute | ||
from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "TargetPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 | ||
|
||
- label: | ||
"2d-2: If (PA & TL) TH reads CurrentPositionTiltPercent100ths | ||
attribute from DUT" | ||
disabled: true # Step applied conditionnally with an !expected response value | ||
command: "readAttribute" | ||
attribute: "CurrentPositionTiltPercent100ths" | ||
response: | ||
constraints: | ||
type: uint16 |
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
Oops, something went wrong.