Skip to content

Commit

Permalink
Test added march 8 (#15957)
Browse files Browse the repository at this point in the history
* Added new manual scripts

* Added Auto generated File

Former-commit-id: 35fad7d
  • Loading branch information
kowsisoundhar12 authored Mar 9, 2022
1 parent 4d18b49 commit 99dd36a
Show file tree
Hide file tree
Showing 42 changed files with 6,318 additions and 527 deletions.
52 changes: 52 additions & 0 deletions examples/chip-tool/templates/tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ function getManualTests()
'Test_TC_DD_3_6',
'Test_TC_DD_3_9',
'Test_TC_DD_3_10',
'Test_TC_DD_3_11',
'Test_TC_DD_3_12',
'Test_TC_DD_3_13',
'Test_TC_DD_3_14',
'Test_TC_DD_4_1',
];

Expand Down Expand Up @@ -66,8 +70,11 @@ function getManualTests()

const DeviceManagement = [
'Test_TC_DM_1_2',
'Test_TC_DM_1_4',
'Test_TC_DM_2_3',
'Test_TC_DM_2_4',
'Test_TC_DM_3_2',
'Test_TC_DM_3_4',
];

const DiagnosticsLogs = [
Expand All @@ -93,6 +100,7 @@ function getManualTests()
const GeneralDiagnostics = [
'Test_TC_GENDIAG_1_1',
'Test_TC_GENDIAG_1_2',
'Test_TC_GENDIAG_2_1',
];

const Identify = [
Expand All @@ -102,6 +110,7 @@ function getManualTests()

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

const InteractionDataModel = [
Expand All @@ -117,10 +126,13 @@ function getManualTests()
'Test_TC_IDM_5_2',
'Test_TC_IDM_6_1',
'Test_TC_IDM_6_2',
'Test_TC_IDM_6_3',
'Test_TC_IDM_6_4',
];

const MediaControl = [
'Test_TC_MC_3_12',
'Test_TC_MC_3_13',
'Test_TC_MC_4_1',
'Test_TC_MC_8_2',
'Test_TC_MC_9_2',
Expand Down Expand Up @@ -157,12 +169,20 @@ function getManualTests()
'Test_TC_MF_1_22',
'Test_TC_MF_1_23',
'Test_TC_MF_1_24',
'Test_TC_MF_1_25',
'Test_TC_MF_1_26',
'Test_TC_MF_1_27',
'Test_TC_MF_1_28',
];

const ModeSelect = [
'Test_TC_MOD_1_1',
'Test_TC_MOD_1_2',
'Test_TC_MOD_2_1',
'Test_TC_MOD_2_2',
'Test_TC_MOD_3_1',
'Test_TC_MOD_3_2',
'Test_TC_MOD_3_3',
];

const OTASoftwareUpdate = [
Expand All @@ -178,11 +198,14 @@ function getManualTests()
'Test_TC_SU_3_2',
'Test_TC_SU_3_3',
'Test_TC_SU_3_4',
'Test_TC_SU_4_1',
'Test_TC_SU_4_2',
];

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

const SecureChannel = [
Expand All @@ -204,6 +227,30 @@ function getManualTests()

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

const FlowMeasurement = [
'Test_TC_FLW_3_1',
];

const OccupancySensing = [
'Test_TC_OCC_2_3',
'Test_TC_OCC_2_4',
'Test_TC_OCC_3_1',
];

const OnOff = [
'Test_TC_OO_2_4',
];

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

const PowerSource = [
'Test_TC_PS_2_2',
];

const tests = [
Expand All @@ -230,6 +277,11 @@ function getManualTests()
SoftwareDiagnostics, //
WiFiNetworkDiagnostics, //
WindowCovering, //
FlowMeasurement, //
OccupancySensing, //
OnOff, //
PressureMeasurement, //
PowerSource, //

];
return tests.flat(1);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
335fcfe3b2ee9ff5ee47781735fb823fe3fbd61e
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6ea178d9396304eb8f7787f6120c3b96aa28c924
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d8dbffe69c7902379dc077cdb72cdc2281f955ef
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c6ed2046073782fadab254ac30217905494a0683
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
817b1334292877356bbc4a34c29577496fd5ce1c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a779dd26be2c2aefb538fd3f6ad8916fe656ae00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12bb8df2c2276efbeb1a639b8009a3bd0eb4b183
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cdb2a847b417200f52ebfe85905073b2009624ae
229 changes: 229 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DD_3_11.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
# 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: 7.3.11. [TC-DD-3.11] Commissioning Flow - QR Code [DUT - Commissioner]

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

tests:
- label:
"Version: Use a QR code from a commissionee that has their QR code
Version bit string set to 000"
verification:
"chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769
-cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-25 23:28:06 matter-te-6
chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-25
23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode:
[MT:-24J042C00KA0648G00]"
disabled: true

- label:
"Scan the QR code from the previous step using the DUT. Follow any
manufacturer-specific steps needed for the Commissioner/Commissionee
to complete the commissioning process."
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1645836234938]
[9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0
Cluster=0x0000_0030 Command=0x0000_0005 [1645836234938]
[9239:26087760] CHIP: [CTL] Received CommissioningComplete response
[1645836234938] [9239:26087760] CHIP: [CTL] Rendezvous cleanup
[1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning
completed with success Device TH:
./out/all-clusters-app/chip-all-clusters-app ...
[1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for
MessageCounter:9602810 on exchange: 9753r
[1645836235.102654][8174:8174] CHIP:IN: Prepared secure message
0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId
(0, 1) on exchange 9753r with MessageCounter:12855769.
[1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg
0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1)
at monotonic time: 25637371 msec [1645836235.102836][8174:8174]
CHIP:DMG: ICR moving to [CommandSen] [1645836235.102863][8174:8174]
CHIP:DMG: ICR moving to [AwaitingDe] [1645836235.102906][8174:8174]
CHIP:DL: HandlePlatformSpecificBLEEvent 32784
[1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed
successfully"
disabled: true

- label:
"If (PICS_DT_THREAD), Standard Commissioning Flow: Use a QR code from
a commissionee that has their Custom Flow bit set to 0 and supports
BLE for its Discovery Capability."
verification:
"chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769
-cf 0 -dc 2 -dv 3840 -ps 20202021 2022-02-25 23:28:06 matter-te-6
chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-25
23:28:06 matter-te-6 chip.SPL[22108] INFO SetupQRCode:
[MT:-24J042C00KA0648G00]"
disabled: true

- label:
"If (PICS_DT_THREAD), Scan the QR code from the previous step using
the DUT. Follow any steps needed for the Commissioner/Commissionee to
complete the commissioning process using BLE"
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1645836234938]
[9239:26087760] CHIP: [DMG] Received Command Response Data, Endpoint=0
Cluster=0x0000_0030 Command=0x0000_0005 [1645836234938]
[9239:26087760] CHIP: [CTL] Received CommissioningComplete response
[1645836234938] [9239:26087760] CHIP: [CTL] Rendezvous cleanup
[1645836234938] [9239:26087760] CHIP: [TOO] Device commissioning
completed with success Device TH:
./out/all-clusters-app/chip-all-clusters-app ...
[1645836235.102593][8174:8174] CHIP:EM: Piggybacking Ack for
MessageCounter:9602810 on exchange: 9753r
[1645836235.102654][8174:8174] CHIP:IN: Prepared secure message
0xaaaae5bbed98 to 0x000000000001B669 (1) of type 0x9 and protocolId
(0, 1) on exchange 9753r with MessageCounter:12855769.
[1645836235.102698][8174:8174] CHIP:IN: Sending encrypted msg
0xaaaae5bbed98 with MessageCounter:12855769 to 0x000000000001B669 (1)
at monotonic time: 25637371 msec [1645836235.102836][8174:8174]
CHIP:DMG: ICR moving to [CommandSen] [1645836235.102863][8174:8174]
CHIP:DMG: ICR moving to [AwaitingDe] [1645836235.102906][8174:8174]
CHIP:DL: HandlePlatformSpecificBLEEvent 32784
[1645836235.102932][8174:8174] CHIP:SVR: Commissioning completed
successfully"
disabled: true

- label:
"Standard Commissioning Flow: Use a QR code from a commissionee that
has their Custom Flow bit set to 0 and supports IP Network for its
Discovery Capability."
verification:
"chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769
-cf 0 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:07:29 matter-te-6
chip.SPL[22108] INFO Manual pairing code: [34970112332] 2022-02-26
03:07:29 matter-te-6 chip.SPL[22108] INFO SetupQRCode:
[MT:-24J0AFN00KA0648G00]"
disabled: true

- label:
"Scan the QR code from the previous step using the DUT. Follow any
steps needed for the Commissioner/Commissionee to complete the
commissioning process using IP Network"
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing qrcode 1234 MT:-24J042C00KA0648G00 ... [1646261423084]
[53218:29382487] CHIP: [CTL] Received CommissioningComplete response
[1646261423084] [53218:29382487] CHIP: [CTL] Rendezvous cleanup
[1646261423084] [53218:29382487] CHIP: [TOO] Device commissioning
completed with success Device TH:
./out/all-clusters-app/chip-all-clusters-app ...
[1646261423.249620][28366:28366] CHIP:DMG: ICR moving to [AwaitingDe]
[1646261423.249687][28366:28366] CHIP:DL:
HandlePlatformSpecificBLEEvent 32784 [1646261423.249738][28366:28366]
CHIP:SVR: Commissioning completed successfully"
disabled: true

- label:
"User-Intent Commissioning Flow: Use a QR code from a commissionee
that has their Custom Flow bit set to 1 and supports BLE for its
Discovery Capability. Place the commissionee into commissioning mode
according to the devices specified instructions in its pairing hint."
verification:
"BLOCKED chip-all-clusters-app does not currently support User-Intent
commissioning flow chip-device-ctrl > setup-payload generate -vr 0 -vi
65521 -pi 32769 -cf 1 -dc 2 -dv 3840 -ps 20202021 2022-02-26 03:17:50
matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332]
2022-02-26 03:17:50 matter-te-6 chip.SPL[22108] INFO SetupQRCode:
[MT:-24J00ID00KA0648G00]"
disabled: true

- label:
"Scan the QR code from the previous step using the DUT. Follow any
steps needed for the Commissioner/Commissionee to complete the
commissioning process using BLE"
verification:
"BLOCKED chip-all-clusters-app does not currently support User-Intent
commissioning flow"
disabled: true

- label:
"User-Intent Commissioning Flow: Use a QR code from a commissionee
that has their Custom Flow bit set to 1 and supports IP Network for
its Discovery Capability. Place the commissionee into Commissioning
Mode according to the devices specified instructions in its pairing
hint."
verification:
"BLOCKED chip-all-clusters-app does not currently support User-Intent
commissioning flow"
disabled: true

- label:
"Scan the QR code from the previous step using the DUT. Follow any
manufacturer-specific steps needed for the Commissioner/Commissionee
to complete the commissioning process using IP Network"
verification:
"BLOCKED chip-all-clusters-app does not currently support User-Intent
commissioning flow chip-device-ctrl > setup-payload generate -vr 0 -vi
65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:19:10
matter-te-6 chip.SPL[22108] INFO Manual pairing code: [34970112332]
2022-02-26 03:19:10 matter-te-6 chip.SPL[22108] INFO SetupQRCode:
[MT:-24J06VO00KA0648G00]"
disabled: true

- label:
"If (PICS_DT_THREAD), Custom Commissioning Flow: Use a QR code from a
commissionee that has their Custom Flow bit set to 2 and supports BLE
for its Discovery Capability. Place the commissionee into
commissioning mode according to the devices specified instructions in
the given URL."
verification:
"BLOCKED chip-all-clusters-app does not currently support Custom
Commissioning Flow chip-device-ctrl > setup-payload generate -vr 0 -vi
65521 -pi 32769 -cf 2 -dc 2 -dv 3840 -ps 20202021 2022-02-26 03:20:27
matter-te-6 chip.SPL[22108] INFO Manual pairing code:
[749701123365521327694] 2022-02-26 03:20:27 matter-te-6
chip.SPL[22108] INFO SetupQRCode: [MT:-24J0YXE00KA0648G00]"
disabled: true

- label:
"If (PICS_DT_THREAD), Scan the QR code from the previous step using
the DUT. Follow any manufacturer-specific steps needed for the
Commissioner/Commissionee to complete the commissioning process using
BLE"
verification:
"BLOCKED chip-all-clusters-app does not currently support Custom
Commissioning Flow"
disabled: true

- label:
"If (PICS_DT_THREAD), Custom Commissioning Flow: Use a QR code from a
commissionee that has their Custom Flow bit set to 2 and supports IP
Network for its Discovery Capability. Place the commissionee into
commissioning mode according to the devices specified instructions in
the given URL."
verification:
"BLOCKED chip-all-clusters-app does not currently support Custom
Commissioning Flow chip-device-ctrl > setup-payload generate -vr 0 -vi
65521 -pi 32769 -cf 2 -dc 4 -dv 3840 -ps 20202021 2022-02-26 03:22:27
matter-te-6 chip.SPL[22108] INFO Manual pairing code:
[749701123365521327694] 2022-02-26 03:22:27 matter-te-6
chip.SPL[22108] INFO SetupQRCode: [MT:-24J029Q00KA0648G00]"
disabled: true

- label:
"If (PICS_DT_THREAD), Scan the QR code from the previous step using
the DUT. Follow any manufacturer-specific steps needed for the
Commissioner/Commissionee to complete the commissioning process using
IP Network"
verification:
"BLOCKED chip-all-clusters-app does not currently support Custom
Commissioning Flow"
disabled: true
Loading

0 comments on commit 99dd36a

Please sign in to comment.