def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self, self._automation) self._dm = devmgr self.runSSLTunnel = False self.remoteProfile = options.remoteTestRoot + "/profile" self.remoteLog = options.remoteLogFile
def __init__(self, marionette, profile_data_dir): B2GMochitest.__init__(self, marionette, out_of_process=False, profile_data_dir=profile_data_dir) Mochitest.__init__(self) self.certdbNew = True
def __init__(self, marionette_args, logger_options, profile_data_dir): B2GMochitest.__init__(self, marionette_args, logger_options, out_of_process=False, profile_data_dir=profile_data_dir) Mochitest.__init__(self, logger_options) self.certdbNew = True
def __init__(self, marionette_args, logger_options, profile_data_dir): B2GMochitest.__init__( self, marionette_args, logger_options, out_of_process=False, profile_data_dir=profile_data_dir) Mochitest.__init__(self, logger_options) self.certdbNew = True
def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self, self._automation) self._dm = devmgr self.runSSLTunnel = False self.remoteProfile = options.remoteTestRoot + '/profile' self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.remoteProfilesIniPath = '/data/b2g/mozilla/profiles.ini' self.originalProfilesIni = None
def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self) self._dm = devmgr self.environment = self._automation.environment self.remoteProfile = options.remoteTestRoot + "/profile" self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.localLog = options.logFile self._automation.deleteANRs() self.certdbNew = True
def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self) self._dm = devmgr self.runSSLTunnel = False self.environment = self._automation.environment self.remoteProfile = options.remoteTestRoot + "/profile" self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.localLog = options.logFile self._automation.deleteANRs()
def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self, self._automation) self._dm = devmgr self.runSSLTunnel = False self.remoteProfile = options.remoteTestRoot + '/profile' self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.userJS = '/data/local/user.js' self.remoteMozillaPath = '/data/b2g/mozilla' self.remoteProfilesIniPath = os.path.join(self.remoteMozillaPath, 'profiles.ini') self.originalProfilesIni = None
def __init__(self, marionette, devicemanager, profile_data_dir, local_binary_dir, remote_test_root=None, remote_log_file=None): B2GMochitest.__init__(self, marionette, out_of_process=True, profile_data_dir=profile_data_dir) Mochitest.__init__(self) self._dm = devicemanager self.remote_test_root = remote_test_root or self._dm.getDeviceRoot() self.remote_profile = posixpath.join(self.remote_test_root, 'profile') self.remote_log = remote_log_file or posixpath.join(self.remote_test_root, 'log', 'mochitest.log') self.local_log = None self.local_binary_dir = local_binary_dir if not self._dm.dirExists(posixpath.dirname(self.remote_log)): self._dm.mkDirs(self.remote_log)
def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self, self._automation) self._dm = devmgr self.runSSLTunnel = False self.remoteProfile = options.remoteTestRoot + '/profile' self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.userJS = '/data/local/user.js' self.testDir = '/data/local/tests' self.remoteMozillaPath = '/data/b2g/mozilla' self.remoteProfilesIniPath = os.path.join(self.remoteMozillaPath, 'profiles.ini') self.originalProfilesIni = None
def __init__(self, automation, OOP=True, profile_data_dir=None, locations=os.path.join(here, 'server-locations.txt')): Mochitest.__init__(self, automation) self.OOP = OOP self.locations = locations self.preferences = [] self.webapps = None if profile_data_dir: self.preferences = [os.path.join(profile_data_dir, f) for f in os.listdir(profile_data_dir) if f.startswith('pref')] self.webapps = [os.path.join(profile_data_dir, f) for f in os.listdir(profile_data_dir) if f.startswith('webapp')]
def __init__(self, automation, devmgr, options, message_logger=None): self._automation = automation Mochitest.__init__(self) self._dm = devmgr self.environment = self._automation.environment self.remoteProfile = options.remoteTestRoot + "/profile" self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.localLog = options.logFile self._automation.deleteANRs() self.certdbNew = True # structured logging self.message_logger = message_logger or MessageLogger(logger=log)
def __init__(self, automation, devmgr, options): self._automation = automation Mochitest.__init__(self, self._automation) self._dm = devmgr self.runSSLTunnel = False self.remoteProfile = options.remoteTestRoot + "/profile" self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.localLog = None self.userJS = "/data/local/user.js" self.remoteMozillaPath = "/data/b2g/mozilla" self.bundlesDir = "/system/b2g/distribution/bundles" self.remoteProfilesIniPath = os.path.join(self.remoteMozillaPath, "profiles.ini") self.originalProfilesIni = None
def __init__(self, automation, devmgr, options): Mochitest.__init__(self, options) self._automation = automation self._dm = devmgr self.environment = self._automation.environment self.remoteProfile = options.remoteTestRoot + "/profile" self._automation.setRemoteProfile(self.remoteProfile) self.remoteLog = options.remoteLogFile self.localLog = options.logFile self._automation.deleteANRs() self._automation.deleteTombstones() self.certdbNew = True self.remoteNSPR = os.path.join(options.remoteTestRoot, "nspr") self._dm.removeDir(self.remoteNSPR); self._dm.mkDir(self.remoteNSPR);
def __init__(self, automation, devmgr, options): """ Simple one-time initialization. """ Mochitest.__init__(self, options) self.auto = automation self.dm = devmgr self.dm.default_timeout = 320 self.options = options self.options.logFile = "robocop.log" self.environment = self.auto.environment self.deviceRoot = self.dm.getDeviceRoot() self.remoteProfile = options.remoteTestRoot + "/profile" self.remoteProfileCopy = options.remoteTestRoot + "/profile-copy" self.auto.setRemoteProfile(self.remoteProfile) self.remoteConfigFile = os.path.join( self.deviceRoot, "robotium.config") self.remoteLog = options.remoteLogFile self.auto.setRemoteLog(self.remoteLog) self.remoteScreenshots = "/mnt/sdcard/Robotium-Screenshots" self.remoteNSPR = os.path.join(options.remoteTestRoot, "nspr") self.auto.setServerInfo( self.options.webServer, self.options.httpPort, self.options.sslPort) self.localLog = options.logFile self.localProfile = None productPieces = self.options.remoteProductName.split('.') if (productPieces is not None): self.auto.setProduct(productPieces[0]) else: self.auto.setProduct(self.options.remoteProductName) self.auto.setAppName(self.options.remoteappname) self.certdbNew = True self.remoteCopyAvailable = True self.passed = 0 self.failed = 0 self.todo = 0
def __init__(self, automation, marionette, profile_data_dir): B2GMochitest.__init__(self, marionette, out_of_process=False, profile_data_dir=profile_data_dir) Mochitest.__init__(self, automation)
def __init__(self, automation): #self._automation = automation Mochitest.__init__(self, automation)
def __init__(self, marionette, profile_data_dir): B2GMochitest.__init__(self, marionette, out_of_process=False, profile_data_dir=profile_data_dir) Mochitest.__init__(self)