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

Inheritance: ILoggedComponent
Afficher le fichier Open project: TestStack/UIAVerify Class Usage Examples

Protected Properties

Свойство Type Description
_DateTimeStart System.DateTime
_numberOfPasses int
_numberOfTestFailures int
_numberOfTests int
_numberOfUnexpectedExceptions int
_testResultInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.TestResultInfo

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
PreLogCommentor ( string comment ) : void

Method Details

GetLogger() public static méthode

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

GetLogger() public static méthode

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

LogComment() protected méthode

protected LogComment ( CommentInfo commentInfo ) : void
commentInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.CommentInfo
Résultat void

LogComment() protected méthode

protected LogComment ( string comment ) : void
comment string
Résultat void

LogComment() protected méthode

protected LogComment ( string comment, ConsoleColor color ) : void
comment string
color ConsoleColor
Résultat void

LogEndTest() protected méthode

protected LogEndTest ( TestEndInfo testEndInfo ) : void
testEndInfo TestEndInfo
Résultat void

LogException() protected méthode

protected LogException ( ExceptionInfo exceptionInfo ) : void
exceptionInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.ExceptionInfo
Résultat void

LogFinalResultsSummary() protected méthode

protected LogFinalResultsSummary ( ReportResultsInfo reportResultsInfo ) : void
reportResultsInfo ReportResultsInfo
Résultat void

LogStartTest() protected méthode

protected LogStartTest ( StartTestInfo startTestInfo ) : void
startTestInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.StartTestInfo
Résultat void

LogTestResult() protected méthode

protected LogTestResult ( string passFail, ConsoleColor color ) : void
passFail string
color ConsoleColor
Résultat void

MonitorProcess() protected méthode

protected MonitorProcess ( MonitorProcessInfo monitorProcessInfo ) : void
monitorProcessInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.MonitorProcessInfo
Résultat void

MonitorProcess() protected méthode

protected MonitorProcess ( Process process ) : void
process System.Diagnostics.Process
Résultat void

Persist() public méthode

Call this to write out the info object
public Persist ( object Object ) : void
Object object
Résultat void

SetTestResult() protected méthode

protected SetTestResult ( TestResultInfo testResultInfo ) : void
testResultInfo Microsoft.Test.UIAutomation.Logging.InfoObjects.TestResultInfo
Résultat void

Property Details

_DateTimeStart protected_oe property

protected DateTime,System _DateTimeStart
Résultat System.DateTime

_numberOfPasses protected_oe property

protected int _numberOfPasses
Résultat int

_numberOfTestFailures protected_oe property

protected int _numberOfTestFailures
Résultat int

_numberOfTests protected_oe property

protected int _numberOfTests
Résultat int

_numberOfUnexpectedExceptions protected_oe property

protected int _numberOfUnexpectedExceptions
Résultat int

_testResultInfo protected_oe property

protected TestResultInfo,Microsoft.Test.UIAutomation.Logging.InfoObjects _testResultInfo
Résultat Microsoft.Test.UIAutomation.Logging.InfoObjects.TestResultInfo