Added base peak throughput tests

Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
shivam
2022-08-29 17:55:08 +05:30
committed by karthikaeyetea
parent ab627491a6
commit a0075d22e1
13 changed files with 4590 additions and 0 deletions

View File

@@ -0,0 +1,721 @@
"""
Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode
pytest -m "country_code and Bridge"
"""
import os
import pytest
import allure
pytestmark = [pytest.mark.country_code, pytest.mark.bridge, pytest.mark.wpa2, pytest.mark.canada]
setup_params_general1 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 1}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general1],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel1(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel1
def test_client_bridge_wpa2_chn1_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel1"
"""
profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general1['rf']['2G']['channel']
channel_width = setup_params_general1['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general2 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 2}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general2],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel2(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel2
def test_client_bridge_wpa2_chn2_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel2"
"""
profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general2['rf']['2G']['channel']
channel_width = setup_params_general2['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general3 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 3}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general3],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel3(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel3
def test_client_bridge_wpa2_chn3_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel3"
"""
profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general3['rf']['2G']['channel']
channel_width = setup_params_general3['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general4 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 4}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general4],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel4(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel4
def test_client_bridge_wpa2_chn4_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel4"
"""
profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general4['rf']['2G']['channel']
channel_width = setup_params_general4['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general5 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 5}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general5],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel5(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel5
def test_client_bridge_wpa2_chn5_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel5"
"""
profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general5['rf']['2G']['channel']
channel_width = setup_params_general5['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general6 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 6}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general6],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel6(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel6
def test_client_bridge_wpa2_chn6_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel6"
"""
profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general6['rf']['2G']['channel']
channel_width = setup_params_general6['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general7 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 7}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general7],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel7(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel7
def test_client_bridge_wpa2_chn7_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel7"
"""
profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general7['rf']['2G']['channel']
channel_width = setup_params_general7['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general8 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 8}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general8],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel8(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel8
def test_client_bridge_wpa2_chn8_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel8"
"""
profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general8['rf']['2G']['channel']
channel_width = setup_params_general8['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general9 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 9}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general9],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel9(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel9
def test_client_bridge_wpa2_chn9_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel9"
"""
profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general9['rf']['2G']['channel']
channel_width = setup_params_general9['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general10 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 10}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general10],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel10(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel10
def test_client_bridge_wpa2_chn10_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel10"
"""
profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general10['rf']['2G']['channel']
channel_width = setup_params_general10['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general11 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 20,
"channel": 36},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 20,
"channel": 11}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general11],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA20Mhz2GChannel11(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.twentyMhz
@pytest.mark.twog
@pytest.mark.channel11
def test_client_bridge_wpa2_chn11_20Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and twentyMhz and wpa2 and twog and channel11"
"""
profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general11['rf']['2G']['channel']
channel_width = setup_params_general11['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False

View File

@@ -0,0 +1,941 @@
"""
Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode
pytest -m "country_code and Bridge"
"""
import allure
import pytest
pytestmark = [pytest.mark.peak_throughput_tests, pytest.mark.bridge, pytest.mark.wpa3_personal]
setup_params_general1 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 36
}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.channel_36
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general1],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel36PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general2 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 44}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.channel_44
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general2],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel44PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_44", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general5 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}]
},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 52}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general5],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel52PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general7 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 60}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general7],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel60PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_60", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general9 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 100}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general9],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel100PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general11 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 108
}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general11],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel108PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_108", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general14 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 132}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general14],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel132PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general15 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 136}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general15],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel136PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_136", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general16 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 140}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general16],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel140PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_140", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True

View File

@@ -0,0 +1,736 @@
"""
Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode
pytest -m "country_code and Bridge"
"""
import os
import pytest
import allure
pytestmark = [pytest.mark.country_code, pytest.mark.bridge, pytest.mark.wpa2, pytest.mark.canada]
setup_params_general1 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{
'band': '2G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 1
}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general1],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel1(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel1
def test_client_bridge_wpa2_chn1_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel1"
"""
profile_data = setup_params_general1["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general1['rf']['2G']['channel']
channel_width = setup_params_general1['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general2 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 2}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general2],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel2(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel2
def test_client_bridge_wpa2_chn2_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel2"
"""
profile_data = setup_params_general2["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general2['rf']['2G']['channel']
channel_width = setup_params_general2['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general3 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 3}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general3],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel3(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel3
def test_client_bridge_wpa2_chn3_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel3"
"""
profile_data = setup_params_general3["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general3['rf']['2G']['channel']
channel_width = setup_params_general3['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general4 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 4}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general4],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel4(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel4
def test_client_bridge_wpa2_chn4_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel4"
"""
profile_data = setup_params_general4["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general4['rf']['2G']['channel']
channel_width = setup_params_general4['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general5 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 5}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general5],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel5(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel5
def test_client_bridge_wpa2_chn5_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel5"
"""
profile_data = setup_params_general5["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general5['rf']['2G']['channel']
channel_width = setup_params_general5['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general6 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 6}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general6],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel6(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel6
def test_client_bridge_wpa2_chn6_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel6"
"""
profile_data = setup_params_general6["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general6['rf']['2G']['channel']
channel_width = setup_params_general6['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general7 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 7}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general7],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel7(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel7
def test_client_bridge_wpa2_chn7_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel7"
"""
profile_data = setup_params_general7["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general7['rf']['2G']['channel']
channel_width = setup_params_general7['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general8 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 8}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general8],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel8(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel8
def test_client_bridge_wpa2_chn8_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel8"
"""
profile_data = setup_params_general8["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general8['rf']['2G']['channel']
channel_width = setup_params_general8['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general9 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 9}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general9],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel9(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel9
def test_client_bridge_wpa2_chn9_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel9"
"""
profile_data = setup_params_general9["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general9['rf']['2G']['channel']
channel_width = setup_params_general9['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general10 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 10}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general10],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel10(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel10
def test_client_bridge_wpa2_chn10_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel10"
"""
profile_data = setup_params_general10["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general10['rf']['2G']['channel']
channel_width = setup_params_general10['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False
setup_params_general11 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa2_personal": [{"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa2_5g", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {"5G":
{
'band': '5G',
'country': 'CA',
"channel-mode": "VHT",
'channel-width': 40,
"channel": 36
},
"2G":
{'band': '2G',
'country': 'CA',
'channel-mode': 'VHT',
'channel-width': 40,
"channel": 11}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general11],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestCountryCA40Mhz2GChannel11(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2546", name="WIFI-6938")
@pytest.mark.wpa2_personal
@pytest.mark.fourtyMhz
@pytest.mark.twog
@pytest.mark.channel11
def test_client_bridge_wpa2_chn11_40Mhz_CA_2g(self, lf_test, station_names_twog, get_configuration):
"""Country code Bridge Mode
pytest -m "country_code and fourtyMhz and wpa2 and twog and channel11"
"""
profile_data = setup_params_general11["ssid_modes"]["wpa2_personal"][0]
ssid = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa2"
mode = "BRIDGE"
band = "twog"
vlan = 1
channel = setup_params_general11['rf']['2G']['channel']
channel_width = setup_params_general11['rf']['2G']['channel-width']
result = lf_test.country_code_channel_division(ssid=ssid, security=security, passkey=security_key, mode=mode,
band=band, station_name=station_names_twog, vlan_id=vlan,
channel=channel,channel_width=channel_width,country_num=124,
country='Canada(CA)')
if result:
assert True
else:
assert False

View File

@@ -0,0 +1,425 @@
"""
Performance Test: Country code along with Channel and Channel-width Test: Bridge Mode
pytest -m "country_code and Bridge"
"""
import allure
import pytest
pytestmark = [pytest.mark.peak_throughput_tests, pytest.mark.bridge, pytest.mark.wpa3_personal]
setup_params_general1 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 36
}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.channel_36
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general1],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel36PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_36", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general5 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}]
},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 52}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general5],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel52PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_52", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general9 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 100}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general9],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel100PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_100", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
setup_params_general14 = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [{"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
]},
"rf": {
"5G": {
'band': '5G',
'channel-width': 40,
"channel": 132}
},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_configuration',
[setup_params_general14],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class Test40Mhz5GChannel132PeakThroughput(object):
"""Country code along with Channel and Channel-width Test Bridge mode
pytest -m "country_code and Bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6934", name="WIFI-6934")
@pytest.mark.tcp_download
def test_client_wpa2_bridge_tcp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6944", name="WIFI-6944")
@pytest.mark.udp_download
def test_client_wpa2_bridge_udp_dl(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6943", name="WIFI-6943")
@pytest.mark.tcp_bidirectional
def test_client_wpa2_bridge_tcp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6946", name="WIFI-6946")
@pytest.mark.udp_bidirectional
def test_client_wpa2_bridge_udp_bidirectional(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6942", name="WIFI-6942")
@pytest.mark.tcp_upload
def test_client_wpa2_bridge_tcp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-6945", name="WIFI-6945")
@pytest.mark.udp_upload
def test_client_wpa2_bridge_udp_ul(self, get_test_library, get_dut_logs_per_test_case,
get_test_device_logs, num_stations, setup_configuration):
""" Wifi Capacity Test BRIDGE mode
pytest -m "wifi_capacity_test and BRIDGE and wpa2_personal and twog"
"""
profile_data = {"ssid_name": "ssid_wpa2_5g_132", "appliedRadios": ["5G"], "security_key": "something"}
ssid_name = profile_data["ssid_name"]
mode = "BRIDGE"
assert True