Skip to content

Commit aa1ac5e

Browse files
bhargavi-ctbhargavi-ct
andauthored
Update test_stats_comparison script to work for WIFI6 APs also (#1061)
Signed-off-by: bhargavi-ct <[email protected]> Co-authored-by: bhargavi-ct <[email protected]>
1 parent 37093d9 commit aa1ac5e

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

tests/e2e/basic/wifi_stats_comparison/wpa3_personal/test_stats_comparison.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
import allure
1212
import pytest
1313

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]
1615

1716
setup_params_general = {
1817
"mode": "BRIDGE",
@@ -25,29 +24,25 @@
2524
"2G": {
2625
"band": "2G",
2726
"channel-width": 20,
28-
"channel-mode": "EHT",
2927
"channel": 6,
3028
"country": "US"
3129
},
3230
"5G": {
3331
"band": "5G",
3432
"channel-width": 80,
35-
"channel-mode": "HE",
3633
"channel": 36,
3734
"country": "US"
3835
},
3936
"6G": {
4037
"band": "6G",
4138
"channel-width": 320,
42-
"channel-mode": "EHT",
4339
"channel": 33,
4440
"country": "US"
4541
}
4642
},
4743
"radius": False
4844
}
4945

50-
5146
@allure.feature("Wifi_stats_comparison")
5247
@allure.parent_suite("Wifi_stats_comparison")
5348
@allure.suite(suite_name="WPA3 PERSONAL")
@@ -79,28 +74,28 @@ def test_stats_comparison(self, get_test_library, get_test_device_logs,
7974
client_type):
8075
"""
8176
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-
8377
Marker:
8478
"stats_comparison and bridge and wap3_personal"
8579
"""
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"]
8685

87-
# check for the AP band support
88-
get_test_library.check_band_ap(band="sixg")
8986
ssid_names = []
90-
bands = ["twog","fiveg","sixg"]
91-
for i in range(0,3):
87+
for i in range(0,len(bands)):
9288
ssid_names.append(setup_params_general["ssid_modes"]["wpa3_personal"][i]["ssid_name"])
9389
# bands.append(setup_params_general["ssid_modes"]["wpa3_personal"][i]["appliedRadios"][0])
9490
# logging.info(f"ssid_names:{ssid_names} and bands: {bands}")
9591

9692
security_key = "OpenWifi"
9793
security = "wpa3"
9894
mode = "BRIDGE"
99-
10095
get_test_library.wifi_stats_comparison(ssid_list=ssid_names, bands=bands, security=security,
10196
dut_data=setup_configuration,passkey=security_key,
10297
mode=mode, num_sta=num_stations,
10398
sta_rows=["ssid", "ip", "mode", "channel", "signal", "mac", "parent dev"],
10499
get_target_object=get_target_object)
105100

106-
assert True
101+
assert True

0 commit comments

Comments
 (0)