Skip to content

Commit 5552342

Browse files
manjunath-grlrestyled-commits
authored andcommitted
Semi-automated testcases Nov 03 (#30197)
* Manual-->Semi-automated testcases TC-CNET-4.1 TC-CNET-4.2 TC-CNET-4.3 TC-CNET-4.4 TC-CNET-4.5 TC-CNET-4.6 TC-CNET-4.9 TC-CNET-4.10 TC-CNET-4.11 TC-CNET-4.15 TC-CNET-4.16 TC-CNET-4.22 * Restyled by whitespace * Modified Darwin ciTests.json disabled CNET-4.3 * Modifed ciTests.json file --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 7d5a7fe commit 5552342

12 files changed

+1772
-1717
lines changed

src/app/tests/suites/certification/Test_TC_CNET_4_1.yaml

+130-159
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
1514

1615
name:
1716
12.4.1. [TC-CNET-4.1] [WiFi] Verification for attributes check [DUT-Server]
@@ -21,197 +20,169 @@ PICS:
2120

2221
config:
2322
nodeId: 0x12344321
24-
cluster: "Basic Information"
23+
cluster: "Network Commissioning"
2524
endpoint: 0
25+
PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID:
26+
type: octet_string
27+
defaultValue: "hex:47524C50726976617465"
2628

2729
tests:
28-
- label: "Preconditions"
29-
verification: |
30-
1. DUT supports CNET.S.F00(WI)
31-
2. DUT has a Network Commissioning cluster on endpoint PIXIT.CNET.ENDPOINT_WIFI with FeatureMap attribute of 1
32-
3. DUT is commissioned on PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
33-
4. TH can communicate with the DUT
34-
disabled: true
35-
3630
- label: "Step 1: Factory reset the DUT"
3731
verification: |
38-
39-
disabled: true
40-
32+
Reset Devices to factory defaults
33+
cluster: "LogCommands"
34+
command: "UserPrompt"
35+
PICS: PICS_USER_PROMPT
36+
arguments:
37+
values:
38+
- name: "message"
39+
value: "Factory Reset the DUT and enter 'y' after success"
40+
- name: "expectedValue"
41+
value: "y"
42+
43+
#Issue: https://github.com/project-chip/connectedhomeip/issues/30196
4144
- label: "Step 2: Commission TH and DUT over BLE to setup the Wi-Fi"
4245
verification: |
43-
44-
disabled: true
46+
./chip-tool pairing ble-wifi 0x12344321 <ssid> <password> <setup-pin-code> <discriminator>
47+
48+
[1698912271.738597][32363:32366] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0005
49+
[1698912271.738606][32363:32366] CHIP:CTL: Received CommissioningComplete response, errorCode=0
50+
[1698912271.738613][32363:32366] CHIP:CTL: Successfully finished commissioning step 'SendComplete'
51+
[1698912271.738617][32363:32366] CHIP:CTL: Commissioning stage next step: 'SendComplete' -> 'Cleanup'
52+
[1698912271.738622][32363:32366] CHIP:CTL: Performing next commissioning step 'Cleanup'
53+
[1698912271.738639][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: MarkForEviction Type:1 LSID:50170
54+
[1698912271.738642][32363:32366] CHIP:SC: SecureSession[0x7fbb04014a50, LSID:50170]: State change 'kActive' --> 'kPendingEviction'
55+
[1698912271.738666][32363:32366] CHIP:IN: SecureSession[0x7fbb04014a50]: Released - Type:1 LSID:50170
56+
[1698912271.738672][32363:32366] CHIP:CTL: Successfully finished commissioning step 'Cleanup'
57+
[1698912271.738677][32363:32366] CHIP:TOO: Device commissioning completed with success
58+
[1698912271.738691][32363:32366] CHIP:DMG: ICR moving to [AwaitingDe]
59+
cluster: "LogCommands"
60+
command: "UserPrompt"
61+
PICS: PICS_USER_PROMPT
62+
arguments:
63+
values:
64+
- name: "message"
65+
value: enter 'y' after successfull Commission"
66+
- name: "expectedValue"
67+
value: "y"
4568

4669
- label:
4770
"Step 3: TH reads Descriptor Cluster from the DUT with EP0 TH reads
4871
ServerList from the DUT"
49-
verification: |
50-
./chip-tool descriptor read server-list 1 0
51-
52-
Via the TH (chip-tool), verify that the server list has value as 49.
53-
54-
[1654250292.680821][5262:5267] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 812190876
55-
[1654250292.681079][5262:5267] CHIP:TOO: server list: 26 entries
56-
[1654250292.681196][5262:5267] CHIP:TOO: [1]: 3
57-
[1654250292.681264][5262:5267] CHIP:TOO: [2]: 4
58-
[1654250292.681327][5262:5267] CHIP:TOO: [3]: 29
59-
[1654250292.681389][5262:5267] CHIP:TOO: [4]: 30
60-
[1654250292.681450][5262:5267] CHIP:TOO: [5]: 31
61-
[1654250292.681525][5262:5267] CHIP:TOO: [6]: 40
62-
[1654250292.681578][5262:5267] CHIP:TOO: [7]: 42
63-
[1654250292.681629][5262:5267] CHIP:TOO: [8]: 43
64-
[1654250292.681680][5262:5267] CHIP:TOO: [9]: 44
65-
[1654250292.681731][5262:5267] CHIP:TOO: [10]: 45
66-
[1654250292.681782][5262:5267] CHIP:TOO: [11]: 46
67-
[1654250292.681833][5262:5267] CHIP:TOO: [12]: 47
68-
[1654250292.681911][5262:5267] CHIP:TOO: [13]: 48
69-
[1654250292.681977][5262:5267] CHIP:TOO: [14]: 49
70-
[1654250292.682038][5262:5267] CHIP:TOO: [15]: 50
71-
[1654250292.682100][5262:5267] CHIP:TOO: [16]: 51
72-
[1654250292.682160][5262:5267] CHIP:TOO: [17]: 52
73-
[1654250292.682220][5262:5267] CHIP:TOO: [18]: 53
74-
[1654250292.682281][5262:5267] CHIP:TOO: [19]: 54
75-
[1654250292.682342][5262:5267] CHIP:TOO: [20]: 55
76-
[1654250292.682404][5262:5267] CHIP:TOO: [21]: 60
77-
[1654250292.682467][5262:5267] CHIP:TOO: [22]: 62
78-
[1654250292.682528][5262:5267] CHIP:TOO: [23]: 63
79-
[1654250292.682590][5262:5267] CHIP:TOO: [24]: 64
80-
[1654250292.682651][5262:5267] CHIP:TOO: [25]: 65
81-
[1654250292.682714][5262:5267] CHIP:TOO: [26]: 1029
82-
disabled: true
72+
cluster: "Descriptor"
73+
command: "readAttribute"
74+
attribute: "ServerList"
75+
response:
76+
constraints:
77+
type: list
78+
contains: [49]
8379

8480
- label: "Step 4: TH reads FeatureMap attribute from the DUT"
85-
verification: |
86-
./chip-tool networkcommissioning read feature-map 1 0
87-
88-
Via the TH (chip-tool), verify that FeatureMap attribute value as 1 for WiFiNetworkInterface.
89-
90-
[1653473169.784344][29771:29776] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_FFFC DataVersion: 1600858167
91-
[1653473169.784413][29771:29776] CHIP:TOO: FeatureMap: 1
92-
[1653473169.784516][29771:29776] CHIP:EM: Sending Standalone Ack for MessageCounter:3349837 on exchange 7603i
93-
disabled: true
94-
95-
- label: "Step 5: TH reads the MaxNetworks attribute from the DUT"
96-
PICS: CNET.S.A0000
97-
verification: |
98-
./chip-tool networkcommissioning read max-networks 1 0
99-
100-
Via the TH (chip-tool), Verify the MaxNetworks attribute that contains value in the range of 1 to 255.
101-
102-
[1653473181.407542][29777:29782] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0000 DataVersion: 1600858167
103-
[1653473181.407621][29777:29782] CHIP:TOO: MaxNetworks: 1
104-
[1653473181.407725][29777:29782] CHIP:EM: Sending Standalone Ack for MessageCounter:15199397 on exchange 5841i
105-
disabled: true
81+
command: "readAttribute"
82+
attribute: "FeatureMap"
83+
response:
84+
value: 1
85+
constraints:
86+
type: bitmap32
10687

10788
- label:
108-
"Step 6: TH saves the MaxNetworks attribute value as
109-
'MaxNetworksValue' for future use"
110-
verification: |
111-
112-
disabled: true
89+
"Step 5 & 6: TH reads the MaxNetworks attribute from the DUT. TH saves
90+
the MaxNetworks attribute value as 'MaxNetworksValue' for future use"
91+
PICS: CNET.S.A0000
92+
command: "readAttribute"
93+
attribute: "MaxNetworks"
94+
response:
95+
saveAs: MaxNetworksValue
96+
constraints:
97+
type: int8u
98+
minValue: 1
99+
maxValue: 255
113100

114101
- label: "Step 7: TH reads the Networks attribute list from the DUT"
115102
PICS: CNET.S.A0001
116-
verification: |
117-
./chip-tool networkcommissioning read networks 1 0
118-
119-
Via the TH (chip-tool), Verify:
120-
-the Networks attribute has NetworkID that should the type of octstr with a length range of 1 to 32.
121-
-that the connected status is in tthe type of bool value as TRUE.
122-
123-
[1654250379.881780][5309:5314] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3741733376
124-
[1654250379.881974][5309:5314] CHIP:TOO: Networks: 1 entries
125-
[1654250379.882123][5309:5314] CHIP:TOO: [1]: {
126-
[1654250379.882196][5309:5314] CHIP:TOO: NetworkID: 47524C50726976617465
127-
[1654250379.882257][5309:5314] CHIP:TOO: Connected: TRUE
128-
[1654250379.882312][5309:5314] CHIP:TOO: }
129-
disabled: true
103+
command: "readAttribute"
104+
attribute: "Networks"
105+
response:
106+
constraints:
107+
contains:
108+
[
109+
{
110+
NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID,
111+
Connected: true,
112+
},
113+
]
130114

131115
- label: "Step 8: TH reads ScanMaxTimeSeconds attribute from the DUT"
132116
PICS: CNET.S.A0002
133-
verification: |
134-
./chip-tool networkcommissioning read scan-max-time-seconds 1 0
135-
136-
Via the TH (chip-tool), Verify the ScanMaxTimeSeconds attribute that contains value in the range of 1 to 255 secs.
137-
138-
[1653473784.850830][29813:29818] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0002 DataVersion: 1600858167
139-
[1653473784.850916][29813:29818] CHIP:TOO: ScanMaxTimeSeconds: 10
140-
[1653473784.851029][29813:29818] CHIP:EM: Sending Standalone Ack for MessageCounter:16671548 on exchange 37205i
141-
disabled: true
142-
143-
- label: "Step 9: TH reads ConnectMaxTimeSeconds Attribute from the DUT"
117+
command: "readAttribute"
118+
attribute: "ScanMaxTimeSeconds"
119+
response:
120+
constraints:
121+
type: int8u
122+
minValue: 1
123+
maxValue: 255
124+
125+
- label: "Step 9: TH reads ConnectMaxTimeSeconds attribute from the DUT"
144126
PICS: CNET.S.A0003
145-
verification: |
146-
./chip-tool networkcommissioning read connect-max-time-seconds 1 0
147-
148-
Via the TH (chip-tool), Verify the ConnectMaxTimeSeconds attribute that contains value in the range of 1 to 255 secs.
149-
150-
[1653473821.367214][29821:29826] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0003 DataVersion: 1600858167
151-
[1653473821.367283][29821:29826] CHIP:TOO: ConnectMaxTimeSeconds: 20
152-
[1653473821.367379][29821:29826] CHIP:EM: Sending Standalone Ack for MessageCounter:187119 on exchange 50022i
153-
disabled: true
127+
command: "readAttribute"
128+
attribute: "ConnectMaxTimeSeconds"
129+
response:
130+
constraints:
131+
type: int8u
132+
minValue: 1
133+
maxValue: 255
154134

155135
- label: "Step 10: TH reads InterfaceEnabled attribute from the DUT"
156136
PICS: CNET.S.A0004
157-
verification: |
158-
./chip-tool networkcommissioning read interface-enabled 1 0
159-
160-
Via the TH (chip-tool), Verify the InterfaceEnabled attribute that contains bool value as True.
161-
162-
[1653473893.275901][29834:29839] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0004 DataVersion: 1600858167
163-
[1653473893.275964][29834:29839] CHIP:TOO: InterfaceEnabled: TRUE
164-
[1653473893.276084][29834:29839] CHIP:EM: Sending Standalone Ack for MessageCounter:13157245 on exchange 55578i
165-
disabled: true
137+
command: "readAttribute"
138+
attribute: "InterfaceEnabled"
139+
response:
140+
value: true
141+
constraints:
142+
type: boolean
166143

167144
- label: "Step 11: TH reads LastNetworkingStatus attribute from the DUT"
168145
PICS: CNET.S.A0005
169-
verification: |
170-
./chip-tool networkcommissioning read last-networking-status 1 0
171-
172-
Via the TH (chip-tool), Verify the LastNetworkingStatus attribute that contains value as 0 that mentions success.
173-
174-
[1653473918.484769][29840:29845] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0005 DataVersion: 1600858167
175-
[1653473918.484843][29840:29845] CHIP:TOO: LastNetworkingStatus: 0
176-
[1653473918.484940][29840:29845] CHIP:EM: Sending Standalone Ack for MessageCounter:10161085 on exchange 18769
177-
disabled: true
146+
command: "readAttribute"
147+
attribute: "LastNetworkingStatus"
148+
response:
149+
value: 0
150+
constraints:
151+
type: NetworkCommissioningStatusEnum
178152

179153
- label:
180-
"Step 12: TH reads the LastNetworkID attribute from the DUT TH reads
154+
"Step 12a: TH reads the LastNetworkID attribute from the DUT. TH reads
181155
the Networks attribute from the DUT"
182156
PICS: CNET.S.A0006
183-
verification: |
184-
./chip-tool networkcommissioning read last-network-id 1 0
185-
186-
Via the TH (chip-tool), Verify:
187-
-that the LastNetworkID attribute that contains NetworkID that should be the type of octstr with a length range 1 to 32.
188-
-if the Networks attribute list is Empty, then LastNetworkID attribute value is null.
189-
190-
[1653474059.383553][27286:27291] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0006 DataVersion: 1912591449
191-
[1653474059.383618][27286:27291] CHIP:TOO: LastNetworkID: 47524C50726976617465
192-
[1653474059.383723][27286:27291] CHIP:EM: Sending Standalone Ack for MessageCounter:6975079 on exchange 34674i
193-
194-
./chip-tool networkcommissioning read networks 1 0
195-
196-
Via the TH (chip-tool), Verify the lastnetworkID is present in the NetworkID in the entries of Network.
197-
198-
[1654250379.881780][5309:5314] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0001 DataVersion: 3741733376
199-
[1654250379.881974][5309:5314] CHIP:TOO: Networks: 1 entries
200-
[1654250379.882123][5309:5314] CHIP:TOO: [1]: {
201-
[1654250379.882196][5309:5314] CHIP:TOO: NetworkID: 47524C50726976617465
202-
[1654250379.882257][5309:5314] CHIP:TOO: Connected: TRUE
203-
[1654250379.882312][5309:5314] CHIP:TOO: }
204-
disabled: true
157+
command: "readAttribute"
158+
attribute: "LastNetworkID"
159+
response:
160+
value: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID
161+
constraints:
162+
type: octet_string
163+
minLength: 1
164+
maxLength: 32
165+
166+
- label: "Step 12b: TH reads the Networks attribute list from the DUT"
167+
PICS: CNET.S.A0001
168+
command: "readAttribute"
169+
attribute: "Networks"
170+
response:
171+
constraints:
172+
contains:
173+
[
174+
{
175+
NetworkID: PIXIT.CNET.WIFI_1ST_ACCESSPOINT_SSID,
176+
Connected: true,
177+
},
178+
]
205179

206180
- label:
207181
"Step 13: TH reads the LastConnectErrorValue attribute from the DUT"
208182
PICS: CNET.S.A0007
209-
verification: |
210-
./chip-tool networkcommissioning read last-connect-error-value 1 0
211-
212-
Via the TH (chip-tool), Verify the LastConnectErrorValue attribute that contains value as null.
213-
214-
[1653474102.061746][29860:29865] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0031 Attribute 0x0000_0007 DataVersion: 1600858167
215-
[1653474102.061812][29860:29865] CHIP:TOO: LastConnectErrorValue: null
216-
[1653474102.061934][29860:29865] CHIP:EM: Sending Standalone Ack for MessageCounter:5193529 on exchange 29546i
217-
disabled: true
183+
command: "readAttribute"
184+
attribute: "LastConnectErrorValue"
185+
response:
186+
value: null
187+
constraints:
188+
type: int32s

0 commit comments

Comments
 (0)