Exemplo n.º 1
0
    def __init__(self,
                 command,
                 mod,
                 name,
                 child_process,
                 timeout,
                 log,
                 host='',
                 port=20701,
                 root=''):
        global ffprocess
        self.command = command
        self.mod = mod
        self.process_name = name
        self.child_process = child_process
        self.browser_wait = timeout
        self.log = log
        self.timeout = 1200  #no output from the browser in 20 minutes = failure
        self.host = host
        self.port = port
        self.root = root
        if (host <> ''):
            from ffprocess_winmo import WinmoProcess
            platform_type = 'win_'
            ffprocess = WinmoProcess(host, port, root)

        self.ffprocess = ffprocess
Exemplo n.º 2
0
 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)