def set_up(self): """ Initialize the test """ # Call LAB_EGPRS_BASE set_up function LabEgprsBase.set_up(self) # Update server and DUT IP address in iperf_settings set_iperf_ip_settings(self._iperf_settings, self._iperf_direction, self._computer, self._networking_api, self._device.get_cellular_network_interface(), self._registration_timeout) if self._computer is not None: self._iperf_settings.update({"computer": self._computer}) if self._tune_options == 1: # Set Iperf settings depending on the expected throughput self._iperf_settings.update( get_iperf_configuration(self._throughput_targets)) else: self._iperf_settings.update({'direction': self._iperf_direction}) self._iperf_settings.update(self._iperf_uldl_parameters) return Global.SUCCESS, "No errors"
def set_up(self): """ Initialize the test """ LabEgprsBase.set_up(self) if self._direction not in ["UL", "DL"]: self._error.Msg = "%s is not a known xfer direction" % \ self._direction raise AcsConfigException(AcsConfigException.INVALID_PARAMETER, self._error.Msg) if self._measurement_duration is None: raise AcsConfigException(AcsConfigException.INVALID_PARAMETER, "MEASUREMENT_DURATION should be int") if self._xfer_timeout is None: raise AcsConfigException(AcsConfigException.INVALID_PARAMETER, "XFER_TIMEOUT should be int") if (self._measurement_duration + self._wait_time_before_measure)\ > self._xfer_timeout: raise AcsConfigException( AcsConfigException.INVALID_PARAMETER, "XFER_TIMEOUT should be always greater than" "MEASUREMENT_DURATION+%d (measurement start after" " %d seconds ftp starts) " % (self._wait_time_before_measure, self._wait_time_before_measure)) return Global.SUCCESS, self._error.Msg