wifi capacity test in ucentral stabilized

Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
shivamcandela
2021-07-27 16:08:41 +05:30
parent 3958f42dbe
commit f15e879c70
6 changed files with 145 additions and 139 deletions

View File

@@ -93,28 +93,37 @@ class ChamberView:
max_stations = 0
print(idx)
if band == "2G":
max_stations = 64 * len(self.twog_radios)
radio = ",".join(self.twog_radios)
if len(self.twog_radios) == 1:
radio = radio + ",AUTO"
# self.eap_connect.sta_prefix = self.twog_prefix
if num_stations != "max":
num_stations = int(num_stations / len(self.twog_radios))
for radio in self.twog_radios:
max_stations = 64
if num_stations == "max":
num_stations = max_stations
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
str(int(idx) + 1) + "'" + " NA " + radio]
self.raw_line.append(station_data)
if band == "5G":
max_stations = 64 * len(self.twog_radios)
radio = ",".join(self.fiveg_radios)
if len(self.fiveg_radios) == 1:
radio = radio + ",AUTO"
if num_stations != "max":
num_stations = int(num_stations / len(self.fiveg_radios))
for radio in self.fiveg_radios:
max_stations = 64
if num_stations == "max":
num_stations = max_stations
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
str(int(idx) + 1) + "'" + " NA " + radio]
self.raw_line.append(station_data)
if band == "ax":
max_stations = len(self.twog_radios)
radio = ",".join(self.fiveg_radios)
if len(self.fiveg_radios) == 1:
radio = radio + ",AUTO"
# self.eap_connect.sta_prefix = self.fiveg_prefix
if num_stations != "max":
max_stations = num_stations
station_data = ["profile_link 1.1 STA-AUTO " + str(max_stations) + " 'DUT: " + dut + " Radio-" + str(int(idx)+1) + "'" + " NA " + radio]
self.raw_line.append(station_data)
if num_stations != "max":
num_stations = int(num_stations / len(self.fiveg_radios))
for radio in self.ax_radios:
max_stations = 1
if num_stations == "max":
num_stations = max_stations
station_data = ["profile_link 1.1 STA-AUTO " + str(num_stations) + " 'DUT: " + dut + " Radio-" +
str(int(idx) + 1) + "'" + " NA " + radio]
self.raw_line.append(station_data)
print("shivam", self.raw_line)
def Create_Dut(self):
self.CreateDut.setup()
@@ -192,4 +201,3 @@ class ChamberView:
allure.attach.file(source=relevant_path + i,
name=i,
attachment_type="image/png", extension=None)