11
11
import allure
12
12
import pytest
13
13
14
-
15
- pytestmark = [pytest .mark .ow_sanity_lf , pytest .mark .stats_comparison , pytest .mark .bridge , pytest .mark .wap3_personal ]
14
+ pytestmark = [pytest .mark .ow_sanity_lf , pytest .mark .wifi_stats_comparison , pytest .mark .bridge , pytest .mark .wap3_personal ]
16
15
17
16
setup_params_general = {
18
17
"mode" : "BRIDGE" ,
25
24
"2G" : {
26
25
"band" : "2G" ,
27
26
"channel-width" : 20 ,
28
- "channel-mode" : "EHT" ,
29
27
"channel" : 6 ,
30
28
"country" : "US"
31
29
},
32
30
"5G" : {
33
31
"band" : "5G" ,
34
32
"channel-width" : 80 ,
35
- "channel-mode" : "HE" ,
36
33
"channel" : 36 ,
37
34
"country" : "US"
38
35
},
39
36
"6G" : {
40
37
"band" : "6G" ,
41
38
"channel-width" : 320 ,
42
- "channel-mode" : "EHT" ,
43
39
"channel" : 33 ,
44
40
"country" : "US"
45
41
}
46
42
},
47
43
"radius" : False
48
44
}
49
45
50
-
51
46
@allure .feature ("Wifi_stats_comparison" )
52
47
@allure .parent_suite ("Wifi_stats_comparison" )
53
48
@allure .suite (suite_name = "WPA3 PERSONAL" )
@@ -79,28 +74,28 @@ def test_stats_comparison(self, get_test_library, get_test_device_logs,
79
74
client_type ):
80
75
"""
81
76
Test Description: The iwinfo command on the AP side displays key wireless parameters such as configured SSIDs, BSSIDs, operating channels, channel bandwidth, frequency, encryption, etc. Verify that these parameters shown in iwinfo accurately reflect in the controller’s stats.
82
-
83
77
Marker:
84
78
"stats_comparison and bridge and wap3_personal"
85
79
"""
80
+ ap_mode = get_testbed_details ["device_under_tests" ][0 ].get ("mode" , "" )
81
+ if ap_mode == "wifi6e" or ap_mode == "wifi7" :
82
+ bands = ["twog" , "fiveg" , "sixg" ]
83
+ else :
84
+ bands = ["twog" , "fiveg" ]
86
85
87
- # check for the AP band support
88
- get_test_library .check_band_ap (band = "sixg" )
89
86
ssid_names = []
90
- bands = ["twog" ,"fiveg" ,"sixg" ]
91
- for i in range (0 ,3 ):
87
+ for i in range (0 ,len (bands )):
92
88
ssid_names .append (setup_params_general ["ssid_modes" ]["wpa3_personal" ][i ]["ssid_name" ])
93
89
# bands.append(setup_params_general["ssid_modes"]["wpa3_personal"][i]["appliedRadios"][0])
94
90
# logging.info(f"ssid_names:{ssid_names} and bands: {bands}")
95
91
96
92
security_key = "OpenWifi"
97
93
security = "wpa3"
98
94
mode = "BRIDGE"
99
-
100
95
get_test_library .wifi_stats_comparison (ssid_list = ssid_names , bands = bands , security = security ,
101
96
dut_data = setup_configuration ,passkey = security_key ,
102
97
mode = mode , num_sta = num_stations ,
103
98
sta_rows = ["ssid" , "ip" , "mode" , "channel" , "signal" , "mac" , "parent dev" ],
104
99
get_target_object = get_target_object )
105
100
106
- assert True
101
+ assert True
0 commit comments