Skip to content

Commit

Permalink
TEST: YAML update WNCV 3.3 StopMotion
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeg-sfy committed Feb 2, 2022
1 parent fae363e commit fc028fc
Show file tree
Hide file tree
Showing 3 changed files with 822 additions and 69 deletions.
133 changes: 99 additions & 34 deletions src/app/tests/suites/certification/Test_TC_WNCV_3_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,71 +21,136 @@ config:
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
- label: "0: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"

### Step 1x -> Initialize Position
### MANDATORY Command
- label: "1a: TH adjusts the the DUT to a non-open position"
################ Position Init Phase #############
### Step 1x -> Initialize the Covering position before any testing
### MANDATORY Init Commands
- label: "1a: TH sends DownOrClose command to preposition the DUT in the opposite direction"
command: "DownOrClose"

- label: "1b: TH Waits for 6-8 seconds movement(s) on the device"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 6000

- label: "1c: TH sends UpOrOpen command to preposition the DUT in the opposite direction"
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
- label: "1d: TH Waits for 2 seconds movement(s) on the device"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 2000

######## StopMotion Command #######
### Step 2x -> Check StopMotion fast effects
### Before subscribe to reports
- label: "2: Subscribe to DUT reports on OperationalStatus attribute"
command: "subscribeAttribute"
attribute: "OperationalStatus"
minInterval: 4
maxInterval: 5
response:
constraints:
type: map8

### Step 2x -> Check Command instant effects + longer effects
### MANDATORY Command
- label: "2a: TH sends StopMotion command to DUT"
- label: "2a: TH sends a StopMotion command to DUT"
command: "StopMotion"

### DUT Slow down and stop
- label: "2b: TH waits for 3 seconds the end of inertial movement(s) on the device"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 3000

### Must Be ZERO
# The value of bit 0..1 must be 00b & if (LF) value of bit 2..3 must be 00b & if (TL) value of bit 4..5 must be 00b
- label: "2c: Verify DUT reports OperationalStatus attribute to TH after a StopMotion"
command: "waitForReport"
attribute: "OperationalStatus"
response:
value: 0

### DUT updates its attributes
- label: "2d: TH waits for 100-1000ms attributes update on the device"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1000

### MANDATORY reads
- label: "2b: TH reads OperationalStatus attribute from DUT"
- label: "2e: 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
######## StopMotion w/ Lift #######
### Step 3x -> Verify StopMotion longer period effects on Lift
### Mandatory/Optionality Depends on (PA & LF) for all 4x Steps

### Read Current Position -> Store this value for step 4c
- label:
"2c-1: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute
"3a: If (PA & LF) TH reads CurrentPositionLiftPercent100ths attribute
from DUT"
disabled: true # Step applied conditionnally with an !expected response value
command: "readAttribute"
attribute: "TargetPositionLiftPercent100ths"
attribute: "CurrentPositionLiftPercent100ths"
PICS: WNCV_LF && WNCV_PA_LF
response:
saveAs: attrCurrentPositionLift
constraints:
type: uint16
minValue: 0
maxValue: 10000

### Read Target Position -> Compare this value w/ Current
### Shall be tested as equals CurrentPositionLiftPercent100ths
- label:
"2c-2: If (PA & LF) TH reads CurrentPositionLiftPercent100ths
attribute from DUT"
disabled: true # Step applied conditionnally with an !expected response value
"3b: If (PA & LF) TH reads TargetPositionLiftPercent100ths attribute
3c: it Must be equal with CurrentPositionLiftPercent100ths from DUT"
command: "readAttribute"
attribute: "CurrentPositionLiftPercent100ths"
attribute: "TargetPositionLiftPercent100ths"
PICS: WNCV_LF && WNCV_PA_LF
response:
constraints:
type: uint16
value: attrCurrentPositionLift

######## StopMotion w/ Tilt #######
### Step 4x -> Verify StopMotion longer period effects on Tilt
### Mandatory/Optionality Depends on (PA & TL) for all 4x Steps

### 2d Check equality with a tolerance between Target & Current for Tilt
### Depends on the FeatureMap
### Read Current Position -> Store this value for step 4c
- label:
"2d-1: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute
"4a: If (PA & TL) TH reads CurrentPositionTiltPercent100ths attribute
from DUT"
disabled: true # Step applied conditionnally with an !expected response value
command: "readAttribute"
attribute: "TargetPositionTiltPercent100ths"
attribute: "CurrentPositionTiltPercent100ths"
PICS: WNCV_TL && WNCV_PA_TL
response:
saveAs: attrCurrentPositionTilt
constraints:
type: uint16
minValue: 0
maxValue: 10000

### Read Target Position -> Compare this value w/ Current
### Shall be tested as equals CurrentPositionTiltPercent100ths
- label:
"2d-2: If (PA & TL) TH reads CurrentPositionTiltPercent100ths
attribute from DUT"
disabled: true # Step applied conditionnally with an !expected response value
"4b: If (PA & TL) TH reads TargetPositionTiltPercent100ths attribute
4c: it Must be equal with CurrentPositionTiltPercent100ths from DUT"
command: "readAttribute"
attribute: "CurrentPositionTiltPercent100ths"
attribute: "TargetPositionTiltPercent100ths"
PICS: WNCV_TL && WNCV_PA_TL
response:
constraints:
type: uint16
value: attrCurrentPositionTilt
Loading

0 comments on commit fc028fc

Please sign in to comment.