C# 클래스 Microsoft.Test.UIAutomation.Logging.Logger

Static class wrapper for the different loggers
파일 보기 프로젝트 열기: TestStack/UIAVerify

공개 메소드들

메소드 설명
CloseLog ( ) : void

EndTest ( ) : void

Specifies that a test is ending

LogComment ( object comment ) : void

Add a comment to the test summary

LogComment ( string format ) : void

Add a comment to the test summary

LogError ( Exception exception, bool TBD ) : void

Report that the test had an error

LogError ( string errorMessage ) : void

Report that the test had an error

LogPass ( ) : void

LogUnexpectedError ( Exception exception, bool displayTrace ) : void

MonitorProcess ( Process process ) : void

Some frameworks such as Piper will kill a process if it is closed incorrectly and hangs around. If the framework does not support this, it will NOP out there

ReportResults ( ) : void

Returns a report summary

SetLogger ( string logFile ) : void

Call to set the specific logger. There are some default loggers already defined. Use the LogTypes class for a list of them.

StartTest ( string testName ) : void

Specifies that a test is starting

비공개 메소드들

메소드 설명
IsRunningUnderWTT ( ) : bool

TODO$: ClientTestRuntime should be able to do this in the future

SetLoggerType ( string filename ) : ILogger

Loads a logger DLL binary that impements WUIALogging interface. If you specify the LogTypes.DefaultLogger, then WttLogger will be loaded if the executable has INTERNAL in the name, else PIper logger will be loaded

ValidateLogger ( ) : void

메소드 상세

CloseLog() 정적인 공개 메소드

static public CloseLog ( ) : void
리턴 void

EndTest() 공개 정적인 메소드

Specifies that a test is ending
public static EndTest ( ) : void
리턴 void

LogComment() 공개 정적인 메소드

Add a comment to the test summary
public static LogComment ( object comment ) : void
comment object
리턴 void

LogComment() 공개 정적인 메소드

Add a comment to the test summary
public static LogComment ( string format ) : void
format string The format string
리턴 void

LogError() 공개 정적인 메소드

Report that the test had an error
public static LogError ( Exception exception, bool TBD ) : void
exception System.Exception
TBD bool
리턴 void

LogError() 공개 정적인 메소드

Report that the test had an error
public static LogError ( string errorMessage ) : void
errorMessage string
리턴 void

LogPass() 공개 정적인 메소드

public static LogPass ( ) : void
리턴 void

LogUnexpectedError() 공개 정적인 메소드

public static LogUnexpectedError ( Exception exception, bool displayTrace ) : void
exception System.Exception
displayTrace bool
리턴 void

MonitorProcess() 공개 정적인 메소드

Some frameworks such as Piper will kill a process if it is closed incorrectly and hangs around. If the framework does not support this, it will NOP out there
public static MonitorProcess ( Process process ) : void
process System.Diagnostics.Process
리턴 void

ReportResults() 공개 정적인 메소드

Returns a report summary
public static ReportResults ( ) : void
리턴 void

SetLogger() 정적인 공개 메소드

Call to set the specific logger. There are some default loggers already defined. Use the LogTypes class for a list of them.
static public SetLogger ( string logFile ) : void
logFile string Ful path and name of the log file
리턴 void

StartTest() 공개 정적인 메소드

Specifies that a test is starting
public static StartTest ( string testName ) : void
testName string
리턴 void