Class Activity
Represents a report activity that writes information in the test report.
public abstract class Activity : IReportItem, IActivity
- Inheritance
-
Activity
- Implements
- Derived
- Inherited Members
Constructors
Activity(Duration)
protected Activity(Duration timeout)
Parameters
timeoutDuration
Properties
BeginTime
Returns the time the report activity started.
public virtual DateTime BeginTime { get; }
Property Value
ChildBlockedCount
Returns the count of blocked (ignored/skipped) Children activities.
public int ChildBlockedCount { get; protected set; }
Property Value
ChildFailedCount
Returns the count of failed Children activities.
public int ChildFailedCount { get; protected set; }
Property Value
ChildSuccessCount
Returns the count of successful Children activities.
public int ChildSuccessCount { get; protected set; }
Property Value
Children
Returns the child activities.
public IList<IReportItem> Children { get; }
Property Value
CustomProperties
Returns the custom properties of this activity.
public IDictionary<string, string> CustomProperties { get; }
Property Value
DetailMessage
Returns the detailed message of this activity.
public abstract string DetailMessage { get; }
Property Value
ElapsedTime
Returns the time elapsed since the BeginTime.
public Duration ElapsedTime { get; }
Property Value
EndTime
Returns the time the report activity ended or null if the activity is still running.
public virtual DateTime? EndTime { get; }
Property Value
ErrorMessage
Returns the error message of this activity if any.
public string ErrorMessage { get; set; }
Property Value
HasTimedOut
Returns if the activity has timed out.
public bool HasTimedOut { get; }
Property Value
IsActive
Returns if this activity is active.
public bool IsActive { get; }
Property Value
Parent
public Activity Parent { get; set; }
Property Value
Status
Returns the status of this activity.
public ActivityStatus Status { get; set; }
Property Value
Timeout
Returns the timeout of this activity.
public Duration Timeout { get; }
Property Value
TotalBlockedCount
Returns the total blocked (ignored/skipped) count of this activity including its Children blocked count.
public int TotalBlockedCount { get; protected set; }
Property Value
TotalBlockedTestCaseCount
Returns the total blocked (ignored/skipped) ITestContainerActivity test cases count of this activity including its Children blocked count.
public int TotalBlockedTestCaseCount { get; protected set; }
Property Value
TotalChildMaintenanceModeCount
Returns the total count of 'MaintenanceMode' category Children activities.
public int TotalChildMaintenanceModeCount { get; set; }
Property Value
TotalDuration
public int TotalDuration { get; }
Property Value
TotalErrorCount
Returns the total error count of this activity including its Children error count.
public int TotalErrorCount { get; }
Property Value
TotalFailedCount
Returns the total failed count of this activity including its Children failed count.
public int TotalFailedCount { get; protected set; }
Property Value
TotalFailedTestCaseCount
Returns the total failed ITestContainerActivity test cases count of this activity including its Children failed count.
public int TotalFailedTestCaseCount { get; protected set; }
Property Value
TotalSuccessCount
Returns the total success count of this activity including its Children success count.
public int TotalSuccessCount { get; protected set; }
Property Value
TotalSuccessTestCaseCount
Returns the total success ITestContainerActivity test cases count of this activity including its Children success count.
public int TotalSuccessTestCaseCount { get; protected set; }
Property Value
TotalWarningCount
Returns the total warning count of this activity including its Children warning count.
public int TotalWarningCount { get; }
Property Value
TypeName
protected abstract string TypeName { get; }
Property Value
Methods
DecorateXml(XmlPrinter)
protected abstract void DecorateXml(XmlPrinter printer)
Parameters
printerXmlPrinter
OnBegin()
protected virtual void OnBegin()
OnEnd()
protected virtual void OnEnd()
PopActivity()
public void PopActivity()
VisitChildren(ActivityVisitorDelegate)
public void VisitChildren(ActivityVisitorDelegate callback)
Parameters
callbackActivityVisitorDelegate