From 6beddb444ab8fb2989a3912116ae8beb17cf5d47 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Mon, 13 Sep 2021 10:40:06 +0530 Subject: [PATCH 1/2] Added Wpa3_personal security mode to Wifi-capacity test --- .../wpa3_personal/__init__.py | 0 .../wpa3_personal/test_bridge_mode.py | 464 ++++++++++++++++++ .../wpa3_personal/test_nat_mode.py | 448 +++++++++++++++++ .../wpa3_personal/test_vlan_mode.py | 435 ++++++++++++++++ 4 files changed, 1347 insertions(+) create mode 100644 tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/__init__.py create mode 100644 tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_bridge_mode.py create mode 100644 tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_nat_mode.py create mode 100644 tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_vlan_mode.py diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/__init__.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_bridge_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_bridge_mode.py new file mode 100644 index 000000000..5fcc4c8ca --- /dev/null +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_bridge_mode.py @@ -0,0 +1,464 @@ +""" + + Performance Test: Wifi Capacity Test : BRIDGE Mode + pytest -m "wifi_capacity_test and BRIDGE" + +""" +import os +import pytest +import allure + +pytestmark = [pytest.mark.wifi_capacity_test, pytest.mark.bridge] +# """pytest.mark.usefixtures("setup_test_run")"""] + + +setup_params_general_dual_band = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_dual_band", "appliedRadios": ["2G", "5G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_dual_band], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.bridge +@pytest.mark.twog +@pytest.mark.fiveg +@pytest.mark.dual_band +@pytest.mark.wpa3_personal +@pytest.mark.wifi_capacity_test +class TestWifiCapacityBRIDGEModeDualBand(object): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and BRIDGE" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3693", name="WIFI-3693") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and dual_band" + """ + lf_tools.reset_scenario() + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + get_vif_state.append(ssid_name) + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + # lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + influx_tags = ["tcp", "download", "2.4G-5G Combined"] + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256", + influx_tags=influx_tags, + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3694", name="WIFI-3694") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_bridge_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and dual_band" + """ + lf_tools.reset_scenario() + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + get_vif_state.append(ssid_name) + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + # lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + influx_tags = ["udp", "download", "2.4G-5G Combined"] + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256", + influx_tags=influx_tags, + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3691", name="WIFI-3691") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_bridge_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and dual_band" + """ + lf_tools.reset_scenario() + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + # lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + influx_tags = ["tcp", "bidirectional", "2.4G-5G Combined"] + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256", + influx_tags=influx_tags, + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3692", name="WIFI-3692") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_bridge_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and dual_band" + """ + lf_tools.reset_scenario() + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + # lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + influx_tags = ["udp", "bidirectional", "2.4G-5G Combined"] + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", batch_size="1,5,10,20,40,64,128,256", + influx_tags=influx_tags, + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + +setup_params_general_2G = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_2G], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa3_personal +@pytest.mark.twog +@pytest.mark.twog_band +class TestWifiCapacityBRIDGEMode2G(object): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and BRIDGE" + """ + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3651", name="WIFI-3651") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3658", name="WIFI-3658") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_bridge_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3668", name="WIFI-3668") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_bridge_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3662", name="WIFI-3662") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_bridge_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + +setup_params_general_5G = { + "mode": "BRIDGE", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_5G], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa3_personal +@pytest.mark.fiveg +@pytest.mark.fiveg_band +class TestWifiCapacityBRIDGEMode5G(object): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and BRIDGE" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3653", name="WIFI-3653") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3659", name="WIFI-3659") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_bridge_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3669", name="WIFI-3669") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_bridge_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3663", name="WIFI-3663") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_bridge_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test BRIDGE mode + pytest -m "wifi_capacity_test and bridge and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "BRIDGE" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_BRIDGE_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True \ No newline at end of file diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_nat_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_nat_mode.py new file mode 100644 index 000000000..d6efaa7ec --- /dev/null +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_nat_mode.py @@ -0,0 +1,448 @@ +""" + + Performance Test: Wifi Capacity Test : NAT Mode + pytest -m "wifi_capacity_test and NAT" + +""" +import os +import pytest +import allure + +pytestmark = [pytest.mark.wifi_capacity_test, pytest.mark.nat] +# """pytest.mark.usefixtures("setup_test_run")"""] + + +setup_params_general_dual_band = { + "mode": "NAT", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_dual_band", "appliedRadios": ["2G", "5G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("NAT MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_dual_band], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa3_personal +@pytest.mark.twog +@pytest.mark.fiveg +@pytest.mark.dual_band +class TestWifiCapacityNATModeDualBand(object): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and NAT" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3693", name="WIFI-3693") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_nat_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3694", name="WIFI-3694") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_nat_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3691", name="WIFI-3691") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_nat_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3692", name="WIFI-3692") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_nat_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + +setup_params_general_2G = { + "mode": "NAT", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("NAT MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_2G], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa3_personal +@pytest.mark.twog +@pytest.mark.twog_band +class TestWifiCapacityNATMode2G(object): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and NAT" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3651", name="WIFI-3651") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_nat_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3658", name="WIFI-3658") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_nat_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3668", name="WIFI-3668") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_nat_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3662", name="WIFI-3662") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_nat_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + +setup_params_general_5G = { + "mode": "NAT", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("NAT MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_5G], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa3_personal +@pytest.mark.fiveg +@pytest.mark.fiveg_band +class TestWifiCapacityNATMode5G(object): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and NAT" + """ + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3653", name="WIFI-3653") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_nat_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3659", name="WIFI-3659") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_nat_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3669", name="WIFI-3669") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_nat_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3663", name="WIFI-3663") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_nat_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test NAT mode + pytest -m "wifi_capacity_test and nat and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "NAT" + vlan = 1 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="ax", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_NAT_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True \ No newline at end of file diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_vlan_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_vlan_mode.py new file mode 100644 index 000000000..9082003b7 --- /dev/null +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa3_personal/test_vlan_mode.py @@ -0,0 +1,435 @@ +""" + + Performance Test: Wifi Capacity Test : VLAN Mode + pytest -m "wifi_capacity_test and VLAN" + +""" +import os +import pytest +import allure + +pytestmark = [pytest.mark.wifi_capacity_test, pytest.mark.VLAN] +# """pytest.mark.usefixtures("setup_test_run")"""] + + +setup_params_general_dual_band = { + "mode": "VLAN", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_dual_band", "appliedRadios": ["2G", "5G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("VLAN MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_dual_band], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa3_personal +@pytest.mark.twog +@pytest.mark.fiveg +@pytest.mark.dual_band +class TestWifiCapacityVLANModeDualBand(object): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and VLAN" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3693", name="WIFI-3693") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_vlan_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3694", name="WIFI-3694") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_vlan_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3691", name="WIFI-3691") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa_vlan_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test vlan mode + pytest -m "wifi_capacity_test and VLAN and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3692", name="WIFI-3692") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_vlan_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and dual_band" + """ + profile_data = setup_params_general_dual_band["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa_VLAN_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + +setup_params_general_2G = { + "mode": "VLAN", + "ssid_modes": { + "wpa3_personal": [ + {"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("VLAN MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_2G], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa_personal +@pytest.mark.twog +@pytest.mark.twog_band +class TestWifiCapacityVLANMode2G(object): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and VLAN" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3651", name="WIFI-3651") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_vlan_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3658", name="WIFI-3658") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_vlan_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3668", name="WIFI-3668") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_vlan_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3662", name="WIFI-3662") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_vlan_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_twog, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and twog" + """ + profile_data = setup_params_general_2G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="2G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + +setup_params_general_5G = { + "mode": "VLAN", + "ssid_modes": { + "wpa_personal": [ + {"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"} + ] + }, + "rf": {}, + "radius": False +} + + +@allure.feature("VLAN MODE CLIENT CONNECTIVITY") +@pytest.mark.parametrize( + 'setup_profiles', + [setup_params_general_5G], + indirect=True, + scope="class" +) +@pytest.mark.usefixtures("setup_profiles") +@pytest.mark.wpa_personal +@pytest.mark.fiveg +@pytest.mark.fiveg_band +class TestWifiCapacityVLANMode5G(object): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and VLAN" + """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3653", name="WIFI-3653") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_download + def test_client_wpa3_vlan_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_tcp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3659", name="WIFI-3659") + @pytest.mark.wpa3_personal + @pytest.mark.udp_download + def test_client_wpa3_vlan_udp_dl(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_udp_dl", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="0", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3669", name="WIFI-3669") + @pytest.mark.wpa3_personal + @pytest.mark.tcp_bidirectional + def test_client_wpa3_vlan_tcp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_tcp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True + + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3663", name="WIFI-3663") + @pytest.mark.wpa3_personal + @pytest.mark.udp_bidirectional + def test_client_wpa3_vlan_udp_bidirectional(self, get_vif_state, lf_tools, + lf_test, station_names_fiveg, create_lanforge_chamberview_dut, + get_configuration): + """ Wifi Capacity Test VLAN mode + pytest -m "wifi_capacity_test and vlan and wpa3_personal and fiveg" + """ + profile_data = setup_params_general_5G["ssid_modes"]["wpa3_personal"][0] + ssid_name = profile_data["ssid_name"] + mode = "VLAN" + vlan = 100 + if ssid_name not in get_vif_state: + allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state)) + pytest.xfail("SSID NOT AVAILABLE IN VIF STATE") + lf_tools.add_stations(band="5G", num_stations="max", dut=lf_tools.dut_name, ssid_name=ssid_name) + lf_tools.Chamber_View() + wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa3_VLAN_udp_bi", mode=mode, vlan_id=vlan, + download_rate="1Gbps", + upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000") + + report_name = wct_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] + + lf_tools.attach_report_graphs(report_name=report_name) + print("Test Completed... Cleaning up Stations") + assert True \ No newline at end of file From 98c0c1c8c8a4647592dc9a9b66836c3759d33759 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Mon, 13 Sep 2021 13:22:59 +0530 Subject: [PATCH 2/2] Added Jira link to Wpa2_personal in Wifi-capacity test --- .../wpa2_personal/test_bridge_mode.py | 12 ++++++++++++ .../wpa2_personal/test_nat_mode.py | 15 ++++++++++++--- .../wpa2_personal/test_vlan_mode.py | 15 ++++++++++++--- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_bridge_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_bridge_mode.py index c742c0a24..00556e553 100644 --- a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_bridge_mode.py +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_bridge_mode.py @@ -43,6 +43,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object): pytest -m "wifi_capacity_test and BRIDGE" """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3926", name="WIFI-3926") @pytest.mark.tcp_download def test_client_wpa2_BRIDGE_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -75,6 +76,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3927", name="WIFI-3927") @pytest.mark.udp_download def test_client_wpa2_BRIDGE_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -107,6 +109,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3932", name="WIFI-3932") @pytest.mark.tcp_bidirectional def test_client_wpa2_BRIDGE_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -138,6 +141,7 @@ class TestWifiCapacityBRIDGEModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3933", name="WIFI-3933") @pytest.mark.udp_bidirectional def test_client_wpa2_BRIDGE_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -198,6 +202,7 @@ class TestWifiCapacityBRIDGEMode2G(object): pytest -m "wifi_capacity_test and BRIDGE" """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3928", name="WIFI-3928") @pytest.mark.tcp_download def test_client_wpa2_BRIDGE_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -225,6 +230,7 @@ class TestWifiCapacityBRIDGEMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3930", name="WIFI-3930") @pytest.mark.udp_download def test_client_wpa2_BRIDGE_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -252,6 +258,7 @@ class TestWifiCapacityBRIDGEMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3934", name="WIFI-3934") @pytest.mark.tcp_bidirectional def test_client_wpa2_BRIDGE_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -279,6 +286,7 @@ class TestWifiCapacityBRIDGEMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3935", name="WIFI-3935") @pytest.mark.udp_bidirectional def test_client_wpa2_BRIDGE_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -335,6 +343,7 @@ class TestWifiCapacityBRIDGEMode5G(object): pytest -m "wifi_capacity_test and BRIDGE" """ + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3929", name="WIFI-3929") @pytest.mark.tcp_download def test_client_wpa2_BRIDGE_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -362,6 +371,7 @@ class TestWifiCapacityBRIDGEMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3931", name="WIFI-3931") @pytest.mark.udp_download def test_client_wpa2_BRIDGE_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -389,6 +399,7 @@ class TestWifiCapacityBRIDGEMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3936", name="WIFI-3936") @pytest.mark.tcp_bidirectional def test_client_wpa2_BRIDGE_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -416,6 +427,7 @@ class TestWifiCapacityBRIDGEMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3937", name="WIFI-3937") @pytest.mark.udp_bidirectional def test_client_wpa2_BRIDGE_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py index 16386e60b..699963461 100644 --- a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_nat_mode.py @@ -40,7 +40,7 @@ class TestWifiCapacityNATModeDualBand(object): """ Wifi Capacity Test NAT mode pytest -m "wifi_capacity_test and NAT" """ - + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3926", name="WIFI-3926") @pytest.mark.tcp_download def test_client_wpa2_NAT_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -69,6 +69,7 @@ class TestWifiCapacityNATModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3927", name="WIFI-3927") @pytest.mark.udp_download def test_client_wpa2_NAT_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -97,6 +98,7 @@ class TestWifiCapacityNATModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3932", name="WIFI-3932") @pytest.mark.tcp_bidirectional def test_client_wpa2_NAT_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -125,6 +127,7 @@ class TestWifiCapacityNATModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3933", name="WIFI-3933") @pytest.mark.udp_bidirectional def test_client_wpa2_NAT_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -181,7 +184,7 @@ class TestWifiCapacityNATMode2G(object): """ Wifi Capacity Test NAT mode pytest -m "wifi_capacity_test and NAT" """ - + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3928", name="WIFI-3928") @pytest.mark.tcp_download def test_client_wpa2_NAT_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -209,6 +212,7 @@ class TestWifiCapacityNATMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3930", name="WIFI-3930") @pytest.mark.udp_download def test_client_wpa2_NAT_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -236,6 +240,7 @@ class TestWifiCapacityNATMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3934", name="WIFI-3934") @pytest.mark.tcp_bidirectional def test_client_wpa2_NAT_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -263,6 +268,7 @@ class TestWifiCapacityNATMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3935", name="WIFI-3935") @pytest.mark.udp_bidirectional def test_client_wpa2_NAT_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -318,7 +324,7 @@ class TestWifiCapacityNATMode5G(object): """ Wifi Capacity Test NAT mode pytest -m "wifi_capacity_test and NAT" """ - + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3929", name="WIFI-3929") @pytest.mark.tcp_download def test_client_wpa2_NAT_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -346,6 +352,7 @@ class TestWifiCapacityNATMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3931", name="WIFI-3931") @pytest.mark.udp_download def test_client_wpa2_NAT_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -373,6 +380,7 @@ class TestWifiCapacityNATMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3936", name="WIFI-3936") @pytest.mark.tcp_bidirectional def test_client_wpa2_NAT_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -400,6 +408,7 @@ class TestWifiCapacityNATMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3937", name="WIFI-3937") @pytest.mark.udp_bidirectional def test_client_wpa2_NAT_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, diff --git a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_vlan_mode.py b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_vlan_mode.py index 05bd89101..e650df793 100644 --- a/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_vlan_mode.py +++ b/tests/e2e/basic/performance_tests/wifi_capacity_test/wpa2_personal/test_vlan_mode.py @@ -40,7 +40,7 @@ class TestWifiCapacityVLANModeDualBand(object): """ Wifi Capacity Test VLAN mode pytest -m "wifi_capacity_test and VLAN" """ - + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3926", name="WIFI-3926") @pytest.mark.tcp_download def test_client_wpa2_VLAN_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -68,6 +68,7 @@ class TestWifiCapacityVLANModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3927", name="WIFI-3927") @pytest.mark.udp_download def test_client_wpa2_VLAN_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -95,6 +96,7 @@ class TestWifiCapacityVLANModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3932", name="WIFI-3932") @pytest.mark.tcp_bidirectional def test_client_wpa2_VLAN_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -122,6 +124,7 @@ class TestWifiCapacityVLANModeDualBand(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3933", name="WIFI-3933") @pytest.mark.udp_bidirectional def test_client_wpa2_VLAN_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -177,7 +180,7 @@ class TestWifiCapacityVLANMode2G(object): """ Wifi Capacity Test VLAN mode pytest -m "wifi_capacity_test and VLAN" """ - + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3928", name="WIFI-3928") @pytest.mark.tcp_download def test_client_wpa2_VLAN_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -204,6 +207,7 @@ class TestWifiCapacityVLANMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3930", name="WIFI-3930") @pytest.mark.udp_download def test_client_wpa2_VLAN_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -230,6 +234,7 @@ class TestWifiCapacityVLANMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3934", name="WIFI-3934") @pytest.mark.tcp_bidirectional def test_client_wpa2_VLAN_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -256,6 +261,7 @@ class TestWifiCapacityVLANMode2G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3935", name="WIFI-3935") @pytest.mark.udp_bidirectional def test_client_wpa2_VLAN_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -310,7 +316,7 @@ class TestWifiCapacityVLANMode5G(object): """ Wifi Capacity Test VLAN mode pytest -m "wifi_capacity_test and VLAN" """ - + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3929", name="WIFI-3929") @pytest.mark.tcp_download def test_client_wpa2_VLAN_tcp_dl(self, get_vif_state, lf_tools, setup_profiles, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -337,6 +343,7 @@ class TestWifiCapacityVLANMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3931", name="WIFI-3931") @pytest.mark.udp_download def test_client_wpa2_VLAN_udp_dl(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -363,6 +370,7 @@ class TestWifiCapacityVLANMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3936", name="WIFI-3936") @pytest.mark.tcp_bidirectional def test_client_wpa2_VLAN_tcp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut, @@ -389,6 +397,7 @@ class TestWifiCapacityVLANMode5G(object): print("Test Completed... Cleaning up Stations") assert True + @allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3937", name="WIFI-3937") @pytest.mark.udp_bidirectional def test_client_wpa2_VLAN_udp_bidirectional(self, get_vif_state, lf_tools, lf_test, station_names_twog, create_lanforge_chamberview_dut,