Skip to content

Commit 2cd02f9

Browse files
andy31415simonhmorris1restyled-commits
authored
Tc sc 4 1 bcm support (project-chip#36597) (project-chip#37437)
* [project-chip#36594] TC_SC_4_1, make BCM optional to meet test plan * [project-chip#36594] Remove new line * Restyled by prettier-yaml * Add ICDM.S.A0002 checking(project-chip#36597) * Restyled by prettier-yaml --------- Co-authored-by: simonhmorris1 <112178216+simonhmorris1@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent e0c8cbb commit 2cd02f9

File tree

1 file changed

+64
-13
lines changed

1 file changed

+64
-13
lines changed

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

+64-13
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,35 @@ config:
4444
defaultValue: 5000
4545

4646
tests:
47-
- label: "Step 1: Wait for the commissioned device to be retrieved"
47+
- label:
48+
"Step 1: If (CADMIN.S.C01.Rsp) present, wait for the commissioned
49+
device to be retrieved"
4850
cluster: "DelayCommands"
4951
command: "WaitForCommissionee"
52+
PICS: CADMIN.S.C01.Rsp
5053
arguments:
5154
values:
5255
- name: "nodeId"
5356
value: nodeId
5457

5558
- label:
56-
"Step 1a: DUT is put in Commissioning Mode using Open Basic
57-
Commissioning Window command "
59+
"Step 1a: If (CADMIN.S.C01.Rsp) present, DUT is put in Commissioning
60+
Mode using Open Basic Commissioning Window command "
5861
cluster: "Administrator Commissioning"
5962
command: "OpenBasicCommissioningWindow"
63+
PICS: CADMIN.S.C01.Rsp
6064
timedInteractionTimeoutMs: 10000
6165
arguments:
6266
values:
6367
- name: "CommissioningTimeout"
6468
value: 180
6569

66-
- label: "Waiting after opening commissioning window"
70+
- label:
71+
"If (CADMIN.S.C01.Rsp) present, waiting after opening commissioning
72+
window"
6773
cluster: "DelayCommands"
6874
command: "WaitForMs"
75+
PICS: CADMIN.S.C01.Rsp
6976
arguments:
7077
values:
7178
- name: "ms"
@@ -86,6 +93,16 @@ tests:
8693
isUpperCase: true
8794
isHexString: true
8895

96+
- label:
97+
"Step 2aa: If (ICDM.S.A0002) TH reads from the DUT the
98+
ActiveModeThreshold attribute"
99+
PICS: ICDM.S.A0002
100+
cluster: "ICDManagement"
101+
command: "readAttribute"
102+
attribute: "ActiveModeThreshold"
103+
response:
104+
saveAs: ActiveModeThresholdValue
105+
89106
- label: "Step 2b: Service type must be _matterc._udp"
90107
verification: |
91108
Run the below commands within the mentioned time interval used in open-commissioning-window in step-1.
@@ -112,6 +129,7 @@ tests:
112129
port = [5540]
113130
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "VP=65521+32769"]
114131
132+
If "ICDM.S.A0002" check "SAT=ActiveModeThreshold Value"
115133
116134
If we use Thread setup, then the Service Domain will be 422F10CDC290A406.local
117135
verify CM flag is 1
@@ -208,10 +226,11 @@ tests:
208226
value: deviceType
209227

210228
- label:
211-
"Step 2g: Check Commissioning Mode (_CM) subtype _CM must be present"
229+
"Step 2g: If (CADMIN.S.C01.Rsp) present, check Commissioning Mode
230+
(_CM) subtype _CM must be present"
212231
cluster: "DiscoveryCommands"
213232
command: "FindCommissionableByCommissioningMode"
214-
233+
PICS: CADMIN.S.C01.Rsp
215234
- label:
216235
"Step 2h: key D must be present and represents the discriminator which
217236
must be encoded as a variable-length decimal value with up to 4 digits
@@ -290,9 +309,12 @@ tests:
290309
constraints:
291310
maxValue: 65535
292311

293-
- label: "Step 2n: TXT key for commissioning mode (CM) CM=1 must be present"
312+
- label:
313+
"Step 2n: If (CADMIN.S.C01.Rsp) present, TXT key for commissioning
314+
mode (CM) CM=1 must be present"
294315
cluster: "DiscoveryCommands"
295316
command: "FindCommissionable"
317+
PICS: CADMIN.S.C01.Rsp
296318
response:
297319
values:
298320
- name: "commissioningMode"
@@ -400,9 +422,9 @@ tests:
400422
value: nodeId
401423

402424
- label:
403-
"Step 3a: DUT put in Commissioning Mode using Open Basic Commissioning
404-
Window command, starting advertising Commissionable Node Discovery
405-
service using DNS-SD"
425+
"Step 3a: If (CADMIN.S.C01.Rsp) present, DUT put in Commissioning Mode
426+
using Open Basic Commissioning Window command, starting advertising
427+
Commissionable Node Discovery service using DNS-SD"
406428
PICS: CADMIN.S.C01.Rsp
407429
cluster: "Administrator Commissioning"
408430
command: "OpenBasicCommissioningWindow"
@@ -412,9 +434,12 @@ tests:
412434
- name: "CommissioningTimeout"
413435
value: 180
414436

415-
- label: "Waiting after opening commissioning window"
437+
- label:
438+
"If (CADMIN.S.C01.Rsp) present, waiting after opening commissioning
439+
window"
416440
cluster: "DelayCommands"
417441
command: "WaitForMs"
442+
PICS: CADMIN.S.C01.Rsp
418443
arguments:
419444
values:
420445
- name: "ms"
@@ -436,6 +461,16 @@ tests:
436461
isHexString: true
437462
notValue: deviceInstanceNameBeforeReboot
438463

464+
- label:
465+
"Step 4aa: If (ICDM.S.A0002) TH reads from the DUT the
466+
ActiveModeThreshold attribute"
467+
PICS: ICDM.S.A0002
468+
cluster: "ICDManagement"
469+
command: "readAttribute"
470+
attribute: "ActiveModeThreshold"
471+
response:
472+
saveAs: ActiveModeThresholdValue
473+
439474
- label: "Step 4b: service type must be _matterc._udp"
440475
verification: |
441476
Run the below avahi browse command in TH terminal
@@ -457,6 +492,7 @@ tests:
457492
port = [5540]
458493
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "VP=65521+32769"]
459494
495+
If "ICDM.S.A0002" check "SAT=ActiveModeThreshold Value"
460496
461497
Service Domain 422F10CDC290A406.local
462498
verify CM flag is 1
@@ -553,9 +589,12 @@ tests:
553589
- name: "value"
554590
value: deviceType
555591

