Skip to content

Commit 4ac926a

Browse files
author
manjunathambiger23
authored
Added YAML Test Cases - Jan 19th (#13700)
* 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
1 parent c750f4b commit 4ac926a

File tree

12 files changed

+3585
-60
lines changed

12 files changed

+3585
-60
lines changed

examples/chip-tool/templates/tests.js

+28
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function getTests()
2828
'Test_TC_BOOL_2_1',
2929
];
3030

31+
const BridgedActions = [
32+
'Test_TC_BRAC_1_1',
33+
];
34+
3135
const ColorControl = [
3236
'Test_TC_CC_1_1',
3337
'Test_TC_CC_2_1',
@@ -72,6 +76,11 @@ function getTests()
7276
'Test_TC_EMR_1_1',
7377
];
7478

79+
const EthernetNetworkDiagnostics = [
80+
'Test_TC_ETHDIAG_1_1',
81+
'Test_TC_ETHDIAG_2_1',
82+
];
83+
7584
const FlowMeasurement = [
7685
'Test_TC_FLW_1_1',
7786
'Test_TC_FLW_2_1',
@@ -132,6 +141,10 @@ function getTests()
132141
'Test_TC_OO_2_3',
133142
];
134143

144+
const PowerSource = [
145+
'Test_TC_PS_1_1',
146+
];
147+
135148
const PressureMeasurement = [
136149
'Test_TC_PRS_1_1',
137150
'Test_TC_PRS_2_1',
@@ -150,6 +163,11 @@ function getTests()
150163
'Test_TC_RH_2_2',
151164
];
152165

166+
const Switch = [
167+
'Test_TC_SWTCH_2_1',
168+
'Test_TC_SWTCH_2_2',
169+
];
170+
153171
const TemperatureMeasurement = [
154172
'Test_TC_TM_1_1',
155173
'Test_TC_TM_2_1',
@@ -172,6 +190,11 @@ function getTests()
172190
'Test_TC_DIAGTH_1_1',
173191
];
174192

