(self, projectFile)
return sorted(list(tests))
Returns the list of supported automation tests for the specified project
Returns the list of supported automation tests for the specified project
Returns the list of supported automation tests for the specified project
def listAutomationTests(self, projectFile):
		'''
		Returns the list of supported automation tests for the specified project
		'''
		
		# Attempt to retrieve the list of automation tests
		tests = set()
		testRegex = re.compile('.*LogAutomationCommandLine: Display: \t(.+)')
		logOutput = self.runAutomationCommands(projectFile, ['List'], [], capture=True)
		for line in logOutput.stdout.split('\n'):
			matches = testRegex.search(line)
			if matches != None:
				tests.add(matches[1].strip())
		
		# Detect if the Editor terminated abnormally (i.e. not triggered by `automation quit`)
		if 'PlatformMisc::RequestExit(' not in logOutput.stdout:
			raise RuntimeError(
				'failed to retrieve the list of automation tests!' +
				' stdout was: "{}", stderr was: "{}"'.format(logOutput.stdout, logOutput.stderr)
			)
		
		return sorted(list(tests))
def listAutomationTests ( self , projectFile ) : # Attempt to retrieve the list of automation tests tests = set ( ) testRegex = re . compile ( '.*LogAutomationCommandLine: Display: \t(.+)' ) logOutput = self . runAutomationCommands ( projectFile , [ 'List' ] , [ ] , capture = True ) for line in logOutput . stdout . split ( '\n' ) : matches = testRegex . search ( line ) if matches != None : tests . add ( matches [ 1 ] . strip ( ) ) # Detect if the Editor terminated abnormally (i.e. not triggered by `automation quit`) if 'PlatformMisc::RequestExit(' not in logOutput . stdout : raise RuntimeError ( 'failed to retrieve the list of automation tests!' + ' stdout was: "{}", stderr was: "{}"' . format ( logOutput . stdout , logOutput . stderr ) ) return sorted ( list ( tests ) )