-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_WNCV_3_2.yaml
301 lines (271 loc) · 9.55 KB
/
Test_TC_WNCV_3_2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# 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 command & OperationalStatus
attribute Verification [DUT as Server]
PICS:
- WNCV.S
# TC-WNCV tests featuremap conditional dependencies -> use PICS
config:
nodeId: 0x12344321
cluster: "Window Covering"
endpoint: 1
Step1bWaitTime:
type: int16u
defaultValue: 5000
Step2bWaitTime:
type: int16u
defaultValue: 200
Step2eWaitTime:
type: int16u
defaultValue: 1000
Step4bWaitTime:
type: int16u
defaultValue: 1000
Step5aWaitTime:
type: int16u
defaultValue: 200
tests:
- label: "Step 0: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
################ Position Init Phase #############
### Step 1x -> Initialize the Covering position before any testing
### MANDATORY Init Commands
- label:
"Step 1a: TH sends UpOrOpen command to preposition the DUT in the
opposite direction"
command: "UpOrOpen"
PICS: WNCV.S.C00.Rsp
- label: "Step 1b: TH Waits for 10 seconds movement(s) on the device"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: Step1bWaitTime
###
### Mandatory Depends on the FeatureMap
- label:
"Step 1c: If (PA & LF) TH reads CurrentPositionLiftPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionLiftPercent100ths"
PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.A000e
response:
constraints:
type: percent100ths
minValue: 0
maxValue: 9999
### Optional Depends on the FeatureMap
- label:
"Step 1d: If (PA & LF) TH reads CurrentPositionLiftPercentage optional
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionLiftPercentage"
PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.A0008
response:
constraints:
type: percent
minValue: 0
maxValue: 99
### Mandatory Depends on the FeatureMap
- label:
"Step 1e: If (PA & TL) TH reads CurrentPositionTiltPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionTiltPercent100ths"
PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.A000f
response:
constraints:
type: percent100ths
minValue: 0
maxValue: 9999
### Optional Depends on the FeatureMap
- label:
"Step 1f: If (PA & TL) TH reads CurrentPositionTiltPercentage optional
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionTiltPercentage"
PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.A0009
response:
constraints:
type: percent
minValue: 0
maxValue: 99
######## DownOrClose Command #######
### Step 2x -> Check DownOrClose Fast effects
### MANDATORY Command
- label: "Step 2a: TH sends DownOrClose command to DUT"
command: "DownOrClose"
PICS: WNCV.S.C01.Rsp
### Depending on the DUT specs we might prefer a arguments here
- label: "Step 2b: TH waits for 100-1000 ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: Step2bWaitTime
### Mandatory Depends on the FeatureMap
- label:
"Step 2c: If (PA & LF) TH reads TargetPositionLiftPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "TargetPositionLiftPercent100ths"
PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.A000b
response:
value: 10000
### Mandatory Depends on the FeatureMap
- label:
"Step 2d: If (PA & TL) TH reads TargetPositionTiltPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "TargetPositionTiltPercent100ths"
PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.A000c
response:
value: 10000
- label: "Step 2e: TH leave the device moving for 2 seconds"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: Step2eWaitTime
######## DownOrClose Reports #######
### Step 3x -> Check DownOrClose Mid term effects
### Depends on the FeatureMap
# The value of bit 0..1 must be 10b & if (LF) value of bit 2..3 must be 10b else 00b & if (TL) value of bit 4..5 must be 10b else 00b
# Only 3 possibilities are possible here : 0Ah = 10, 22h = 34 or 2Ah = 42 then check a range for simplicity [10 - 42]
- label: "Step 3a: TH reads OperationalStatus attribute from DUT"
PICS: WNCV.S.A000a
command: "readAttribute"
attribute: "OperationalStatus"
response:
constraints:
type: bitmap8
anyOf: [10, 34, 42]
### Depending on the DUT specs we might prefer a arguments here
- label: "Step 3a: DUT updates its attributes"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 3000
### Mandatory Depends on the FeatureMap
- label:
"Step 3b: If (PA & LF) TH reads CurrentPositionLiftPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionLiftPercent100ths"
PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.A000e
response:
constraints:
type: percent100ths
minValue: 1
maxValue: 10000
### Optional Depends on the FeatureMap
- label:
"Step 3c: If (PA & LF) TH reads CurrentPositionLiftPercentage optional
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionLiftPercentage"
PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.A0008
response:
constraints:
type: percent
minValue: 1
maxValue: 100
### Mandatory Depends on the FeatureMap
- label:
"Step 3d: If (PA & TL) TH reads CurrentPositionTiltPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionTiltPercent100ths"
PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.A000f
response:
constraints:
type: percent100ths
minValue: 1
maxValue: 10000
### Optional Depends on the FeatureMap
- label:
"Step 3e: If (PA & LF) TH reads CurrentPositionTiltPercentage optional
attribute from DUT"
command: "readAttribute"
attribute: "CurrentPositionTiltPercentage"
PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.A0009
response:
constraints:
type: percent
minValue: 1
maxValue: 100
######## STOP #######
### Step 4x -> Check StopMotion fast effects
### MANDATORY Command
- label: "Step 4a: TH sends a StopMotion command to DUT"
command: "StopMotion"
PICS: WNCV.S.C02.Rsp
- label: "Step 4b: TH waits for 1-5 seconds end of motion(s) on the DUT"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: Step4bWaitTime
### 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: "Step 4c: TH reads OperationalStatus attribute from DUT"
command: "readAttribute"
attribute: "OperationalStatus"
PICS: WNCV.S.A000a
response:
value: 0
### Step 5x -> Check Stop Motion longer period effect
- label: "Step 5a: TH waits for 100-1000 ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: Step5aWaitTime
### Mandatory Depends on the FeatureMap shall be tested as equals CurrentPositionLiftPercent100ths
- label:
"Step 5b: If (PA & LF) TH reads TargetPositionLiftPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "TargetPositionLiftPercent100ths"
PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.A000b
response:
constraints:
type: percent100ths
minValue: 1
maxValue: 10000
### Mandatory Depends on the FeatureMap shall be tested as equals CurrentPositionTiltPercent100ths
- label:
"Step 5c: If (PA & TL) TH reads TargetPositionTiltPercent100ths
attribute from DUT"
command: "readAttribute"
attribute: "TargetPositionTiltPercent100ths"
PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.A000c
response:
constraints:
type: percent100ths
minValue: 1
maxValue: 10000