From 97e28b9bc94c855c7a9a548282e215081a8b41b1 Mon Sep 17 00:00:00 2001 From: jitendracandela Date: Tue, 27 Aug 2024 12:49:47 +0530 Subject: [PATCH] Added station ip check logic in the ax_capacity_test Signed-off-by: jitendracandela --- lf_libs/lf_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lf_libs/lf_tests.py b/lf_libs/lf_tests.py index 3bec222b..8667237e 100644 --- a/lf_libs/lf_tests.py +++ b/lf_libs/lf_tests.py @@ -2951,7 +2951,7 @@ class lf_tests(lf_libs): self.pre_cleanup() sta_name = [f"{shelf}.{resource}.ax_station"] logging.info("sta_name:- " + str(sta_name)) - self.client_connect_using_radio(ssid=ssid_name, passkey=passkey, mode=mode, station_name=sta_name, + sta_ip = self.client_connect_using_radio(ssid=ssid_name, passkey=passkey, mode=mode, station_name=sta_name, radio=selected_ax_radio, vlan_id=vlan_id, create_vlan=True) time.sleep(0.5) @@ -2959,6 +2959,10 @@ class lf_tests(lf_libs): station_data = self.get_station_data(sta_name=sta_name, rows=sta_rows, allure_attach=True, allure_name="Station Data") logging.info("station_data:- " + str(station_data)) + if not sta_ip: + logging.info("Test Failed, due to station has no ip") + pytest.fail("Station did not get an ip") + sta_mode = station_data[sta_name[0]]["mode"] logging.info("sta_mode:- " + str(sta_mode)) wifi_capacity_obj_list = self.wifi_capacity(instance_name=instance_name, mode=mode,