chrome/test/enterprise/e2e/infra/chrome_ent_test_case.py
def RunUITest(self, instance_name, test_file, timeout=300, args=[]):
    """Runs a UI test on an instance.

    Args:
      instance_name: name of the instance.
      test_file: the path of the UI test file.
      timeout: the timeout in seconds. Default is 300,
               i.e. 5 minutes.
      args: the list of arguments passed to the test.

    Returns:
      the output."""
    self.EnsurePythonInstalled(instance_name)

    # upload the test
    file_name = self.UploadFile(instance_name, test_file, r'c:\temp')

    # run the test.
    # note that '-u' flag is passed to enable unbuffered stdout and stderr.
    # Without this flag, if the test is killed because of timeout, we will not
    # get any output from stdout because the output is buffered. When this
    # happens it makes debugging really hard.
    args = subprocess.list2cmdline(args)
    ui_test_cmd = r'%s -u %s %s' % (self._pythonExecutablePath[instance_name],
                                    file_name, args)
    cmd = (r'%s c:\cel\supporting_files\run_ui_test.py --timeout %s -- %s') % (
        self._pythonExecutablePath[instance_name], timeout, ui_test_cmd)
    return self.RunCommand(instance_name, cmd, timeout=timeout)
Runs a UI test on an instance.

    Args:
      instance_name: name of the instance.
      test_file: the path of the UI test file.
      timeout: the timeout in seconds. Default is 300,
               i.e. 5 minutes.
      args: the list of arguments passed to the test.

    Returns:
      the output.
Runs a UI test on an instance.
Runs a UI test on an instance .
def RunUITest(self, instance_name, test_file, timeout=300, args=[]):
    self.EnsurePythonInstalled(instance_name)
    file_name = self.UploadFile(instance_name, test_file, r'c:\temp')
    args = subprocess.list2cmdline(args)
    ui_test_cmd = r'%s -u %s %s' % (self._pythonExecutablePath[instance_name],
                                    file_name, args)
    cmd = (r'%s c:\cel\supporting_files\run_ui_test.py --timeout %s -- %s') % (
        self._pythonExecutablePath[instance_name], timeout, ui_test_cmd)
    return self.RunCommand(instance_name, cmd, timeout=timeout)
def RunUITest ( self , instance_name , test_file , timeout = 300 , args = [ ] ) : self . EnsurePythonInstalled ( instance_name ) file_name = self . UploadFile ( instance_name , test_file , r'c:\temp' ) args = subprocess . list2cmdline ( args ) ui_test_cmd = r'%s -u %s %s' % ( self . _pythonExecutablePath [ instance_name ] , file_name , args ) cmd = ( r'%s c:\cel\supporting_files\run_ui_test.py --timeout %s -- %s' ) % ( self . _pythonExecutablePath [ instance_name ] , timeout , ui_test_cmd ) return self . RunCommand ( instance_name , cmd , timeout = timeout )
Runs a UI test on an instance.
Runs a UI test on an instance .
"""Runs a UI test on an instance.

    Args:
      instance_name: name of the instance.
      test_file: the path of the UI test file.
      timeout: the timeout in seconds. Default is 300,
               i.e. 5 minutes.
      args: the list of arguments passed to the test.

    Returns:
      the output.""" # upload the test # run the test. # note that '-u' flag is passed to enable unbuffered stdout and stderr. # Without this flag, if the test is killed because of timeout, we will not # get any output from stdout because the output is buffered. When this # happens it makes debugging really hard.
None
self
instance_name
name of the instance.
name of the instance .
test_file
the path of the UI test file.
the path of the UI test file .
timeout
the timeout in seconds. Default is 300,
i.e. 5 minutes.
the timeout in seconds . Default is 300 i . e . 5 minutes .
args
the list of arguments passed to the test.
the list of arguments passed to the test .