Skip to content

Commit

Permalink
Test added apr7 (#17165)
Browse files Browse the repository at this point in the history
* Added manual scripts

* Added auto generatedfiles

* Restyled by whitespace

* Restyled by prettier-yaml

* updated additional comments

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Oct 17, 2023
1 parent 1d37b08 commit 9cc390d
Show file tree
Hide file tree
Showing 93 changed files with 14,558 additions and 620 deletions.
134 changes: 134 additions & 0 deletions examples/chip-tool/templates/tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ function getManualTests()
'Test_TC_DD_1_8',
'Test_TC_DD_1_9',
'Test_TC_DD_1_10',
'Test_TC_DD_1_11',
'Test_TC_DD_1_12',
'Test_TC_DD_2_1',
'Test_TC_DD_2_2',
'Test_TC_DD_3_1',
'Test_TC_DD_3_2',
'Test_TC_DD_3_3',
'Test_TC_DD_3_4',
'Test_TC_DD_3_5',
'Test_TC_DD_3_6',
'Test_TC_DD_3_7',
'Test_TC_DD_3_8',
'Test_TC_DD_3_9',
'Test_TC_DD_3_10',
'Test_TC_DD_3_11',
Expand All @@ -48,6 +54,7 @@ function getManualTests()
'Test_TC_BDX_1_1',
'Test_TC_BDX_1_2',
'Test_TC_BDX_1_3',
'Test_TC_BDX_1_4',
'Test_TC_BDX_1_5',
'Test_TC_BDX_1_6',
'Test_TC_BDX_2_1',
Expand All @@ -66,11 +73,13 @@ function getManualTests()
const BridgedActions = [
'Test_TC_BRAC_2_1',
'Test_TC_BRAC_2_2',
'Test_TC_BRAC_3_1',
];

const DeviceManagement = [
'Test_TC_DM_1_2',
'Test_TC_DM_1_4',
'Test_TC_DM_2_1',
'Test_TC_DM_2_3',
'Test_TC_DM_2_4',
'Test_TC_DM_3_2',
Expand All @@ -94,6 +103,7 @@ function getManualTests()
const GeneralCommissioning = [
'Test_TC_GC_1_2',
'Test_TC_GC_1_3',
'Test_TC_GC_1_4',
];

const GeneralDiagnostics = [
Expand All @@ -104,10 +114,13 @@ function getManualTests()

const Identify = [
'Test_TC_I_2_2',
'Test_TC_I_3_1',
'Test_TC_I_3_2',
];

const IlluminanceMeasurement = [
'Test_TC_ILL_2_2',
'Test_TC_ILL_3_1',
];

const InteractionDataModel = [
Expand All @@ -125,9 +138,11 @@ function getManualTests()
'Test_TC_IDM_6_2',
'Test_TC_IDM_6_3',
'Test_TC_IDM_6_4',
'Test_TC_IDM_7_1',
];

const MediaControl = [
'Test_TC_MC_2_2',
'Test_TC_MC_3_12',
'Test_TC_MC_3_13',
'Test_TC_MC_4_1',
Expand All @@ -138,6 +153,7 @@ function getManualTests()
'Test_TC_MC_10_4',
'Test_TC_MC_10_5',
'Test_TC_MC_10_6',
'Test_TC_MC_10_7',
];

const MultipleFabrics = [
Expand Down Expand Up @@ -168,6 +184,7 @@ function getManualTests()

const ModeSelect = [
'Test_TC_MOD_1_2',
'Test_TC_MOD_1_3',
'Test_TC_MOD_2_1',
'Test_TC_MOD_2_2',
'Test_TC_MOD_3_1',
Expand All @@ -194,15 +211,20 @@ function getManualTests()

const PowerSourceConfiguration = [
'Test_TC_PSCFG_2_1',
'Test_TC_PSCFG_2_2',
'Test_TC_PSCFG_3_1',
];

const SecureChannel = [
'Test_TC_SC_4_1',
'Test_TC_SC_4_3',
'Test_TC_SC_4_4',
'Test_TC_SC_4_5',
'Test_TC_SC_4_6',
'Test_TC_SC_4_7',
'Test_TC_SC_4_8',
'Test_TC_SC_4_9',
'Test_TC_SC_4_10',
];

const SoftwareDiagnostics = [
Expand All @@ -216,6 +238,7 @@ function getManualTests()

const WindowCovering = [
'Test_TC_WNCV_6_1',
'Test_TC_WNCV_7_1',
];

const FlowMeasurement = [
Expand All @@ -226,15 +249,113 @@ function getManualTests()
'Test_TC_OCC_2_3',
'Test_TC_OCC_2_4',
'Test_TC_OCC_3_1',
'Test_TC_OCC_3_2',
];

const PressureMeasurement = [
'Test_TC_PRS_2_2',
'Test_TC_PRS_2_3',
'Test_TC_PRS_3_1',
];

const PowerSource = [
'Test_TC_PS_2_2',
'Test_TC_PS_3_1',
];

const BooleanState = [
'Test_TC_BOOL_2_2',
'Test_TC_BOOL_3_1',
];

const ColorControl = [
'Test_TC_CC_2_2',
'Test_TC_CC_3_4',
'Test_TC_CC_4_5',
'Test_TC_CC_5_4',
'Test_TC_CC_6_4',
'Test_TC_CC_7_5',
'Test_TC_CC_9_4',
];

const DoorLock = [
'Test_TC_DL_1_1',
'Test_TC_DL_1_2',
'Test_TC_DL_1_4',
'Test_TC_DL_1_5',
'Test_TC_DL_1_6',
'Test_TC_DL_1_7',
'Test_TC_DL_1_8',
'Test_TC_DL_1_10',
'Test_TC_DL_1_11',
'Test_TC_DL_1_13',
'Test_TC_DL_1_14',
'Test_TC_DL_1_15',
'Test_TC_DL_1_16',
'Test_TC_DL_1_17',
];

const UserLabel = [
'Test_TC_LC_1_1',
'Test_TC_LC_1_3',
'Test_TC_LC_1_4',
'Test_TC_LC_1_5',
];

const LocalizationConfiguration = [
'Test_TC_LO_1_1',
];

const LevelControl = [
'Test_TC_LVL_2_3',
];

const NetworkCommissioning = [
'Test_TC_NC_1_1',
'Test_TC_NC_1_2',
'Test_TC_NC_1_3',
'Test_TC_NC_1_4',
'Test_TC_NC_1_5',
'Test_TC_NC_1_6',
'Test_TC_NC_1_7',
'Test_TC_NC_1_8',
'Test_TC_NC_1_9',
'Test_TC_NC_1_10',
'Test_TC_NC_1_11',
'Test_TC_NC_1_12',
'Test_TC_NC_1_13',
'Test_TC_NC_1_14',
'Test_TC_NC_1_15',
'Test_TC_NC_1_16',
'Test_TC_NC_1_17',
'Test_TC_NC_1_18',
];

const OnOff = [
'Test_TC_OO_3_1',
'Test_TC_OO_3_2',
];

const RelativeHumidityMeasurement = [
'Test_TC_RH_3_1',
];

const Switch = [
'Test_TC_SWTCH_1_1',
'Test_TC_SWTCH_3_1',
];

const TemperatureMeasurement = [
'Test_TC_TM_3_1',
];

const Thermostat = [
'Test_TC_TSTAT_3_1',
'Test_TC_TSTAT_3_2',
];

const ThermostatUserConfiguration = [
'Test_TC_TSUIC_3_1',
];

const tests = [
Expand Down Expand Up @@ -265,6 +386,19 @@ function getManualTests()
OccupancySensing, //
PressureMeasurement, //
PowerSource, //
BooleanState, //
ColorControl, //
DoorLock, //
UserLabel, //
LocalizationConfiguration, //
LevelControl, //
NetworkCommissioning, //
OnOff, //
RelativeHumidityMeasurement, //
Switch, //
TemperatureMeasurement, //
Thermostat, //
ThermostatUserConfiguration, //

];
return tests.flat(1);
Expand Down
48 changes: 48 additions & 0 deletions src/app/tests/suites/certification/Test_TC_BDX_1_4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 28.1.4. [TC-BDX-1.4] Response to Receiver Initiated BDX Transfer session

config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0

tests:
- label:
"TH sends a ReceiveInit message to DUT + DUT sends a ReceiveAccept
message back to TH"
verification: |
1. Verify that the OTA Reference Requester App logs show ReceiveAccept message from DUT and compare field values against ReceiveInit
[1636410922200] [59208:62970584] CHIP: [ATM] Handling received BDX Message
[1636410922200] [59208:62970584] CHIP: [ATM] ReceiveAccept
[1636410922200] [59208:62970584] CHIP: [ATM] Transfer Control: 0x20
[1636410922200] [59208:62970584] CHIP: [ATM] Range Control: 0x0
[1636410922200] [59208:62970584] CHIP: [ATM] Max Block Size: 1024
[1636410922200] [59208:62970584] CHIP: [ATM] Length: 0x0000000000000000
Compare with
[1636410920973] [59208:62970584] CHIP: [ATM] Sending BDX Message
[1636410920973] [59208:62970584] CHIP: [ATM] ReceiveInit
[1636410920973] [59208:62970584] CHIP: [ATM] Proposed Transfer Control: 0x20
[1636410920973] [59208:62970584] CHIP: [ATM] Range Control: 0x0
[1636410920973] [59208:62970584] CHIP: [ATM] Proposed Max Block Size: 1024
[1636410920973] [59208:62970584] CHIP: [ATM] Start Offset: 0x0000000000000000
[1636410920973] [59208:62970584] CHIP: [ATM] Proposed Max Length: 0x0000000000000000
[1636410920973] [59208:62970584] CHIP: [ATM] File Designator Length: 8
[1636410920973] [59208:62970584] CHIP: [ATM] File Designator: test.txt
disabled: true
Loading

0 comments on commit 9cc390d

Please sign in to comment.