mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 03:17:54 +00:00
wifi capacity test in ucentral stabilized
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -230,7 +230,6 @@ class RunTest:
|
||||
upload_rate=upload_rate,
|
||||
download_rate=download_rate,
|
||||
sort="interleave",
|
||||
# stations=stations,
|
||||
create_stations=True,
|
||||
radio=None,
|
||||
security=None,
|
||||
@@ -244,7 +243,6 @@ class RunTest:
|
||||
|
||||
wificapacity_obj.setup()
|
||||
wificapacity_obj.run()
|
||||
|
||||
report_name = wificapacity_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
influx = CSVtoInflux(influxdb=self.influxdb, _influx_tag=self.influx_params["influx_tag"],
|
||||
target_csv=self.local_report_path + report_name + "/kpi.csv")
|
||||
|
||||
@@ -93,28 +93,37 @@ class ChamberView:
|
||||
max_stations = 0
|
||||
print(idx)
|
||||
if band == "2G":
|
||||
max_stations = 64 * len(self.twog_radios)
|
||||
radio = ",".join(self.twog_radios)
|
||||
if len(self.twog_radios) == 1:
|
||||
radio = radio + ",AUTO"
|
||||
# self.eap_connect.sta_prefix = self.twog_prefix
|
||||
if band == "5G":
|
||||
max_stations = 64 * len(self.twog_radios)
|
||||
radio = ",".join(self.fiveg_radios)
|
||||
if len(self.fiveg_radios) == 1:
|
||||
radio = radio + ",AUTO"
|
||||
if band == "ax":
|
||||
max_stations = len(self.twog_radios)
|
||||
radio = ",".join(self.fiveg_radios)
|
||||
if len(self.fiveg_radios) == 1:
|
||||
radio = radio + ",AUTO"
|
||||
# self.eap_connect.sta_prefix = self.fiveg_prefix
|
||||
if num_stations != "max":
|
||||
max_stations = num_stations
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(max_stations) + " 'DUT: " + dut + " Radio-" + str(int(idx)+1) + "'" + " NA " + radio]
|
||||
num_stations = int(num_stations / len(self.twog_radios))
|
||||
for radio in self.twog_radios:
|
||||
max_stations = 64
|
||||
if num_stations == "max":
|
||||
num_stations = max_stations
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio]
|
||||
self.raw_line.append(station_data)
|
||||
|
||||
|
||||
if band == "5G":
|
||||
if num_stations != "max":
|
||||
num_stations = int(num_stations / len(self.fiveg_radios))
|
||||
for radio in self.fiveg_radios:
|
||||
max_stations = 64
|
||||
if num_stations == "max":
|
||||
num_stations = max_stations
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio]
|
||||
self.raw_line.append(station_data)
|
||||
if band == "ax":
|
||||
if num_stations != "max":
|
||||
num_stations = int(num_stations / len(self.fiveg_radios))
|
||||
for radio in self.ax_radios:
|
||||
max_stations = 1
|
||||
if num_stations == "max":
|
||||
num_stations = max_stations
|
||||
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
|
||||
str(int(idx) + 1) + "'" + " NA " + radio]
|
||||
self.raw_line.append(station_data)
|
||||
print("shivam", self.raw_line)
|
||||
|
||||
def Create_Dut(self):
|
||||
self.CreateDut.setup()
|
||||
@@ -192,4 +201,3 @@ class ChamberView:
|
||||
allure.attach.file(source=relevant_path + i,
|
||||
name=i,
|
||||
attachment_type="image/png", extension=None)
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ RADIUS_SERVER_DATA = {
|
||||
|
||||
RADIUS_ACCOUNTING_DATA = {
|
||||
"ip": "10.10.10.72",
|
||||
"port": 1812,
|
||||
"port": 1813,
|
||||
"secret": "testing123",
|
||||
"user": "user",
|
||||
"password": "password",
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
"""
|
||||
|
||||
Performance Test: Wifi Capacity Test : Bridge Mode
|
||||
pytest -m "wifi_capacity_test and bridge"
|
||||
Performance Test: Wifi Capacity Test : BRIDGE Mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.wifi_capacity_test, pytest.mark.bridge]
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.bridge]
|
||||
# """pytest.mark.usefixtures("setup_test_run")"""]
|
||||
|
||||
|
||||
@@ -36,18 +36,18 @@ setup_params_general_dual_band = {
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.dual_band
|
||||
@pytest.mark.wct
|
||||
class TestWifiCapacityBridgeModeDualBand(object):
|
||||
""" Wifi Capacity Test Bridge mode
|
||||
pytest -m "wifi_capacity_test and bridge"
|
||||
@pytest.mark.wifi_capacity_test
|
||||
class TestWifiCapacityBRIDGEModeDualBand(object):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE"
|
||||
"""
|
||||
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -56,10 +56,10 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
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="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
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_wpa2_bridge_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="0", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
@@ -70,11 +70,11 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_bridge_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -83,10 +83,10 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
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="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
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_wpa2_bridge_udp_dl", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="0", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
@@ -97,11 +97,11 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_bridge_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -113,7 +113,7 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
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_wpa2_bridge_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
@@ -124,11 +124,11 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_bridge_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -140,7 +140,7 @@ class TestWifiCapacityBridgeModeDualBand(object):
|
||||
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_wpa2_bridge_udp_bi", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
@@ -173,18 +173,18 @@ setup_params_general_2G = {
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.fiveg_band
|
||||
class TestWifiCapacityBridgeMode2G(object):
|
||||
""" Wifi Capacity Test Bridge mode
|
||||
pytest -m "wifi_capacity_test and bridge"
|
||||
@pytest.mark.twog_band
|
||||
class TestWifiCapacityBRIDGEMode2G(object):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE"
|
||||
"""
|
||||
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -195,7 +195,7 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
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_wpa2_bridge_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="0", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
@@ -206,11 +206,11 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_bridge_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -221,7 +221,7 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
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_wpa2_bridge_udp_dl", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="0", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
@@ -232,11 +232,11 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_bridge_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -247,7 +247,7 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
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_wpa2_bridge_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
@@ -258,11 +258,11 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_bridge_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -273,7 +273,7 @@ class TestWifiCapacityBridgeMode2G(object):
|
||||
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_wpa2_bridge_udp_bi", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
@@ -288,7 +288,7 @@ setup_params_general_5G = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is5GHz"], "security_key": "something"}
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
@@ -307,17 +307,17 @@ setup_params_general_5G = {
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.fiveg_band
|
||||
class TestWifiCapacityBridgeMode5G(object):
|
||||
""" Wifi Capacity Test Bridge mode
|
||||
pytest -m "wifi_capacity_test and bridge"
|
||||
class TestWifiCapacityBRIDGEMode5G(object):
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE"
|
||||
"""
|
||||
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa2_bridge_tcp_dl(self, get_vif_state, lf_tools, setup_profiles,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -328,7 +328,7 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
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_wpa2_bridge_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="0", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
@@ -339,11 +339,11 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa2_bridge_udp_dl(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -354,7 +354,7 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
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_wpa2_bridge_udp_dl", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="0", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
@@ -365,11 +365,11 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa2_bridge_tcp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -380,7 +380,7 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
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_wpa2_bridge_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_tcp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000")
|
||||
|
||||
@@ -391,11 +391,11 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
assert True
|
||||
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa2_bridge_udp_bidirectional(self, get_vif_state, lf_tools,
|
||||
def test_client_wpa2_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 wpa2_personal and twog"
|
||||
""" Wifi Capacity Test BRIDGE mode
|
||||
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -406,7 +406,7 @@ class TestWifiCapacityBridgeMode5G(object):
|
||||
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_wpa2_bridge_udp_bi", mode=mode, vlan_id=vlan,
|
||||
wct_obj = lf_test.wifi_capacity(instance_name="test_client_wpa2_BRIDGE_udp_bi", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
upload_rate="1Gbps", protocol="UDP-IPv4", duration="60000")
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.wifi_capacity_test, pytest.mark.nat]
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.nat]
|
||||
# """pytest.mark.usefixtures("setup_test_run")"""]
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ setup_params_general_dual_band = {
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.dual_band
|
||||
@pytest.mark.wct_n
|
||||
@pytest.mark.wifi_capacity_test
|
||||
class TestWifiCapacityNATModeDualBand(object):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT"
|
||||
@@ -56,8 +56,8 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
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="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
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_wpa2_NAT_tcp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
@@ -83,8 +83,8 @@ class TestWifiCapacityNATModeDualBand(object):
|
||||
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="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
lf_tools.add_stations(band="5G", num_stations="100", dut=lf_tools.dut_name, ssid_name=ssid_name)
|
||||
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_wpa2_NAT_udp_dl", mode=mode, vlan_id=vlan,
|
||||
download_rate="1Gbps",
|
||||
@@ -173,7 +173,7 @@ setup_params_general_2G = {
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.fiveg_band
|
||||
@pytest.mark.twog_band
|
||||
class TestWifiCapacityNATMode2G(object):
|
||||
""" Wifi Capacity Test NAT mode
|
||||
pytest -m "wifi_capacity_test and NAT"
|
||||
@@ -288,7 +288,7 @@ setup_params_general_5G = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is5GHz"], "security_key": "something"}
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
"""
|
||||
|
||||
Performance Test: Wifi Capacity Test : VLAN Mode
|
||||
pytest -m "wifi_capacity_test and vlan"
|
||||
pytest -m "wifi_capacity_test and VLAN"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.vlan]
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.VLAN]
|
||||
# """pytest.mark.usefixtures("setup_test_run")"""]
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class TestWifiCapacityVLANModeDualBand(object):
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -78,7 +78,7 @@ class TestWifiCapacityVLANModeDualBand(object):
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -105,7 +105,7 @@ class TestWifiCapacityVLANModeDualBand(object):
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -132,7 +132,7 @@ class TestWifiCapacityVLANModeDualBand(object):
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -172,7 +172,7 @@ setup_params_general_2G = {
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.fiveg_band
|
||||
@pytest.mark.twog_band
|
||||
class TestWifiCapacityVLANMode2G(object):
|
||||
""" Wifi Capacity Test VLAN mode
|
||||
pytest -m "wifi_capacity_test and VLAN"
|
||||
@@ -188,7 +188,7 @@ class TestWifiCapacityVLANMode2G(object):
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -214,7 +214,7 @@ class TestWifiCapacityVLANMode2G(object):
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -240,7 +240,7 @@ class TestWifiCapacityVLANMode2G(object):
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -266,7 +266,7 @@ class TestWifiCapacityVLANMode2G(object):
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -287,7 +287,7 @@ setup_params_general_5G = {
|
||||
"mode": "VLAN",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is5GHz"], "security_key": "something"}
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["5G"], "security_key": "something"}
|
||||
]
|
||||
},
|
||||
"rf": {},
|
||||
@@ -321,7 +321,7 @@ class TestWifiCapacityVLANMode5G(object):
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -347,7 +347,7 @@ class TestWifiCapacityVLANMode5G(object):
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -373,7 +373,7 @@ class TestWifiCapacityVLANMode5G(object):
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
@@ -399,7 +399,7 @@ class TestWifiCapacityVLANMode5G(object):
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
mode = "VLAN"
|
||||
vlan = 1
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user