mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2026-01-27 10:23:37 +00:00
Merge branch 'master' into WIFI-3891
This commit is contained in:
10
.github/workflows/ucentralgw-qa-deployment.yaml
vendored
10
.github/workflows/ucentralgw-qa-deployment.yaml
vendored
@@ -29,11 +29,11 @@ env:
|
||||
{
|
||||
"namespace": "qa01",
|
||||
"deploy_method": "git",
|
||||
"chart_version": "v2.1.0-RC3",
|
||||
"ucentralgw_version": "v2.1.0-RC3",
|
||||
"ucentralsec_version": "v2.1.0-RC1",
|
||||
"ucentralfms_version": "v2.1.0-RC1",
|
||||
"ucentralgwui_version": "v2.1.0-RC1"
|
||||
"chart_version": "main",
|
||||
"ucentralgw_version": "master",
|
||||
"ucentralsec_version": "main",
|
||||
"ucentralfms_version": "main",
|
||||
"ucentralgwui_version": "main"
|
||||
}
|
||||
]'
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ from create_station import CreateStation
|
||||
import lf_ap_auto_test
|
||||
import lf_dataplane_test
|
||||
from lf_dataplane_test import DataplaneTest
|
||||
from lf_rx_sensitivity_test import RxSensitivityTest
|
||||
from lf_ap_auto_test import ApAutoTest
|
||||
from csv_to_influx import CSVtoInflux
|
||||
from influx2 import RecordInflux
|
||||
@@ -57,6 +58,7 @@ class RunTest:
|
||||
self.lf_ssh_port = lanforge_data["ssh_port"]
|
||||
self.staConnect = None
|
||||
self.dataplane_obj = None
|
||||
self.rx_sensitivity_obj = None
|
||||
self.dualbandptest_obj = None
|
||||
self.influx_params = influx_params
|
||||
self.influxdb = RecordInflux(_influx_host=influx_params["influx_host"],
|
||||
@@ -263,6 +265,7 @@ class RunTest:
|
||||
influx.post_to_influx()
|
||||
return wificapacity_obj
|
||||
|
||||
|
||||
def Client_Connect(self, ssid="[BLANK]", passkey="[BLANK]", security="wpa2", mode="BRIDGE", band="twog",
|
||||
vlan_id=100,
|
||||
station_name=[]):
|
||||
@@ -394,7 +397,7 @@ class RunTest:
|
||||
# target_csv=self.local_report_path + report_name + "/kpi.csv")
|
||||
# influx.post_to_influx()
|
||||
return self.dualbandptest_obj
|
||||
|
||||
|
||||
def apstabilitytest(self, ssid_5G="[BLANK]", ssid_2G="[BLANK]", mode="BRIDGE", vlan_id=100, dut_name="TIP",
|
||||
instance_name="test_demo", dut_5g="", dut_2g=""):
|
||||
instance_name = ''.join(random.choices(string.ascii_uppercase + string.digits, k=S))
|
||||
@@ -474,6 +477,47 @@ class RunTest:
|
||||
influx.post_to_influx()
|
||||
return self.rvr_obj
|
||||
|
||||
def rx_sensitivity(self, station_name=None, mode="BRIDGE", vlan_id=100, download_rate="100%", dut_name="TIP",
|
||||
upload_rate="0kbps", duration="30s", instance_name="test_demo", raw_lines=None):
|
||||
if mode == "BRIDGE":
|
||||
self.client_connect.upstream_port = self.upstream_port
|
||||
elif mode == "NAT":
|
||||
self.client_connect.upstream_port = self.upstream_port
|
||||
else:
|
||||
self.client_connect.upstream_port = self.upstream_port + "." + str(vlan_id)
|
||||
if raw_lines is None:
|
||||
raw_lines = [['txo_preamble: VHT'],
|
||||
['txo_mcs: 4 OFDM, HT, VHT;5 OFDM, HT, VHT;6 OFDM, HT, VHT;7 OFDM, HT, VHT'],
|
||||
['spatial_streams: 3'], ['bandw_options: 80'], ['txo_sgi: ON'],
|
||||
['txo_retries: No Retry'], ["show_3s: 1"], ['txo_txpower: 17'],
|
||||
["show_ll_graphs: 1"], ["show_log: 1"]]
|
||||
|
||||
self.rx_sensitivity_obj = RxSensitivityTest(lf_host=self.lanforge_ip,
|
||||
lf_port=self.lanforge_port,
|
||||
ssh_port=self.lf_ssh_port,
|
||||
local_path=self.local_report_path,
|
||||
lf_user="lanforge",
|
||||
lf_password="lanforge",
|
||||
instance_name=instance_name,
|
||||
config_name="rx_sen_config",
|
||||
upstream="1.1." + self.upstream_port,
|
||||
pull_report=True,
|
||||
load_old_cfg=False,
|
||||
download_speed=download_rate,
|
||||
upload_speed=upload_rate,
|
||||
duration=duration,
|
||||
dut=dut_name,
|
||||
station="1.1." + station_name[0],
|
||||
raw_lines=raw_lines)
|
||||
self.rx_sensitivity_obj.setup()
|
||||
self.rx_sensitivity_obj.run()
|
||||
report_name = self.rx_sensitivity_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")
|
||||
influx.post_to_influx()
|
||||
return self.rx_sensitivity_obj
|
||||
|
||||
def multipsk(self, ssid="[BLANK]", security=None, mode=None, key1=None, vlan_id=None, key2=None, band="twog",
|
||||
station_name=None, n_vlan="1", key3=None):
|
||||
global result1, sta_name
|
||||
@@ -566,7 +610,6 @@ class RunTest:
|
||||
for sta_name in station_name:
|
||||
self.sta_url_map[sta_name] = "port/1/%s/%s" % (str(1), sta_name)
|
||||
print(self.sta_url_map)
|
||||
print("hi",self.sta_url_map)
|
||||
|
||||
for sta_name in station_name:
|
||||
try:
|
||||
|
||||
@@ -126,10 +126,10 @@ CONFIGURATION = {
|
||||
'mode': 'wifi5',
|
||||
'serial': '001122090801',
|
||||
'jumphost': True,
|
||||
'ip': "127.0.0.1",
|
||||
'ip': "10.28.3.100",
|
||||
'username': "lanforge",
|
||||
'password': "pumpkin77",
|
||||
'port': 8833,
|
||||
'port': 22,
|
||||
'jumphost_tty': '/dev/ttyAP3',
|
||||
'version': "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/tplink_ec420/20210728-tplink_ec420-uCentral-trunk-12ad0d5-upgrade.bin"
|
||||
}
|
||||
@@ -552,7 +552,7 @@ CONFIGURATION = {
|
||||
|
||||
|
||||
RADIUS_SERVER_DATA = {
|
||||
"ip": "10.10.10.72",
|
||||
"ip": "10.10.10.180",
|
||||
"port": 1812,
|
||||
"secret": "testing123",
|
||||
"user": "user",
|
||||
@@ -561,7 +561,7 @@ RADIUS_SERVER_DATA = {
|
||||
}
|
||||
|
||||
RADIUS_ACCOUNTING_DATA = {
|
||||
"ip": "10.10.10.72",
|
||||
"ip": "10.10.10.180",
|
||||
"port": 1813,
|
||||
"secret": "testing123",
|
||||
"user": "user",
|
||||
|
||||
2123
tests/e2e/advanced/receiver_sensitivity/test_bridge_mode_2g.py
Normal file
2123
tests/e2e/advanced/receiver_sensitivity/test_bridge_mode_2g.py
Normal file
File diff suppressed because it is too large
Load Diff
2123
tests/e2e/advanced/receiver_sensitivity/test_bridge_mode_5g.py
Normal file
2123
tests/e2e/advanced/receiver_sensitivity/test_bridge_mode_5g.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,145 @@
|
||||
"""
|
||||
|
||||
Performance Test: Receiver Sensitivity Test: bridge Mode
|
||||
pytest -m "rx_sensitivity_test and bridge"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.rx_sensitivity_test, pytest.mark.bridge,
|
||||
pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||
"security_key": "something"}]},
|
||||
"rf": {
|
||||
"is5GHz": {"channelBandwidth": "is20MHz"},
|
||||
"is5GHzL": {"channelBandwidth": "is20MHz"},
|
||||
"is5GHzU": {"channelBandwidth": "is20MHz"}},
|
||||
"radius": False,
|
||||
|
||||
"attenuator": {
|
||||
"attenuator": "1.1.3059",
|
||||
"attenuator2": "1.1.3034"}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestRxSensitivityBRIDGEAllMcs5G(object):
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.all_mcs
|
||||
def test_client_wpa2_personal_bridge_all_mcs_5g(self, get_vif_state,
|
||||
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Receiver Sensitivity Bridge Mode
|
||||
pytest -m "rx_sensitivity_test and bridge and wpa2_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa2"
|
||||
attenuator = setup_params_general["attenuator"]["attenuator"]
|
||||
attenuator2 = setup_params_general["attenuator"]["attenuator2"]
|
||||
mode = "BRIDGE"
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
dut_name = create_lanforge_chamberview_dut
|
||||
raw_lines = [['txo_preamble: VHT'],
|
||||
['txo_mcs: 0 CCK, OFDM, HT, VHT;1 CCK, OFDM, HT, VHT;2 CCK, OFDM, HT, VHT;3 CCK, OFDM, HT, VHT;'
|
||||
'4 OFDM, HT, VHT;5 OFDM, HT, VHT;6 OFDM, HT, VHT;7 OFDM, HT, VHT;8 VHT;9 VHT'],
|
||||
['spatial_streams: 1'], ['bandw_options: 20'], ['txo_sgi: OFF'],
|
||||
['txo_retries: No Retry'], ['attenuator: %s' % attenuator], ['attenuator2: %s' % attenuator2],
|
||||
["show_3s: 1"], ['txo_txpower: 17'],
|
||||
["show_ll_graphs: 1"], ["show_log: 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")
|
||||
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.rx_sensitivity(station_name=station_names_fiveg, mode=mode,
|
||||
instance_name="TIP_RX_SEN_WPA2_BRIDGE_5G_ALL_MCS",
|
||||
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
|
||||
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
entries = os.listdir("../reports/" + report_name + '/')
|
||||
pdf = False
|
||||
for i in entries:
|
||||
if ".pdf" in i:
|
||||
pdf = i
|
||||
if pdf:
|
||||
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
|
||||
name=get_configuration["access_point"][0]["model"] + "_dataplane")
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
lf_test.Client_disconnect(station_name=station_names_fiveg)
|
||||
assert station
|
||||
else:
|
||||
assert False
|
||||
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.all_mcs
|
||||
def test_client_wpa2_personal_bridge_all_mcs_2g(self, get_vif_state,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Receiver Sensitivity Bridge Mode
|
||||
pytest -m "rx_sensitivity_test and bridge and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa2"
|
||||
attenuator = setup_params_general["attenuator"]["attenuator"]
|
||||
attenuator2 = setup_params_general["attenuator"]["attenuator2"]
|
||||
mode = "BRIDGE"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
dut_name = create_lanforge_chamberview_dut
|
||||
raw_lines = [['txo_preamble: VHT'],
|
||||
['txo_mcs: 0 CCK, OFDM, HT, VHT;1 CCK, OFDM, HT, VHT;2 CCK, OFDM, HT, VHT;3 CCK, OFDM, HT, VHT'
|
||||
'4 OFDM, HT, VHT;5 OFDM, HT, VHT;6 OFDM, HT, VHT;7 OFDM, HT, VHT;8 VHT;9 VHT'],
|
||||
['spatial_streams: 1'], ['bandw_options: 20'], ['txo_sgi: OFF'],
|
||||
['txo_retries: No Retry'], ['attenuator: %s' % attenuator], ['attenuator2: %s' % attenuator2],
|
||||
["show_3s: 1"], ['txo_txpower: 17'],
|
||||
["show_ll_graphs: 1"], ["show_log: 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")
|
||||
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.rx_sensitivity(station_name=station_names_twog, mode=mode,
|
||||
instance_name="TIP_PERF_RX_SEN_WPA2_BRIDGE_2G_ALL_MCS",
|
||||
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
|
||||
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
entries = os.listdir("../reports/" + report_name + '/')
|
||||
pdf = False
|
||||
for i in entries:
|
||||
if ".pdf" in i:
|
||||
pdf = i
|
||||
if pdf:
|
||||
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
|
||||
name=get_configuration["access_point"][0]["model"] + "_dataplane")
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
lf_test.Client_disconnect(station_name=station_names_twog)
|
||||
assert station
|
||||
else:
|
||||
assert False
|
||||
2123
tests/e2e/advanced/receiver_sensitivity/test_nat_mode.py
Normal file
2123
tests/e2e/advanced/receiver_sensitivity/test_nat_mode.py
Normal file
File diff suppressed because it is too large
Load Diff
2123
tests/e2e/advanced/receiver_sensitivity/test_nat_mode_2g.py
Normal file
2123
tests/e2e/advanced/receiver_sensitivity/test_nat_mode_2g.py
Normal file
File diff suppressed because it is too large
Load Diff
145
tests/e2e/advanced/receiver_sensitivity/test_nat_mode_all_mcs.py
Normal file
145
tests/e2e/advanced/receiver_sensitivity/test_nat_mode_all_mcs.py
Normal file
@@ -0,0 +1,145 @@
|
||||
"""
|
||||
|
||||
Performance Test: Receiver Sensitivity Test: NAT Mode
|
||||
pytest -m "rx_sensitivity_test and nat"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.rx_sensitivity_test, pytest.mark.nat,
|
||||
pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"wpa2_personal": [
|
||||
{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["is2dot4GHz"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["is5GHzU", "is5GHz", "is5GHzL"],
|
||||
"security_key": "something"}]},
|
||||
"rf": {
|
||||
"is5GHz": {"channelBandwidth": "is20MHz"},
|
||||
"is5GHzL": {"channelBandwidth": "is20MHz"},
|
||||
"is5GHzU": {"channelBandwidth": "is20MHz"}},
|
||||
"radius": False,
|
||||
|
||||
"attenuator": {
|
||||
"attenuator": "1.1.3059",
|
||||
"attenuator2": "1.1.3034"}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestRxSensitivityNATAllMcs5G(object):
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.all_mcs
|
||||
def test_client_wpa2_personal_nat_all_mcs_5g(self, get_vif_state,
|
||||
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Receiver Sensitivity nat Mode
|
||||
pytest -m "rx_sensitivity_test and nat and wpa2_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa2"
|
||||
attenuator = setup_params_general["attenuator"]["attenuator"]
|
||||
attenuator2 = setup_params_general["attenuator"]["attenuator2"]
|
||||
mode = "NAT"
|
||||
band = "fiveg"
|
||||
vlan = 1
|
||||
dut_name = create_lanforge_chamberview_dut
|
||||
raw_lines = [['txo_preamble: VHT'],
|
||||
['txo_mcs: 0 CCK, OFDM, HT, VHT;1 CCK, OFDM, HT, VHT;2 CCK, OFDM, HT, VHT;3 CCK, OFDM, HT, VHT'
|
||||
'4 OFDM, HT, VHT;5 OFDM, HT, VHT;6 OFDM, HT, VHT;7 OFDM, HT, VHT;8 VHT;9 VHT'],
|
||||
['spatial_streams: 1'], ['bandw_options: 20'], ['txo_sgi: OFF'],
|
||||
['txo_retries: No Retry'], ['attenuator: %s' % attenuator], ['attenuator2: %s' % attenuator2],
|
||||
["show_3s: 1"], ['txo_txpower: 17'],
|
||||
["show_ll_graphs: 1"], ["show_log: 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")
|
||||
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.rx_sensitivity(station_name=station_names_fiveg, mode=mode,
|
||||
instance_name="TIP_PERF_RX_SEN_WPA2_NAT_5G_ALL_MCS",
|
||||
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
|
||||
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
entries = os.listdir("../reports/" + report_name + '/')
|
||||
pdf = False
|
||||
for i in entries:
|
||||
if ".pdf" in i:
|
||||
pdf = i
|
||||
if pdf:
|
||||
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
|
||||
name=get_configuration["access_point"][0]["model"] + "_dataplane")
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
lf_test.Client_disconnect(station_name=station_names_fiveg)
|
||||
assert station
|
||||
else:
|
||||
assert False
|
||||
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.all_mcs
|
||||
def test_client_wpa2_personal_nat_all_mcs_2g(self, get_vif_state,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Receiver Sensitivity nat Mode
|
||||
pytest -m "rx_sensitivity_test and nat and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
security = "wpa2"
|
||||
attenuator = setup_params_general["attenuator"]["attenuator"]
|
||||
attenuator2 = setup_params_general["attenuator"]["attenuator2"]
|
||||
mode = "NAT"
|
||||
band = "twog"
|
||||
vlan = 1
|
||||
dut_name = create_lanforge_chamberview_dut
|
||||
raw_lines = [['txo_preamble: VHT'],
|
||||
['txo_mcs: 0 CCK, OFDM, HT, VHT;1 CCK, OFDM, HT, VHT;2 CCK, OFDM, HT, VHT;3 CCK, OFDM, HT, VHT'
|
||||
'4 OFDM, HT, VHT;5 OFDM, HT, VHT;6 OFDM, HT, VHT;7 OFDM, HT, VHT;8 VHT;9 VHT'],
|
||||
['spatial_streams: 1'], ['bandw_options: 20'], ['txo_sgi: OFF'],
|
||||
['txo_retries: No Retry'], ['attenuator: %s' % attenuator], ['attenuator2: %s' % attenuator2],
|
||||
["show_3s: 1"], ['txo_txpower: 17'],
|
||||
["show_ll_graphs: 1"], ["show_log: 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")
|
||||
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.rx_sensitivity(station_name=station_names_twog, mode=mode,
|
||||
instance_name="TIP_PERF_RX_SEN_WPA2_NAT_2G_ALL_MCS",
|
||||
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
|
||||
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
||||
entries = os.listdir("../reports/" + report_name + '/')
|
||||
pdf = False
|
||||
for i in entries:
|
||||
if ".pdf" in i:
|
||||
pdf = i
|
||||
if pdf:
|
||||
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
|
||||
name=get_configuration["access_point"][0]["model"] + "_dataplane")
|
||||
print("Test Completed... Cleaning up Stations")
|
||||
lf_test.Client_disconnect(station_name=station_names_twog)
|
||||
assert station
|
||||
else:
|
||||
assert False
|
||||
2123
tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_2g.py
Normal file
2123
tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_2g.py
Normal file
File diff suppressed because it is too large
Load Diff
2123
tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_5g.py
Normal file
2123
tests/e2e/advanced/receiver_sensitivity/test_vlan_mode_5g.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,104 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test open security and bridge"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test,
|
||||
pytest.mark.bridge] # , pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"open": [
|
||||
{"ssid_name": "open", "appliedRadios": ["2G"]},
|
||||
{"ssid_name": "open", "appliedRadios": ["5G"]}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("BRIDGE MODE open security and Dataplane Throughput Test")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
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")
|
||||
@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):
|
||||
"""Dataplane THroughput BRIDGE Mode.
|
||||
pytest -m "dataplane_throughput_test and BRIDGE and open and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
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
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and BRIDGE and open and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
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
|
||||
@@ -0,0 +1,106 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test open secutrity: nat Mode.
|
||||
pytest -m "dataplane_throughput_test and nat and open"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test,
|
||||
pytest.mark.nat]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"open": [
|
||||
{"ssid_name": "ssid_open_2g", "appliedRadios": ["2G"]},
|
||||
{"ssid_name": "ssid_open_5g", "appliedRadios": ["5G"]}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("NAT MODE Dataplane Throughput Test")
|
||||
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestDataplaneThroughputNAT(object):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat"
|
||||
"""
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and open and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
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
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and open and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
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)
|
||||
|
||||
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
|
||||
@@ -0,0 +1,112 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.vlan, pytest.mark.dataplane_throughput_test]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "VLAN",
|
||||
"ssid_modes": {
|
||||
"open": [
|
||||
{"ssid_name": "ssid_open_2g", "appliedRadios": ["2G"], "vlan": 100},
|
||||
{"ssid_name": "ssid_open_5g", "appliedRadios": ["5G"], "vlan": 100}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("VLAN MODE open security and Dataplane Throughput Test")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.parametrize(
|
||||
'create_vlan',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("create_vlan")
|
||||
class TestDataplaneThroughputVLAN(object):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and open and VLAN"
|
||||
"""
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and VLAN and open and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and VLAN and open and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["open"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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
|
||||
@@ -36,9 +36,11 @@ class TestDataplaneThroughputBRIDGE(object):
|
||||
pytest -m "dataplane_throughput_test and BRIDGE"
|
||||
"""
|
||||
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
def test_tcp_upd_2g_band(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_bridge_2g_band(self, get_vif_state, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
@@ -70,9 +72,11 @@ class TestDataplaneThroughputBRIDGE(object):
|
||||
else:
|
||||
assert 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_5g_band(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_bridge_5g_band(self, get_vif_state, lf_tools,
|
||||
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and BRIDGE and wpa2_personal and fiveg"
|
||||
@@ -36,10 +36,11 @@ class TestDataplaneThroughputNAT(object):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat"
|
||||
"""
|
||||
|
||||
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3913", name="WIFI-3913")
|
||||
@pytest.mark.wpa2_personal
|
||||
@pytest.mark.twog
|
||||
def test_tcp_upd_2g_band(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_nat_2g_band(self, get_vif_state, lf_tools,
|
||||
lf_test, station_names_twog, create_lanforge_chamberview_dut,
|
||||
get_configuration):
|
||||
"""Dataplane THroughput nat Mode
|
||||
@@ -71,9 +72,10 @@ class TestDataplaneThroughputNAT(object):
|
||||
else:
|
||||
assert 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_5g_band(self, get_vif_state, lf_tools,
|
||||
def test_tcp_upd_wpa2_personal_nat_5g_band(self, get_vif_state, lf_tools,
|
||||
lf_test, station_names_fiveg, create_lanforge_chamberview_dut, get_configuration):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa2_personal and fiveg"
|
||||
@@ -1,7 +1,8 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and VLAN"
|
||||
pytest -m "dataplane_throughput_test and vlan"
|
||||
|
||||
|
||||
"""
|
||||
import os
|
||||
@@ -11,6 +12,7 @@ import allure
|
||||
pytestmark = [pytest.mark.performance,
|
||||
pytest.mark.vlan]
|
||||
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "VLAN",
|
||||
"ssid_modes": {
|
||||
@@ -31,25 +33,19 @@ setup_params_general = {
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
@pytest.mark.parametrize(
|
||||
'create_vlan',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("create_vlan")
|
||||
|
||||
class TestDataplaneThroughputVLAN(object):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and VLAN"
|
||||
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_2g_band(self, get_vif_state, lf_tools,
|
||||
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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and VLAN and wpa2_personal and twog"
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa2_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -77,12 +73,13 @@ class TestDataplaneThroughputVLAN(object):
|
||||
else:
|
||||
assert 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_5g_band(self, get_vif_state, lf_tools,
|
||||
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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and VLAN and wpa2_personal and fiveg"
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa2_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
@@ -0,0 +1,106 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and wpa3 and bridge"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test,
|
||||
pytest.mark.bridge] # , pytest.mark.usefixtures("setup_test_run")]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa3_personal": [
|
||||
{"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("BRIDGE MODE Dataplane Throughput Test")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
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):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and bridge and wpa3_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and bridge and wpa3_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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
|
||||
@@ -0,0 +1,104 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: nat Mode
|
||||
pytest -m "dataplane_throughput_test and and wpa3 nat"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test, pytest.mark.nat]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"wpa3_personal": [
|
||||
{"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something"}]},
|
||||
"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_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestDataplaneThroughputNAT(object):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and wpa3_personal and nat"
|
||||
"""
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa3_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa3_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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
|
||||
@@ -0,0 +1,106 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test, pytest.mark.vlan]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "VLAN",
|
||||
"ssid_modes": {
|
||||
"wpa3_personal": [
|
||||
{"ssid_name": "ssid_wpa3_2g", "appliedRadios": ["2G"], "security_key": "something", "vlan": 100},
|
||||
{"ssid_name": "ssid_wpa3_5g", "appliedRadios": ["5G"], "security_key": "something", "vlan": 100}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("VLAN MODE Dataplane Throughput Test")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestDataplaneThroughputVLAN(object):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and wpa3_personal and vlan"
|
||||
"""
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa3_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa3_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
@@ -0,0 +1,106 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and bridge and wpa_personal"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test,
|
||||
pytest.mark.bridge]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa": [
|
||||
{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["5G"], "security_key": "something"}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("BRIDGE MODE Dataplane Throughput Test")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
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):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and bridge and wpa and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput BRIDGE Mode
|
||||
pytest -m "dataplane_throughput_test and bridge and wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
@@ -0,0 +1,107 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test,
|
||||
pytest.mark.nat]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "NAT",
|
||||
"ssid_modes": {
|
||||
"wpa": [
|
||||
{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["5G"], "security_key": "something"}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("NAT MODE Dataplane Throughput Test")
|
||||
@allure.feature("NAT MODE CLIENT CONNECTIVITY")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestDataplaneThroughputNAT(object):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa"
|
||||
"""
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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):
|
||||
"""Dataplane THroughput nat Mode
|
||||
pytest -m "dataplane_throughput_test and nat and wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
@@ -0,0 +1,105 @@
|
||||
"""
|
||||
|
||||
Performance Test: Dataplane Throughput Test: VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa"
|
||||
|
||||
"""
|
||||
import os
|
||||
import pytest
|
||||
import allure
|
||||
|
||||
pytestmark = [pytest.mark.performance, pytest.mark.dataplane_throughput_test, pytest.mark.vlan]
|
||||
|
||||
setup_params_general = {
|
||||
"mode": "VLAN",
|
||||
"ssid_modes": {
|
||||
"wpa": [
|
||||
{"ssid_name": "ssid_wpa_2g", "appliedRadios": ["2G"], "security_key": "something", "vlan": 100},
|
||||
{"ssid_name": "ssid_wpa_5g", "appliedRadios": ["5G"], "security_key": "something", "vlan": 100}]},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
|
||||
|
||||
@allure.suite("performance")
|
||||
@allure.feature("VLAN MODE Dataplane Throughput Test")
|
||||
@pytest.mark.parametrize(
|
||||
'setup_profiles',
|
||||
[setup_params_general],
|
||||
indirect=True,
|
||||
scope="class"
|
||||
)
|
||||
@pytest.mark.usefixtures("setup_profiles")
|
||||
class TestDataplaneThroughputVLAN(object):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and wpa_personal and VLAN"
|
||||
"""
|
||||
|
||||
@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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][0]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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)
|
||||
|
||||
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):
|
||||
"""Dataplane THroughput VLAN Mode
|
||||
pytest -m "dataplane_throughput_test and vlan and wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general["ssid_modes"]["wpa"][1]
|
||||
ssid_name = profile_data["ssid_name"]
|
||||
security_key = profile_data["security_key"]
|
||||
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
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,465 @@
|
||||
"""
|
||||
|
||||
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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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-3687", name="WIFI-3687")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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-3688", name="WIFI-3688")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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-3689", name="WIFI-3689")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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-3690", name="WIFI-3690")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
lf_tools.reset_scenario()
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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-3650", name="WIFI-3650")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3656", name="WIFI-3656")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3666", name="WIFI-3666")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3660", name="WIFI-3660")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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-3652", name="WIFI-3652")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3657", name="WIFI-3657")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3667", name="WIFI-3667")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3661", name="WIFI-3661")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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
|
||||
@@ -0,0 +1,439 @@
|
||||
"""
|
||||
|
||||
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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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"
|
||||
"""
|
||||
@pytest.mark.hari
|
||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3687", name="WIFI-3687")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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-3688", name="WIFI-3688")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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-3689", name="WIFI-3689")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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-3690", name="WIFI-3690")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_wpa_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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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-3650", name="WIFI-3650")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3656", name="WIFI-3656")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3666", name="WIFI-3666")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3660", name="WIFI-3660")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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-3652", name="WIFI-3652")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3657", name="WIFI-3657")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3667", name="WIFI-3667")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3661", name="WIFI-3661")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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
|
||||
@@ -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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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.wpa_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-3687", name="WIFI-3687")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_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-3688", name="WIFI-3688")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_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-3689", name="WIFI-3689")
|
||||
@pytest.mark.wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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_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-3690", name="WIFI-3690")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and dual_band"
|
||||
"""
|
||||
profile_data = setup_params_general_dual_band["ssid_modes"]["wpa_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": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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-3650", name="WIFI-3650")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3656", name="WIFI-3656")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3666", name="WIFI-3666")
|
||||
@pytest.mark.wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_wpa_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-3660", name="WIFI-3660")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and twog"
|
||||
"""
|
||||
profile_data = setup_params_general_2G["ssid_modes"]["wpa_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_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_5G = {
|
||||
"mode": "VLAN",
|
||||
"ssid_modes": {
|
||||
"wpa_personal": [
|
||||
{"ssid_name": "ssid_wpa_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-3652", name="WIFI-3652")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_download
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3657", name="WIFI-3657")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_download
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3667", name="WIFI-3667")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.tcp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_wpa_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-3661", name="WIFI-3661")
|
||||
@pytest.mark.wpa_personal
|
||||
@pytest.mark.udp_bidirectional
|
||||
def test_client_wpa_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 wpa_personal and fiveg"
|
||||
"""
|
||||
profile_data = setup_params_general_5G["ssid_modes"]["wpa_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_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
|
||||
@@ -151,7 +151,8 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
|
||||
station_name=station_names_fiveg, vlan_id=vlan)
|
||||
|
||||
assert passes
|
||||
|
||||
|
||||
@pytest.mark.uc_sanity
|
||||
@pytest.mark.wpa3_enterprise
|
||||
@pytest.mark.twog
|
||||
def test_wpa3_enterprise_2g(self, get_vif_state,
|
||||
@@ -178,7 +179,8 @@ class TestBridgeModeEnterpriseTTLSSuiteA(object):
|
||||
station_name=station_names_twog, vlan_id=vlan)
|
||||
|
||||
assert passes
|
||||
|
||||
|
||||
@pytest.mark.uc_sanity
|
||||
@pytest.mark.wpa3_enterprise
|
||||
@pytest.mark.fiveg
|
||||
def test_wpa3_enterprise_5g(self, get_vif_state,
|
||||
|
||||
@@ -133,6 +133,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
|
||||
@pytest.mark.wpa3_enterprise
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.uc_sanity
|
||||
def test_wpa3_enterprise_2g(self, get_vif_state,station_names_twog, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][0]
|
||||
@@ -156,6 +157,7 @@ class TestNATModeEnterpriseTTLSSuiteOne(object):
|
||||
|
||||
@pytest.mark.wpa3_enterprise
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.uc_sanity
|
||||
def test_wpa3_enterprise_5g(self, get_vif_state,station_names_fiveg, setup_profiles, get_lanforge_data, lf_test, update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
profile_data = setup_params_enterprise["ssid_modes"]["wpa3_enterprise"][1]
|
||||
|
||||
@@ -137,6 +137,7 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
||||
|
||||
@pytest.mark.wpa3_enterprise
|
||||
@pytest.mark.twog
|
||||
@pytest.mark.uc_sanity
|
||||
def test_wpa3_enterprise_2g(self, get_vif_state, station_names_twog, setup_profiles, get_lanforge_data, lf_test,
|
||||
update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
@@ -161,6 +162,7 @@ class TestVLANModeEnterpriseTTLSSuiteOne(object):
|
||||
|
||||
@pytest.mark.wpa3_enterprise
|
||||
@pytest.mark.fiveg
|
||||
@pytest.mark.uc_sanity
|
||||
def test_wpa3_enterprise_5g(self, get_vif_state, station_names_fiveg, setup_profiles, get_lanforge_data, lf_test,
|
||||
update_report,
|
||||
test_cases, radius_info, exit_on_fail):
|
||||
|
||||
Reference in New Issue
Block a user