-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_TSTAT_2_2.yaml
2005 lines (1785 loc) · 77.3 KB
/
Test_TC_TSTAT_2_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
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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 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: 42.2.2. [TC-TSTAT-2.2] Setpoint Test Cases with server as DUT
PICS:
- TSTAT.S
config:
nodeId: 0x12344321
cluster: "Thermostat"
endpoint: 1
tests:
- label: "Step 1: Commission DUT to TH"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Saving value for comparision in step 2a read MinCoolSetpointLimit"
PICS: TSTAT.S.A0017
command: "readAttribute"
attribute: "MinCoolSetpointLimit"
response:
saveAs: MinCoolSetpointLimitValue
- label: "Saving value for comparision in step 2a read MaxCoolSetpointLimit"
PICS: TSTAT.S.A0018
command: "readAttribute"
attribute: "MaxCoolSetpointLimit"
response:
saveAs: MaxCoolSetpointLimitValue
- label:
"Saving value for comparision in step 2c read attribute
MinSetpointDeadBand"
PICS: TSTAT.S.A0019
command: "readAttribute"
attribute: "MinSetpointDeadBand"
response:
saveAs: MinSetpointDeadBandValue
- label: "Saving value for comparision in step 3a read MinHeatSetpointLimit"
PICS: TSTAT.S.A0015
command: "readAttribute"
attribute: "MinHeatSetpointLimit"
response:
saveAs: MinHeatSetpointLimitValue
- label:
"Saving value for comparision in step 3 reads
UnoccupiedCoolingSetpoint attribute"
command: "readAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.A0013
response:
saveAs: UnoccupiedCoolingSetpointValue
- label: "Saving value for comparision in step 3a read MaxHeatSetpointLimit"
PICS: TSTAT.S.A0016
command: "readAttribute"
attribute: "MaxHeatSetpointLimit"
response:
saveAs: MaxHeatSetpointLimitValue
- label:
"Saving value for comparision in step3c read attribute
OccupiedHeatingSetpoint"
PICS: TSTAT.S.A0012
command: "readAttribute"
attribute: "OccupiedHeatingSetpoint"
response:
saveAs: OccupiedHeatingSetpointValue
- label:
"Saving value for comparision in step3c read attribute
OccupiedCoolingSetpoint"
PICS: TSTAT.S.A0011
command: "readAttribute"
attribute: "OccupiedCoolingSetpoint"
response:
saveAs: OccupiedCoolingSetpointValue
- label:
"Saving value for comparision in step 6a read attribute
AbsMinHeatSetpointLimit"
command: "readAttribute"
attribute: "AbsMinHeatSetpointLimit"
PICS: TSTAT.S.A0003
response:
saveAs: AbsMinHeatSetpointLimitValue
- label:
"Saving value for comparision in step 7a read attribute
AbsMaxHeatSetpointLimit"
command: "readAttribute"
attribute: "AbsMaxHeatSetpointLimit"
PICS: TSTAT.S.A0004
response:
saveAs: AbsMaxHeatSetpointLimitValue
- label:
"Saving value for comparision in step 8a read attribute
AbsMinCoolSetpointLimit"
command: "readAttribute"
attribute: "AbsMinCoolSetpointLimit"
PICS: TSTAT.S.A0005
response:
saveAs: AbsMinCoolSetpointLimitValue
- label:
"Saving value for comparision in step9a read attribute
AbsMaxCoolSetpointLimit"
command: "readAttribute"
attribute: "AbsMaxCoolSetpointLimit"
PICS: TSTAT.S.A0006
response:
saveAs: AbsMaxCoolSetpointLimitValue
#Using saved values when optional attributes are available
- label:
"Step 2a: Test Harness Client reads attribute OccupiedCoolingSetpoint
from the DUT"
PICS: TSTAT.S.F01 && TSTAT.S.A0017 && TSTAT.S.A0018
command: "readAttribute"
attribute: "OccupiedCoolingSetpoint"
response:
constraints:
type: int16s
minValue: MinCoolSetpointLimitValue
maxValue: MaxCoolSetpointLimitValue
#Using hard coded values when optional attributes are not available
- label:
"Step 2a: Test Harness Client reads OccupiedCoolingSetpoint attribute
from Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && !TSTAT.S.A0017 && !TSTAT.S.A0018
response:
constraints:
type: int16s
minValue: 1600
maxValue: 3200
- label:
"Step 2a: Test Harness Client then attempts Writes a value back that
is different but valid for OccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01
arguments:
value: 2500
- label:
"Step 2a: Test Harness Client reads it back again to confirm the
successful write of OccupiedCoolingSetpoint attribute"
command: "readAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01
response:
value: 2500
- label:
"Step 2b: Test Harness Client then attempts Writes
OccupiedCoolingSetpoint to value below the MinCoolSetpointLimit"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && !TSTAT.S.A0017
arguments:
value: 30
response:
error: CONSTRAINT_ERROR
#MinCoolSetPointLimit might be negative if not checked before decrement
- label:
"Step 2b: Test Harness Writes OccupiedCoolingSetpoint to value below
the MinCoolSetpointLimit"
PICS: TSTAT.S.F01 && TSTAT.S.A0017 && PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
#2 Test Harness Client attempts to write OccupiedCoolingSetpoint below the MinCoolSetpointLimit and confirms that the device does not accept the value.
./chip-tool thermostat write occupied-cooling-setpoint 1000 1 1
On TH(chip-tool) verify that DUT sends a CONSTRAINT_ERROR (0x87) for the value which is below of the MinCoolSetpointLimitValue
[1676028984.901635][19375:19377] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676028984.901706][19375:19377] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
[1676028984.901895][19375:19377] CHIP:EM: <<< [E:18153i M:141749864 (Ack:137408936)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1676028984.901980][19375:19377] CHIP:IN: (S) Sending msg 141749864 on secure session with LSID: 58847
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 2b: Test Harness Writes OccupiedCoolingSetpoint to value above
the MaxCoolSetpointLimit"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && !TSTAT.S.A0017
arguments:
value: 4000
response:
error: CONSTRAINT_ERROR
- label:
"Step 2b: Test Harness Writes OccupiedCoolingSetpoint to value above
the MaxCoolSetpointLimit"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && TSTAT.S.A0017
arguments:
value: MaxCoolSetpointLimitValue + 1000
response:
error: CONSTRAINT_ERROR
- label:
"Step 2c: Test Harness Writes the limit of MaxCoolSetpointLimit to
OccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && !TSTAT.S.A0017
arguments:
value: 3200
- label:
"Step 2c: Test Harness Writes the limit of MaxCoolSetpointLimit to
OccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && TSTAT.S.A0017
arguments:
value: MaxCoolSetpointLimitValue
- label:
"Step 2c: Test Harness Writes the limit of MinCoolSetpointLimit to
OccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && !TSTAT.S.F05 && !TSTAT.S.A0017
arguments:
value: 1600
- label:
"Step 2c: Test Harness Writes the limit of MinCoolSetpointLimit to
OccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedCoolingSetpoint"
PICS: TSTAT.S.F01 && !TSTAT.S.F05 && TSTAT.S.A0017
arguments:
value: MinCoolSetpointLimitValue
#LowerLimit = Max(MinCoolSetpointLimit,(OccupiedHeatingSetpoint + MinSetpointDeadBand)) not possible in YAML
- label:
"Step 2c: Test Harness Writes If TSTAT.S.F05(AUTO) LowerLimit =
Max(MinCoolSetpointLimit, (OccupiedHeatingSetpoint +
MinSetpointDeadBand)) to OccupiedCoolingSetpoint attribute when Auto
is enabled"
PICS: TSTAT.S.F05 && TSTAT.S.A0011 && PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
Test Harness Client then attempts to write OccupiedCoolingSetpoint to both of the limits of LowerLimit(1600) & MaxCoolSetpointLimit(3200) and confirms that the device does accept the value. See also Note 5.
./chip-tool thermostat write occupied-cooling-setpoint 1600 1 1
On TH(chip-tool) verify that DUT sends a success response
[1676029009.026653][19381:19383] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029009.026688][19381:19383] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
[1676029009.026776][19381:19383] CHIP:EM: <<< [E:29492i M:142792974 (Ack:241003612)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
#Using saved values when optional attributes are available
- label:
"Step 3a: Test Harness Reads OccupiedHeatingSetpoint attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && TSTAT.S.A0016
response:
constraints:
type: int16s
minValue: MinHeatSetpointLimitValue
maxValue: MaxHeatSetpointLimitValue
#Using hard coded values when optional attributes are not available
- label:
"Step 3a: Test Harness Reads OccupiedHeatingSetpoint attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && !TSTAT.S.A0015 && !TSTAT.S.A0016
response:
constraints:
type: int16s
minValue: 700
maxValue: 3000
- label:
"Step 3a: Test Harness Writes a value back that is different but
valid for OccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00
arguments:
value: 2100
- label:
"Step 3a: Test Harness Reads it back again to confirm the successful
write of OccupiedHeatingSetpoint attribute"
command: "readAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00
response:
value: 2100
- label:
"Step 3b: Test Harness Writes OccupiedHeatingSetpoint to value below
the MinHeatSetpointLimit"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && !TSTAT.S.A0015
arguments:
value: 100
response:
error: CONSTRAINT_ERROR
#MinHeatSetpointLimit might be negative if not checked before decrement
- label:
"Step 3b: Test Harness Writes OccupiedHeatingSetpoint to value below
the MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
#1. Test Harness Client attempts to write OccupiedHeatingSetpoint below the MinHeatSetpointLimit and confirms that the device does not accept the value
./chip-tool thermostat write occupied-heating-setpoint 500 1 1
On TH(chip-tool) verify that DUT sends a CONSTRAINT_ERROR (0x87)
[1676029113.651245][19392:19394] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029113.651285][19392:19394] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
[1676029113.651397][19392:19394] CHIP:EM: <<< [E:43315i M:59735604 (Ack:107613834)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 3b: Test Harness Writes OccupiedHeatingSetpoint to value above
the MaxHeatSetpointLimit"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && !TSTAT.S.A0016
arguments:
value: 4010
response:
error: CONSTRAINT_ERROR
- label:
"Step 3b: Test Harness Writes OccupiedHeatingSetpoint to value above
the MaxHeatSetpointLimit"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && TSTAT.S.A0016
arguments:
value: MaxHeatSetpointLimitValue + 1000
response:
error: CONSTRAINT_ERROR
- label:
"Step 3c: Test Harness Writes the limit of MaxHeatSetpointLimit to
OccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && !TSTAT.S.F05 && !TSTAT.S.A0016
arguments:
value: 3000
- label:
"Step 3c: Test Harness Writes the limit of MaxHeatSetpointLimit to
OccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && !TSTAT.S.F05 && TSTAT.S.A0016
arguments:
value: MaxHeatSetpointLimitValue
- label:
"Step 3c: Test Harness Writes the limit of MaxHeatSetpointLimit to
OccupiedHeatingSetpoint attribute If TSTAT.S.F05 is true"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F05 && !TSTAT.S.A0015
arguments:
value: 3000
response:
error: CONSTRAINT_ERROR
#UpperLimit = Min(MaxHeatSetpointLimit,(OccupiedCoolingSetpoint - MinSetpointDeadBand)) not possible in YAML
- label:
"Step 3c: Test Harness Writes If TSTAT.S.F05(AUTO) UpperLimit =
Min(MaxHeatSetpointLimit, (OccupiedCoolingSetpoint -
MinSetpointDeadBand)) to OccupiedHeatingSetpoint attribute when Auto
is enabled"
PICS:
TSTAT.S.F05 && TSTAT.S.A0011 && TSTAT.S.A0012 && PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
Test Harness Client then attempts to write OccupiedHeatingSetpoint to both of the limits of MinHeatSetpointLimit(700) & UpperLimit(3000) and confirms that the device does accept the value.
./chip-tool thermostat write occupied-heating-setpoint 3000 1 1
On TH(chip-tool) verify that DUT sends a success response
1676029222.303920][19403:19405] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029222.303955][19403:19405] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
[1676029222.304055][19403:19405] CHIP:EM: <<< [E:236i M:251820549 (Ack:138263425)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10
./chip-tool thermostat write occupied-heating-setpoint 700 1 1
On TH(chip-tool) verify that DUT sends a success response
[1678943387.942204][770598:770600] CHIP:DMG: StatusIB =
[1678943387.942212][770598:770600] CHIP:DMG: {
[1678943387.942220][770598:770600] CHIP:DMG: status = 0x00 (SUCCESS),
[1678943387.942228][770598:770600] CHIP:DMG: },
[1678943387.942236][770598:770600] CHIP:DMG:
[1678943387.942243][770598:770600] CHIP:DMG: },
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 3c: Test Harness Writes the limit of MinHeatSetpointLimit to
OccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && !TSTAT.S.A0015
arguments:
value: 700
- label:
"Step 3c: Test Harness Writes the limit of MinHeatSetpointLimit to
OccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "OccupiedHeatingSetpoint"
PICS: TSTAT.S.F00 && TSTAT.S.A0015
arguments:
value: MinHeatSetpointLimitValue
- label:
"Step 4a: Test Harness Reads UnoccupiedCoolingSetpoint attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && TSTAT.S.A0017 && TSTAT.S.A0018
response:
constraints:
type: int16s
minValue: MinCoolSetpointLimitValue
maxValue: MaxCoolSetpointLimitValue
- label:
"Step 4a: Test Harness Reads UnoccupiedCoolingSetpoint attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && !TSTAT.S.A0017 && !TSTAT.S.A0018
response:
constraints:
type: int16s
minValue: 1600
maxValue: 3200
- label:
"Step 4a: Test Harness Writes a value back that is different but
valid for UnoccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01
arguments:
value: 2500
- label:
"Step 4a: Test Harness Reads it back again to confirm the successful
write of UnoccupiedCoolingSetpoint attribute"
command: "readAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01
response:
value: 2500
- label:
"Step 4b: Test Harness Writes UnoccupiedCoolingSetpoint to value
below the MinCoolSetpointLimit"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && !TSTAT.S.A0017
arguments:
value: 500
response:
error: CONSTRAINT_ERROR
#MinCoolSetpointLimit might be negative if not checked before decrement
- label:
"Step 4b: Test Harness Writes UnoccupiedCoolingSetpoint to value
below the MinCoolSetpointLimit"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && TSTAT.S.A0017 && PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
#1. Test Harness Client attempts to write OccupiedHeatingSetpoint below the MinHeatSetpointLimit and confirms that the device does not accept the value
./chip-tool thermostat write unoccupied-cooling-setpoint 500 1 1
On TH(chip-tool) verify that DUT sends a CONSTRAINT_ERROR (0x87)
[1676029263.842915][19409:19411] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029263.842943][19409:19411] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
[1676029263.843052][19409:19411] CHIP:EM: <<< [E:47350i M:72320003 (Ack:188090912)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10 (SecureChannel:StandaloneAck)
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 4b: Test Harness Writes UnoccupiedCoolingSetpoint to value
above the MaxCoolSetpointLimit"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && !TSTAT.S.A0018
arguments:
value: 4010
response:
error: CONSTRAINT_ERROR
- label:
"Step 4b: Test Harness Writes UnoccupiedCoolingSetpoint to value
above the MaxCoolSetpointLimit"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && TSTAT.S.A0018
arguments:
value: MaxCoolSetpointLimitValue + 1000
response:
error: CONSTRAINT_ERROR
- label:
"Step 4c: Test Harness Writes the limit of MaxCoolSetpointLimit to
UnoccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && !TSTAT.S.A0018 && !TSTAT.S.F05
arguments:
value: 3200
- label:
"Step 4c: Test Harness Writes the limit of MaxCoolSetpointLimit to
UnoccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && TSTAT.S.A0018 && !TSTAT.S.F05
arguments:
value: MaxCoolSetpointLimitValue
#LowerLimit = Max(MinCoolSetpointLimit,(UnoccupiedCoolingSetpoint + MinSetpointDeadBand)) not possible in YAML
- label:
"Step 4c: Test Harness Writes If TSTAT.S.F05(AUTO) LowerLimit =
Max(MinCoolSetpointLimit, (UnoccupiedCoolingSetpoint +
MinSetpointDeadBand)) to UnoccupiedCoolingSetpoint attribute"
PICS:
TSTAT.S.F02 && TSTAT.S.F01 && TSTAT.S.A0013 && TSTAT.S.F05 &&
PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
below mentioned the example command to verify
./chip-tool thermostat write unoccupied-cooling-setpoint 2000 1 1
On TH(chip-tool) verify that DUT sends a success response. As its an optional attribute, we are not getting expected result
[1676029365.250210][19420:19422] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029365.250263][19420:19422] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
[1676029365.250403][19420:19422] CHIP:EM: <<< [E:16230i M:267641165 (Ack:117850882)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1676029365.250467][19420:19422] CHIP:IN: (S) Sending msg 267641165 on secure session with LSID: 45606
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 4c: Test Harness Writes the limit of MinCoolSetpointLimit to
UnoccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && !TSTAT.S.A0017 && !TSTAT.S.F05
arguments:
value: 1600
- label:
"Step 4c: Test Harness Writes the limit of MinCoolSetpointLimit to
UnoccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && !TSTAT.S.A0017 && TSTAT.S.F05
arguments:
value: 1600
response:
error: CONSTRAINT_ERROR
- label:
"Step 4c: Test Harness Writes the limit of MinCoolSetpointLimit to
UnoccupiedCoolingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedCoolingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F01 && TSTAT.S.A0017 && !TSTAT.S.F05
arguments:
value: MinCoolSetpointLimitValue
#Using saved values when optional attributes are available
- label:
"Step 5a: Test Harness Reads UnoccupiedHeatingSetpoint attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && TSTAT.S.A0015 && TSTAT.S.A0016
response:
constraints:
type: int16s
minValue: MinHeatSetpointLimitValue
maxValue: MaxHeatSetpointLimitValue
#Using hardcoded values when optional attributes are not available
- label:
"Step 5a: Test Harness Reads UnoccupiedHeatingSetpoint attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && !TSTAT.S.A0015 && !TSTAT.S.A0016
response:
constraints:
type: int16s
minValue: 700
maxValue: 3000
- label:
"Step 5a: Test Harness Writes a value back that is different but
valid for UnoccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00
arguments:
value: 2500
- label:
"Step 5a: Test Harness Reads it back again to confirm the successful
write of UnoccupiedHeatingSetpoint attribute"
command: "readAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00
response:
value: 2500
- label:
"Step 5b: Test Harness Writes UnoccupiedHeatingSetpoint to value
below the MinHeatSetpointLimit"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && !TSTAT.S.A0015
arguments:
value: 100
response:
error: CONSTRAINT_ERROR
#MinHeatSetpointLimit might be negative if not checked before decrement
- label:
"Step 5b: Test Harness Writes UnoccupiedHeatingSetpoint to value
below the MinHeatSetpointLimit"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && TSTAT.S.A0015 && PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
#1. Test Harness Client attempts to write UnoccupiedHeatingSetpoint below the MinHeatSetpointLimit and confirms that the device does not accept the value
./chip-tool thermostat write unoccupied-heating-setpoint 500 1 1
On TH(chip-tool) verify that DUT sends a CONSTRAINT_ERROR (0x87). As its an optional attribute, we are not getting expected result
[1676029557.268065][19431:19433] CHIP:DMG: }
[1676029557.268220][19431:19433] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029557.268290][19431:19433] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
[1676029557.268470][19431:19433] CHIP:EM: <<< [E:8458i M:31631638 (Ack:115187982)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10 (SecureChannel:StandaloneAck)
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 5b: Test Harness Writes UnoccupiedHeatingSetpoint to value
above the MaxHeatSetpointLimit"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && !TSTAT.S.A0016
arguments:
value: 4010
response:
error: CONSTRAINT_ERROR
- label:
"Step 5b: Test Harness Writes UnoccupiedHeatingSetpoint to value
above the MaxHeatSetpointLimit"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && TSTAT.S.A0016
arguments:
value: MaxHeatSetpointLimitValue + 1000
response:
error: CONSTRAINT_ERROR
- label:
"Step 5c: Test Harness Writes the limit of MaxHeatSetpointLimit to
UnoccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && !TSTAT.S.A0016 && !TSTAT.S.F05
arguments:
value: 3000
- label:
"Step 5c: Test Harness Writes the limit of MaxHeatSetpointLimit to
UnoccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && TSTAT.S.A0016 && !TSTAT.S.F05
arguments:
value: MaxHeatSetpointLimitValue
- label:
"Step 5c: Test Harness Writes the limit of MaxHeatSetpointLimit to
UnoccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && !TSTAT.S.A0016 && TSTAT.S.F05
arguments:
value: 3000
response:
error: CONSTRAINT_ERROR
#UpperLimit = Min(MaxHeatSetpointLimit,(UnoccupiedCoolingSetpoint - MinSetpointDeadBand)) not possible in YAML
- label:
"Step 5c: Test Harness Writes If TSTAT.S.F05(AUTO) UpperLimit =
Min(MaxHeatSetpointLimit, (UnoccupiedCoolingSetpoint -
MinSetpointDeadBand)) to UnoccupiedHeatingSetpoint attribute when Auto
is enabled."
PICS:
TSTAT.S.F02 && TSTAT.S.F00 && TSTAT.S.A0013 && TSTAT.S.F05 &&
PICS_SKIP_SAMPLE_APP
verification: |
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE. Below is the log of RPI the result may be vary on the basis of dut implementation.
below mentioned the example command to verify
./chip-tool thermostat write unoccupied-heating-setpoint 2000 1 1
On TH(chip-tool) verify that DUT sends a success response. As its an optional attribute, we are not getting expected result
[1676029629.242182][19437:19439] CHIP:DMG: }
[1676029629.242250][19437:19439] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029629.242280][19437:19439] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
[1676029629.242366][19437:19439] CHIP:EM: <<< [E:51650i M:149591010 (Ack:214538556)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1676029629.242402][19437:19439] CHIP:IN: (S) Sending msg 149591010 on secure session with LSID: 6132
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 5c: Test Harness Writes the limit of MinHeatSetpointLimit to
UnoccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && !TSTAT.S.A0015
arguments:
value: 700
- label:
"Step 5c: Test Harness Writes the limit of MinHeatSetpointLimit to
UnoccupiedHeatingSetpoint attribute"
command: "writeAttribute"
attribute: "UnoccupiedHeatingSetpoint"
PICS: TSTAT.S.F02 && TSTAT.S.F00 && TSTAT.S.A0015
arguments:
value: MinHeatSetpointLimitValue
#Using saved values when optional attributes are available
- label:
"Step 6a: Test Harness Reads MinHeatSetpointLimit attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && TSTAT.S.A0016 && TSTAT.S.A0003
response:
constraints:
type: int16s
minValue: AbsMinHeatSetpointLimitValue
maxValue: MaxHeatSetpointLimitValue
#Using hard coded values when optional attributes are not available
- label:
"Step 6a: Test Harness Reads MinHeatSetpointLimit attribute from
Server DUT and verifies that the value is within range"
command: "readAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && !TSTAT.S.A0016 && !TSTAT.S.A0003
response:
constraints:
type: int16s
minValue: 700
maxValue: 3000
- label:
"Step 6a: Test Harness Writes a value back that is different but valid
for MinHeatSetpointLimit attribute"
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015
arguments:
value: 800
- label:
"Step 6a: Test Harness Reads it back again to confirm the successful
write of MinHeatSetpointLimit attribute"
command: "readAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015
response:
value: 800
- label:
"Step 6b: Test Harness Writes a value back that is different but
violates the deadband"
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.A0015 && TSTAT.S.F05
arguments:
value: 2000
response:
error: CONSTRAINT_ERROR
- label:
"Step 6b: Test Harness Writes MinHeatSetpointLimit to value below the
AbsMinHeatSetpointLimit "
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && !TSTAT.S.A0003
arguments:
value: 100
response:
error: CONSTRAINT_ERROR
#AbsMinHeatSetpointLimit might be negative if not checked before decrement
- label:
"Step 6b: Test Harness Writes MinHeatSetpointLimit to value below the
AbsMinHeatSetpointLimit "
PICS:
TSTAT.S.F00 && TSTAT.S.A0015 && TSTAT.S.A0003 && PICS_SKIP_SAMPLE_APP
verification: |
#1. Test Harness Client attempts to write MinHeatSetpointLimit below the AbsMinHeatSetpointLimit and confirms that the device does not accept the value.
./chip-tool thermostat write min-heat-setpoint-limit 300 1 1
On TH (chip-tool) verify that DUT sends a CONSTRAINT_ERROR (0x87)
[1676029705.839179][19450:19452] CHIP:DMG: }
[1676029705.839253][19450:19452] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1676029705.839287][19450:19452] CHIP:TOO: Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
[1676029705.839411][19450:19452] CHIP:EM: <<< [E:34538i M:185292291 (Ack:127655640)] (S) Msg TX to 1:0000000000000001 [E8D5] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1676029705.839456][19450:19452] CHIP:IN: (S) Sending msg 185292291 on secure session with LSID: 61694
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 6b: Test Harness Writes MinHeatSetpointLimit to value above the
AbsMaxHeatSetpointLimit "
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && !TSTAT.S.A0016
arguments:
value: 4050
response:
error: CONSTRAINT_ERROR
- label:
"Step 6b: Test Harness Writes MinHeatSetpointLimit to value above the
AbsMaxHeatSetpointLimit "
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && TSTAT.S.A0016
arguments:
value: MaxHeatSetpointLimitValue + 1000
response:
error: CONSTRAINT_ERROR
- label:
"Step 6c: Test Harness Writes the limit of MaxHeatSetpointLimit to
MinHeatSetpointLimit attribute"
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && !TSTAT.S.F05 && !TSTAT.S.A0016
arguments:
value: 3000
- label:
"Step 6c: Test Harness Writes the limit of MaxHeatSetpointLimit to
MinHeatSetpointimit attribute"
command: "writeAttribute"
attribute: "MinHeatSetpointLimit"
PICS: TSTAT.S.F00 && TSTAT.S.A0015 && !TSTAT.S.F05 && TSTAT.S.A0016
arguments:
value: MaxHeatSetpointLimitValue
#UpperLimit = Min(MaxHeatSetpointLimit,(MinCoolSetpointLimit - MinSetpointDeadBand)) not possible in YAML
- label:
"Step 6c: Test Harness Writes If TSTAT.S.F05(AUTO) UpperLimit =
Min(MaxHeatSetpointLimit, (MinCoolSetpointLimit -
MinSetpointDeadBand)) to MinHeatSetpointLimit attribute when Auto is
enabled"
PICS:
TSTAT.S.F00 && TSTAT.S.A0015 && TSTAT.S.F05 && TSTAT.S.A0005 &&
PICS_SKIP_SAMPLE_APP
verification: |
Test Harness Client then attempts to write MinHeatSetpointLimit to both of the limits of AbsMinHeatSetpointLimit & UpperLimit and confirms that the device does accept the value.
below is an exaple command.
./chip-tool thermostat write min-heat-setpoint-limit 1200 1 1
On TH(chip-tool) verify that DUT sends a success response
[1676029742.329801][19458:19460] CHIP:DMG: }
[1676029742.329846][19458:19460] CHIP:DMG:
[1676029742.329883][19458:19460] CHIP:DMG: StatusIB =
[1676029742.329922][19458:19460] CHIP:DMG: {
[1676029742.329962][19458:19460] CHIP:DMG: status = 0x00 (SUCCESS),
[1676029742.330001][19458:19460] CHIP:DMG: },
[1676029742.330040][19458:19460] CHIP:DMG:
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"