Skip to content

Commit 57aa28d

Browse files
Update ICDM 4.1 Test script
1 parent 545b034 commit 57aa28d

File tree

3 files changed

+46
-48
lines changed

3 files changed

+46
-48
lines changed

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

+44-46
Original file line numberDiff line numberDiff line change
@@ -17,58 +17,56 @@ name: "[TC-ICDM-4.1] Stay Active Request with DUT as Server"
1717

1818
PICS:
1919
- ICDM.S
20-
- ICDM.S.C00.Rsp
21-
- ICDM.S.C02.Rsp
22-
- ICDM.S.C03.Rsp
20+
- ICDM.S.F02
2321

2422
config:
2523
nodeId: 0x12344321
26-
cluster: "Basic Information"
24+
cluster: "ICD Management"
2725
endpoint: 0
2826

2927
tests:
30-
- label: "Preconditions"
31-
verification: |
32-
1.Commission DUT to TH (can be skipped if done in a preceding test).
33-
disabled: true
28+
- label: "Wait for the commissioned device to be retrieved"
29+
cluster: "DelayCommands"
30+
command: "WaitForCommissionee"
31+
arguments:
32+
values:
33+
- name: "nodeId"
34+
value: nodeId
3435

3536
- label:
36-
"Step 1: TH sends StayActiveRequest command with StayActiveDuration."
37-
PICS: ICDM.S.C03.Rsp
38-
verification: |
39-
./chip-tool icdmanagement stay-active-request 1 0
37+
"TH sends StayActiveRequest command with StayActiveDuration greater
38+
than or equal 30000 milliseconds."
39+
command: "StayActiveRequest"
40+
arguments:
41+
values:
42+
- name: "StayActiveDuration"
43+
value: 30000
44+
response:
45+
values:
46+
- name: "PromisedActiveDuration"
47+
saveAs: ActiveDuration
48+
constraints:
49+
type: int32u
50+
minValue: 30000
4051

41-
Via the TH (chip-tool), verify the SUCCESS response for StayActiveRequest command.
42-
43-
[1702414315.312084][3787:3789] CHIP:DMG: InvokeResponseMessage =
44-
[1702414315.312130][3787:3789] CHIP:DMG: {
45-
[1702414315.312244][3787:3789] CHIP:DMG: suppressResponse = false,
46-
[1702414315.312295][3787:3789] CHIP:DMG: InvokeResponseIBs =
47-
[1702414315.312360][3787:3789] CHIP:DMG: [
48-
[1702414315.312497][3787:3789] CHIP:DMG: InvokeResponseIB =
49-
[1702414315.312572][3787:3789] CHIP:DMG: {
50-
[1702414315.312626][3787:3789] CHIP:DMG: CommandStatusIB =
51-
[1702414315.312709][3787:3789] CHIP:DMG: {
52-
[1702414315.312774][3787:3789] CHIP:DMG: CommandPathIB =
53-
[1702414315.312857][3787:3789] CHIP:DMG: {
54-
[1702414315.312921][3787:3789] CHIP:DMG: EndpointId = 0x0,
55-
[1702414315.312994][3787:3789] CHIP:DMG: ClusterId = 0x46,
56-
[1702414315.313060][3787:3789] CHIP:DMG: CommandId = 0x3,
57-
[1702414315.313155][3787:3789] CHIP:DMG: },
58-
[1702414315.313234][3787:3789] CHIP:DMG:
59-
[1702414315.313293][3787:3789] CHIP:DMG: StatusIB =
60-
[1702414315.313382][3787:3789] CHIP:DMG: {
61-
[1702414315.313450][3787:3789] CHIP:DMG: status = 0x81 (UNSUPPORTED_COMMAND),
62-
[1702414315.313536][3787:3789] CHIP:DMG: },
63-
[1702414315.313603][3787:3789] CHIP:DMG:
64-
[1702414315.313679][3787:3789] CHIP:DMG: },
65-
[1702414315.313747][3787:3789] CHIP:DMG:
66-
[1702414315.313799][3787:3789] CHIP:DMG: },
67-
[1702414315.313878][3787:3789] CHIP:DMG:
68-
[1702414315.313928][3787:3789] CHIP:DMG: ],
69-
[1702414315.313989][3787:3789] CHIP:DMG:
70-
[1702414315.314057][3787:3789] CHIP:DMG: InteractionModelRevision = 11
71-
[1702414315.314106][3787:3789] CHIP:DMG: },
72-
[1702414315.314254][3787:3789] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_0046 Command=0x0000_0003 Status=0x81
73-
[1702414315.314359][3787:3789] CHIP:TOO: Error: IM Error 0x00000581: General error: 0x81 (UNSUPPORTED_COMMAND)
74-
disabled: true
52+
- label: "Wait for the PromisedActiveDuration to end"
53+
cluster: "DelayCommands"
54+
command: "WaitForMs"
55+
arguments:
56+
values:
57+
- name: "ms"
58+
value: ActiveDuration
59+
60+
- label:
61+
"TH sends StayActiveRequest command with StayActiveDuration less than 30000 milliseconds."
62+
command: "StayActiveRequest"
63+
arguments:
64+
values:
65+
- name: "StayActiveDuration"
66+
value: 20000
67+
response:
68+
values:
69+
- name: "PromisedActiveDuration"
70+
constraints:
71+
type: int32u
72+
minValue: 20000

src/app/tests/suites/ciTests.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"IcdManagement": [
7272
"TestIcdManagementCluster",
7373
"Test_TC_ICDM_1_1",
74-
"Test_TC_ICDM_3_4"
74+
"Test_TC_ICDM_3_4",
75+
"Test_TC_ICDM_4_1"
7576
],
7677
"Identify": ["Test_TC_I_2_1", "Test_TC_I_2_2", "Test_TC_I_2_3"],
7778
"IlluminanceMeasurement": ["Test_TC_ILL_2_1", "Test_TC_ILL_2_2"],

src/app/tests/suites/manualTests.json

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
"Identify": ["Test_TC_I_3_2"],
120120
"IcdManagement": [
121121
"Test_TC_ICDM_3_2",
122-
"Test_TC_ICDM_4_1",
123122
"Test_TC_ICDM_5_1"
124123
],
125124
"IlluminanceMeasurement": [],

0 commit comments

Comments
 (0)