Table of Contents

Class ActivityContext

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

Provides structured reporting ActivityStack handling for Ranorex test suites.

public sealed class ActivityContext : IDisposable
Inheritance
ActivityContext
Implements
Inherited Members

Remarks

This class is designed to be us within a using statement. This is to ensure the reporting activities are pushed and removed from the ActivityStack correct order.

Methods

Begin(Activity)

Creates a new ActivityContext and pushes the Activity on the ActivityStack.

public static ActivityContext Begin(Activity activity)

Parameters

activity Activity

The Activity to push onto the stack.

Returns

ActivityContext

Use inside a using statement to ensure the ActivityContext is disposed and the Activity is properly removed from the ActivityStack.

Dispose()

Ends the Activity and removes it from the ActivityStack.

public void Dispose()