Skip to content

Commit 6a41891

Browse files
Update smokeco tests as per test plan document update (#28843)
* Add SMOKECO tests serial number * Fix the difference between scripts and test plan * Keep priorities and examples consistent * Reduce WaitForMs time * Modify minInterval and maxInterval * Remove keepSubscriptions * Add subscribe after WaitForMs * Disable TC-SMOKECO-2.6 in darwin and regen zap --------- Co-authored-by: Hare <renilr0@outlook.com>
1 parent 9f9c4e3 commit 6a41891

File tree

9 files changed

+661
-2150
lines changed

9 files changed

+661
-2150
lines changed

examples/darwin-framework-tool/templates/tests/ciTests.json

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"Test_TC_SMOKECO_2_3",
4040
"Test_TC_SMOKECO_2_4",
4141
"Test_TC_SMOKECO_2_5",
42+
"Disabled due to undefined properties",
43+
"Test_TC_SMOKECO_2_6",
4244
"Disabled because the power source configuration cluster is now deprecated and not present in all-clusters",
4345
"Test_TC_PSCFG_1_1",
4446
"Test_TC_PSCFG_2_1",

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

+42-29
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ config:
2323
endpoint: 1
2424

2525
tests:
26-
- label: "Commission DUT to TH"
26+
- label: "Step 1: Commission DUT to TH"
2727
cluster: "DelayCommands"
2828
command: "WaitForCommissionee"
2929
arguments:
3030
values:
3131
- name: "nodeId"
3232
value: nodeId
3333

34-
- label: "TH reads the ClusterRevision attribute from the DUT"
34+
- label: "Step 2: TH reads the ClusterRevision attribute from the DUT"
3535
command: "readAttribute"
3636
attribute: "ClusterRevision"
3737
response:
3838
value: 1
3939
constraints:
4040
type: int16u
4141

42-
- label: "TH reads from the DUT the FeatureMap attribute"
42+
- label: "Step 3a: TH reads from the DUT the FeatureMap attribute"
4343
PICS: "!SMOKECO.S.F00 && !SMOKECO.S.F01"
4444
command: "readAttribute"
4545
attribute: "FeatureMap"
@@ -48,7 +48,8 @@ tests:
4848
constraints:
4949
type: bitmap32
5050

51-
- label: "TH reads from the DUT the FeatureMap attribute(Smoke Alarm)"
51+
- label:
52+
"Step 3b: TH reads from the DUT the FeatureMap attribute(Smoke Alarm)"
5253
PICS: SMOKECO.S.F00 && !SMOKECO.S.F01
5354
command: "readAttribute"
5455
attribute: "FeatureMap"
@@ -57,7 +58,7 @@ tests:
5758
constraints:
5859
type: bitmap32
5960

60-
- label: "TH reads from the DUT the FeatureMap attribute(CO Alarm)"
61+
- label: "Step 3c: TH reads from the DUT the FeatureMap attribute(CO Alarm)"
6162
PICS: SMOKECO.S.F01 && !SMOKECO.S.F00
6263
command: "readAttribute"
6364
attribute: "FeatureMap"
@@ -67,8 +68,8 @@ tests:
6768
type: bitmap32
6869

6970
- label:
70-
"TH reads from the DUT the FeatureMap attribute(Smoke Alarm & CO
71-
Alarm)"
71+
"Step 3d: TH reads from the DUT the FeatureMap attribute(Smoke Alarm &
72+
CO Alarm)"
7273
PICS: SMOKECO.S.F00 && SMOKECO.S.F01
7374
command: "readAttribute"
7475
attribute: "FeatureMap"
@@ -77,33 +78,38 @@ tests:
7778
constraints:
7879
type: bitmap32
7980

80-
- label: "TH reads from the DUT the AttributeList attribute"
81+
- label: "Step 4a: TH reads from the DUT the AttributeList attribute"
8182
command: "readAttribute"
8283
attribute: "AttributeList"
8384
response:
8485
constraints:
8586
type: list
86-
contains: [0, 3, 5, 6, 7]
87+
contains: [0, 3, 5, 6, 7, 65528, 65529, 65531, 65532, 65533]
8788

