Skip to content

Commit 9e2af25

Browse files
mkardous-silabsrestyled-commits
authored andcommitted
[ICD] Update ICDM 4.1 Test script (project-chip#34812)
* Update ICDM 4.1 Test script * Restyled by whitespace * Restyled by prettier-json * Restyled by prettier-yaml * Add a slight tolerance to avoid false negatives --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 3dfaedf commit 9e2af25

File tree

3 files changed

+47
-51
lines changed

3 files changed

+47
-51
lines changed

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

+44-45
Original file line numberDiff line numberDiff line change
@@ -17,58 +17,57 @@ 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: 29995
4051

41-
Via the TH (chip-tool), verify the SUCCESS response for StayActiveRequest command.
52+
- label: "Wait for the PromisedActiveDuration to end"
53+
cluster: "DelayCommands"
54+
command: "WaitForMs"
55+
arguments:
56+
values:
57+
- name: "ms"
58+
value: ActiveDuration
4259

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
60+
- label:
61+
"TH sends StayActiveRequest command with StayActiveDuration less than
62+
30000 milliseconds."
63+
command: "StayActiveRequest"
64+
arguments:
65+
values:
66+
- name: "StayActiveDuration"
67+
value: 20000
68+
response:
69+
values:
70+
- name: "PromisedActiveDuration"
71+
constraints:
72+
type: int32u
73+
minValue: 19995

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-5
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@
117117
"GeneralCommissioning": ["Test_TC_CGEN_2_2"],
118118
"GeneralDiagnostics": ["Test_TC_DGGEN_2_2"],
119119
"Identify": ["Test_TC_I_3_2"],
120-
"IcdManagement": [
121-
"Test_TC_ICDM_3_2",
122-
"Test_TC_ICDM_4_1",
123-
"Test_TC_ICDM_5_1"
124-
],
120+
"IcdManagement": ["Test_TC_ICDM_3_2", "Test_TC_ICDM_5_1"],
125121
"IlluminanceMeasurement": [],
126122
"InteractionDataModel": [
127123
"Test_TC_IDM_1_1",

0 commit comments

Comments
 (0)