@@ -112,19 +112,31 @@ async def test_TC_CNET_4_1(self):
112
112
"Number of entries in the Networks attribute is less than or equal to 'MaxNetworksValue'" )
113
113
114
114
self .step (5 )
115
+ scan_max_time_seconds = await self .read_single_attribute_check_success (
116
+ cluster = Clusters .NetworkCommissioning ,
117
+ attribute = Clusters .NetworkCommissioning .Attributes .ScanMaxTimeSeconds )
118
+ matter_asserts .assert_int_in_range (max_networks_count , min_value = 1 , max_value = 255 , description = "ScanMaxTimeSeconds" )
119
+
120
+ self .step (6 )
121
+ scan_max_time_seconds = await self .read_single_attribute_check_success (
122
+ cluster = Clusters .NetworkCommissioning ,
123
+ attribute = Clusters .NetworkCommissioning .Attributes .ConnectMaxTimeSeconds )
124
+ matter_asserts .assert_int_in_range (max_networks_count , min_value = 1 , max_value = 255 , description = "ConnectMaxTimeSeconds" )
125
+
126
+ self .step (7 )
115
127
interface_enabled = await self .read_single_attribute_check_success (
116
128
cluster = Clusters .NetworkCommissioning ,
117
129
attribute = Clusters .NetworkCommissioning .Attributes .InterfaceEnabled )
118
130
asserts .assert_true (interface_enabled , "Verify that InterfaceEnabled attribute value is true" )
119
131
120
- self .step (6 )
132
+ self .step (8 )
121
133
last_networking_status = await self .read_single_attribute_check_success (
122
134
cluster = Clusters .NetworkCommissioning ,
123
135
attribute = Clusters .NetworkCommissioning .Attributes .LastNetworkingStatus )
124
136
expected_status = Clusters .NetworkCommissioning .Enums .NetworkCommissioningStatusEnum .kSuccess
125
137
asserts .assert_is (last_networking_status , expected_status , "Verify that LastNetworkingStatus attribute value is success" )
126
138
127
- self .step (7 )
139
+ self .step (9 )
128
140
last_network_id = await self .read_single_attribute_check_success (
129
141
cluster = Clusters .NetworkCommissioning ,
130
142
attribute = Clusters .NetworkCommissioning .Attributes .LastNetworkID )
@@ -134,12 +146,17 @@ async def test_TC_CNET_4_1(self):
134
146
asserts .assert_true (isinstance (last_network_id , bytes ) and 1 <= len (last_network_id ) <= 32 ,
135
147
"Verify LastNetworkID attribute value will be of type octstr with a length range of 1 to 32" )
136
148
137
- self .step (8 )
149
+ self .step (10 )
138
150
last_connect_error_value = await self .read_single_attribute_check_success (
139
151
cluster = Clusters .NetworkCommissioning ,
140
152
attribute = Clusters .NetworkCommissioning .Attributes .LastConnectErrorValue )
141
153
asserts .assert_is (last_connect_error_value , NullValue , "Verify that LastConnectErrorValue attribute value is null" )
142
154
155
+ self .step (11 )
156
+ supported_wifi_bands = await self .read_single_attribute_check_success (
157
+ cluster = Clusters .NetworkCommissioning ,
158
+ attribute = Clusters .NetworkCommissioning .Attributes .SupportedWiFiBands )
159
+
143
160
144
161
if __name__ == "__main__" :
145
162
default_matter_test_main ()
0 commit comments