-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_PS_2_1.yaml
367 lines (331 loc) · 10.1 KB
/
Test_TC_PS_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
358
359
360
361
362
363
364
365
366
367
# 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: 60.2.1. [TC-PS-2.1] Attributes with server as DUT
PICS:
- PS.S
config:
nodeId: 0x12344321
cluster: "Power Source"
endpoint: 1
tests:
- label: "Step 1: Commission DUT to TH"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Step 2: Test Harness Client reads Status from server DUT"
PICS: PS.S.A0000
command: "readAttribute"
attribute: "Status"
response:
constraints:
type: enum8
minValue: 0
maxValue: 3
- label: "Step 3: Test Harness Client reads Order from server DUT"
PICS: PS.S.A0001
command: "readAttribute"
attribute: "Order"
response:
constraints:
type: int8u
minValue: 0
maxValue: 255
- label: "Step 4: Test Harness Client reads Order from server DUT"
PICS: PS.S.A0002
command: "readAttribute"
attribute: "Description"
response:
constraints:
type: char_string
maxLength: 60
- label:
"Step 5: Test Harness Client reads WiredAssessedInputVoltage from
server DUT"
PICS: PS.S.A0003
command: "readAttribute"
attribute: "WiredAssessedInputVoltage"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label:
"Step 6: Test Harness Client reads WiredAssessedInputFrequencyfrom
server DUT"
PICS: PS.S.A0004
command: "readAttribute"
attribute: "WiredAssessedInputFrequency"
response:
constraints:
type: int16u
minValue: 0
maxValue: 65535
- label:
"Step 7: Test Harness Client reads WiredCurrentType from server DUT"
PICS: PS.S.A0005
command: "readAttribute"
attribute: "WiredCurrentType"
response:
constraints:
type: enum8
minValue: 0
maxValue: 1
- label:
"Step 8: Test Harness Client reads WiredAssessedCurrent from server
DUT"
PICS: PS.S.A0006
command: "readAttribute"
attribute: "WiredAssessedCurrent"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label:
"Step 9: Test Harness Client reads WiredNominalVoltage from server DUT"
PICS: PS.S.A0007
command: "readAttribute"
attribute: "WiredNominalVoltage"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label:
"Step 10: Test Harness Client reads WiredMaximumCurrent from Server
DUT"
PICS: PS.S.A0008
command: "readAttribute"
attribute: "WiredMaximumCurrent"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label: "Step 11: Test Harness Client reads WiredPresent from Server DUT"
PICS: PS.S.A0009
command: "readAttribute"
attribute: "WiredPresent"
response:
constraints:
type: boolean
- label:
"Step 12: Test Harness Client reads ActiveWiredFaults from Server DUT"
PICS: PS.S.A000a
command: "readAttribute"
attribute: "ActiveWiredFaults"
response:
constraints:
type: list
maxLength: 8
- label: "Step 13: Test Harness Client reads BatVoltage from Server DUT"
PICS: PS.S.A000b
command: "readAttribute"
attribute: "BatVoltage"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label:
"Step 14: Test Harness Client reads BatPercentRemaining from Server
DUT"
PICS: PS.S.A000c
command: "readAttribute"
attribute: "BatPercentRemaining"
response:
constraints:
type: int8u
minValue: 0
maxValue: 200
- label:
"Step 15: Test Harness Client reads BatTimeRemaining from Server DUT"
PICS: PS.S.A000d
command: "readAttribute"
attribute: "BatTimeRemaining"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label: "Step 16: Test Harness Client reads BatChargeLevel from Server DUT"
PICS: PS.S.A000e
command: "readAttribute"
attribute: "BatChargeLevel"
response:
constraints:
type: enum8
minValue: 0
maxValue: 2
- label:
"Step 17: Test Harness Client reads BatReplacementNeeded from Server
DUT"
PICS: PS.S.A000f
command: "readAttribute"
attribute: "BatReplacementNeeded"
response:
constraints:
type: boolean
- label:
"Step 18: Test Harness Client reads BatReplaceability from Server DUT"
PICS: PS.S.A0010
command: "readAttribute"
attribute: "BatReplaceability"
response:
constraints:
type: enum8
minValue: 0
maxValue: 3
- label: "Step 19: Test Harness Client reads BatPresent from Server DUT"
PICS: PS.S.A0011
command: "readAttribute"
attribute: "BatPresent"
response:
constraints:
type: boolean
- label: "Step 20: Test Harness Client readsActiveBatFaults from Server DUT"
PICS: PS.S.A0012
command: "readAttribute"
attribute: "ActiveBatFaults"
response:
constraints:
type: list
maxLength: 8
- label:
"Step 21: Test Harness Client reads BatReplacementDescription from
Server DUT"
PICS: PS.S.A0013
command: "readAttribute"
attribute: "BatReplacementDescription"
response:
constraints:
type: char_string
maxLength: 60
- label:
"Step 22: Test Harness Client reads BatCommonDesignation from Server
DUT"
PICS: PS.S.A0014
command: "readAttribute"
attribute: "BatCommonDesignation"
response:
constraints:
type: enum16
minValue: 0
maxValue: 80
- label:
"Step 23: Test Harness Client reads BatANSIDesignation from Server DUT"
PICS: PS.S.A0015
command: "readAttribute"
attribute: "BatANSIDesignation"
response:
constraints:
type: char_string
maxLength: 20
- label:
"Step 24: Test Harness Client reads BatIECDesignation from Server DUT"
PICS: PS.S.A0016
command: "readAttribute"
attribute: "BatIECDesignation"
response:
constraints:
type: char_string
maxLength: 20
- label:
"Step 25: Test Harness Client reads BatApprovedChemistry from Server
DUT"
PICS: PS.S.A0017
command: "readAttribute"
attribute: "BatApprovedChemistry"
response:
constraints:
type: enum16
minValue: 0
maxValue: 32
- label: "Step 26: Test Harness Client reads BatCapacity from Server DUT"
PICS: PS.S.A0018
command: "readAttribute"
attribute: "BatCapacity"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label: "Step 27: Test Harness Client reads BatQuantity from Server DUT"
PICS: PS.S.A0019
command: "readAttribute"
attribute: "BatQuantity"
response:
constraints:
type: int8u
minValue: 0
maxValue: 255
- label: "Step 28: Test Harness Client reads BatChargeState from Server DUT"
PICS: PS.S.A001a
command: "readAttribute"
attribute: "BatChargeState"
response:
constraints:
type: enum8
minValue: 0
maxValue: 3
- label:
"Step 29: Test Harness Client reads BatTimeToFullCharge from Server
DUT"
PICS: PS.S.A001b
command: "readAttribute"
attribute: "BatTimeToFullCharge"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label:
"Step 30: Test Harness Client reads BatFunctionalWhileCharging from
Server DUT"
PICS: PS.S.A001c
command: "readAttribute"
attribute: "BatFunctionalWhileCharging"
response:
constraints:
type: boolean
- label:
"Step 31: Test Harness Client reads BatChargingCurrent from Server DUT"
PICS: PS.S.A001d
command: "readAttribute"
attribute: "BatChargingCurrent"
response:
constraints:
type: int32u
minValue: 0x0
maxValue: 0xFFFFFFFF
- label:
"Step 32: Test Harness Client reads ActiveBatChargeFaults from Server
DUT"
PICS: PS.S.A001e
command: "readAttribute"
attribute: "ActiveBatChargeFaults"
response:
constraints:
type: list
maxLength: 16
- label: "Step 33: Test Harness Client reads EndpointList from Server DUT"
PICS: PS.S.A001f
command: "readAttribute"
attribute: "EndpointList"
response:
constraints:
type: list