Skip to content

Commit 5321833

Browse files
ericzijian1994hare-siterwellrestyled-commits
authored andcommitted
Change waitForReport to manual in TC-SMOKECO (#29009)
* Change waitForReport to manual in TC-SMOKECO * Restyled by prettier-yaml --------- Co-authored-by: Hare <renilr0@outlook.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 8d57168 commit 5321833

5 files changed

+670
-378
lines changed

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

+42-24
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,20 @@ tests:
101101
- label:
102102
"Step 6: TH waits for a report of SmokeState attribute from DUT with a
103103
timeout of 300 seconds"
104-
PICS: SMOKECO.S.A0001
105-
command: "waitForReport"
106-
attribute: "SmokeState"
107-
timeout: 300
108-
response:
109-
value: 1
110-
constraints:
111-
type: enum8
104+
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0001
105+
cluster: "LogCommands"
106+
command: "UserPrompt"
107+
verification: |
108+
./chip-tool.py smokecoalarm read smoke-state 1 1
109+
110+
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0001 DataVersion: 1795725838
111+
[TOO] SmokeState: 1
112+
arguments:
113+
values:
114+
- name: "message"
115+
value: "Enter 'y' after success"
116+
- name: "expectedValue"
117+
value: "y"
112118

113119
- label: "Step 7: TH reads ExpressedState attribute from DUT"
114120
PICS: SMOKECO.S.A0000
@@ -181,14 +187,20 @@ tests:
181187
- label:
182188
"Step 15: TH waits for a report of SmokeState attribute from DUT with
183189
a timeout of 300 seconds"
184-
PICS: SMOKECO.S.A0001
185-
command: "waitForReport"
186-
attribute: "SmokeState"
187-
timeout: 300
188-
response:
189-
value: 2
190-
constraints:
191-
type: enum8
190+
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0001
191+
cluster: "LogCommands"
192+
command: "UserPrompt"
193+
verification: |
194+
./chip-tool.py smokecoalarm read smoke-state 1 1
195+
196+
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0001 DataVersion: 1795725838
197+
[TOO] SmokeState: 2
198+
arguments:
199+
values:
200+
- name: "message"
201+
value: "Enter 'y' after success"
202+
- name: "expectedValue"
203+
value: "y"
192204

193205
- label: "Step 16: TH reads ExpressedState attribute from DUT"
194206
PICS: SMOKECO.S.A0000
@@ -226,14 +238,20 @@ tests:
226238
- label:
227239
"Step 19: TH waits for a report of SmokeState attribute from DUT with
228240
a timeout of 300 seconds"
229-
PICS: SMOKECO.S.A0001
230-
command: "waitForReport"
231-
attribute: "SmokeState"
232-
timeout: 300
233-
response:
234-
value: 0
235-
constraints:
236-
type: enum8
241+
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0001
242+
cluster: "LogCommands"
243+
command: "UserPrompt"
244+
verification: |
245+
./chip-tool.py smokecoalarm read smoke-state 1 1
246+
247+
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0001 DataVersion: 1795725838
248+
[TOO] SmokeState: 0
249+
arguments:
250+
values:
251+
- name: "message"
252+
value: "Enter 'y' after success"
253+
- name: "expectedValue"
254+
value: "y"
237255

238256
- label: "Step 20: TH reads ExpressedState attribute from DUT"
239257
PICS: SMOKECO.S.A0000

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

+42-24
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,20 @@ tests:
100100
- label:
101101
"Step 6: TH waits for a report of COState attribute from DUT with a
102102
timeout of 300 seconds"
103-
PICS: SMOKECO.S.A0002
104-
command: "waitForReport"
105-
attribute: "COState"
106-
timeout: 300
107-
response:
108-
value: 1
109-
constraints:
110-
type: enum8
103+
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0002
104+
cluster: "LogCommands"
105+
command: "UserPrompt"
106+
verification: |
107+
./chip-tool.py smokecoalarm read costate 1 1
108+
109+
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0002 DataVersion: 1795725838
110+
[TOO] COState: 1
111+
arguments:
112+
values:
113+
- name: "message"
114+
value: "Enter 'y' after success"
115+
- name: "expectedValue"
116+
value: "y"
111117

112118
- label: "Step 7: TH reads ExpressedState attribute from DUT"
113119
PICS: SMOKECO.S.A0000
@@ -180,14 +186,20 @@ tests:
180186
- label:
181187
"Step 15: TH waits for a report of COState attribute from DUT with a
182188
timeout of 300 seconds"
183-
PICS: SMOKECO.S.A0002
184-
command: "waitForReport"
185-
attribute: "COState"
186-
timeout: 300
187-
response:
188-
value: 2
189-
constraints:
190-
type: enum8
189+
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0002
190+
cluster: "LogCommands"
191+
command: "UserPrompt"
192+
verification: |
193+
./chip-tool.py smokecoalarm read costate 1 1
194+
195+
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0002 DataVersion: 1795725838
196+
[TOO] COState: 2
197+
arguments:
198+
values:
199+
- name: "message"
200+
value: "Enter 'y' after success"
201+
- name: "expectedValue"
202+
value: "y"
191203

192204
- label: "Step 16: TH reads ExpressedState attribute from DUT"
193205
PICS: SMOKECO.S.A0000
@@ -225,14 +237,20 @@ tests:
225237
- label:
226238
"Step 19: TH waits for a report of COState attribute from DUT with a
227239
timeout of 300 seconds"
228-
PICS: SMOKECO.S.A0002
229-
command: "waitForReport"
230-
attribute: "COState"
231-
timeout: 300
232-
response:
233-
value: 0
234-
constraints:
235-
type: enum8
240+
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0002
241+
cluster: "LogCommands"
242+
command: "UserPrompt"
243+
verification: |
244+
./chip-tool.py smokecoalarm read costate 1 1
245+
246+
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0002 DataVersion: 1795725838
247+
[TOO] COState: 0
248+
arguments:
249+
values:
250+
- name: "message"
251+
value: "Enter 'y' after success"
252+
- name: "expectedValue"
253+
value: "y"
236254

237255
- label: "Step 20: TH reads ExpressedState attribute from DUT"
238256
PICS: SMOKECO.S.A0000

0 commit comments

Comments
 (0)