88-
- label: "TH reads from the DUT the AttributeList attribute(SmokeState)"
89-
PICS: SMOKECO.S.A0001
89+
- label:
90+
"Step 4b: TH reads from the DUT the AttributeList
91+
attribute(SmokeState)"
92+
PICS: SMOKECO.S.A0001 && SMOKECO.S.F00
9093
command: "readAttribute"
9194
attribute: "AttributeList"
9295
response:
9396
constraints:
9497
type: list
9598
contains: [1]
9699

97-
- label: "TH reads from the DUT the AttributeList attribute(COState)"
98-
PICS: SMOKECO.S.A0002
100+
- label:
101+
"Step 4c: TH reads from the DUT the AttributeList attribute(COState)"
102+
PICS: SMOKECO.S.A0002 && SMOKECO.S.F01
99103
command: "readAttribute"
100104
attribute: "AttributeList"
101105
response:
102106
constraints:
103107
type: list
104108
contains: [2]
105109

106-
- label: "TH reads from the DUT the AttributeList attribute(DeviceMuted)"
110+
- label:
111+
"Step 4d: TH reads from the DUT the AttributeList
112+
attribute(DeviceMuted)"
107113
PICS: SMOKECO.S.A0004
108114
command: "readAttribute"
109115
attribute: "AttributeList"
@@ -113,7 +119,7 @@ tests:
113119
contains: [4]
114120

115121
- label:
116-
"TH reads from the DUT the AttributeList
122+
"Step 4e: TH reads from the DUT the AttributeList
117123
attribute(InterconnectSmokeAlarm)"
118124
PICS: SMOKECO.S.A0008
119125
command: "readAttribute"
@@ -124,7 +130,7 @@ tests:
124130
contains: [8]
125131

126132
- label:
127-
"TH reads from the DUT the AttributeList
133+
"Step 4f: TH reads from the DUT the AttributeList
128134
attribute(InterconnectCOAlarm)"
129135
PICS: SMOKECO.S.A0009
130136
command: "readAttribute"
@@ -135,7 +141,8 @@ tests:
135141
contains: [9]
136142

137143
- label:
138-
"TH reads from the DUT the AttributeList attribute(ContaminationState)"
144+
"Step 4g: TH reads from the DUT the AttributeList
145+
attribute(ContaminationState)"
139146
PICS: SMOKECO.S.A000a
140147
command: "readAttribute"
141148
attribute: "AttributeList"
@@ -145,7 +152,7 @@ tests:
145152
contains: [10]
146153

147154
- label:
148-
"TH reads from the DUT the AttributeList
155+
"Step 4h: TH reads from the DUT the AttributeList
149156
attribute(SmokeSensitivityLevel)"
150157
PICS: SMOKECO.S.A000b
151158
command: "readAttribute"
@@ -155,7 +162,9 @@ tests:
155162
type: list
156163
contains: [11]
157164

158-
- label: "TH reads from the DUT the AttributeList attribute(ExpiryDate)"
165+
- label:
166+
"Step 4i: TH reads from the DUT the AttributeList
167+
attribute(ExpiryDate)"
159168
PICS: SMOKECO.S.A000c
160169
command: "readAttribute"
161170
attribute: "AttributeList"
@@ -164,7 +173,7 @@ tests:
164173
type: list
165174
contains: [12]
166175

167-
- label: "TH reads from the DUT the EventList attribute"
176+
- label: "Step 5a: TH reads from the DUT the EventList attribute"
168177
PICS: PICS_EVENT_LIST_ENABLED
169178
command: "readAttribute"
170179
attribute: "EventList"
@@ -173,7 +182,8 @@ tests:
173182
type: list
174183
contains: [2, 3, 4, 5, 10]
175184

176-
- label: "TH reads from the DUT the EventList attribute(SmokeAlarm)"
185+
- label:
186+
"Step 5b: TH reads from the DUT the EventList attribute(SmokeAlarm)"
177187
PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E00
178188
command: "readAttribute"
179189
attribute: "EventList"
@@ -182,7 +192,7 @@ tests:
182192
type: list
183193
contains: [0]
184194

