Skip to content

Commit

Permalink
Added YAML Test Cases - Jan 19th (#13700)
Browse files Browse the repository at this point in the history
* Adding following testcases
1.TC_BRAC_1_1
2.TC_ETHDIAG_1_1
3.TC_ETHDIAG_2_1
4.TC_PS_1_1
5.TC_SWTCH_2_1
6.TC_SWTCH_2_2
7.TC_WIFIDIAG_1_1
8.TC_WIFIDIAG_3_1

* Adding auto generated files
  • Loading branch information
manjunathambiger23 authored and pull[bot] committed Aug 17, 2023
1 parent 5099bf0 commit 1277359
Show file tree
Hide file tree
Showing 12 changed files with 3,585 additions and 60 deletions.
28 changes: 28 additions & 0 deletions examples/chip-tool/templates/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ function getTests()
'Test_TC_BOOL_2_1',
];

const BridgedActions = [
'Test_TC_BRAC_1_1',
];

const ColorControl = [
'Test_TC_CC_1_1',
'Test_TC_CC_2_1',
Expand Down Expand Up @@ -72,6 +76,11 @@ function getTests()
'Test_TC_EMR_1_1',
];

const EthernetNetworkDiagnostics = [
'Test_TC_ETHDIAG_1_1',
'Test_TC_ETHDIAG_2_1',
];

const FlowMeasurement = [
'Test_TC_FLW_1_1',
'Test_TC_FLW_2_1',
Expand Down Expand Up @@ -132,6 +141,10 @@ function getTests()
'Test_TC_OO_2_3',
];

const PowerSource = [
'Test_TC_PS_1_1',
];

const PressureMeasurement = [
'Test_TC_PRS_1_1',
'Test_TC_PRS_2_1',
Expand All @@ -150,6 +163,11 @@ function getTests()
'Test_TC_RH_2_2',
];

const Switch = [
'Test_TC_SWTCH_2_1',
'Test_TC_SWTCH_2_2',
];

const TemperatureMeasurement = [
'Test_TC_TM_1_1',
'Test_TC_TM_2_1',
Expand All @@ -172,6 +190,11 @@ function getTests()
'Test_TC_DIAGTH_1_1',
];

const WiFiNetworkDiagnostics = [
'Test_TC_WIFIDIAG_1_1',
'Test_TC_WIFIDIAG_3_1',
];

const WindowCovering = [
'Test_TC_WNCV_1_1',
'Test_TC_WNCV_2_1',
Expand Down Expand Up @@ -229,23 +252,28 @@ function getTests()
const tests = [
BinaryInput, //
BooleanState, //
BridgedActions, //
ColorControl, //
DeviceDiscovery, //
DeviceManagement, //
ElectricalMeasurement, //
EthernetNetworkDiagnostics, //
FlowMeasurement, //
IlluminanceMeasurement, //
LevelControl, //
MediaControl, //
OccupancySensing, //
OnOff, //
PowerSource, //
PressureMeasurement, //
PumpConfigurationControl, //
RelativeHumidityMeasurement, //
Switch, //
TemperatureMeasurement, //
Thermostat, //
ThermostatUserConfiguration, //
ThreadNetworkDiagnostics, //
WiFiNetworkDiagnostics, //
WindowCovering, //
TV, //
Others, //
Expand Down
37 changes: 37 additions & 0 deletions src/app/tests/suites/certification/Test_TC_BRAC_1_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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: 77.1.1. [TC-BRAC-1.1] Global attributes with server as DUT

config:
cluster: "Bridged Actions"
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"

- label: "Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
constraints:
type: uint16
162 changes: 162 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ETHDIAG_1_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
# 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.1. [TC-ETHDIAG-1.1] Attributes with server as DUT

config:
cluster: "Ethernet Network Diagnostics"
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"

#Disabled due to issue #11670 and #13648
- label: "Read PHYRate attribute"
disabled: true
command: "readAttribute"
attribute: "PHYRate"
response:
value: null

- label: "Read PHYRate attribute constraints"
disabled: true
command: "readAttribute"
attribute: "PHYRate"
response:
constraints:
type: enum8
minValue: 0
maxValue: 9

- label: "Read FullDuplex attribute"
disabled: true
command: "readAttribute"
attribute: "FullDuplex"
response:
value: null

- label: "Read FullDuplex attribute constraints"
disabled: true
command: "readAttribute"
attribute: "FullDuplex"
response:
constraints:
type: bool

- label: "Read PacketRxCount attribute"
disabled: true
command: "readAttribute"
attribute: "PacketRxCount"
response:
value: 0

- label: "Read PacketRxCount attribute constraints"
disabled: true
command: "readAttribute"
attribute: "PacketRxCount"
response:
constraints:
type: uint64

- label: "Read PacketTxCount attribute"
disabled: true
command: "readAttribute"
attribute: "PacketTxCount"
response:
value: 0

- label: "Read PacketTxCount attribute constraints"
disabled: true
command: "readAttribute"
attribute: "PacketTxCount"
response:
constraints:
type: uint64

- label: "Read TxErrCount attribute"
disabled: true
command: "readAttribute"
attribute: "TxErrCount"
response:
value: 0

- label: "Read TxErrCount attribute constraints"
disabled: true
command: "readAttribute"
attribute: "TxErrCount"
response:
constraints:
type: uint64

- label: "Read CollisionCount attribute"
disabled: true
command: "readAttribute"
attribute: "CollisionCount"
response:
value: 0

- label: "Read CollisionCount attribute constraints"
disabled: true
command: "readAttribute"
attribute: "CollisionCount"
response:
constraints:
type: uint64

- label: "Read OverrunCount attribute"
disabled: true
command: "readAttribute"
attribute: "OverrunCount"
response:
value: 0

- label: "Read OverrunCount attribute constraints"
disabled: true
command: "readAttribute"
attribute: "OverrunCount"
response:
constraints:
type: uint64

- label: "Read CarrierDetect attribute"
disabled: true
command: "readAttribute"
attribute: "CarrierDetect"
response:
value: null

- label: "Read CarrierDetect attribute constraints"
disabled: true
command: "readAttribute"
attribute: "CarrierDetect"
response:
constraints:
type: bool

- label: "Read TimeSinceReset attribute"
disabled: true
command: "readAttribute"
attribute: "TimeSinceReset"
response:
value: 0

- label: "Read TimeSinceReset attribute constraints"
disabled: true
command: "readAttribute"
attribute: "TimeSinceReset"
response:
constraints:
type: uint64
64 changes: 64 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ETHDIAG_2_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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.3. [TC-ETHDIAG-2.1] Command received functionality with server as DUT

config:
cluster: "Ethernet Network Diagnostics"
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"

#Below steps disabled due to issue #13648
- label: "Sends ResetCounts command"
disabled: true
command: "ResetCounts"

- label: "Read the PacketRxCount attribute"
disabled: true
command: "readAttribute"
attribute: "PacketRxCount"
response:
value: 0

- label: "Read the PacketTxCount attribute"
disabled: true
command: "readAttribute"
attribute: "PacketTxCount"
response:
value: 0

- label: "Read the TxErrCount attribute"
disabled: true
command: "readAttribute"
attribute: "TxErrCount"
response:
value: 0

- label: "Read the CollisionCount attribute"
disabled: true
command: "readAttribute"
attribute: "CollisionCount"
response:
value: 0

- label: "Read the OverrunCount attribute"
disabled: true
command: "readAttribute"
attribute: "OverrunCount"
response:
value: 0
Loading

0 comments on commit 1277359

Please sign in to comment.