Skip to content

Commit

Permalink
Change waitForReport to manual in TC-SMOKECO (#29009)
Browse files Browse the repository at this point in the history
* Change waitForReport to manual in TC-SMOKECO

* Restyled by prettier-yaml

---------

Co-authored-by: Hare <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Feb 16, 2024
1 parent ff768c6 commit 2973161
Show file tree
Hide file tree
Showing 5 changed files with 670 additions and 378 deletions.
66 changes: 42 additions & 24 deletions src/app/tests/suites/certification/Test_TC_SMOKECO_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,20 @@ tests:
- label:
"Step 6: TH waits for a report of SmokeState attribute from DUT with a
timeout of 300 seconds"
PICS: SMOKECO.S.A0001
command: "waitForReport"
attribute: "SmokeState"
timeout: 300
response:
value: 1
constraints:
type: enum8
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0001
cluster: "LogCommands"
command: "UserPrompt"
verification: |
./chip-tool.py smokecoalarm read smoke-state 1 1
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0001 DataVersion: 1795725838
[TOO] SmokeState: 1
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label: "Step 7: TH reads ExpressedState attribute from DUT"
PICS: SMOKECO.S.A0000
Expand Down Expand Up @@ -181,14 +187,20 @@ tests:
- label:
"Step 15: TH waits for a report of SmokeState attribute from DUT with
a timeout of 300 seconds"
PICS: SMOKECO.S.A0001
command: "waitForReport"
attribute: "SmokeState"
timeout: 300
response:
value: 2
constraints:
type: enum8
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0001
cluster: "LogCommands"
command: "UserPrompt"
verification: |
./chip-tool.py smokecoalarm read smoke-state 1 1
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0001 DataVersion: 1795725838
[TOO] SmokeState: 2
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label: "Step 16: TH reads ExpressedState attribute from DUT"
PICS: SMOKECO.S.A0000
Expand Down Expand Up @@ -226,14 +238,20 @@ tests:
- label:
"Step 19: TH waits for a report of SmokeState attribute from DUT with
a timeout of 300 seconds"
PICS: SMOKECO.S.A0001
command: "waitForReport"
attribute: "SmokeState"
timeout: 300
response:
value: 0
constraints:
type: enum8
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0001
cluster: "LogCommands"
command: "UserPrompt"
verification: |
./chip-tool.py smokecoalarm read smoke-state 1 1
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0001 DataVersion: 1795725838
[TOO] SmokeState: 0
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label: "Step 20: TH reads ExpressedState attribute from DUT"
PICS: SMOKECO.S.A0000
Expand Down
66 changes: 42 additions & 24 deletions src/app/tests/suites/certification/Test_TC_SMOKECO_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@ tests:
- label:
"Step 6: TH waits for a report of COState attribute from DUT with a
timeout of 300 seconds"
PICS: SMOKECO.S.A0002
command: "waitForReport"
attribute: "COState"
timeout: 300
response:
value: 1
constraints:
type: enum8
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0002
cluster: "LogCommands"
command: "UserPrompt"
verification: |
./chip-tool.py smokecoalarm read costate 1 1
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0002 DataVersion: 1795725838
[TOO] COState: 1
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label: "Step 7: TH reads ExpressedState attribute from DUT"
PICS: SMOKECO.S.A0000
Expand Down Expand Up @@ -180,14 +186,20 @@ tests:
- label:
"Step 15: TH waits for a report of COState attribute from DUT with a
timeout of 300 seconds"
PICS: SMOKECO.S.A0002
command: "waitForReport"
attribute: "COState"
timeout: 300
response:
value: 2
constraints:
type: enum8
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0002
cluster: "LogCommands"
command: "UserPrompt"
verification: |
./chip-tool.py smokecoalarm read costate 1 1
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0002 DataVersion: 1795725838
[TOO] COState: 2
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label: "Step 16: TH reads ExpressedState attribute from DUT"
PICS: SMOKECO.S.A0000
Expand Down Expand Up @@ -225,14 +237,20 @@ tests:
- label:
"Step 19: TH waits for a report of COState attribute from DUT with a
timeout of 300 seconds"
PICS: SMOKECO.S.A0002
command: "waitForReport"
attribute: "COState"
timeout: 300
response:
value: 0
constraints:
type: enum8
PICS: PICS_SKIP_SAMPLE_APP && SMOKECO.S.A0002
cluster: "LogCommands"
command: "UserPrompt"
verification: |
./chip-tool.py smokecoalarm read costate 1 1
[TOO] Endpoint: 1 Cluster: 0x0000_005C Attribute 0x0000_0002 DataVersion: 1795725838
[TOO] COState: 0
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label: "Step 20: TH reads ExpressedState attribute from DUT"
PICS: SMOKECO.S.A0000
Expand Down
Loading

0 comments on commit 2973161

Please sign in to comment.