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

Inheritance: ILoggedComponent
显示文件 Open project: TestStack/UIAVerify Class Usage Examples

Protected Properties

Property Type Description
_DateTimeStart System.DateTime
_numberOfPasses int
_numberOfTestFailures int
_numberOfTests int
_numberOfUnexpectedExceptions int
_testResultInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.TestResultInfo

Public Methods

Method Description
GetLogger ( LogTypes logType ) : ILogger

This will return the type of logger based on logType

GetLogger ( string loggerFileName ) : ILogger

This will return the type of logger based on logType

Persist ( object Object ) : void

Call this to write out the info object

Protected Methods

Method Description
LogComment ( CommentInfo commentInfo ) : void

LogComment ( string comment ) : void

LogComment ( string comment, ConsoleColor color ) : void

LogEndTest ( TestEndInfo testEndInfo ) : void

LogException ( ExceptionInfo exceptionInfo ) : void

LogFinalResultsSummary ( ReportResultsInfo reportResultsInfo ) : void

LogStartTest ( StartTestInfo startTestInfo ) : void

LogTestResult ( string passFail, ConsoleColor color ) : void

MonitorProcess ( MonitorProcessInfo monitorProcessInfo ) : void

MonitorProcess ( Process process ) : void

SetTestResult ( TestResultInfo testResultInfo ) : void

Private Methods

Method Description
PreLogCommentor ( string comment ) : void

Method Details

GetLogger() public static method

This will return the type of logger based on logType
public static GetLogger ( LogTypes logType ) : ILogger
logType LogTypes
return ILogger

GetLogger() public static method

This will return the type of logger based on logType
public static GetLogger ( string loggerFileName ) : ILogger
loggerFileName string
return ILogger

LogComment() protected method

protected LogComment ( CommentInfo commentInfo ) : void
commentInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.CommentInfo
return void

LogComment() protected method

protected LogComment ( string comment ) : void
comment string
return void

LogComment() protected method

protected LogComment ( string comment, ConsoleColor color ) : void
comment string
color ConsoleColor
return void

LogEndTest() protected method

protected LogEndTest ( TestEndInfo testEndInfo ) : void
testEndInfo TestEndInfo
return void

LogException() protected method

protected LogException ( ExceptionInfo exceptionInfo ) : void
exceptionInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.ExceptionInfo
return void

LogFinalResultsSummary() protected method

protected LogFinalResultsSummary ( ReportResultsInfo reportResultsInfo ) : void
reportResultsInfo ReportResultsInfo
return void

LogStartTest() protected method

protected LogStartTest ( StartTestInfo startTestInfo ) : void
startTestInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.StartTestInfo
return void

LogTestResult() protected method

protected LogTestResult ( string passFail, ConsoleColor color ) : void
passFail string
color ConsoleColor
return void

MonitorProcess() protected method

protected MonitorProcess ( MonitorProcessInfo monitorProcessInfo ) : void
monitorProcessInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.MonitorProcessInfo
return void

MonitorProcess() protected method

protected MonitorProcess ( Process process ) : void
process System.Diagnostics.Process
return void

Persist() public method

Call this to write out the info object
public Persist ( object Object ) : void
Object object
return void

SetTestResult() protected method

protected SetTestResult ( TestResultInfo testResultInfo ) : void
testResultInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.TestResultInfo
return void

Property Details

_DateTimeStart protected_oe property

protected DateTime,System _DateTimeStart
return System.DateTime

_numberOfPasses protected_oe property

protected int _numberOfPasses
return int

_numberOfTestFailures protected_oe property

protected int _numberOfTestFailures
return int

_numberOfTests protected_oe property

protected int _numberOfTests
return int

_numberOfUnexpectedExceptions protected_oe property

protected int _numberOfUnexpectedExceptions
return int

_testResultInfo protected_oe property

protected TestResultInfo,Microsoft.Test.UIAutomation.Logging.InfoObjects _testResultInfo
return Microsoft.Test.UIAutomation.Logging.InfoObjects.TestResultInfo