Skip to content

Commit

Permalink
Adding YAML Test Scripts - Dec 14th (#12984)
Browse files Browse the repository at this point in the history
* 1.Disabling location attribute read due to issue#12983
2.Adding manual test cases
-Test_TC_DD_1_5
-Test_TC_DD_1_6
-Test_TC_DD_1_7
-Test_TC_DD_1_8
-Test_TC_DD_1_9

* Adding autogenerated files.

* Updating autogenerated files after rebase.
  • Loading branch information
kvikrambhat authored Dec 17, 2021
1 parent 866e3e0 commit a9b9fca
Show file tree
Hide file tree
Showing 11 changed files with 741 additions and 224 deletions.
9 changes: 9 additions & 0 deletions examples/chip-tool/templates/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ function getTests()
'Test_TC_CC_9_3',
];

const DeviceDiscovery = [
'Test_TC_DD_1_5',
'Test_TC_DD_1_6',
'Test_TC_DD_1_7',
'Test_TC_DD_1_8',
'Test_TC_DD_1_9',
];

const DeviceManagement = [
'Test_TC_DM_1_1',
'Test_TC_DM_3_1',
Expand Down Expand Up @@ -207,6 +215,7 @@ function getTests()
BinaryInput, //
BooleanState, //
ColorControl, //
DeviceDiscovery, //
DeviceManagement, //
ElectricalMeasurement, //
FlowMeasurement, //
Expand Down
6 changes: 4 additions & 2 deletions src/app/tests/suites/TestBasicInformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"

#Disabled due to issue-12983
- label: "Read location"
disabled: true
command: "readAttribute"
attribute: "location"
response:
Expand All @@ -34,8 +35,9 @@ tests:
attribute: "location"
arguments:
value: "us"

#Disabled due to issue-12983
- label: "Read back location"
disabled: true
command: "readAttribute"
attribute: "location"
response:
Expand Down
6 changes: 4 additions & 2 deletions src/app/tests/suites/TestGroupMessaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ tests:
groupId: "1234"
arguments:
value: "us"

#Disabled due to issue-12983
- label: "Read back Attribute"
disabled: true
command: "readAttribute"
attribute: "location"
response:
Expand All @@ -46,8 +47,9 @@ tests:
groupId: "1234"
arguments:
value: ""

#Disabled due to issue-12983
- label: "Read back Attribute"
disabled: true
command: "readAttribute"
attribute: "location"
response:
Expand Down
31 changes: 31 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DD_1_5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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.1.5. [TC-DD-1.5] NFC Rules of advertisement and Onboarding

config:
cluster: "Basic"
endpoint: 0

tests:
- label: "Step 1"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify that the onboarding payload for NFC tags SHALL use
NDEF URI Record Type Definition as defined by NFC Forum in
URI Record Type Definition RTD URI"
48 changes: 48 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DD_1_6.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.

name: 7.1.6. [TC-DD-1.6] QR Code Format and Label

config:
cluster: "Basic"
endpoint: 0

tests:
- label: "Step 1"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value: "Scan the DUTs QR code using a QR code reader"

- label: "Step 1 verification"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify the QR code gets scanned successfully and the QR
code must be of sufficient size and contrast respective to
surface material as to be readable with standard readers
such as smartphones in normal lighting conditions"

- label: "Step 2 verificaiton"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value: "Verify QR code version is 1 or higher"
41 changes: 41 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DD_1_7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.1.7. [TC-DD-1.7] Setup Code Format and Label

config:
cluster: "Basic"
endpoint: 0

tests:
- label: "Precondition"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify manual pairing code is printed on the device or in
additional provided materials"

- label: "Step 1"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify that the Manual Pairing Code should be printed using
a minimum font size of 6 points typically producing a
typeface height of 2.1 mm"
40 changes: 40 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DD_1_8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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.1.8. [TC-DD-1.8] QR Code Onboarding Payload Verification [DUT -
Commissioner]

config:
cluster: "Basic"
endpoint: 0

tests:
- label: "Step 1"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value: "Scan the device QR code using DUT"

- label: "Step 1 verification"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify the DUT is able to scan and parse the QR code
successfully to onboard the device onto the CHIP network"
52 changes: 52 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DD_1_9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.1.9. [TC-DD-1.9] Manual Pairing Code Payload Verification [DUT -
Commissioner]

config:
cluster: "Basic"
endpoint: 0

tests:
- label: "Precondition"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify that the manual pairing code is printed on the
device or in additional provided materials"

- label: "Step 1"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Provide the 11 digit or 21 digit pairing code from the
Device in text speech or any format supported by DUT"

- label: "Step 1 verification"
cluster: "LogCommands"
command: "Log"
arguments:
values:
- name: "message"
value:
"Verify that the manual pairing code can be provided to DUT
and parsed to onboard the device onto the CHIP network"
9 changes: 9 additions & 0 deletions src/darwin/Framework/CHIP/templates/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ function getTests()
'Test_TC_CC_9_3',
];

const DeviceDiscovery = [
'Test_TC_DD_1_5',
'Test_TC_DD_1_6',
'Test_TC_DD_1_7',
'Test_TC_DD_1_8',
'Test_TC_DD_1_9',
];

const DeviceManagement = [
'Test_TC_DM_1_1',
'Test_TC_DM_3_1',
Expand Down Expand Up @@ -189,6 +197,7 @@ function getTests()
BinaryInput, //
BooleanState, //
ColorControl, //
DeviceDiscovery, //
DeviceManagement, //
ElectricalMeasurement, //
FlowMeasurement, //
Expand Down
Loading

0 comments on commit a9b9fca

Please sign in to comment.