mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-30 18:38:06 +00:00
Wifi 12025 - Refactored Dual band performance tests (#772)
* requested combination supper multi-band Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Refactored dual band performance test-bridge-wpa2 Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Refactored dual band performance test Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * requested combination supper multi-band Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Refactored dual band performance test-bridge-wpa2 Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Refactored dual band performance test Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Refactored dual band performance test Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Added title, suite for dual band performance Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Added pass/fail dual band performance test Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> * Function name changed dual_band_performance_test Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com> --------- Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
This commit is contained in:
@@ -168,10 +168,16 @@ class tip_2x:
|
|||||||
for i in base_dict:
|
for i in base_dict:
|
||||||
base_dict[i] = []
|
base_dict[i] = []
|
||||||
for i in requested_combination:
|
for i in requested_combination:
|
||||||
if i[0] in self.supported_bands:
|
sec_mode = list(set(i) & set(self.tip_2x_specific_encryption_translation))
|
||||||
base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[1]])
|
bands = i.copy()
|
||||||
if i[1] in self.supported_bands:
|
bands.remove(sec_mode[0])
|
||||||
base_dict[i[1]].append((self.tip_2x_specific_encryption_translation[i[0]]))
|
[base_dict[j].append(self.tip_2x_specific_encryption_translation[sec_mode[0]]) for j in bands]
|
||||||
|
|
||||||
|
# for i in requested_combination:
|
||||||
|
# if i[0] in self.supported_bands:
|
||||||
|
# base_dict[i[0]].append(self.tip_2x_specific_encryption_translation[i[1]])
|
||||||
|
# if i[1] in self.supported_bands:
|
||||||
|
# base_dict[i[1]].append((self.tip_2x_specific_encryption_translation[i[0]]))
|
||||||
temp = []
|
temp = []
|
||||||
for i in list(base_dict.values()):
|
for i in list(base_dict.values()):
|
||||||
for j in i:
|
for j in i:
|
||||||
|
|||||||
@@ -5,12 +5,10 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.performance_release]#,
|
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.performance_release]
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "BRIDGE",
|
"mode": "BRIDGE",
|
||||||
@@ -32,8 +30,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: Bridge mode")
|
||||||
|
@allure.sub_suite("Open security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceBridge(object):
|
class TestOpenDualbandPerformanceBridge(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and bridge and open and twog and fiveg"
|
pytest -m "performance and dual_band_test and bridge and open and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -41,31 +43,30 @@ class TestDualbandPerformanceBridge(object):
|
|||||||
@pytest.mark.open
|
@pytest.mark.open
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_open_bridge(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of bridge mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_open_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with open encryption
|
||||||
|
pytest -m "dual_band_test and open"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["open"]
|
profile_data = setup_params_general["ssid_modes"]["open"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-bridge-open"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_openp_bridge_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
@@ -5,12 +5,10 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.nat, pytest.mark.performance_release]#,
|
pytestmark = [pytest.mark.dual_band_test, pytest.mark.nat, pytest.mark.performance_release]#,
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "NAT",
|
"mode": "NAT",
|
||||||
@@ -32,8 +30,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: NAT mode")
|
||||||
|
@allure.sub_suite("Open security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceNat(object):
|
class TestOpenDualbandPerformanceNat(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and nat and open and twog and fiveg"
|
pytest -m "performance and dual_band_test and nat and open and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -41,31 +43,30 @@ class TestDualbandPerformanceNat(object):
|
|||||||
@pytest.mark.open
|
@pytest.mark.open
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_open_nat(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of NAT mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_open_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with open encryption
|
||||||
|
pytest -m "dual_band_test and open"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["open"]
|
profile_data = setup_params_general["ssid_modes"]["open"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
mode = "NAT-WAN"
|
||||||
mode = "NAT"
|
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-bridge-open"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_openp_nat_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Open Security Bridge")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Dual Band Performance Test : VLAN Mode
|
Dual Band Performance Test : VLAN Mode
|
||||||
pytest -m "performance and dual_band_test and VLAN"
|
pytest -m "performance and dual_band_test and vlan"
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.vlan, pytest.mark.performance_release]#,
|
pytestmark = [pytest.mark.dual_band_test, pytest.mark.vlan, pytest.mark.performance_release]
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "VLAN",
|
"mode": "VLAN",
|
||||||
"ssid_modes": {
|
"ssid_modes": {
|
||||||
"open": [
|
"open": [
|
||||||
{"ssid_name": "ssid_openp_2g", "appliedRadios": ["2G", "5G"], "security_key": "something"}
|
{"ssid_name": "ssid_openp_2g", "appliedRadios": ["2G", "5G"], "security_key": "something", "vlan": 100}
|
||||||
]},
|
]},
|
||||||
"rf": {},
|
"rf": {},
|
||||||
"radius": False
|
"radius": False
|
||||||
@@ -32,8 +31,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: VLAN mode")
|
||||||
|
@allure.sub_suite("Open security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceVLAN(object):
|
class TestOpenDualbandPerformanceVLAN(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and vlan and open and twog and fiveg"
|
pytest -m "performance and dual_band_test and vlan and open and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -41,31 +44,30 @@ class TestDualbandPerformanceVLAN(object):
|
|||||||
@pytest.mark.open
|
@pytest.mark.open
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_open_vlan(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of and VLAN mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_open_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with open encryption
|
||||||
|
pytest -m "dual_band_test and open"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["open"]
|
profile_data = setup_params_general["ssid_modes"]["open"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
vlan = 100
|
vlan = [100]
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-bridge-open"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_openp_VLAN_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Open Security Vlan Mode")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
@@ -5,12 +5,11 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge,
|
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge,
|
||||||
pytest.mark.single_station_dual_band_throughput]# pytest.mark.usefixtures("setup_test_run")]
|
pytest.mark.single_station_dual_band_throughput]
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "BRIDGE",
|
"mode": "BRIDGE",
|
||||||
@@ -32,8 +31,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: Bridge mode")
|
||||||
|
@allure.sub_suite("wpa3_personal security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceBridge(object):
|
class TestWpa3DualbandPerformanceBridge(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and bridge and wpa3_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and bridge and wpa3_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -42,31 +45,30 @@ class TestDualbandPerformanceBridge(object):
|
|||||||
@pytest.mark.wpa3_personal
|
@pytest.mark.wpa3_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa3_personal_bridge(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of bridge mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa3_personal_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa3_personal encryption
|
||||||
|
pytest -m "dual_band_test and wpa3_personal"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"]
|
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-bridge-wpa3"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpa3p_BRIDGE_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa3 Personal Test")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
@@ -5,19 +5,17 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.nat, pytest.mark.dual_band_test]#,
|
pytestmark = [pytest.mark.nat, pytest.mark.dual_band_test]
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "NAT",
|
"mode": "NAT",
|
||||||
"ssid_modes": {
|
"ssid_modes": {
|
||||||
"wpa3_personal": [
|
"wpa3_personal": [
|
||||||
{"ssid_name": "ssid_wpa3_personal_dual_band", "appliedRadios": ["2G", "5G"], "security_key": "something", "vlan": 100}
|
{"ssid_name": "ssid_wpa3_personal_dual_band", "appliedRadios": ["2G", "5G"], "security_key": "something"}
|
||||||
]},
|
]},
|
||||||
"rf": {},
|
"rf": {},
|
||||||
"radius": False
|
"radius": False
|
||||||
@@ -33,8 +31,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: NAT mode")
|
||||||
|
@allure.sub_suite("wpa3_personal security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceNat(object):
|
class TestWpa3DualbandPerformanceNat(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and nat and wpa3_personal and twog and fiveg."
|
pytest -m "performance and dual_band_test and nat and wpa3_personal and twog and fiveg."
|
||||||
"""
|
"""
|
||||||
@@ -43,31 +45,30 @@ class TestDualbandPerformanceNat(object):
|
|||||||
@pytest.mark.wpa3_personal
|
@pytest.mark.wpa3_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa3_personal_nat(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of NAT mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa3_personal_nat(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa3_personal encryption
|
||||||
|
pytest -m "dual_band_test and wpa3_personal"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"]
|
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
mode = "NAT-WAN"
|
||||||
mode = "NAT"
|
vlan = 1
|
||||||
vlan = 100
|
dut_5g, dut_2g = "", ""
|
||||||
print(lf_tools.dut_idx_mapping)
|
influx_tags = "dual-band-nat-wpa3"
|
||||||
dut_5g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
dut_2g = ""
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
for i in lf_tools.dut_idx_mapping:
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
print(dut_5g)
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpa3p_NAT_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa3 NAT Test")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
@@ -5,12 +5,10 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test]#,
|
pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test]
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
@@ -33,8 +31,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: VLAN mode")
|
||||||
|
@allure.sub_suite("wpa3_personal security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceVlan(object):
|
class TestWpa3DualbandPerformanceVlan(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and vlan and wpa3_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and vlan and wpa3_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -43,31 +45,30 @@ class TestDualbandPerformanceVlan(object):
|
|||||||
@pytest.mark.wpa3_personal
|
@pytest.mark.wpa3_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa3_personal_vlan(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of VLAN mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa3_personal_vlan(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa3_personal encryption
|
||||||
|
pytest -m "dual_band_test and wpa3_personal"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"]
|
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
vlan = 100
|
vlan = [100]
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-vlan-wpa3"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpa3p_VLAN_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa3 Vlan Test")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
@@ -1,16 +1,15 @@
|
|||||||
"""
|
"""
|
||||||
Dual Band Performance Test : BRIDGE Mode
|
Dual Band Performance Test : BRIDGE Mode
|
||||||
pytest -m "performance and dual_band_test and BRIDGE"
|
pytest -m "performance and dual_band_test and bridge"
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.performance, pytest.mark.dual_band_test, pytest.mark.bridge,
|
pytestmark = [pytest.mark.performance, pytest.mark.dual_band_test, pytest.mark.bridge,
|
||||||
pytest.mark.single_station_dual_band_throughput]# pytest.mark.usefixtures("setup_test_run")]
|
pytest.mark.single_station_dual_band_throughput]
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "BRIDGE",
|
"mode": "BRIDGE",
|
||||||
@@ -32,39 +31,43 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: Bridge mode")
|
||||||
|
@allure.sub_suite("wpa2_personal security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceBRIDGE(object):
|
class TestWpa2DualbandPerformanceBridge(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and BRIDGE and wpa2_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and bridge and wpa2_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3918", name="WIFI-3918")
|
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3918", name="WIFI-3918")
|
||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa2_personal_bridge(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of bridge mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa2_personal_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa2_personal encryption
|
||||||
|
pytest -m "dual_band_test and wpa2_personal"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
|
||||||
dut_2g = ""
|
|
||||||
influx_tags = "dual-band-bridge-wpa2"
|
influx_tags = "dual-band-bridge-wpa2"
|
||||||
for i in lf_tools.dut_idx_mapping:
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
print(dut_5g)
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_2g)
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpa2p_BRIDGE_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, move_to_influx=False)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa2 Bridge")
|
assert True
|
||||||
lf_tools.attach_report_kpi(report_name=report_name)
|
else:
|
||||||
assert True
|
assert False, description
|
||||||
|
|||||||
@@ -31,8 +31,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: NAT mode")
|
||||||
|
@allure.sub_suite("wpa2_personal security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceNat(object):
|
class TestWpa2DualbandPerformanceNat(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and nat and wpa2_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and nat and wpa2_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -40,30 +44,30 @@ class TestDualbandPerformanceNat(object):
|
|||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa2_personal_nat(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of NAT mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa2_personal_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa2_personal encryption
|
||||||
|
pytest -m "dual_band_test and wpa2_personal"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
mode = "NAT-WAN"
|
||||||
mode = "NAT"
|
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
|
||||||
dut_2g = ""
|
|
||||||
influx_tags = "dual-band-nat-wpa2"
|
influx_tags = "dual-band-nat-wpa2"
|
||||||
for i in lf_tools.dut_idx_mapping:
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
print(dut_5g)
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_2g)
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpa2p_nat_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, move_to_influx=False)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa2 Nat")
|
assert True
|
||||||
lf_tools.attach_report_kpi(report_name=report_name)
|
else:
|
||||||
assert True
|
assert False, description
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Dual Band Performance Test : VLAN Mode
|
Dual Band Performance Test : VLAN Mode
|
||||||
pytest -m "performance and dual_band_test and VLAN"
|
pytest -m "performance and dual_band_test and vlan"
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -9,8 +9,7 @@ import os
|
|||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.performance, pytest.mark.vlan]#,
|
pytestmark = [pytest.mark.performance, pytest.mark.vlan]
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
@@ -33,8 +32,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: VLAN mode")
|
||||||
|
@allure.sub_suite("wpa2_personal security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceVLAN(object):
|
class TestWpa2DualbandPerformanceVLAN(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and VLAN and wpa2_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and VLAN and wpa2_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -42,31 +45,30 @@ class TestDualbandPerformanceVLAN(object):
|
|||||||
@pytest.mark.wpa2_personal
|
@pytest.mark.wpa2_personal
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa2_personal_vlan(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of VLAN mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa2_personal_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa2_personal encryption
|
||||||
|
pytest -m "dual_band_test and wpa2_personal"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "VLAN"
|
mode = "VLAN"
|
||||||
vlan = 100
|
vlan = [100]
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-vlan-wpa2"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpa2p_VLAN_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa2 Vlan")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import allure
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge,
|
pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge,
|
||||||
pytest.mark.single_station_dual_band_throughput]# pytest.mark.usefixtures("setup_test_run")]
|
pytest.mark.single_station_dual_band_throughput]
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "BRIDGE",
|
"mode": "BRIDGE",
|
||||||
@@ -32,8 +32,13 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: Bridge mode")
|
||||||
|
@allure.sub_suite("wpa security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceBRIDGE(object):
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
|
class TestWpaDualbandPerformanceBridge(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and bridge and wpa_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and bridge and wpa_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -42,31 +47,30 @@ class TestDualbandPerformanceBRIDGE(object):
|
|||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa_personal_bridge(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of bridge mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa_personal_bridge(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa encryption
|
||||||
|
pytest -m "dual_band_test and wpa"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa"]
|
profile_data = setup_params_general["ssid_modes"]["wpa"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
|
||||||
mode = "BRIDGE"
|
mode = "BRIDGE"
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-bridge-wpa"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpap_BRIDGE_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa Bridge Test")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
@@ -31,41 +31,44 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: NAT mode")
|
||||||
|
@allure.sub_suite("wpa security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceNat(object):
|
class TestWpaDualbandPerformanceNat(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and nat and wpa_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and nat and wpa_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3726", name="WIFI-3726")
|
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-3726", name="WIFI-3726")
|
||||||
@pytest.mark.wpa_personal
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa_personal_nat(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of NAT mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa_personal_nat(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa encryption
|
||||||
|
pytest -m "dual_band_test and wpa"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa"]
|
profile_data = setup_params_general["ssid_modes"]["wpa"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
mode = "NAT-WAN"
|
||||||
mode = "NAT"
|
|
||||||
vlan = 1
|
vlan = 1
|
||||||
print(lf_tools.dut_idx_mapping)
|
dut_5g, dut_2g = "", ""
|
||||||
dut_5g = ""
|
influx_tags = "dual-band-bridge-wpa"
|
||||||
dut_2g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
for i in lf_tools.dut_idx_mapping:
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
print(dut_5g)
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpap_nat_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa Nat Test")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ import os
|
|||||||
import allure
|
import allure
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test]#,
|
pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test]
|
||||||
# pytest.mark.usefixtures("setup_test_run")]
|
|
||||||
|
|
||||||
|
|
||||||
setup_params_general = {
|
setup_params_general = {
|
||||||
"mode": "VLAN",
|
"mode": "VLAN",
|
||||||
@@ -33,8 +31,12 @@ setup_params_general = {
|
|||||||
indirect=True,
|
indirect=True,
|
||||||
scope="class"
|
scope="class"
|
||||||
)
|
)
|
||||||
|
@allure.parent_suite("Dual Band Tests")
|
||||||
|
@allure.suite("Dual Band Tests: VLAN mode")
|
||||||
|
@allure.sub_suite("wpa security")
|
||||||
|
@allure.feature("Dual band performance test")
|
||||||
@pytest.mark.usefixtures("setup_configuration")
|
@pytest.mark.usefixtures("setup_configuration")
|
||||||
class TestDualbandPerformanceVLAN(object):
|
class TestWpaDualbandPerformanceVLAN(object):
|
||||||
"""
|
"""
|
||||||
pytest -m "performance and dual_band_test and vlan and wpa_personal and twog and fiveg"
|
pytest -m "performance and dual_band_test and vlan and wpa_personal and twog and fiveg"
|
||||||
"""
|
"""
|
||||||
@@ -43,31 +45,30 @@ class TestDualbandPerformanceVLAN(object):
|
|||||||
@pytest.mark.wpa
|
@pytest.mark.wpa
|
||||||
@pytest.mark.twog
|
@pytest.mark.twog
|
||||||
@pytest.mark.fiveg
|
@pytest.mark.fiveg
|
||||||
def test_client_wpa_personal_vlan(self, lf_tools,
|
@allure.title("Test Dual Band with ApAuto test of VLAN mode")
|
||||||
create_lanforge_chamberview_dut, lf_test, get_configuration):
|
def test_client_wpa_personal_vlan(self, get_test_library, setup_configuration, check_connectivity):
|
||||||
|
"""
|
||||||
|
Dual Band Test with wpa encryption
|
||||||
|
pytest -m "dual_band_test and wpa"
|
||||||
|
"""
|
||||||
profile_data = setup_params_general["ssid_modes"]["wpa"]
|
profile_data = setup_params_general["ssid_modes"]["wpa"]
|
||||||
ssid_2G = profile_data[0]["ssid_name"]
|
ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"]
|
||||||
ssid_5G = profile_data[0]["ssid_name"]
|
dut_name = list(setup_configuration.keys())[0]
|
||||||
dut_name = create_lanforge_chamberview_dut
|
mode = "BRIDGE"
|
||||||
mode = "VLAN"
|
vlan = [100]
|
||||||
vlan = 100
|
dut_5g, dut_2g = "", ""
|
||||||
print(lf_tools.dut_idx_mapping)
|
influx_tags = "dual-band-bridge-wpa"
|
||||||
dut_5g = ""
|
for i in setup_configuration[dut_name]['ssid_data']:
|
||||||
dut_2g = ""
|
get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values())
|
||||||
for i in lf_tools.dut_idx_mapping:
|
if get_test_library.dut_idx_mapping[str(i)][3] == "5G":
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "5G":
|
dut_5g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
if get_test_library.dut_idx_mapping[str(i)][3] == "2G":
|
||||||
print(dut_5g)
|
dut_2g = dut_name + ' ' + get_test_library.dut_idx_mapping[str(i)][0] + ' ' + get_test_library.dut_idx_mapping[str(i)][4]
|
||||||
if lf_tools.dut_idx_mapping[i][3] == "2G":
|
|
||||||
dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
|
|
||||||
print(dut_2g)
|
|
||||||
if ssid_2G and ssid_5G not in get_vif_state:
|
|
||||||
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
|
|
||||||
pytest.xfail("SSID's NOT AVAILABLE IN VIF STATE")
|
|
||||||
|
|
||||||
dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G,
|
result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan,
|
||||||
instance_name="dbp_instance_wpap_VLAN_p",
|
dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags,
|
||||||
vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g)
|
move_to_influx=False, dut_data=setup_configuration)
|
||||||
report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
|
if result:
|
||||||
lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa Vlan")
|
assert True
|
||||||
assert True
|
else:
|
||||||
|
assert False, description
|
||||||
|
|||||||
Reference in New Issue
Block a user