Modified as per new framework

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2022-09-02 12:15:54 +05:30
parent 4960bdf598
commit fe98be2271
10 changed files with 256 additions and 455 deletions

View File

@@ -9,7 +9,7 @@ import pytest
import allure
pytestmark = [pytest.mark.dataplane_throughput_test,
pytest.mark.bridge] # , pytest.mark.usefixtures("setup_test_run")]
pytest.mark.bridge]
setup_params_general = {
"mode": "BRIDGE",
@@ -21,26 +21,28 @@ setup_params_general = {
"radius": False
}
@allure.suite("performance")
@allure.feature("BRIDGE MODE open security and Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputBRIDGE(object):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and open and BRIDGE"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3673",name="WIFI-3673")
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3673", name="WIFI-3673")
@pytest.mark.open
@pytest.mark.twog
def test_tcp_upd_open_bridge_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_open_bridge_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput BRIDGE Mode.
pytest -m "dataplane_throughput_test and BRIDGE and open and twog"
"""
@@ -49,31 +51,21 @@ class TestDataplaneThroughputBRIDGE(object):
security = "open"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
# 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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_OPEN_2G_BRIDGE",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-bridge-open-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_OPEN_2G_BRIDGE",
influx_tags=influx_tags, move_to_influx=False,
)
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3674", name="WIFI-3674")
@pytest.mark.open
@pytest.mark.fiveg
def test_tcp_upd_open_bridge_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_open_bridge_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and BRIDGE and open and fiveg"
"""
@@ -82,23 +74,10 @@ class TestDataplaneThroughputBRIDGE(object):
security = "open"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_OPEN_5G_BRIDGE",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-bridge-open-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_OPEN_5G_BRIDGE",
influx_tags=influx_tags, move_to_influx=False,
)

View File

@@ -26,12 +26,12 @@ setup_params_general = {
@allure.feature("NAT MODE Dataplane Throughput Test")
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputNAT(object):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat"
@@ -40,9 +40,10 @@ class TestDataplaneThroughputNAT(object):
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3673", name="WIFI-3673")
@pytest.mark.open
@pytest.mark.twog
def test_tcp_upd_open_nat_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_open_nat_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and open and twog"
"""
@@ -51,31 +52,21 @@ class TestDataplaneThroughputNAT(object):
security = "open"
mode = "NAT"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_OPEN_2G_NAT",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-nat-open-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_OPEN_2G_NAT",
influx_tags=influx_tags, move_to_influx=False,
)
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3674", name="WIFI-3674")
@pytest.mark.open
@pytest.mark.fiveg
def test_tcp_upd_open_nat_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_open_nat_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and open and fiveg"
"""
@@ -84,23 +75,11 @@ class TestDataplaneThroughputNAT(object):
security = "open"
mode = "NAT"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
influx_tags = "dataplane-tcp-udp-nat-open-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_OPEN_5G_NAT",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_OPEN_5G_NAT",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False

View File

@@ -24,12 +24,12 @@ setup_params_general = {
@allure.suite("performance")
@allure.feature("VLAN MODE open security and Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputVLAN(object):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and open and VLAN"
@@ -38,9 +38,10 @@ class TestDataplaneThroughputVLAN(object):
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3673", name="WIFI-3673")
@pytest.mark.open
@pytest.mark.twog
def test_tcp_upd_open_vlan_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_open_vlan_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and VLAN and open and twog"
"""
@@ -50,30 +51,22 @@ class TestDataplaneThroughputVLAN(object):
security = "open"
mode = "VLAN"
band = "twog"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-open-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_OPEN_2G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_OPEN_2G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput OPEN Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3674", name="WIFI-3674")
@pytest.mark.open
@pytest.mark.fiveg
def test_tcp_upd_open_vlan_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_open_vlan_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and VLAN and open and fiveg"
"""
@@ -83,23 +76,12 @@ class TestDataplaneThroughputVLAN(object):
security = "open"
mode = "VLAN"
band = "fiveg"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-open-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_OPEN_5G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_OPEN_5G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput OPEN Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False

View File

@@ -12,7 +12,6 @@ import allure
pytestmark = [pytest.mark.performance,
pytest.mark.vlan]
setup_params_general = {
"mode": "VLAN",
"ssid_modes": {
@@ -27,23 +26,24 @@ setup_params_general = {
@allure.suite("performance")
@allure.feature("VLAN MODE Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputVLAN(object):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
@pytest.mark.wpa2_personal
@pytest.mark.twog
def test_tcp_upd_wpa2_personal_vlan_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa2_personal_vlan_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan and wpa2_personal and twog"
"""
@@ -53,31 +53,22 @@ class TestDataplaneThroughputVLAN(object):
security = "wpa2"
mode = "VLAN"
band = "twog"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA2_2G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-wpa2-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode, passkey=security_key,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_WPA2_2G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3914", name="WIFI-3914")
@pytest.mark.wpa2_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa2_personal_vlan_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa2_personal_vlan_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan and wpa2_personal and fiveg"
"""
@@ -87,23 +78,12 @@ class TestDataplaneThroughputVLAN(object):
security = "wpa2"
mode = "VLAN"
band = "fiveg"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-wpa2-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode, passkey=security_key,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_WPA2_5G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA2_5G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False

View File

@@ -25,22 +25,24 @@ setup_params_general = {
@allure.suite("performance")
@allure.feature("BRIDGE MODE Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputBRIDGE(object):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and wpa3_personal bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3677", name="WIFI-3677")
@pytest.mark.wpa3_personal
@pytest.mark.twog
def test_tcp_upd_wpa3_personal_bridge_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa3_personal_bridge_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and bridge and wpa3_personal and twog"
"""
@@ -50,31 +52,21 @@ class TestDataplaneThroughputBRIDGE(object):
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA3_2G_BRIDGE",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-bridge-wpa3-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA3_2G_BRIDGE",
influx_tags=influx_tags, move_to_influx=False,
)
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3678", name="WIFI-3678")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa3_personal_bridge_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa3_personal_bridge_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and bridge and wpa3_personal and fiveg"
"""
@@ -84,23 +76,11 @@ class TestDataplaneThroughputBRIDGE(object):
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
influx_tags = "dataplane-tcp-udp-bridge-wpa3-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA3_5G_BRIDGE",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA3_5G_BRIDGE",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False

View File

@@ -19,16 +19,18 @@ setup_params_general = {
"rf": {},
"radius": False
}
@allure.suite("performance")
@allure.feature("BRIDGE MODE Dataplane Throughput Test")
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputNAT(object):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and wpa3_personal and nat"
@@ -37,9 +39,10 @@ class TestDataplaneThroughputNAT(object):
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3677", name="WIFI-3677")
@pytest.mark.wpa3_personal
@pytest.mark.twog
def test_tcp_upd_wpa3_personal_nat_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa3_personal_nat_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and wpa3_personal and twog"
"""
@@ -49,30 +52,21 @@ class TestDataplaneThroughputNAT(object):
security = "wpa3"
mode = "NAT"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
influx_tags = "dataplane-tcp-udp-nat-wpa3-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA3_2G_NAT",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA3_2G_NAT",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3678", name="WIFI-3678")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa3_personal_nat_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa3_personal_nat_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and wpa3_personal and fiveg"
"""
@@ -82,23 +76,11 @@ class TestDataplaneThroughputNAT(object):
security = "wpa3"
mode = "NAT"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
influx_tags = "dataplane-tcp-udp-nat-wpa3-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA3_5G_NAT",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA3_5G_NAT",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False

View File

@@ -24,12 +24,12 @@ setup_params_general = {
@allure.suite("performance")
@allure.feature("VLAN MODE Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputVLAN(object):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and wpa3_personal and vlan"
@@ -38,9 +38,10 @@ class TestDataplaneThroughputVLAN(object):
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3677", name="WIFI-3677")
@pytest.mark.wpa3_personal
@pytest.mark.twog
def test_tcp_upd_wpa3_personal_vlan_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa3_personal_vlan_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan and wpa3_personal and twog"
"""
@@ -50,31 +51,22 @@ class TestDataplaneThroughputVLAN(object):
security = "wpa3"
mode = "VLAN"
band = "twog"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA3_2G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-wpa3-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode, passkey=security_key,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_WPA3_2G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3678", name="WIFI-3678")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa3_personal_vlan_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa3_personal_vlan_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan and wpa3_personal and fiveg"
"""
@@ -84,23 +76,11 @@ class TestDataplaneThroughputVLAN(object):
security = "wpa3"
mode = "VLAN"
band = "fiveg"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA3_5G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA3 Personal Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-wpa3-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode, passkey=security_key,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_WPA3_5G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)

View File

@@ -25,22 +25,24 @@ setup_params_general = {
@allure.suite("performance")
@allure.feature("BRIDGE MODE Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputBRIDGE(object):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and wpa_personal and bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3675", name="WIFI-3675")
@pytest.mark.wpa_personal
@pytest.mark.twog
def test_tcp_upd_wpa_personal_bridge_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa_personal_bridge_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and bridge and wpa and twog"
"""
@@ -50,31 +52,21 @@ class TestDataplaneThroughputBRIDGE(object):
security = "wpa"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA_2G_BRIDGE",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA Personal Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-bridge-wpa-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA_2G_BRIDGE",
influx_tags=influx_tags, move_to_influx=False,
)
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3676", name="WIFI-3676")
@pytest.mark.wpa_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa_personal_bridge_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa_personal_bridge_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput BRIDGE Mode
pytest -m "dataplane_throughput_test and bridge and wpa_personal and fiveg"
"""
@@ -84,23 +76,10 @@ class TestDataplaneThroughputBRIDGE(object):
security = "wpa"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA_5G_BRIDGE",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA Personal Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-bridge-wpa-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA_5G_BRIDGE",
influx_tags=influx_tags, move_to_influx=False,
)

View File

@@ -26,12 +26,12 @@ setup_params_general = {
@allure.feature("NAT MODE Dataplane Throughput Test")
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputNAT(object):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and wpa"
@@ -40,9 +40,10 @@ class TestDataplaneThroughputNAT(object):
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3675", name="WIFI-3675")
@pytest.mark.wpa_personal
@pytest.mark.twog
def test_tcp_upd_wpa_personal_nat_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa_personal_nat_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and wpa_personal and twog"
"""
@@ -52,30 +53,21 @@ class TestDataplaneThroughputNAT(object):
security = "wpa"
mode = "NAT"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
influx_tags = "dataplane-tcp-udp-nat-wpa-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA_2G_NAT",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA_2G_NAT",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA Personal Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3676", name="WIFI-3676")
@pytest.mark.wpa_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa_personal_nat_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa_personal_nat_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput nat Mode
pytest -m "dataplane_throughput_test and nat and wpa_personal and fiveg"
"""
@@ -85,23 +77,10 @@ class TestDataplaneThroughputNAT(object):
security = "wpa"
mode = "NAT"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA_5G_NAT",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA Personal Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
influx_tags = "dataplane-tcp-udp-nat-wpa-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, passkey=security_key, security=security,
num_sta=1, mode=mode,
band=band,
instance_name="TIP_DPT_DPT_WPA_5G_NAT",
influx_tags=influx_tags, move_to_influx=False,
)

View File

@@ -24,12 +24,12 @@ setup_params_general = {
@allure.suite("performance")
@allure.feature("VLAN MODE Dataplane Throughput Test")
@pytest.mark.parametrize(
'setup_profiles',
'setup_configuration',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
@pytest.mark.usefixtures("setup_configuration")
class TestDataplaneThroughputVLAN(object):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and wpa_personal and VLAN"
@@ -38,9 +38,10 @@ class TestDataplaneThroughputVLAN(object):
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3675", name="WIFI-3675")
@pytest.mark.wpa_personal
@pytest.mark.twog
def test_tcp_upd_wpa_personal_vlan_2g_band(self, get_vif_state, lf_tools,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
def test_tcp_upd_wpa_personal_vlan_2g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan and wpa_personal and twog"
"""
@@ -50,30 +51,22 @@ class TestDataplaneThroughputVLAN(object):
security = "wpa"
mode = "VLAN"
band = "twog"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-wpa-2.4G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode, passkey=security_key,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_WPA_2G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_DPT_DPT_WPA_2G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA Personal Test - TCP-UDP 2.4G")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3676", name="WIFI-3676")
@pytest.mark.wpa_personal
@pytest.mark.fiveg
def test_tcp_upd_wpa_personal_vlan_5g_band(self, get_vif_state, lf_tools,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
def test_tcp_upd_wpa_personal_vlan_5g_band(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs,
get_target_object,
num_stations):
"""Dataplane THroughput VLAN Mode
pytest -m "dataplane_throughput_test and vlan and wpa_personal and fiveg"
"""
@@ -83,23 +76,11 @@ class TestDataplaneThroughputVLAN(object):
security = "wpa"
mode = "VLAN"
band = "fiveg"
vlan = 100
dut_name = create_lanforge_chamberview_dut
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")
station = lf_test.Client_Connect(ssid=ssid_name, security=security,
passkey=security_key, mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_DPT_DPT_WPA_5G_VLAN",
vlan_id=vlan, dut_name=dut_name)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dataplane Throughput WPA Personal Test - TCP-UDP 5G")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
vlan = [100]
influx_tags = "dataplane-tcp-udp-vlan-wpa-5G"
get_test_library.dataplane_throughput_test(ssid=ssid_name, security=security,
num_sta=1, mode=mode, passkey=security_key,
band=band, vlan_id=vlan,
instance_name="TIP_DPT_DPT_WPA_5G_VLAN",
influx_tags=influx_tags, move_to_influx=False,
)