chrome/test/enterprise/e2e/infra/chrome_ent_test_case.py
def EnableUITest(self, instance_name):
    """Configures the instance so that UI tests can be run on it."""
    self.InstallWebDriver(instance_name)
    self.InstallChocolateyPackage(instance_name, 'chocolatey_core_extension',
                                  '1.3.3')
    self.InstallChocolateyPackageLatest(instance_name, 'sysinternals')
    self.InstallPipPackagesLatest(instance_name,
                                  ['pywinauto', 'pyperclip', 'requests'])

    password = self._generatePassword()
    user_name = 'ui_user'
    cmd = (r'powershell -File c:\cel\supporting_files\enable_auto_logon.ps1 '
           r'-userName %s -password %s') % (user_name, password)
    self.RunCommand(instance_name, cmd)
    self._rebootInstance(instance_name)

    cmd = (r'powershell -File c:\cel\supporting_files\set_ui_agent.ps1 '
           '-username %s') % user_name
    self.RunCommand(instance_name, cmd)
    self._rebootInstance(instance_name)
Configures the instance so that UI tests can be run on it.
Configures the instance so that UI tests can be run on it.
Configures the instance so that UI tests can be run on it .
def EnableUITest(self, instance_name):
    self.InstallWebDriver(instance_name)
    self.InstallChocolateyPackage(instance_name, 'chocolatey_core_extension',
                                  '1.3.3')
    self.InstallChocolateyPackageLatest(instance_name, 'sysinternals')
    self.InstallPipPackagesLatest(instance_name,
                                  ['pywinauto', 'pyperclip', 'requests'])
    password = self._generatePassword()
    user_name = 'ui_user'
    cmd = (r'powershell -File c:\cel\supporting_files\enable_auto_logon.ps1 '
           r'-userName %s -password %s') % (user_name, password)
    self.RunCommand(instance_name, cmd)
    self._rebootInstance(instance_name)
    cmd = (r'powershell -File c:\cel\supporting_files\set_ui_agent.ps1 '
           '-username %s') % user_name
    self.RunCommand(instance_name, cmd)
    self._rebootInstance(instance_name)
def EnableUITest ( self , instance_name ) : self . InstallWebDriver ( instance_name ) self . InstallChocolateyPackage ( instance_name , 'chocolatey_core_extension' , '1.3.3' ) self . InstallChocolateyPackageLatest ( instance_name , 'sysinternals' ) self . InstallPipPackagesLatest ( instance_name , [ 'pywinauto' , 'pyperclip' , 'requests' ] ) password = self . _generatePassword ( ) user_name = 'ui_user' cmd = ( r'powershell -File c:\cel\supporting_files\enable_auto_logon.ps1 ' r'-userName %s -password %s' ) % ( user_name , password ) self . RunCommand ( instance_name , cmd ) self . _rebootInstance ( instance_name ) cmd = ( r'powershell -File c:\cel\supporting_files\set_ui_agent.ps1 ' '-username %s' ) % user_name self . RunCommand ( instance_name , cmd ) self . _rebootInstance ( instance_name )
Configures the instance so that UI tests can be run on it.
Configures the instance so that UI tests can be run on it .
"""Configures the instance so that UI tests can be run on it."""
self
instance_name