def initializeLibraries(self, browser_config):
     if ((browser_config['remote'] == True) and (browser_config['host'] <> '')):
         from ffprocess_winmo import WinmoProcess
         self._ffprocess = WinmoProcess(browser_config['host'], 
                                        browser_config['port'], 
                                        browser_config['deviceroot'])
         self._ffsetup = FFSetup(self._ffprocess)
         self._ffsetup.initializeRemoteDevice(browser_config)
示例#2
0
    def __init__(self, remote=False):
        cmanager, platformtype, ffprocess = self.getPlatformType(remote)
        self.CounterManager = cmanager
        self.platform_type = platformtype
        self._ffprocess = ffprocess
        self._hostproc = ffprocess
        self.remote = remote

        self._ffsetup = FFSetup(self._ffprocess)
示例#3
0
    def initializeLibraries(self, browser_config):
        if browser_config['remote'] == True:
            cmanager, platform_type, ffprocess = self.getPlatformType(False)

            from ffprocess_remote import RemoteProcess
            self._ffprocess = RemoteProcess(browser_config['host'],
                                            browser_config['port'],
                                            browser_config['deviceroot'])
            self._ffsetup = FFSetup(self._ffprocess)
            self._ffsetup.initializeRemoteDevice(browser_config, ffprocess)
            self._hostproc = ffprocess
    def __init__(self, remote = False):
        self.remote = remote
        self.cmanager = None
        if self.remote == True:
            self.platform_type = 'win_'
        elif platform.system() == "Linux":
            self.cmanager = __import__('cmanager_linux')
            self.platform_type = 'linux_'
            self._ffprocess = LinuxProcess()
        elif platform.system() in ("Windows", "Microsoft"):
            if '5.1' in platform.version(): #winxp
              self.platform_type = 'win_'
            elif '6.1' in platform.version(): #w7
              self.platform_type = 'w7_'
            else:
              raise talosError('unsupported windows version')
            self.cmanager = __import__('cmanager_win32')
            self._ffprocess = Win32Process()
        elif platform.system() == "Darwin":
            self.cmanager = __import__('cmanager_mac')
            self.platform_type = 'mac_'
            self._ffprocess = MacProcess()

        self._ffsetup = FFSetup(self._ffprocess)