示例#1
0
 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, 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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 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
示例#6
0
 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
示例#7
0
 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
示例#8
0
 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()
示例#9
0
 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
示例#10
0
    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)
示例#11
0
 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
示例#12
0
    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')]
示例#13
0
    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')]
示例#14
0
    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)
示例#15
0
 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
示例#16
0
    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);
示例#17
0
    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)
示例#19
0
 def __init__(self, automation):
     #self._automation = automation
     Mochitest.__init__(self, automation)
示例#20
0
 def __init__(self, automation):
     #self._automation = automation
     Mochitest.__init__(self, automation)
示例#21
0
 def __init__(self, marionette, profile_data_dir):
     B2GMochitest.__init__(self, marionette, out_of_process=False, profile_data_dir=profile_data_dir)
     Mochitest.__init__(self)