185-
- label: "TH reads from the DUT the EventList attribute(COAlarm)"
195+
- label: "Step 5c: TH reads from the DUT the EventList attribute(COAlarm)"
186196
PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E01
187197
command: "readAttribute"
188198
attribute: "EventList"
@@ -191,7 +201,8 @@ tests:
191201
type: list
192202
contains: [1]
193203

194-
- label: "TH reads from the DUT the EventList attribute(AlarmMuted)"
204+
- label:
205+
"Step 5d: TH reads from the DUT the EventList attribute(AlarmMuted)"
195206
PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E06
196207
command: "readAttribute"
197208
attribute: "EventList"
@@ -200,7 +211,7 @@ tests:
200211
type: list
201212
contains: [6]
202213

203-
- label: "TH reads from the DUT the EventList attribute(MuteEnded)"
214+
- label: "Step 5e: TH reads from the DUT the EventList attribute(MuteEnded)"
204215
PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E07
205216
command: "readAttribute"
206217
attribute: "EventList"
@@ -210,7 +221,8 @@ tests:
210221
contains: [7]
211222

212223
- label:
213-
"TH reads from the DUT the EventList attribute(InterconnectSmokeAlarm)"
224+
"Step 5f: TH reads from the DUT the EventList
225+
attribute(InterconnectSmokeAlarm)"
214226
PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E08
215227
command: "readAttribute"
216228
attribute: "EventList"
@@ -220,7 +232,8 @@ tests:
220232
contains: [8]
221233

222234
- label:
223-
"TH reads from the DUT the EventList attribute(InterconnectCOAlarm)"
235+
"Step 5g: TH reads from the DUT the EventList
236+
attribute(InterconnectCOAlarm)"
224237
PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E09
225238
command: "readAttribute"
226239
attribute: "EventList"
@@ -229,7 +242,7 @@ tests:
229242
type: list
230243
contains: [9]
231244

232-
- label: "TH reads from the DUT the AcceptedCommandList attribute"
245+
- label: "Step 6a: TH reads from the DUT the AcceptedCommandList attribute"
233246
PICS: "!SMOKECO.S.C00.Rsp"
234247
command: "readAttribute"
235248
attribute: "AcceptedCommandList"
@@ -238,7 +251,7 @@ tests:
238251
constraints:
239252
type: list
240253

241-
- label: "TH reads from the DUT the AcceptedCommandList attribute"
254+
- label: "Step 6b: TH reads from the DUT the AcceptedCommandList attribute"
242255
PICS: SMOKECO.S.C00.Rsp
243256
command: "readAttribute"
244257
attribute: "AcceptedCommandList"
@@ -247,7 +260,7 @@ tests:
247260
type: list
248261
contains: [0]
249262

250-
- label: "TH reads from the DUT the GeneratedCommandList attribute"
263+
- label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute"
251264
command: "readAttribute"
252265
attribute: "GeneratedCommandList"
253266
response:

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

+16-14
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ config:
2323
endpoint: 1
2424

2525
tests:
26-
- label: "Commission DUT to TH"
26+
- label: "Step 1: Commission DUT to TH"
2727
cluster: "DelayCommands"
2828
command: "WaitForCommissionee"
2929
arguments:
3030
values:
3131
- name: "nodeId"
3232
value: nodeId
3333

34-
- label: "TH reads from the DUT the ExpressedState attribute"
34+
- label: "Step 2: TH reads from the DUT the ExpressedState attribute"
3535
PICS: SMOKECO.S.A0000
3636
command: "readAttribute"
3737
attribute: "ExpressedState"
@@ -41,7 +41,7 @@ tests:
4141
minValue: 0
4242
maxValue: 8
4343

44-
- label: "TH reads from the DUT the SmokeState attribute"
44+
- label: "Step 3: TH reads from the DUT the SmokeState attribute"
4545
PICS: SMOKECO.S.A0001
4646
command: "readAttribute"
4747
attribute: "SmokeState"
@@ -51,7 +51,7 @@ tests:
5151
minValue: 0
5252
maxValue: 2
5353

