C# Class Microsoft.Test.UIAutomation.Core.Library

Datei anzeigen Open project: geeksree/cSharpGeeks

Public Methods

Method Description
GetUISpyLook ( AutomationElement le ) : string

Returns a string that resembles output of UISpy tree

IsCriticalException ( Exception exception ) : bool

Checks for critical nonrecoverable errors

StartApplication ( string appPath, string arguments, IntPtr &handle, AutomationElement &element, Process &process ) : void

Start the application and retrieve it's AutomationElement as a member variable.

StartApplicationShellExecute ( string appPath, string caption, string arguments, AutomationElement &element ) : void

Start application with ShellExecute with default timeout

StartApplicationShellExecute ( string appPath, string caption, string arguments, AutomationElement &element, int timeOutMilliSeconds ) : void

Start application with ShellExecute

StopApplication ( Process process, string processName, int sleepTime ) : void
ValidateArgumentNonNull ( object obj, string argName ) : void

Method Details

GetUISpyLook() static public method

Returns a string that resembles output of UISpy tree
static public GetUISpyLook ( AutomationElement le ) : string
le System.Windows.Automation.AutomationElement
return string

IsCriticalException() static public method

Checks for critical nonrecoverable errors
static public IsCriticalException ( Exception exception ) : bool
exception System.Exception
return bool

StartApplication() static public method

Start the application and retrieve it's AutomationElement as a member variable.
static public StartApplication ( string appPath, string arguments, IntPtr &handle, AutomationElement &element, Process &process ) : void
appPath string
arguments string
handle System.IntPtr
element System.Windows.Automation.AutomationElement
process System.Diagnostics.Process
return void

StartApplicationShellExecute() static public method

Start application with ShellExecute with default timeout
static public StartApplicationShellExecute ( string appPath, string caption, string arguments, AutomationElement &element ) : void
appPath string
caption string
arguments string
element System.Windows.Automation.AutomationElement
return void

StartApplicationShellExecute() static public method

Start application with ShellExecute
static public StartApplicationShellExecute ( string appPath, string caption, string arguments, AutomationElement &element, int timeOutMilliSeconds ) : void
appPath string
caption string
arguments string
element System.Windows.Automation.AutomationElement
timeOutMilliSeconds int
return void

StopApplication() static public method

static public StopApplication ( Process process, string processName, int sleepTime ) : void
process System.Diagnostics.Process
processName string
sleepTime int
return void

ValidateArgumentNonNull() static public method

static public ValidateArgumentNonNull ( object obj, string argName ) : void
obj object
argName string
return void