Skip to content

Commit

Permalink
adding 3.1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
abpoth committed Jul 17, 2023
1 parent 9243e6c commit cbf92e5
Showing 1 changed file with 125 additions and 0 deletions.
125 changes: 125 additions & 0 deletions src/app/tests/suites/certification/test_TC_DISHALM_3_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: 197.2.2. [TC-DISHALM-3.1] Inflow alarm functionality with DUT as Server

PICS:
- MOD.S

config:
nodeId: 0x12344321
cluster: "Dishwasher Alarm"
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Operate device to set State attribute bit 0 (Inflow) to 1"
PICS: DISHALM.M.ManuallyControlled
command: "writeAttribute"
attribute: "State"
arguments:
value: 1

- label: "TH reads from the DUT the State attribute"
PICS: DISHALM.S.A0002
command: "readAttribute"
attribute: "State"
response:
constraints:
value: 1

- label: "Operate device to set State attribute bit 0 (Inflow) to 0"
PICS: DISHALM.M.ManuallyControlled
command: "writeAttribute"
attribute: "State"
arguments:
value: 0

- label: "TH reads from the DUT the State attribute"
PICS: " !DISHALM.S.A0001 && DISHALM.S.A0002 "
command: "readAttribute"
attribute: "State"
response:
constraints:
value: 0

- label: "TH reads from the DUT the State attribute"
PICS: DISHALM.S.A0001 && DISHALM.S.A0002
command: "readAttribute"
attribute: "State"
response:
constraints:
value: 1

- label: "TH sends command Reset to DUT with bit 0 (Inflow) of Alarms set to 1"
PICS: DISHALM.S.F00 && DISHALM.S.C00.Rsp
command: "reset"
arguments:
value: 1

- label: "TH reads from the DUT the State attribute"
PICS: DISHALM.S.F00 && DISHALM.S.A0002
command: "readAttribute"
attribute: "State"
response:
constraints:
value: 0

- label: "Set up subscription to Notify event"
PICS: DISHALM.S.E00
command: "subcribeEvent"
event: notify
minInterval: 0
maxInterval: 100

- label: "Operate device to set State attribute bit 0 (Inflow) to 1"
PICS: DISHALM.S.A0002 && DISHALM.S.E00
command: "writeAttribute"
attribute: "State"
arguments:
value: 1
response:
value: { Notify: TRUE }

- label: "TH reads from the DUT the State attribute"
PICS: DISHALM.S.A0001 && DISHALM.S.A0002
command: "readAttribute"
attribute: "State"
response:
constraints:
value: 1

- label: "Operate device to set State attribute bit 0 (Inflow) to 1"
PICS: DISHALM.S.A0002 && DISHALM.S.C00.Rsp
command: "writeAttribute"
attribute: "State"
arguments:
value: 0
response:
value: { Notify: FALSE }

- label: "TH sends command Reset to DUT with bit 0 (Inflow) of Alarms set to 1"
PICS: DISHALM.S.F00 && DISHALM.S.C00.Rsp
command: "reset"
arguments:
value: 1
response:
value: { Notify: FALSE }

0 comments on commit cbf92e5

Please sign in to comment.