Skip to content

Commit 7789409

Browse files
Updated TC_S_2_2 to match vs doc (#35519)
1 parent b30d23a commit 7789409

File tree

1 file changed

+278
-23
lines changed

1 file changed

+278
-23
lines changed

src/app/tests/suites/certification/Test_TC_S_2_2.yaml

+278-23
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,14 @@ tests:
219219
"Step 2a: TH configures AC1 on DUT for all implemented application
220220
clusters supporting scenes."
221221
verification: |
222-
Is DUT configured with AC1?
222+
./chip-tool levelcontrol move-to-level-with-on-off 100 0 0 0 1 1
223+
224+
DUT is configured with AC1 for application clusters which is implemented and supporting scenes
225+
226+
[1705040301.476123][6423:6425] CHIP:DMG: StatusIB =
227+
[1705040301.476139][6423:6425] CHIP:DMG: {
228+
[1705040301.476152][6423:6425] CHIP:DMG: status = 0x00 (SUCCESS),
229+
[1705040301.476164][6423:6425] CHIP:DMG: },
223230
cluster: "LogCommands"
224231
command: "UserPrompt"
225232
PICS: PICS_SKIP_SAMPLE_APP
@@ -315,7 +322,16 @@ tests:
315322
"Step 3a: TH configures AC2 on DUT for all implemented application
316323
clusters supporting scenes."
317324
verification: |
318-
Is DUT configured with AC2?
325+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC2 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
326+
327+
./chip-tool levelcontrol move-to-level-with-on-off 200 0 0 0 1 1
328+
329+
DUT is configured with AC2 for application clusters which is implemented, supporting scenes and different from AC1
330+
331+
[1705040820.918043][6555:6557] CHIP:DMG: StatusIB =
332+
[1705040820.918056][6555:6557] CHIP:DMG: {
333+
[1705040820.918068][6555:6557] CHIP:DMG: status = 0x00 (SUCCESS),
334+
[1705040820.918080][6555:6557] CHIP:DMG: },
319335
cluster: "LogCommands"
320336
command: "UserPrompt"
321337
PICS: PICS_SKIP_SAMPLE_APP
@@ -340,6 +356,47 @@ tests:
340356
- name: "SceneID"
341357
value: 0x01
342358

359+
- label: "Wait 250 ms for instant transition"
360+
PICS: PICS_SDK_CI_ONLY
361+
cluster: "DelayCommands"
362+
command: "WaitForMs"
363+
arguments:
364+
values:
365+
- name: "ms"
366+
value: 250
367+
368+
- label:
369+
"TH confirm the DUT reached AC1 (on level control cluster) after 250ms"
370+
PICS: PICS_SDK_CI_ONLY && S.S.C05.Rsp
371+
cluster: "Level Control"
372+
command: "readAttribute"
373+
attribute: "CurrentLevel"
374+
response:
375+
value: 100
376+
377+
- label: "Verify DUT returns to AC1."
378+
verification: |
379+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC1 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
380+
381+
Read CurrentLevel attribute from level control cluster
382+
383+
./chip-tool levelcontrol read current-level 1 1
384+
385+
Verify CurrentLevel attribute value on TH(chip-tool)
386+
387+
[1708072116.730389][7757:7759] CHIP:DMG: }
388+
[1708072116.730518][7757:7759] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0000 DataVersion: 2359286215
389+
[1708072116.730552][7757:7759] CHIP:TOO: CurrentLevel: 100
390+
cluster: "LogCommands"
391+
command: "UserPrompt"
392+
PICS: PICS_SKIP_SAMPLE_APP
393+
arguments:
394+
values:
395+
- name: "message"
396+
value: "Please confirm AC1 on DUT and enter 'y'."
397+
- name: "expectedValue"
398+
value: "y"
399+
343400
- label: "Step 3c: TH reads attribute SceneTableSize from DUT."
344401
command: "readAttribute"
345402
attribute: "SceneTableSize"
@@ -411,7 +468,16 @@ tests:
411468
"Step 4c: TH configures AC2 on DUT for all implemented application
412469
clusters supporting scenes."
413470
verification: |
414-
Is DUT configured with AC2?
471+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC1 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
472+
473+
./chip-tool levelcontrol move-to-level-with-on-off 200 0 0 0 1 1
474+
475+
DUT is configured with AC2 for application clusters which is implemented, supporting scenes and different from AC1
476+
477+
[1705040820.918043][6555:6557] CHIP:DMG: StatusIB =
478+
[1705040820.918056][6555:6557] CHIP:DMG: {
479+
[1705040820.918068][6555:6557] CHIP:DMG: status = 0x00 (SUCCESS),
480+
[1705040820.918080][6555:6557] CHIP:DMG: },
415481
cluster: "LogCommands"
416482
command: "UserPrompt"
417483
PICS: PICS_SKIP_SAMPLE_APP
@@ -436,6 +502,47 @@ tests:
436502
- name: "SceneID"
437503
value: 0x01
438504

