parameters: (self)
docstring: Start Web Page Replay and verify that it started.
  
      Returns:
        A forwarders.PortSet(http, https, dns) tuple; with dns None if unused.
      Raises:
        ReplayNotStartedError: if Replay start-up fails.
docstring_summary: Start Web Page Replay and verify that it started.
docstring_tokens: Start Web Page Replay and verify that it started .
function: def StartServer(self):
      """Start Web Page Replay and verify that it started.
  
      Returns:
        A forwarders.PortSet(http, https, dns) tuple; with dns None if unused.
      Raises:
        ReplayNotStartedError: if Replay start-up fails.
      """
      is_posix = sys.platform.startswith('linux') or sys.platform == 'darwin'
      logging.info('Starting Web-Page-Replay: %s', self._cmd_line)
      self._CreateTempLogFilePath()
      with self._OpenLogFile() as log_fh:
        self.replay_process = subprocess.Popen(
            self._cmd_line, stdout=log_fh, stderr=subprocess.STDOUT,
            preexec_fn=(_ResetInterruptHandler if is_posix else None))
      try:
        util.WaitFor(self._IsStarted, 30)
        atexit_with_log.Register(self.StopServer)
        return forwarders.PortSet(
            self._started_ports['http'],
            self._started_ports['https'],
            self._started_ports.get('dns'),  # None if unused
            )
      except exceptions.TimeoutException:
        raise ReplayNotStartedError(
            'Web Page Replay failed to start. Log output:\n%s' %
            ''.join(self._LogLines()))
function_tokens: def StartServer ( self ) : is_posix = sys . platform . startswith ( 'linux' ) or sys . platform == 'darwin' logging . info ( 'Starting Web-Page-Replay: %s' , self . _cmd_line ) self . _CreateTempLogFilePath ( ) with self . _OpenLogFile ( ) as log_fh : self . replay_process = subprocess . Popen ( self . _cmd_line , stdout = log_fh , stderr = subprocess . STDOUT , preexec_fn = ( _ResetInterruptHandler if is_posix else None ) ) try : util . WaitFor ( self . _IsStarted , 30 ) atexit_with_log . Register ( self . StopServer ) return forwarders . PortSet ( self . _started_ports [ 'http' ] , self . _started_ports [ 'https' ] , self . _started_ports . get ( 'dns' ) , # None if unused ) except exceptions . TimeoutException : raise ReplayNotStartedError ( 'Web Page Replay failed to start. Log output:\n%s' % '' . join ( self . _LogLines ( ) ) )