C# Класс Microsoft.Test.UIAutomation.Core.Library

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GetUISpyLook() статический публичный Метод

Returns a string that resembles output of UISpy tree
static public GetUISpyLook ( AutomationElement le ) : string
le System.Windows.Automation.AutomationElement
Результат string

IsCriticalException() статический публичный Метод

Checks for critical nonrecoverable errors
static public IsCriticalException ( Exception exception ) : bool
exception System.Exception
Результат bool

StartApplication() статический публичный Метод

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
Результат void

StartApplicationShellExecute() статический публичный Метод

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
Результат void

StartApplicationShellExecute() статический публичный Метод

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
Результат void

StopApplication() статический публичный Метод

static public StopApplication ( Process process, string processName, int sleepTime ) : void
process System.Diagnostics.Process
processName string
sleepTime int
Результат void

ValidateArgumentNonNull() статический публичный Метод

static public ValidateArgumentNonNull ( object obj, string argName ) : void
obj object
argName string
Результат void