-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_WNCV_2_1.yaml
357 lines (327 loc) · 11.4 KB
/
Test_TC_WNCV_2_1.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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# 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.
# TODO : WindowCovering Test WNCV_2_1 add/complete some Conditional test using the FeatureMap (dynamics Mandatory and Optional attributes)
name: Window Covering [TC-WNCV-2.1] Attributes [DUT as Server]
PICS:
- WNCV.S
config:
nodeId: 0x12344321
cluster: "Window Covering"
endpoint: 1
tests:
- label: "Step 0: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
### MANDATORY Attributes
### 1 MANDATORY Attributes
### Attribute[ 0]: Type =======================================
- label: "Step 1a: TH reads from the DUT the ( 0) Type attribute"
command: "readAttribute"
attribute: "Type"
PICS: WNCV.S.A0000
response:
constraints:
type: enum8
minValue: 0
maxValue: 9
### Attribute[ 7]: ConfigStatus ===============================
- label: "Step 1b: TH reads from the DUT the ( 7) ConfigStatus attribute"
command: "readAttribute"
attribute: "ConfigStatus"
PICS: WNCV.S.A0007
response:
constraints:
type: bitmap8
minValue: 0
maxValue: 127
### Attribute[ 10]: OperationalStatus ==========================
- label:
"Step 1c: TH reads from the DUT the (10) OperationalStatus attribute:
OperationalStatus"
command: "readAttribute"
attribute: "OperationalStatus"
PICS: WNCV.S.A000a
response:
constraints:
type: bitmap8
minValue: 0
maxValue: 127
### Attribute[ 13]: EndProductType ==============================
- label: "Step 1d: TH reads from the DUT the (13) EndProductType attribute"
command: "readAttribute"
attribute: "EndProductType"
PICS: WNCV.S.A000d
response:
constraints:
type: enum8
minValue: 0
maxValue: 23
### Attribute[ 23]: Mode ========================================
- label: "Step 1e: TH reads from the DUT the (23) Mode attribute"
command: "readAttribute"
attribute: "Mode"
PICS: WNCV.S.A0017
response:
constraints:
type: bitmap8
minValue: 0
maxValue: 15
- label: "Step 1f: TH writes to (23) Mode attribute the value 0"
command: "writeAttribute"
attribute: "Mode"
PICS: WNCV.S.A0017
arguments:
value: 0
### 2 CONDITIONALLY MANDATORY Attributes
### Attribute[ 11]: TargetPositionLiftPercent100ths ====================
- label:
"Step 2a: TH reads from the DUT the (11)
TargetPositionLiftPercent100ths attribute"
command: "readAttribute"
attribute: "TargetPositionLiftPercent100ths"
PICS: WNCV.S.A000b
response:
constraints:
type: percent100ths
minValue: 0
maxValue: 10000
### Attribute[ 12]: TargetPositionTiltPercent100ths ====================
- label:
"Step 2b: TH reads from the DUT the (12)
TargetPositionTiltPercent100ths attribute"
command: "readAttribute"
attribute: "TargetPositionTiltPercent100ths"
PICS: WNCV.S.A000c
response:
constraints:
type: percent100ths
minValue: 0
maxValue: 10000
### Attribute[ 14]: CurrentPositionLiftPercent100ths ====================
- label:
"Step 2c: TH reads from the DUT the (14)
CurrentPositionLiftPercent100ths attribute"
command: "readAttribute"
attribute: "CurrentPositionLiftPercent100ths"
PICS: WNCV.S.A000e
response:
constraints:
type: percent100ths
minValue: 0
maxValue: 10000
### Attribute[ 15]: CurrentPositionTiltPercent100ths ====================
- label:
"Step 2d: TH reads from the DUT the (15)
CurrentPositionTiltPercent100ths attribute"
command: "readAttribute"
attribute: "CurrentPositionTiltPercent100ths"
PICS: WNCV.S.A000f
response:
constraints:
type: percent100ths
minValue: 0
maxValue: 10000
### Attribute[ 16]: InstalledOpenLimitLift ====================
- label:
"Step 2e: TH reads from the DUT the (16) InstalledOpenLimitLift
attribute"
command: "readAttribute"
attribute: "InstalledOpenLimitLift"
PICS: WNCV.S.A0010
response:
saveAs: InstalledOpenLimitLiftValue
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 17]: InstalledClosedLimitLift ====================
- label:
"Step 2f: TH reads from the DUT the (17) InstalledClosedLimitLift
attribute"
command: "readAttribute"
attribute: "InstalledClosedLimitLift"
PICS: WNCV.S.A0011
response:
saveAs: InstalledClosedLimitLiftValue
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 18]: InstalledOpenLimitTilt ====================
- label:
"Step 2g: TH reads from the DUT the (18) InstalledOpenLimitTilt
attribute"
command: "readAttribute"
attribute: "InstalledOpenLimitTilt"
PICS: WNCV.S.A0012
response:
saveAs: InstalledOpenLimitTiltValue
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 19]: InstalledClosedLimitTilt ====================
- label:
"Step 2h: TH reads from the DUT the (19) InstalledClosedLimitTilt
attribute"
command: "readAttribute"
attribute: "InstalledClosedLimitTilt"
PICS: WNCV.S.A0013
response:
saveAs: InstalledClosedLimitTiltValue
constraints:
type: int16u
minValue: 0
maxValue: 65535
### 3 CONDITIONALLY and PURELY OPTIONAL Attributes
### Attribute[ 26]: SafetyStatus ==========================
- label: "Step 3a: TH reads from the DUT the (26) SafetyStatus attribute"
command: "readAttribute"
attribute: "SafetyStatus"
PICS: WNCV.S.A001a
response:
constraints:
type: bitmap16
minValue: 0
maxValue: 2047
### Attribute[ 1]: PhysicalClosedLimitLift ====================
- label:
"Step 3b: TH reads from the DUT the ( 1) PhysicalClosedLimitLift
attribute"
command: "readAttribute"
attribute: "PhysicalClosedLimitLift"
PICS: WNCV.S.A0001
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 2]: PhysicalClosedLimitTilt ====================
- label:
"Step 3c: TH reads from the DUT the ( 2) PhysicalClosedLimitTilt
attribute"
command: "readAttribute"
attribute: "PhysicalClosedLimitTilt"
PICS: WNCV.S.A0002
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 3]: CurrentPositionLift ====================
- label:
"Step 3d: TH reads from the DUT the ( 3) CurrentPositionLift attribute"
command: "readAttribute"
attribute: "CurrentPositionLift"
PICS: WNCV.S.A0003 && !WNCV.S.A0010 && !WNCV.S.A0011
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 3]: CurrentPositionLift ====================
- label:
"Step 3d: TH reads the RO optional attribute default:
CurrentPositionLift"
command: "readAttribute"
attribute: "CurrentPositionLift"
PICS: WNCV.S.A0003 && WNCV.S.A0010 && WNCV.S.A0011
response:
constraints:
type: int16u
minValue: InstalledOpenLimitLiftValue
maxValue: InstalledClosedLimitLiftValue
### Attribute[ 4]: CurrentPositionTilt ====================
- label:
"Step 3e: TH reads from the DUT the ( 4) CurrentPositionTilt attribute"
command: "readAttribute"
attribute: "CurrentPositionTilt"
PICS: WNCV.S.A0004 && !WNCV.S.A0012 && !WNCV.S.A0013
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 4]: CurrentPositionTilt ====================
- label:
"Step 3e: TH reads the RO optional attribute default:
CurrentPositionTilt"
command: "readAttribute"
attribute: "CurrentPositionTilt"
PICS: WNCV.S.A0004 && WNCV.S.A0012 && WNCV.S.A0013
response:
constraints:
type: int16u
minValue: InstalledOpenLimitTiltValue
maxValue: InstalledClosedLimitTiltValue
### Attribute[ 5]: NumberOfActuationsLift ====================
- label:
"Step 3f: TH reads from the DUT the ( 5) NumberOfActuationsLift
attribute"
command: "readAttribute"
attribute: "NumberOfActuationsLift"
PICS: WNCV.S.A0005
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 6]: NumberOfActuationsTilt ====================
- label:
"Step 3g: TH reads from the DUT the ( 6) NumberOfActuationsTilt
attribute"
command: "readAttribute"
attribute: "NumberOfActuationsTilt"
PICS: WNCV.S.A0006
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
### Attribute[ 8]: CurrentPositionLiftPercentage ====================
- label:
"Step 3h: TH reads from the DUT the ( 8) CurrentPositionLiftPercentage
attribute"
command: "readAttribute"
attribute: "CurrentPositionLiftPercentage"
PICS: WNCV.S.A0008
response:
constraints:
type: percent
minValue: 0
maxValue: 100
### Attribute[ 9]: CurrentPositionTiltPercentage ====================
- label:
"Step 3i: TH reads from the DUT the ( 9) CurrentPositionTiltPercentage
attribute"
command: "readAttribute"
attribute: "CurrentPositionTiltPercentage"
PICS: WNCV.S.A0009
response:
constraints:
type: percent
minValue: 0
maxValue: 100
###################################################
# FYI Non Tested deprecated attributes
# 20 VelocityLift
# 21 AccelerationTimeLift
# 22 DecelerationTimeLift
# 24 IntermediateSetpointsLift
# 25 IntermediateSetpointsTilt
###################################################