193+
const WiFiNetworkDiagnostics = [
194+
'Test_TC_WIFIDIAG_1_1',
195+
'Test_TC_WIFIDIAG_3_1',
196+
];
197+
175198
const WindowCovering = [
176199
'Test_TC_WNCV_1_1',
177200
'Test_TC_WNCV_2_1',
@@ -229,23 +252,28 @@ function getTests()
229252
const tests = [
230253
BinaryInput, //
231254
BooleanState, //
255+
BridgedActions, //
232256
ColorControl, //
233257
DeviceDiscovery, //
234258
DeviceManagement, //
235259
ElectricalMeasurement, //
260+
EthernetNetworkDiagnostics, //
236261
FlowMeasurement, //
237262
IlluminanceMeasurement, //
238263
LevelControl, //
239264
MediaControl, //
240265
OccupancySensing, //
241266
OnOff, //
267+
PowerSource, //
242268
PressureMeasurement, //
243269
PumpConfigurationControl, //
244270
RelativeHumidityMeasurement, //
271+
Switch, //
245272
TemperatureMeasurement, //
246273
Thermostat, //
247274
ThermostatUserConfiguration, //
248275
ThreadNetworkDiagnostics, //
276+
WiFiNetworkDiagnostics, //
249277
WindowCovering, //
250278
TV, //
251279
Others, //
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright (c) 2021 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 77.1.1. [TC-BRAC-1.1] Global attributes with server as DUT
16+
17+
config:
18+
cluster: "Bridged Actions"
19+
endpoint: 1
20+
21+
tests:
22+
- label: "Wait for the commissioned device to be retrieved"
23+
cluster: "DelayCommands"
24+
command: "WaitForCommissionee"
25+
26+
- label: "Read the global attribute: ClusterRevision"
27+
command: "readAttribute"
28+
attribute: "ClusterRevision"
29+
response:
30+
value: 1
31+
32+
- label: "Read the global attribute constraints: ClusterRevision"
33+
command: "readAttribute"
34+
attribute: "ClusterRevision"
35+
response:
36+
constraints:
37+
type: uint16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Copyright (c) 2021 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 48.1.1. [TC-ETHDIAG-1.1] Attributes with server as DUT
16+
17+
config:
18+
cluster: "Ethernet Network Diagnostics"
19+
endpoint: 1
20+
21+
tests:
22+
- label: "Wait for the commissioned device to be retrieved"
23+
cluster: "DelayCommands"
24+
command: "WaitForCommissionee"
25+
26+
#Disabled due to issue #11670 and #13648
27+
- label: "Read PHYRate attribute"
28+
disabled: true
29+
command: "readAttribute"
30+
attribute: "PHYRate"
31+
response:
32+
value: null
33+
34+
- label: "Read PHYRate attribute constraints"
35+
disabled: true
36+
command: "readAttribute"
37+
attribute: "PHYRate"
38+
response:
39+
constraints:
40+
type: enum8
41+
minValue: 0
42+
maxValue: 9
43+
44+
- label: "Read FullDuplex attribute"
45+
disabled: true
46+
command: "readAttribute"
47+
attribute: "FullDuplex"
48+
response:
49+
value: null
50+
51+
- label: "Read FullDuplex attribute constraints"
52+
disabled: true
53+
command: "readAttribute"
54+
attribute: "FullDuplex"
55+
response:
56+
constraints:
57+
type: bool
58+
59+
- label: "Read PacketRxCount attribute"
60+
disabled: true
61+
command: "readAttribute"
62+
attribute: "PacketRxCount"
63+
response:
64+
value: 0
65+
66+
- label: "Read PacketRxCount attribute constraints"
67+
disabled: true
68+
command: "readAttribute"
69+
attribute: "PacketRxCount"
70+
response:
71+
constraints:
72+
type: uint64
73+
74+
- label: "Read PacketTxCount attribute"
75+
disabled: true
76+
command: "readAttribute"
77+
attribute: "PacketTxCount"
78+
response:
79+
value: 0
80+
81+
- label: "Read PacketTxCount attribute constraints"
82+
disabled: true
83+
command: "readAttribute"
84+
attribute: "PacketTxCount"
85+
response:
86+
constraints:
87+
type: uint64
88+
89+
- label: "Read TxErrCount attribute"
90+
disabled: true
91+
command: "readAttribute"
92+
attribute: "TxErrCount"
93+
response:
94+
value: 0
95+
96+
- label: "Read TxErrCount attribute constraints"
97+
disabled: true
98+
command: "readAttribute"
99+
attribute: "TxErrCount"
100+
response:
101+
constraints:
102+
type: uint64
103+
104+
- label: "Read CollisionCount attribute"
105+
disabled: true
106+
command: "readAttribute"
107+
attribute: "CollisionCount"
108+
response:
109+
value: 0
110+
111+
- label: "Read CollisionCount attribute constraints"
112+
disabled: true
113+
command: "readAttribute"
114+
attribute: "CollisionCount"
115+
response:
116+
constraints:
117+
type: uint64
118+
119+
- label: "Read OverrunCount attribute"
120+
disabled: true
121+
command: "readAttribute"
122+
attribute: "OverrunCount"
123+
response:
124+
value: 0
125+
126+
- label: "Read OverrunCount attribute constraints"
127+
disabled: true
128+
command: "readAttribute"
129+
attribute: "OverrunCount"
130+
response:
131+
constraints:
132+
type: uint64
133+
134+
- label: "Read CarrierDetect attribute"
135+
disabled: true
136+
command: "readAttribute"
137+
attribute: "CarrierDetect"
138+
response:
139+
value: null
140+
141+
- label: "Read CarrierDetect attribute constraints"
142+
disabled: true
143+
command: "readAttribute"
144+
attribute: "CarrierDetect"
145+
response:
146+
constraints:
147+
type: bool
148+
149+
- label: "Read TimeSinceReset attribute"
150+
disabled: true
151+
command: "readAttribute"
152+
attribute: "TimeSinceReset"
153+
response:
154+
value: 0
155+
156+
- label: "Read TimeSinceReset attribute constraints"
157+
disabled: true
158+
command: "readAttribute"
159+
attribute: "TimeSinceReset"
160+
response:
161+
constraints:
162+
type: uint64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Copyright (c) 2021 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 48.1.3. [TC-ETHDIAG-2.1] Command received functionality with server as DUT
16+
17+
config:
18+
cluster: "Ethernet Network Diagnostics"
19+
endpoint: 1
20+
21+
tests:
22+
- label: "Wait for the commissioned device to be retrieved"
23+
cluster: "DelayCommands"
24+
command: "WaitForCommissionee"
25+
26+
#Below steps disabled due to issue #13648
27+
- label: "Sends ResetCounts command"
28+
disabled: true
29+
command: "ResetCounts"
30+
31+
- label: "Read the PacketRxCount attribute"
32+
disabled: true
33+
command: "readAttribute"
34+
attribute: "PacketRxCount"
35+
response:
36+
value: 0
37+
38+
- label: "Read the PacketTxCount attribute"
39+
disabled: true
40+
command: "readAttribute"
41+
attribute: "PacketTxCount"
42+
response:
43+
value: 0
44+
45+
- label: "Read the TxErrCount attribute"
46+
disabled: true
47+
command: "readAttribute"
48+
attribute: "TxErrCount"
49+
response:
50+
value: 0
51+
52+
- label: "Read the CollisionCount attribute"
53+
disabled: true
54+
command: "readAttribute"
55+
attribute: "CollisionCount"
56+
response:
57+
value: 0
58+
59+
- label: "Read the OverrunCount attribute"
60+
disabled: true
61+
command: "readAttribute"
62+
attribute: "OverrunCount"
63+
response:
64+
value: 0

0 commit comments

Comments
 (0)