54-
- label: "TH reads from the DUT the COState attribute"
54+
- label: "Step 4: TH reads from the DUT the COState attribute"
5555
PICS: SMOKECO.S.A0002
5656
command: "readAttribute"
5757
attribute: "COState"
@@ -61,7 +61,7 @@ tests:
6161
minValue: 0
6262
maxValue: 2
6363

64-
- label: "TH reads from the DUT the BatteryAlert attribute"
64+
- label: "Step 5: TH reads from the DUT the BatteryAlert attribute"
6565
PICS: SMOKECO.S.A0003
6666
command: "readAttribute"
6767
attribute: "BatteryAlert"
@@ -71,7 +71,7 @@ tests:
7171
minValue: 0
7272
maxValue: 2
7373

74-
- label: "TH reads from the DUT the DeviceMuted attribute"
74+
- label: "Step 6: TH reads from the DUT the DeviceMuted attribute"
7575
PICS: SMOKECO.S.A0004
7676
command: "readAttribute"
7777
attribute: "DeviceMuted"
@@ -81,23 +81,23 @@ tests:
8181
minValue: 0
8282
maxValue: 1
8383

84-
- label: "TH reads from the DUT the TestInProgress attribute"
84+
- label: "Step 7: TH reads from the DUT the TestInProgress attribute"
8585
PICS: SMOKECO.S.A0005
8686
command: "readAttribute"
8787
attribute: "TestInProgress"
8888
response:
8989
constraints:
9090
type: boolean
9191

92-
- label: "TH reads from the DUT the HardwareFaultAlert attribute"
92+
- label: "Step 8: TH reads from the DUT the HardwareFaultAlert attribute"
9393
PICS: SMOKECO.S.A0006
9494
command: "readAttribute"
9595
attribute: "HardwareFaultAlert"
9696
response:
9797
constraints:
9898
type: boolean
9999

100-
- label: "TH reads from the DUT the EndOfServiceAlert attribute"
100+
- label: "Step 9: TH reads from the DUT the EndOfServiceAlert attribute"
101101
PICS: SMOKECO.S.A0007
102102
command: "readAttribute"
103103
attribute: "EndOfServiceAlert"
@@ -107,7 +107,8 @@ tests:
107107
minValue: 0
108108
maxValue: 1
109109

110-
- label: "TH reads from the DUT the InterconnectSmokeAlarm attribute"
110+
- label:
111+
"Step 10: TH reads from the DUT the InterconnectSmokeAlarm attribute"
111112
PICS: SMOKECO.S.A0008
112113
command: "readAttribute"
113114
attribute: "InterconnectSmokeAlarm"
@@ -117,7 +118,7 @@ tests:
117118
minValue: 0
118119
maxValue: 2
119120

120-
- label: "TH reads from the DUT the InterconnectCOAlarm attribute"
121+
- label: "Step 11: TH reads from the DUT the InterconnectCOAlarm attribute"
121122
PICS: SMOKECO.S.A0009
122123
command: "readAttribute"
123124
attribute: "InterconnectCOAlarm"
@@ -127,7 +128,7 @@ tests:
127128
minValue: 0
128129
maxValue: 2
129130

130-
- label: "TH reads from the DUT the ContaminationState attribute"
131+
- label: "Step 12: TH reads from the DUT the ContaminationState attribute"
131132
PICS: SMOKECO.S.A000a
132133
command: "readAttribute"
133134
attribute: "ContaminationState"
@@ -137,7 +138,8 @@ tests:
137138
minValue: 0
138139
maxValue: 3
139140

140-
- label: "TH reads from the DUT the SmokeSensitivityLevel attribute"
141+
- label:
142+
"Step 13: TH reads from the DUT the SmokeSensitivityLevel attribute"
141143
PICS: SMOKECO.S.A000b
142144
command: "readAttribute"
143145
attribute: "SmokeSensitivityLevel"
@@ -147,7 +149,7 @@ tests:
147149
minValue: 0
148150
maxValue: 2
149151

150-
- label: "TH reads from the DUT the ExpiryDate attribute"
152+
- label: "Step 14: TH reads from the DUT the ExpiryDate attribute"
151153
PICS: SMOKECO.S.A000c
152154
command: "readAttribute"
153155
attribute: "ExpiryDate"

0 commit comments

Comments
 (0)