-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
Copy pathTest_TC_CNET_4_4.yaml
147 lines (137 loc) · 5.01 KB
/
Test_TC_CNET_4_4.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Copyright (c) 2023 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 atour sweet
#
# 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:
12.4.4. [TC-CNET-4.4] [WiFi] Verification for ScanNetworks command
[DUT-Server]
PICS:
- CNET.S.F00
config:
nodeId: 0x12344321
cluster: "Network Commissioning"
#PIXIT.CNET.ENDPOINT_WIFI
endpoint: 0
PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID:
type: octet_string
defaultValue: "hex:47524C50726976617465"
tests:
- label: "Precondition: TH reads FeatureMap attribute from the DUT"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: bitmap32
- label:
"Step 1a: TH sends ScanNetworks command to the DUT with the SSID field
set to 'null' and Breadcrumb field set to 1"
PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx
command: "ScanNetworks"
arguments:
values:
- name: "SSID"
value: null
- name: "Breadcrumb"
value: 1
response:
values:
- name: "NetworkingStatus"
constraints:
anyOf: [0, 1, 5, 6, 12]
- name: "DebugText"
constraints:
maxLength: 512
- name: "WiFiScanResults"
constraints:
type: list
- label:
"Step 1a: Verify each element in the WiFiScanResults list will have
the following fields:"
verification: |
Via the TH (chip-tool), verify:
-the Security value is in the type of map8 with length range 0 to 254.
-the SSID value is in the ype of octstr with length range 1 to 32.
-the BSSID value is in the type of octstr with length range of 6.
-the Channel is in the type of uint16 with range 0 to 65,535.
-the WiFi Band is in the of type enum8 with a range of -128 to 127.
-the RSSI is in the of type int8 with a range of -120 to 0.
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 1b: TH reads Breadcrumb attribute from the General Commissioning
Cluster"
cluster: "General Commissioning"
command: "readAttribute"
attribute: "Breadcrumb"
response:
value: 1
constraints:
type: int64u
- label:
"Step 2a: TH sends ScanNetworks Command to the DUT with SSID field set
to PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID and Breadcrumb field set to 2"
PICS: CNET.S.C00.Rsp && CNET.S.C01.Tx
command: "ScanNetworks"
arguments:
values:
- name: "SSID"
value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
- name: "Breadcrumb"
value: 2
response:
values:
- name: "NetworkingStatus"
value: 0
- name: "DebugText"
constraints:
maxLength: 512
- name: "WiFiScanResults"
constraints:
type: list
- label:
"Step 2a: Verify each element in the WiFiScanResults list will have
the following fields: "
verification: |
Via the TH (chip-tool), verify:
-the Security value is in the type of map8 with length range 0 to 254.
-the SSID value is in the ype of octstr with length range 1 to 32.
-the BSSID value is in the type of octstr with length range of 6.
-the Channel is in the type of uint16 with range 0 to 65,535.
-the WiFi Band is in the of type enum8 with a range of -128 to 127.
-the RSSI is in the of type int8 with a range of -120 to 0.
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && CNET.S.C00.Rsp && CNET.S.C01.Tx
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"Step 2b: TH reads Breadcrumb attribute from the General Commissioning
Cluster"
cluster: "General Commissioning"
command: "readAttribute"
attribute: "Breadcrumb"
response:
value: 2
constraints:
type: int64u