505+
- label: "Wait 250 ms for instant transition"
506+
PICS: PICS_SDK_CI_ONLY
507+
cluster: "DelayCommands"
508+
command: "WaitForMs"
509+
arguments:
510+
values:
511+
- name: "ms"
512+
value: 250
513+
514+
- label:
515+
"TH confirm the DUT reached AC1 (on level control cluster) after 250ms"
516+
PICS: PICS_SDK_CI_ONLY && S.S.C05.Rsp
517+
cluster: "Level Control"
518+
command: "readAttribute"
519+
attribute: "CurrentLevel"
520+
response:
521+
value: 100
522+
523+
- label: "Verify DUT returns to AC1."
524+
verification: |
525+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC1 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
526+
527+
Read CurrentLevel attribute from level control cluster
528+
529+
./chip-tool levelcontrol read current-level 1 1
530+
531+
Verify CurrentLevel attribute value on TH(chip-tool)
532+
533+
[1708072116.730389][7757:7759] CHIP:DMG: }
534+
[1708072116.730518][7757:7759] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0008 Attribute 0x0000_0000 DataVersion: 2359286215
535+
[1708072116.730552][7757:7759] CHIP:TOO: CurrentLevel: 100
536+
cluster: "LogCommands"
537+
command: "UserPrompt"
538+
PICS: PICS_SKIP_SAMPLE_APP
539+
arguments:
540+
values:
541+
- name: "message"
542+
value: "Please confirm AC1 on DUT and enter 'y'."
543+
- name: "expectedValue"
544+
value: "y"
545+
439546
- label:
440547
"Step 4e: TH sends a RecallScene command to DUT with the GroupID field
441548
set to G1 and the SceneID field set to 0xFF, which is outside of the
@@ -516,24 +623,93 @@ tests:
516623
- label:
517624
"Step 5a: TH sends a ViewScene command to DUT with the GroupID field
518625
set to G1 and the SceneID field set to 0x01."
626+
verification: |
627+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC1 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
628+
629+
./chip-tool scenesmanagement view-scene 0x0001 0x01 1 1
630+
631+
Verify DUT sends a ViewSceneResponse command to TH with the Status field set to 0x00 (SUCCESS), the GroupID field set to G1, the SceneID field set to 0x01, the TransitionTime field set to 0x0000 and a set of extension fields appropriate to AC1 on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
632+
633+
634+
[1720440014.726] [13252:13254] [DMG] Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0001
635+
[1720440014.726] [13252:13254] [TOO] Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0001
636+
[1720440014.726] [13252:13254] [TOO] ViewSceneResponse: {
637+
[1720440014.726] [13252:13254] [TOO] status: 0
638+
[1720440014.726] [13252:13254] [TOO] groupID: 1
639+
[1720440014.726] [13252:13254] [TOO] sceneID: 1
640+
[1720440014.726] [13252:13254] [TOO] transitionTime: 0
641+
[1720440014.727] [13252:13254] [TOO] sceneName:
642+
[1720440014.727] [13252:13254] [TOO] extensionFieldSets: 3 entries
643+
[1720440014.727] [13252:13254] [TOO] [1]: {
644+
[1720440014.727] [13252:13254] [TOO] ClusterID: 6
645+
[1720440014.727] [13252:13254] [TOO] AttributeValueList: 1 entries
646+
[1720440014.727] [13252:13254] [TOO] [1]: {
647+
[1720440014.727] [13252:13254] [TOO] AttributeID: 0
648+
[1720440014.727] [13252:13254] [TOO] ValueUnsigned8: 1
649+
[1720440014.727] [13252:13254] [TOO] }
650+
[1720440014.727] [13252:13254] [TOO] }
651+
[1720440014.727] [13252:13254] [TOO] [2]: {
652+
[1720440014.727] [13252:13254] [TOO] ClusterID: 8
653+
[1720440014.727] [13252:13254] [TOO] AttributeValueList: 1 entries
654+
[1720440014.727] [13252:13254] [TOO] [1]: {
655+
[1720440014.727] [13252:13254] [TOO] AttributeID: 0
656+
[1720440014.727] [13252:13254] [TOO] ValueUnsigned8: 100
657+
[1720440014.727] [13252:13254] [TOO] }
658+
[1720440014.727] [13252:13254] [TOO] }
659+
[1720440014.727] [13252:13254] [TOO] [3]: {
660+
[1720440014.727] [13252:13254] [TOO] ClusterID: 768
661+
[1720440014.727] [13252:13254] [TOO] AttributeValueList: 9 entries
662+
[1720440014.727] [13252:13254] [TOO] [1]: {
663+
[1720440014.727] [13252:13254] [TOO] AttributeID: 3
664+
[1720440014.727] [13252:13254] [TOO] ValueUnsigned16: 24939
665+
[1720440014.727] [13252:13254] [TOO] }
666+
[1720440014.727] [13252:13254] [TOO] [2]: {
667+
[1720440014.728] [13252:13254] [TOO] AttributeID: 4
668+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned16: 24701
669+
[1720440014.728] [13252:13254] [TOO] }
670+
[1720440014.728] [13252:13254] [TOO] [3]: {
671+
[1720440014.728] [13252:13254] [TOO] AttributeID: 16384
672+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned16: 0
673+
[1720440014.728] [13252:13254] [TOO] }
674+
[1720440014.728] [13252:13254] [TOO] [4]: {
675+
[1720440014.728] [13252:13254] [TOO] AttributeID: 1
676+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned8: 0
677+
[1720440014.728] [13252:13254] [TOO] }
678+
[1720440014.728] [13252:13254] [TOO] [5]: {
679+
[1720440014.728] [13252:13254] [TOO] AttributeID: 16386
680+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned8: 0
681+
[1720440014.728] [13252:13254] [TOO] }
682+
[1720440014.728] [13252:13254] [TOO] [6]: {
683+
[1720440014.728] [13252:13254] [TOO] AttributeID: 16387
684+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned8: 0
685+
[1720440014.728] [13252:13254] [TOO] }
686+
[1720440014.728] [13252:13254] [TOO] [7]: {
687+
[1720440014.728] [13252:13254] [TOO] AttributeID: 16388
688+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned16: 25
689+
[1720440014.728] [13252:13254] [TOO] }
690+
[1720440014.728] [13252:13254] [TOO] [8]: {
691+
[1720440014.728] [13252:13254] [TOO] AttributeID: 7
692+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned16: 0
693+
[1720440014.728] [13252:13254] [TOO] }
694+
[1720440014.728] [13252:13254] [TOO] [9]: {
695+
[1720440014.728] [13252:13254] [TOO] AttributeID: 16385
696+
[1720440014.728] [13252:13254] [TOO] ValueUnsigned8: 2
697+
[1720440014.728] [13252:13254] [TOO] }
698+
[1720440014.729] [13252:13254] [TOO] }
699+
[1720440014.729] [13252:13254] [TOO] }
519700
PICS: S.S.C01.Rsp && PICS_SKIP_SAMPLE_APP
520-
command: "ViewScene"
701+
cluster: "LogCommands"
702+
command: "UserPrompt"
521703
arguments:
522704
values:
523-
- name: "GroupID"
524-
value: G1
525-
- name: "SceneID"
526-
value: 0x01
527-
response:
528-
values:
529-
- name: "Status"
530-
value: 0x00
531-
- name: "GroupID"
532-
value: G1
533-
- name: "SceneID"
534-
value: 0x01
535-
- name: "TransitionTime"
536-
value: 0x0000
705+
- name: "message"
706+
value:
707+
"Please execute the view-scene command and verify that the
708+
extensionfieldsets, status, groupID and SceneID are in
709+
accordance with AC1 on DUT and enter 'y' if the command is
710+
successful"
711+
- name: "expectedValue"
712+
value: "y"
537713

