mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-10-31 10:57:50 +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: | ||||
|             base_dict[i] = [] | ||||
|         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]])) | ||||
|             sec_mode = list(set(i) & set(self.tip_2x_specific_encryption_translation)) | ||||
|             bands = i.copy() | ||||
|             bands.remove(sec_mode[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 = [] | ||||
|         for i in list(base_dict.values()): | ||||
|             for j in i: | ||||
|   | ||||
| @@ -5,12 +5,10 @@ | ||||
|  | ||||
| """ | ||||
|  | ||||
| import os | ||||
| import allure | ||||
| import pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.performance_release]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
| pytestmark = [pytest.mark.dual_band_test, pytest.mark.bridge, pytest.mark.performance_release] | ||||
|  | ||||
| setup_params_general = { | ||||
|     "mode": "BRIDGE", | ||||
| @@ -32,8 +30,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceBridge(object): | ||||
| class TestOpenDualbandPerformanceBridge(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_open_bridge(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of bridge mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "BRIDGE" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-open" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_openp_bridge_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -5,12 +5,10 @@ | ||||
|  | ||||
| """ | ||||
|  | ||||
| import os | ||||
| import allure | ||||
| import pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.dual_band_test, pytest.mark.nat, pytest.mark.performance_release]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
|  | ||||
| setup_params_general = { | ||||
|     "mode": "NAT", | ||||
| @@ -32,8 +30,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceNat(object): | ||||
| class TestOpenDualbandPerformanceNat(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_open_nat(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of NAT mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         mode = "NAT" | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "NAT-WAN" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-open" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_openp_nat_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Open Security Bridge") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| """ | ||||
|        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 pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.dual_band_test, pytest.mark.vlan, pytest.mark.performance_release]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
| pytestmark = [pytest.mark.dual_band_test, pytest.mark.vlan, pytest.mark.performance_release] | ||||
|  | ||||
| setup_params_general = { | ||||
|     "mode": "VLAN", | ||||
|     "ssid_modes": { | ||||
|         "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": {}, | ||||
|     "radius": False | ||||
| @@ -32,8 +31,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceVLAN(object): | ||||
| class TestOpenDualbandPerformanceVLAN(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_open_vlan(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of and VLAN mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "VLAN" | ||||
|         vlan = 100 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         vlan = [100] | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-open" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_openp_VLAN_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Open Security Vlan Mode") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -5,12 +5,11 @@ | ||||
|  | ||||
| """ | ||||
|  | ||||
| import os | ||||
| import allure | ||||
| import pytest | ||||
|  | ||||
| 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 = { | ||||
|     "mode": "BRIDGE", | ||||
| @@ -32,8 +31,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceBridge(object): | ||||
| class TestWpa3DualbandPerformanceBridge(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa3_personal_bridge(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of bridge mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "BRIDGE" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-wpa3" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpa3p_BRIDGE_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa3 Personal Test") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
| @@ -5,19 +5,17 @@ | ||||
|  | ||||
| """ | ||||
|  | ||||
| import os | ||||
| import allure | ||||
| import pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.nat, pytest.mark.dual_band_test]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
| pytestmark = [pytest.mark.nat, pytest.mark.dual_band_test] | ||||
|  | ||||
|  | ||||
| setup_params_general = { | ||||
|     "mode": "NAT", | ||||
|     "ssid_modes": { | ||||
|         "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": {}, | ||||
|     "radius": False | ||||
| @@ -33,8 +31,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceNat(object): | ||||
| class TestWpa3DualbandPerformanceNat(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa3_personal_nat(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of NAT mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         mode = "NAT" | ||||
|         vlan = 100 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "NAT-WAN" | ||||
|         vlan = 1 | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-nat-wpa3" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpa3p_NAT_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa3 NAT Test") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
| @@ -5,12 +5,10 @@ | ||||
|  | ||||
| """ | ||||
|  | ||||
| import os | ||||
| import allure | ||||
| import pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
| pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test] | ||||
|  | ||||
|  | ||||
| setup_params_general = { | ||||
| @@ -33,8 +31,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceVlan(object): | ||||
| class TestWpa3DualbandPerformanceVlan(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa3_personal_vlan(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of VLAN mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "VLAN" | ||||
|         vlan = 100 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         vlan = [100] | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-vlan-wpa3" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpa3p_VLAN_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa3 Vlan Test") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
| @@ -1,16 +1,15 @@ | ||||
| """ | ||||
|        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 pytest | ||||
|  | ||||
| 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 = { | ||||
|     "mode": "BRIDGE", | ||||
| @@ -32,39 +31,43 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| 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") | ||||
|     @pytest.mark.wpa2_personal | ||||
|     @pytest.mark.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa2_personal_bridge(self, lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of bridge mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "BRIDGE" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-wpa2" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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) | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpa2p_BRIDGE_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, move_to_influx=False) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa2 Bridge") | ||||
|         lf_tools.attach_report_kpi(report_name=report_name) | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -31,8 +31,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceNat(object): | ||||
| class TestWpa2DualbandPerformanceNat(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa2_personal_nat(self, lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of NAT mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         mode = "NAT" | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "NAT-WAN" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-nat-wpa2" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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) | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpa2p_nat_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, move_to_influx=False) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa2 Nat") | ||||
|         lf_tools.attach_report_kpi(report_name=report_name) | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| """ | ||||
|        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 pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.performance, pytest.mark.vlan]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
| pytestmark = [pytest.mark.performance, pytest.mark.vlan] | ||||
|  | ||||
|  | ||||
| setup_params_general = { | ||||
| @@ -33,8 +32,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceVLAN(object): | ||||
| class TestWpa2DualbandPerformanceVLAN(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa2_personal_vlan(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of VLAN mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "VLAN" | ||||
|         vlan = 100 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         vlan = [100] | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-vlan-wpa2" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpa2p_VLAN_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa2 Vlan") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import allure | ||||
| import pytest | ||||
|  | ||||
| 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 = { | ||||
|     "mode": "BRIDGE", | ||||
| @@ -32,8 +32,13 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| 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" | ||||
|     """ | ||||
| @@ -42,31 +47,30 @@ class TestDualbandPerformanceBRIDGE(object): | ||||
|     @pytest.mark.wpa | ||||
|     @pytest.mark.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa_personal_bridge(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of bridge mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "BRIDGE" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-wpa" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpap_BRIDGE_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa Bridge Test") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -31,41 +31,44 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceNat(object): | ||||
| class TestWpaDualbandPerformanceNat(object): | ||||
|     """ | ||||
|          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") | ||||
|     @pytest.mark.wpa_personal | ||||
|     @pytest.mark.wpa | ||||
|     @pytest.mark.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa_personal_nat(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of NAT mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         mode = "NAT" | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "NAT-WAN" | ||||
|         vlan = 1 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-wpa" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpap_nat_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Wpa Nat Test") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
| @@ -9,9 +9,7 @@ import os | ||||
| import allure | ||||
| import pytest | ||||
|  | ||||
| pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test]#, | ||||
| #              pytest.mark.usefixtures("setup_test_run")] | ||||
|  | ||||
| pytestmark = [pytest.mark.vlan, pytest.mark.dual_band_test] | ||||
|  | ||||
| setup_params_general = { | ||||
|     "mode": "VLAN", | ||||
| @@ -33,8 +31,12 @@ setup_params_general = { | ||||
|     indirect=True, | ||||
|     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") | ||||
| class TestDualbandPerformanceVLAN(object): | ||||
| class TestWpaDualbandPerformanceVLAN(object): | ||||
|     """ | ||||
|          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.twog | ||||
|     @pytest.mark.fiveg | ||||
|     def test_client_wpa_personal_vlan(self,  lf_tools, | ||||
|                                   create_lanforge_chamberview_dut, lf_test, get_configuration): | ||||
|     @allure.title("Test Dual Band with ApAuto test of VLAN mode") | ||||
|     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"] | ||||
|         ssid_2G = profile_data[0]["ssid_name"] | ||||
|         ssid_5G = profile_data[0]["ssid_name"] | ||||
|         dut_name = create_lanforge_chamberview_dut | ||||
|         mode = "VLAN" | ||||
|         vlan = 100 | ||||
|         print(lf_tools.dut_idx_mapping) | ||||
|         dut_5g = "" | ||||
|         dut_2g = "" | ||||
|         for i in lf_tools.dut_idx_mapping: | ||||
|             if lf_tools.dut_idx_mapping[i][3] == "5G": | ||||
|                 dut_5g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4] | ||||
|                 print(dut_5g) | ||||
|             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") | ||||
|         ssid_2G, ssid_5G = profile_data[0]["ssid_name"], profile_data[0]["ssid_name"] | ||||
|         dut_name = list(setup_configuration.keys())[0] | ||||
|         mode = "BRIDGE" | ||||
|         vlan = [100] | ||||
|         dut_5g, dut_2g = "", "" | ||||
|         influx_tags = "dual-band-bridge-wpa" | ||||
|         for i in setup_configuration[dut_name]['ssid_data']: | ||||
|             get_test_library.dut_idx_mapping[str(i)] = list(setup_configuration[dut_name]['ssid_data'][i].values()) | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|             if get_test_library.dut_idx_mapping[str(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] | ||||
|  | ||||
|         dbpt_obj = lf_test.dualbandperformancetest(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, | ||||
|                                                    instance_name="dbp_instance_wpap_VLAN_p", | ||||
|                                                    vlan_id=vlan, dut_5g=dut_5g, dut_2g=dut_2g) | ||||
|         report_name = dbpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1] | ||||
|         lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Dual Band Performance Test Wpa Vlan") | ||||
|         result, description = get_test_library.dual_band_performance_test(mode=mode, ssid_2G=ssid_2G, ssid_5G=ssid_5G, vlan_id=vlan, | ||||
|                                                             dut_5g=dut_5g, dut_2g=dut_2g, influx_tags=influx_tags, | ||||
|                                                             move_to_influx=False, dut_data=setup_configuration) | ||||
|         if result: | ||||
|             assert True | ||||
|         else: | ||||
|             assert False, description | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 karthika
					karthika