def set_up(self): """ Initialize the test """ LabHspaBase.set_up(self) if self._ftp_direction not in ["UL", "DL"]: self._error.Msg = "%s is not a known xfer direction" % self._ftp_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._call_duration is None: raise AcsConfigException(AcsConfigException.INVALID_PARAMETER, "CALL_DURATION should be int") if (self._measurement_duration + self._wait_time_before_measure) > self._call_duration: raise AcsConfigException( AcsConfigException.INVALID_PARAMETER, "call_duration 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
def set_up(self): (code, message) = LabHspaBase.set_up(self) if code == Global.SUCCESS: (code, message) = AnyUsbTether.set_up(self) return code, message