556-
- label: "Step 4h: Check Commissioning Mode (_CM) subtype _CM is present"
592+
- label:
593+
"Step 4h: If (CADMIN.S.C01.Rsp) present, check Commissioning Mode
594+
(_CM) subtype _CM is present"
557595
cluster: "DiscoveryCommands"
558596
command: "FindCommissionableByCommissioningMode"
597+
PICS: CADMIN.S.C01.Rsp
559598

560599
- label:
561600
"Step 4i: key D must be present and represents the discriminator which
@@ -636,9 +675,11 @@ tests:
636675
maxValue: 65535
637676

638677
- label:
639-
"Step 4o: TXT key for commissioning mode (CM) key CM=1 must be present"
678+
"Step 4o: If (CADMIN.S.C01.Rsp) present, TXT key for commissioning
679+
mode (CM) key CM=1 must be present"
640680
cluster: "DiscoveryCommands"
641681
command: "FindCommissionable"
682+
PICS: CADMIN.S.C01.Rsp
642683
response:
643684
values:
644685
- name: "commissioningMode"
@@ -1095,6 +1136,16 @@ tests:
10951136
isUpperCase: true
10961137
isHexString: true
10971138

1139+
- label:
1140+
"Step 10aa: If ( && ICDM.S.A0002) TH reads from the DUT the
1141+
ActiveModeThreshold attribute"
1142+
PICS: ICDM.S.A0002
1143+
cluster: "ICDManagement"
1144+
command: "readAttribute"
1145+
attribute: "ActiveModeThreshold"
1146+
response:
1147+
saveAs: ActiveModeThresholdValue
1148+
10981149
- label: "Step 10b: service type must be _matterc._udp"
10991150
verification: |
11001151
Run and Verify on the below output in TH terminal Log: (Below is the sample log , as RPI doesn't support the extended discovery)

0 commit comments

Comments
 (0)