Table of Contents

Class Activity

Namespace
Ranorex.Core.Reporting
Assembly
Ranorex.Core.dll

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

timeout Duration

Properties

BeginTime

Returns the time the report activity started.

public virtual DateTime BeginTime { get; }

Property Value

DateTime

ChildBlockedCount

Returns the count of blocked (ignored/skipped) Children activities.

public int ChildBlockedCount { get; protected set; }

Property Value

int

ChildFailedCount

Returns the count of failed Children activities.

public int ChildFailedCount { get; protected set; }

Property Value

int

ChildSuccessCount

Returns the count of successful Children activities.

public int ChildSuccessCount { get; protected set; }

Property Value

int

Children

Returns the child activities.

public IList<IReportItem> Children { get; }

Property Value

IList<IReportItem>

CustomProperties

Returns the custom properties of this activity.

public IDictionary<string, string> CustomProperties { get; }

Property Value

IDictionary<string, string>

DetailMessage

Returns the detailed message of this activity.

public abstract string DetailMessage { get; }

Property Value

string

ElapsedTime

Returns the time elapsed since the BeginTime.

public Duration ElapsedTime { get; }

Property Value

Duration

EndTime

Returns the time the report activity ended or null if the activity is still running.

public virtual DateTime? EndTime { get; }

Property Value

DateTime?

ErrorMessage

Returns the error message of this activity if any.

public string ErrorMessage { get; set; }

Property Value

string

HasTimedOut

Returns if the activity has timed out.

public bool HasTimedOut { get; }

Property Value

bool

IsActive

Returns if this activity is active.

public bool IsActive { get; }

Property Value

bool

Parent

public Activity Parent { get; set; }

Property Value

Activity

Status

Returns the status of this activity.

public ActivityStatus Status { get; set; }

Property Value

ActivityStatus

Timeout

Returns the timeout of this activity.

public Duration Timeout { get; }

Property Value

Duration

TotalBlockedCount

Returns the total blocked (ignored/skipped) count of this activity including its Children blocked count.

public int TotalBlockedCount { get; protected set; }

Property Value

int

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

int

TotalChildMaintenanceModeCount

Returns the total count of 'MaintenanceMode' category Children activities.

public int TotalChildMaintenanceModeCount { get; set; }

Property Value

int

TotalDuration

Returns the total duration of this activity including its Children Duration.

public int TotalDuration { get; }

Property Value

int

TotalErrorCount

Returns the total error count of this activity including its Children error count.

public int TotalErrorCount { get; }

Property Value

int

TotalFailedCount

Returns the total failed count of this activity including its Children failed count.

public int TotalFailedCount { get; protected set; }

Property Value

int

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

int

TotalSuccessCount

Returns the total success count of this activity including its Children success count.

public int TotalSuccessCount { get; protected set; }

Property Value

int

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

int

TotalWarningCount

Returns the total warning count of this activity including its Children warning count.

public int TotalWarningCount { get; }

Property Value

int

TypeName

protected abstract string TypeName { get; }

Property Value

string

Methods

DecorateXml(XmlPrinter)

protected abstract void DecorateXml(XmlPrinter printer)

Parameters

printer XmlPrinter

OnBegin()

protected virtual void OnBegin()

OnEnd()

protected virtual void OnEnd()

PopActivity()

public void PopActivity()

VisitChildren(ActivityVisitorDelegate)

public void VisitChildren(ActivityVisitorDelegate callback)

Parameters

callback ActivityVisitorDelegate