538714
- label:
539715
"Step 5b: TH sends a ViewScene command to DUT with the GroupID field
@@ -728,7 +904,7 @@ tests:
728904
set to GI (Where GI is a group currently absent from the group table),
729905
the SceneID field set to 0x01, the TransitionTime field set to 1000
730906
(1s) and a set of extension fields appropriate to AC1."
731-
PICS: S.S.C00.Rsp
907+
PICS: S.S.C00.Rsp && PICS_SDK_CI_ONLY
732908
command: "AddScene"
733909
arguments:
734910
values:
@@ -751,6 +927,55 @@ tests:
751927
- name: "SceneID"
752928
value: 0x01
753929

930+
- label:
931+
"Step 8b: TH sends a AddScene command to DUT with the GroupID field
932+
set to GI (Where GI is a group currently absent from the group table),
933+
the SceneID field set to 0x01, the TransitionTime field set to 1000
934+
(1s) and a set of extension fields appropriate to AC1."
935+
verification: |
936+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC1 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
937+
./chip-tool groupkeymanagement read group-table 1 0
938+
939+
Verify the GroupTable entries on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
940+
941+
[1705676728.146505][4668:4670] CHIP:DMG: }
942+
[1705676728.146723][4668:4670] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003F Attribute 0x0000_0001 DataVersion: 3010518007
943+
[1705676728.146781][4668:4670] CHIP:TOO: GroupTable: 1 entries
944+
[1705676728.147147][4668:4670] CHIP:TOO: [1]: {
945+
[1705676728.147155][4668:4670] CHIP:TOO: GroupId: 1
946+
[1705676728.147160][4668:4670] CHIP:TOO: Endpoints: 1 entries
947+
[1705676728.147164][4668:4670] CHIP:TOO: [1]: 1
948+
[1705676728.147167][4668:4670] CHIP:TOO: GroupName: Gp1
949+
[1705676728.147170][4668:4670] CHIP:TOO: FabricIndex: 1
950+
[1705676728.147173][4668:4670] CHIP:TOO: }
951+
952+
Select the group (G1) that is absent from the above group table
953+
954+
./chip-tool scenesmanagement add-scene 0x0002 0x01 1000 "scene name" '[{"clusterID": "0x0300", "attributeValueList":[{"attributeID": "0x4000", "valueUnsigned16": "0x01"}]}]' 1 1
955+
956+
Verify DUT sends a AddSceneResponse command to TH with the Status field set to 0x85 (INVALID_COMMAND), the GroupID field set to GI and the SceneID field set to 0x01. on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
957+
958+
[1706763629.927365][4236:4238] CHIP:DMG: },
959+
[1706763629.927382][4236:4238] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0000
960+
[1706763629.927390][4236:4238] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0000
961+
[1706763629.927407][4236:4238] CHIP:TOO: AddSceneResponse: {
962+
[1706763629.927413][4236:4238] CHIP:TOO: status: 133
963+
[1706763629.927416][4236:4238] CHIP:TOO: groupID: 2
964+
[1706763629.927419][4236:4238] CHIP:TOO: sceneID: 1
965+
[1706763629.927422][4236:4238] CHIP:TOO: }
966+
cluster: "LogCommands"
967+
command: "UserPrompt"
968+
PICS: PICS_SKIP_SAMPLE_APP
969+
arguments:
970+
values:
971+
- name: "message"
972+
value:
973+
"Please execute the add scene command with
974+
extensionfieldsets in accordance with AC1 on DUT and enter
975+
'y' if the command is successful"
976+
- name: "expectedValue"
977+
value: "y"
978+
754979
- label:
755980
"Step 8c: TH sends a GetSceneMembership command to DUT with the
756981
GroupID field set to G1."
@@ -1051,7 +1276,14 @@ tests:
10511276
"Step 10a: TH configures AC2 on DUT for all implemented application
10521277
clusters supporting scenes."
10531278
verification: |
1054-
Is DUT configured with AC2?
1279+
./chip-tool levelcontrol move-to-level-with-on-off 200 0 0 0 1 1
1280+
1281+
DUT is configured with AC2 for application clusters which is implemented, supporting scenes and different from AC1
1282+
1283+
[1705040820.918043][6555:6557] CHIP:DMG: StatusIB =
1284+
[1705040820.918056][6555:6557] CHIP:DMG: {
1285+
[1705040820.918068][6555:6557] CHIP:DMG: status = 0x00 (SUCCESS),
1286+
[1705040820.918080][6555:6557] CHIP:DMG: },
10551287
cluster: "LogCommands"
10561288
command: "UserPrompt"
10571289
PICS: PICS_SKIP_SAMPLE_APP
@@ -1099,7 +1331,14 @@ tests:
10991331
"Step 11a: TH configures AC1 on DUT for all implemented application
11001332
clusters supporting scenes."
11011333
verification: |
1102-
Is DUT configured with AC1?
1334+
./chip-tool levelcontrol move-to-level-with-on-off 100 0 0 0 1 1
1335+
1336+
DUT is configured with AC1 for application clusters which is implemented and supporting scenes
1337+
1338+
[1705040301.476123][6423:6425] CHIP:DMG: StatusIB =
1339+
[1705040301.476139][6423:6425] CHIP:DMG: {
1340+
[1705040301.476152][6423:6425] CHIP:DMG: status = 0x00 (SUCCESS),
1341+
[1705040301.476164][6423:6425] CHIP:DMG: },
11031342
cluster: "LogCommands"
11041343
command: "UserPrompt"
11051344
PICS: PICS_SKIP_SAMPLE_APP
@@ -1153,7 +1392,16 @@ tests:
11531392
"Step 12a: TH configures AC2 on DUT for all implemented application
11541393
clusters supporting scenes."
11551394
verification: |
1156-
Is DUT configured with AC2?
1395+
THIS COMMAND SHALL VARY DEPENDING ON THE DUT, TESTER NEEDS TO ENSURE THAT AC1 REPRESENTS CLUSTER ATTRIBUTES PRESENT ON DUT
1396+
1397+
./chip-tool levelcontrol move-to-level-with-on-off 200 0 0 0 1 1
1398+
1399+
DUT is configured with AC2 for application clusters which is implemented, supporting scenes and different from AC1
1400+
1401+
[1705040820.918043][6555:6557] CHIP:DMG: StatusIB =
1402+
[1705040820.918056][6555:6557] CHIP:DMG: {
1403+
[1705040820.918068][6555:6557] CHIP:DMG: status = 0x00 (SUCCESS),
1404+
[1705040820.918080][6555:6557] CHIP:DMG: },
11571405
cluster: "LogCommands"
11581406
command: "UserPrompt"
11591407
PICS: PICS_SKIP_SAMPLE_APP
@@ -1304,7 +1552,14 @@ tests:
13041552
clusters supporting scenes."
13051553
runIf: ContinueTest
13061554
verification: |
1307-
Is DUT configured with AC3?
1555+
./chip-tool levelcontrol move-to-level-with-on-off 1 0 0 0 1 1
1556+
1557+
DUT is configured with AC3 for application clusters which is implemented, supporting scenes and different from AC1, AC2
1558+
1559+
[1705045707.240304][8006:8008] CHIP:DMG: StatusIB =
1560+
[1705045707.240308][8006:8008] CHIP:DMG: {
1561+
[1705045707.240311][8006:8008] CHIP:DMG: status = 0x00 (SUCCESS),
1562+
[1705045707.240314][8006:8008] CHIP:DMG: },
13081563
cluster: "LogCommands"
13091564
command: "UserPrompt"
13101565
PICS: PICS_SKIP_SAMPLE_APP

0 commit comments

Comments
 (0)