C# Class Microsoft.Test.UIAutomation.Logging.UIVerifyLogger

Loggin object for InternalHelper
显示文件 Open project: TestStack/UIAVerify

Public Methods

Method Description
CloseLog ( ) : void

Last call to close the channel down to the logger. No tests should be ran after this call

EndTest ( ) : void

GenerateXMLLog ( string filePath ) : void

The call will generate the XML log if the logger is XML

LogComment ( object comment ) : void

LogComment ( string format ) : void

Log comment to the output

LogError ( Exception exception ) : void

Report that the test had an error

LogPass ( ) : void

LogUnexpectedError ( Exception exception ) : void

Report an excepetion that was not expected

MonitorProcess ( Process process ) : void

ReportResults ( ) : void

SetLogger ( ILogger logger ) : void

Loads a logger DLL binary that impements WUIALogging interface

SetLogger ( List logger ) : void

Loads a logger DLL binary that impements WUIALogging interface

SetLogger ( string filename ) : void

Loads a logger DLL binary that impements WUIALogging interface.

StartTest ( XmlNode xmlElementIdentifier, TestCaseAttribute testAttribute, MethodInfo methodInfo ) : void

Method Details

CloseLog() public static method

Last call to close the channel down to the logger. No tests should be ran after this call
public static CloseLog ( ) : void
return void

EndTest() public static method

public static EndTest ( ) : void
return void

GenerateXMLLog() public static method

The call will generate the XML log if the logger is XML
public static GenerateXMLLog ( string filePath ) : void
filePath string
return void

LogComment() public static method

public static LogComment ( object comment ) : void
comment object
return void

LogComment() public static method

Log comment to the output
public static LogComment ( string format ) : void
format string The format string
return void

LogError() public static method

Report that the test had an error
public static LogError ( Exception exception ) : void
exception System.Exception
return void

LogPass() public static method

public static LogPass ( ) : void
return void

LogUnexpectedError() public static method

Report an excepetion that was not expected
public static LogUnexpectedError ( Exception exception ) : void
exception System.Exception
return void

MonitorProcess() public static method

public static MonitorProcess ( Process process ) : void
process System.Diagnostics.Process
return void

ReportResults() public static method

public static ReportResults ( ) : void
return void

SetLogger() static public method

Loads a logger DLL binary that impements WUIALogging interface
static public SetLogger ( ILogger logger ) : void
logger ILogger
return void

SetLogger() static public method

Loads a logger DLL binary that impements WUIALogging interface
static public SetLogger ( List logger ) : void
logger List
return void

SetLogger() public static method

Loads a logger DLL binary that impements WUIALogging interface.
public static SetLogger ( string filename ) : void
filename string Filename with path
return void

StartTest() public static method

public static StartTest ( XmlNode xmlElementIdentifier, TestCaseAttribute testAttribute, MethodInfo methodInfo ) : void
xmlElementIdentifier System.Xml.XmlNode
testAttribute Microsoft.Test.UIAutomation.TestManager.TestCaseAttribute
methodInfo System.Reflection.MethodInfo
return void