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 <renilr0@outlook.com>
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
3 people authored and pull[bot] committed Oct 13, 2023
1 parent 8d57168 commit 5321833
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 5321833

Please sign in to comment.