39
39
arguments :
40
40
value : 0
41
41
42
- - label : " Step 1b: H sends On command to DUT"
42
+ - label : " Step 1b: TH sends On command to DUT"
43
43
PICS : OO.S.C01.Rsp
44
44
cluster : " On/Off"
45
45
command : " On"
@@ -98,14 +98,15 @@ tests:
98
98
- name : " ms"
99
99
value : 10000
100
100
101
+ # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be in range 80+/-3 => [77, 83]
101
102
- label : " Step 2c: TH reads CurrentHue attribute from DUT"
102
103
PICS : CC.S.F00 && CC.S.A0000
103
104
command : " readAttribute"
104
105
attribute : " CurrentHue"
105
106
response :
106
107
constraints :
107
- minValue : 68
108
- maxValue : 92
108
+ minValue : 77
109
+ maxValue : 83
109
110
110
111
- label : " Wait 10s"
111
112
PICS : CC.S.F00
@@ -116,14 +117,15 @@ tests:
116
117
- name : " ms"
117
118
value : 10000
118
119
120
+ # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be in range 100+/-6 => [94, 106]
119
121
- label : " Step 2d: TH reads CurrentHue attribute from DUT"
120
122
PICS : CC.S.F00 && CC.S.A0000
121
123
command : " readAttribute"
122
124
attribute : " CurrentHue"
123
125
response :
124
126
constraints :
125
- minValue : 85
126
- maxValue : 115
127
+ minValue : 94
128
+ maxValue : 106
127
129
128
130
- label : " Wait 10s"
129
131
PICS : CC.S.F00
@@ -134,14 +136,15 @@ tests:
134
136
- name : " ms"
135
137
value : 10000
136
138
139
+ # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be in range 120+/-9 => [111, 129]
137
140
- label : " Step 2e: TH reads CurrentHue attribute from DUT"
138
141
PICS : CC.S.F00 && CC.S.A0000
139
142
command : " readAttribute"
140
143
attribute : " CurrentHue"
141
144
response :
142
145
constraints :
143
- minValue : 102
144
- maxValue : 138
146
+ minValue : 111
147
+ maxValue : 129
145
148
146
149
- label : " Wait 5s"
147
150
PICS : CC.S.F00
@@ -158,8 +161,8 @@ tests:
158
161
attribute : " CurrentHue"
159
162
response :
160
163
constraints :
161
- minValue : 102
162
- maxValue : 138
164
+ minValue : 111
165
+ maxValue : 129
163
166
164
167
- label :
165
168
" Step 3a: TH sends MoveToHue command to DUT with Hue=60,
@@ -206,61 +209,45 @@ tests:
206
209
- name : " OptionsOverride"
207
210
value : 0
208
211
209
- - label : " Wait 10s "
212
+ - label : " Wait 5s "
210
213
PICS : CC.S.F00
211
214
cluster : " DelayCommands"
212
215
command : " WaitForMs"
213
216
arguments :
214
217
values :
215
218
- name : " ms"
216
- value : 10000
219
+ value : 5000
217
220
218
- # https://github.com/CHIP-Specifications/chip-test-scripts/issues/416#issuecomment-1228072461
221
+ # In 30s, the value will have changed by 180 (total change)
222
+ # In 5s, the value will have changed by 180*5/30 = 30. A 15% tolerance is 4.5, so ~5, and value must be in range 30+/-5 => [25, 35]
219
223
- label : " Step 3c: TH reads CurrentHue attribute from DUT"
220
- PICS : CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP
221
- verification : |
222
- ./chip-tool colorcontrol read current-hue 1 1
223
- Verify response contains a CurrentHue value in TH(chip-tool) Logs:
224
-
225
- [1649661849.854961][8307:8312] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517
226
- [1649661849.855019][8307:8312] CHIP:TOO: current hue: 0 (value can vary)
227
- [1649661849.855097][8307:8312] CHIP:EM: Sending Standalone Ack for MessageCounter:13414799 on exchange 39735i
228
- cluster : " LogCommands"
229
- command : " UserPrompt"
230
- arguments :
231
- values :
232
- - name : " message"
233
- value : " Enter 'y' after success"
234
- - name : " expectedValue"
235
- value : " y"
224
+ PICS : CC.S.F00 && CC.S.A0000
225
+ command : " readAttribute"
226
+ attribute : " CurrentHue"
227
+ response :
228
+ constraints :
229
+ minValue : 25
230
+ maxValue : 35
236
231
237
- - label : " Wait 10s "
232
+ - label : " Wait 15s "
238
233
PICS : CC.S.F00
239
234
cluster : " DelayCommands"
240
235
command : " WaitForMs"
241
236
arguments :
242
237
values :
243
238
- name : " ms"
244
- value : 10000
239
+ value : 15000
245
240
246
- # https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950
241
+ # In 20s, the value will have changed by 180*20/30 = 120. A 15% tolerance is 18, so value must be in range
242
+ # 60-120 = 255-60 = 195+/-18 => [177, 213]
247
243
- label : " Step 3d: TH reads CurrentHue attribute from DUT"
248
- PICS : CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP
249
- verification : |
250
- ./chip-tool colorcontrol read current-hue 1 1
251
-
252
- After another 10 seconds , Verify that CurrentHue value as 195 On TH(chip-tool) Logs:
253
- [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517
254
- [1649661821.298271][8292:8297] CHIP:TOO: current hue: 195 (value can vary)
255
- [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i
256
- cluster : " LogCommands"
257
- command : " UserPrompt"
258
- arguments :
259
- values :
260
- - name : " message"
261
- value : " Enter 'y' after success"
262
- - name : " expectedValue"
263
- value : " y"
244
+ PICS : CC.S.F00 && CC.S.A0000
245
+ command : " readAttribute"
246
+ attribute : " CurrentHue"
247
+ response :
248
+ constraints :
249
+ minValue : 177
250
+ maxValue : 213
264
251
265
252
- label : " Wait 10s"
266
253
PICS : CC.S.F00
@@ -271,24 +258,16 @@ tests:
271
258
- name : " ms"
272
259
value : 10000
273
260
274
- # https://github.com/CHIP-Specifications/chip-test-scripts/issues/493#issuecomment-1422075950
261
+ # In 30s, the value will have changed by 180*30/30 = 180. A 15% tolerance is 27, so value must be in range
262
+ # 60-180 = 255-120 = 135+/-27 => [108, 162]
275
263
- label : " Step 3e: TH reads CurrentHue attribute from DUT"
276
- PICS : CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP
277
- verification : |
278
- ./chip-tool colorcontrol read current-hue 1 1
279
- After another 10 seconds , Verify that CurrentHue value as 135 On TH(chip-tool) Logs:
280
-
281
- [1649661821.298198][8292:8297] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0300 Attribute 0x0000_0000 DataVersion: 4087274517
282
- [1649661821.298271][8292:8297] CHIP:TOO: current hue: 135
283
- [1649661821.298374][8292:8297] CHIP:EM: Sending Standalone Ack for MessageCounter:13643708 on exchange 28536i"
284
- cluster : " LogCommands"
285
- command : " UserPrompt"
286
- arguments :
287
- values :
288
- - name : " message"
289
- value : " Enter 'y' after success"
290
- - name : " expectedValue"
291
- value : " y"
264
+ PICS : CC.S.F00 && CC.S.A0000
265
+ command : " readAttribute"
266
+ attribute : " CurrentHue"
267
+ response :
268
+ constraints :
269
+ minValue : 108
270
+ maxValue : 162
292
271
293
272
- label : " Wait 5s"
294
273
PICS : CC.S.F00
@@ -305,8 +284,8 @@ tests:
305
284
attribute : " CurrentHue"
306
285
response :
307
286
constraints :
308
- minValue : 115
309
- maxValue : 155
287
+ minValue : 108
288
+ maxValue : 162
310
289
311
290
- label :
312
291
" Step 4a: TH sends MoveToHue command to DUT with Hue=60,
@@ -362,14 +341,15 @@ tests:
362
341
- name : " ms"
363
342
value : 10000
364
343
344
+ # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be in range 80+/-3 => [77, 83]
365
345
- label : " Step 4c: TH reads CurrentHue attribute from DUT"
366
346
PICS : CC.S.F00 && CC.S.A0000
367
347
command : " readAttribute"
368
348
attribute : " CurrentHue"
369
349
response :
370
350
constraints :
371
- minValue : 68
372
- maxValue : 92
351
+ minValue : 77
352
+ maxValue : 83
373
353
374
354
- label : " Wait 10s"
375
355
PICS : CC.S.F00
@@ -380,14 +360,15 @@ tests:
380
360
- name : " ms"
381
361
value : 10000
382
362
363
+ # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be in range 100+/-6 => [94, 106]
383
364
- label : " Step 4d: TH reads CurrentHue attribute from DUT"
384
365
PICS : CC.S.F00 && CC.S.A0000
385
366
command : " readAttribute"
386
367
attribute : " CurrentHue"
387
368
response :
388
369
constraints :
389
- minValue : 85
390
- maxValue : 115
370
+ minValue : 94
371
+ maxValue : 106
391
372
392
373
- label : " Wait 10s"
393
374
PICS : CC.S.F00
@@ -398,14 +379,15 @@ tests:
398
379
- name : " ms"
399
380
value : 10000
400
381
382
+ # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be in range 120+/-9 => [111, 129]
401
383
- label : " Step 4e: TH reads CurrentHue attribute from DUT"
402
384
PICS : CC.S.F00 && CC.S.A0000
403
385
command : " readAttribute"
404
386
attribute : " CurrentHue"
405
387
response :
406
388
constraints :
407
- minValue : 102
408
- maxValue : 138
389
+ minValue : 111
390
+ maxValue : 129
409
391
410
392
- label : " Wait 5s"
411
393
PICS : CC.S.F00
@@ -422,8 +404,8 @@ tests:
422
404
attribute : " CurrentHue"
423
405
response :
424
406
constraints :
425
- minValue : 102
426
- maxValue : 138
407
+ minValue : 111
408
+ maxValue : 129
427
409
428
410
- label :
429
411
" Step 5a: TH sends MoveToHue command to DUT with Hue=120,
@@ -479,14 +461,15 @@ tests:
479
461
- name : " ms"
480
462
value : 10000
481
463
464
+ # In 10s, the value will have changed by (120-60)*10/30 = 20. A 15% tolerance is 3, so value must be in range 100+/-3 => [97, 103]
482
465
- label : " Step 5c: TH reads CurrentHue attribute from DUT"
483
466
PICS : CC.S.F00 && CC.S.A0000
484
467
command : " readAttribute"
485
468
attribute : " CurrentHue"
486
469
response :
487
470
constraints :
488
- minValue : 85
489
- maxValue : 115
471
+ minValue : 97
472
+ maxValue : 103
490
473
491
474
- label : " Wait 10s"
492
475
PICS : CC.S.F00
@@ -497,14 +480,15 @@ tests:
497
480
- name : " ms"
498
481
value : 10000
499
482
483
+ # In 20s, the value will have changed by (120-60)*20/30 = 40. A 15% tolerance is 6, so value must be in range 80+/-6 => [74, 86]
500
484
- label : " Step 5d: TH reads CurrentHue attribute from DUT"
501
485
PICS : CC.S.F00 && CC.S.A0000
502
486
command : " readAttribute"
503
487
attribute : " CurrentHue"
504
488
response :
505
489
constraints :
506
- minValue : 68
507
- maxValue : 92
490
+ minValue : 74
491
+ maxValue : 86
508
492
509
493
- label : " Wait 10s"
510
494
PICS : CC.S.F00
@@ -515,6 +499,7 @@ tests:
515
499
- name : " ms"
516
500
value : 10000
517
501
502
+ # In 30s, the value will have changed by (120-60)*30/30 = 60. A 15% tolerance is 9, so value must be in range 60+/-9 => [51, 69]
518
503
- label : " Step 5e: TH reads CurrentHue attribute from DUT"
519
504
PICS : CC.S.F00 && CC.S.A0000
520
505
command : " readAttribute"
0 commit comments