Skip to content

Commit

Permalink
Adding test scripts
Browse files Browse the repository at this point in the history
1.Test_TC_BI_2_2
2.Test_TC_TSTAT_2_1
3.Test_TC_DIAGSW_3_2
  • Loading branch information
kvikrambhat committed Nov 10, 2021
1 parent 30e1b97 commit 63ca55a
Show file tree
Hide file tree
Showing 5 changed files with 1,868 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/chip-tool/templates/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function getTests()
const BinaryInput = [
'Test_TC_BI_1_1',
'Test_TC_BI_2_1',
'Test_TC_BI_2_2',
];

const BooleanState = [
Expand Down Expand Up @@ -132,6 +133,7 @@ function getTests()

const Thermostat = [
'Test_TC_TSTAT_1_1',
'Test_TC_TSTAT_2_1',
];

const ThermostatUserConfiguration = [
Expand All @@ -142,6 +144,7 @@ function getTests()

const ThreadNetworkDiagnostics = [
'Test_TC_DIAGTH_1_1',
'Test_TC_DIAGSW_3_2',
];

const WindowCovering = [
Expand Down
134 changes: 134 additions & 0 deletions src/app/tests/suites/certification/Test_TC_BI_2_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# 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: 18.2.2. [TC-BI-2.2] Primary functionality with server as DUT

config:
cluster: "Binary Input (Basic)"
endpoint: 1

tests:
- label: "Reads PresentValue attribute from DUT"
command: "readAttribute"
attribute: "present value"
response:
value: 0

- label: "Reads OutOfService attribute from DUT"
command: "readAttribute"
attribute: "out of service"
response:
value: 0

- label: "Reads StatusFlags attribute from DUT"
command: "readAttribute"
attribute: "status flags"
response:
value: 0

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to change the sensor value to TRUE"
disabled: true

- label: "Reads PresentValue attribute from DUT"
disabled: true
command: "readAttribute"
attribute: "present value"
response:
value: 1

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to change the sensor value to FALSE"
disabled: true

- label: "Reads PresentValue attribute from DUT"
command: "readAttribute"
attribute: "present value"
response:
value: 0

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to Trigger an OutOfService state"
disabled: true

- label: "Reads OutOfService attribute from DUT"
disabled: true
command: "readAttribute"
attribute: "out of service"
response:
value: 1

- label: "Reads StatusFlags attribute from DUT"
disabled: true
command: "readAttribute"
attribute: "status flags"
response:
value: 4

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to Clear the OutOfService state if possible"
disabled: true

- label: "Reads OutOfService attribute from DUT"
command: "readAttribute"
attribute: "out of service"
response:
value: 0

- label: "Reads StatusFlags attribute from DUT"
command: "readAttribute"
attribute: "status flags"
response:
value: 0

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to Trigger an Alarm state"
disabled: true

- label: "Reads StatusFlags attribute from DUT"
disabled: true
command: "readAttribute"
attribute: "status flags"
response:
value: 1

- label: "Operate on device to Clear the Alarm state if possible"
disabled: true

- label: "Reads StatusFlags attribute from DUT"
command: "readAttribute"
attribute: "status flags"
response:
value: 0

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to Trigger an Fault state"
disabled: true

- label: "Reads StatusFlags attribute from DUT"
disabled: true
command: "readAttribute"
attribute: "status flags"
response:
value: 2

#issue #11475 User action needed, need to implement in YAML framework
- label: "Operate on device to Clear the Fault state if possible"
disabled: true

- label: "Reads StatusFlags attribute from DUT"
command: "readAttribute"
attribute: "status flags"
response:
value: 0
46 changes: 46 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DIAGSW_3_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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: 48.1.4. [TC-DIAGSW-3.2] Command received functionality with server as DUT

config:
cluster: "Software Diagnostics"
endpoint: 1

tests:
#issue #11578 ResetWatermarks command is Failing
- label: "Sends ResetWatermarks to DUT"
disabled: true
command: "ResetWatermarks"

- label: "Reads a list of ThreadMetrics struct attribute from DUT."
disabled: true
command: "readAttribute"
attribute: "ThreadMetrics"
response:
value: 0

- label: "Reads CurrentHeapUsed attribute value from DUT"
disabled: true
command: "readAttribute"
attribute: "CurrentHeapUsed"
response:
value: 0

- label: "Reads CurrentHeapHighWaterMark attribute value from DUT"
disabled: true
command: "readAttribute"
attribute: "CurrentHeapHighWatermark"
response:
value: 0
Loading

0 comments on commit 63ca55a

Please sign in to comment.