Skip to content

Commit

Permalink
Modified test
Browse files Browse the repository at this point in the history
Test_TC_CC_4_2
Test_TC_CC_7_2
Test_TC_PWRTL_1_1
Test_TC_SWTCH_3_2
Test_TC_OO_2_6
  • Loading branch information
manjunath-grl committed Aug 30, 2024
1 parent 6c6b11f commit 68ba8b7
Show file tree
Hide file tree
Showing 6 changed files with 912 additions and 351 deletions.
16 changes: 16 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_4_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,22 @@ tests:
response:
error: INVALID_COMMAND

- label:
"Step 6c: TH sends MoveSaturation command to DUT with MoveMode=0x00
(stop) and Rate=0 (units/s)"
command: "MoveSaturation"
PICS: CC.S.F00 && CC.S.C04.Rsp
arguments:
values:
- name: "MoveMode"
value: 0
- name: "Rate"
value: 0
- name: "OptionsMask"
value: 0
- name: "OptionsOverride"
value: 0

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_CC_7_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ tests:
- label:
"Step 5a: TH sends EnhancedMoveHue command to DUT with MoveMode=0x01
(up) and Rate=0 (units/s)"
PICS: CC.S.F01 && CC.S.C41.Rsp"
PICS: CC.S.F01 && CC.S.C41.Rsp
command: "EnhancedMoveHue"
arguments:
values:
Expand Down
58 changes: 58 additions & 0 deletions src/app/tests/suites/certification/Test_TC_OO_2_6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Copyright (c) 2024 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: 4.1.6. [TC-OO-2.6] OffOnly Feature with DUT as Server

PICS:
- OO.S
- OO.S.F02

config:
nodeId: 0x12344321
cluster: "On/Off"
endpoint: 1

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

- label: "Step 1: TH reads the FeatureMap attribute from DUT"
PICS: OO.S.F02
command: "readAttribute"
attribute: "FeatureMap"
response:
constraints:
type: bitmap32
hasMasksSet: [0x2]

- label:
"Step 2: TH sends On command to the On/Off Cluster of DUT on
PIXIT.OO.ENDPOINT"
PICS: OO.S.F02 && OO.S.C01.Rsp
command: "On"
response:
error: UNSUPPORTED_COMMAND

- label:
"Step 3: TH sends Toggle command to the On/Off Cluster of DUT on
PIXIT.OO.ENDPOINT"
PICS: OO.S.F02 && OO.S.C02.Rsp
command: "Toggle"
response:
error: UNSUPPORTED_COMMAND
5 changes: 2 additions & 3 deletions src/app/tests/suites/certification/Test_TC_PWRTL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# 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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 44.1.1. [TC-PWRTL-1.1] Global Attributes with DUT as Server

Expand Down Expand Up @@ -88,7 +87,7 @@ tests:
hasMasksSet: [0x4, 0x8]

- label: "Step 4a: TH reads AttributeList from DUT"
PICS: "!PWRTL.S.F02 && !PWRTL.S.F03"
PICS: " !PWRTL.S.F02 && !PWRTL.S.F03 "
command: "readAttribute"
attribute: "AttributeList"
response:
Expand All @@ -99,7 +98,7 @@ tests:
- label:
"Step 4b: TH reads feature dependent attribute(AvailableEndpoints)
AttributeList from DUT"
PICS: "PWRTL.S.F02 && !PWRTL.S.F03"
PICS: PWRTL.S.F02
command: "readAttribute"
attribute: "AttributeList"
response:
Expand Down
Loading

0 comments on commit 68ba8b7

Please sign in to comment.