Skip to content

Commit

Permalink
Updated files per chip-test-plans allclusters document
Browse files Browse the repository at this point in the history
  • Loading branch information
abpoth committed Jul 14, 2023
1 parent 3685cd0 commit 0f0539c
Show file tree
Hide file tree
Showing 6 changed files with 353 additions and 169 deletions.
51 changes: 6 additions & 45 deletions src/app/tests/suites/certification/Test_TC_DISHM_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tests:
type: int16u

- label: "TH reads the FeatureMap from DUT"
PICS: " !DISHM.S.F00 && !DISHM.S.F01 && !DISHM.S.F02 "
PICS: " !DISHM.S.F00 "
command: "readAttribute"
attribute: "FeatureMap"
response:
Expand All @@ -59,24 +59,6 @@ tests:
constraints:
type: bitmap32

- label: "Given DISHM.S.F01(EXT) ensure featuremap has the correct bit set"
PICS: DISHM.S.F01
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: bitmap32

- label:
"Given DISHM.S.F02(DEPCTM) ensure featuremap has the correct bit set"
PICS: DISHM.S.F02
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: bitmap32

- label: "TH reads AttributeList from DUT"
PICS: DISHM.S.Afffb
Expand All @@ -85,18 +67,18 @@ tests:
response:
constraints:
type: list
contains: [0, 1, 2, 3, 65528, 65529, 65530, 65531, 65532, 65533]
contains: [0, 1, 65528, 65529, 65530, 65531, 65532, 65533]

- label:
"TH reads optional attribute (DISHM.S.A0004(StartUpMode)) in
AttributeList"
PICS: DISHM.S.A0004
PICS: DISHM.S.A0002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [4]
contains: [2]

- label:
"TH reads optional attribute (DISHM.S.F00(DEPONOFF)) in AttributeList"
Expand All @@ -106,40 +88,19 @@ tests:
response:
constraints:
type: list
contains: [5]
contains: [3]

- label: "TH reads AcceptedCommandList from DUT"
PICS: "!DISHM.S.F02"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]

- label: "TH reads AcceptedCommandList from DUT"
PICS: DISHM.S.F01
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [1]

- label: "Read the global attribute: GeneratedCommandList"
PICS: "!DISHM.S.F01"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
PICS: DISHM.S.F01
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
constraints:
type: list
contains: [2]
contains: [1]
22 changes: 2 additions & 20 deletions src/app/tests/suites/certification/Test_TC_DISHM_1_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 267.1.2. [TC-DISHM-1.2] Cluster attributes with server as DUT
name: 193.1.2. [TC-DISHM-1.2] Cluster attributes with DUT as Server

PICS:
- DISHM.S
Expand All @@ -36,7 +36,7 @@ tests:
verification: |
./chip-tool dishwashermodeselect read supported-modes 1 1
On TH(chip-tool) log, Verify SupportedModes attribute should contains atleast two ModeOptionsStruct entries with unique mode field value and label field value below is the sample log provided for the raspi platform:
On TH(chip-tool) log, Verify SupportedModes attribute should contains atleast one ModeOptionsStruct entries with unique mode field value and label field value below is the sample log provided for the raspi platform:
[1687687925.438666][18054:18056] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0059 Attribute 0x0000_0002 DataVersion: 4148960394
[1687687925.438838][18054:18056] CHIP:TOO: SupportedModes: 3 entries
Expand Down Expand Up @@ -145,21 +145,3 @@ tests:
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "TH reads the Description attribute from the DUT"
verification: |
./chip-tool dishwashermodeselect read description 1 1
Verify on TH(chip-tool) logs , Description value is human readable text string and below is the sample log provided for the raspi platform:
[1649677114.614974][10787:10792] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0050 Attribute 0x0000_0000 DataVersion: 4277065072
[1649677114.615110][10787:10792] CHIP:TOO: Description: Dishwasher
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
Loading

0 comments on commit 0f0539c

Please sign in to comment.