Class
ExecutionContext

Provides the execution context of a specific test. (Test, step, settings, manager, data ..etc) You can use this class to get at information at any point in the execution flow of a testcase.

Definition

Namespace:ArtOfTest.WebAii.Design.Execution

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public sealed class ExecutionContext

Inheritance: objectExecutionContext

Properties

ActiveDataRows

Gets the active data rows.

Declaration

cs-api-definition
public DataRowCollection ActiveDataRows { get; }

Property Value

DataRowCollection

The active data rows.

BugConfiguration

Gets the settings object.

Declaration

cs-api-definition
public BugConfigurationSet BugConfiguration { get; }

Property Value

BugConfigurationSet

Current

Get the current execution context.

Declaration

cs-api-definition
public static ExecutionContext Current { get; }

Property Value

ExecutionContext

CurrentDataRow

Gets the current data row of current execution iteration for the current (come on!) data driven test.

Declaration

cs-api-definition
public DataRow CurrentDataRow { get; }

Property Value

DataRow

CurrentIterationIndex

Gets the current iteration index

Declaration

cs-api-definition
public int CurrentIterationIndex { get; }

Property Value

int

CurrentLogicalStep

Gets the current logical container step being executed.

Declaration

cs-api-definition
public AutomationStepBase CurrentLogicalStep { get; }

Property Value

AutomationStepBase

CurrentStep

Gets the current automation step being executed.

Declaration

cs-api-definition
public AutomationStepBase CurrentStep { get; }

Property Value

AutomationStepBase

DataContexts

Gets a dictionary of all data context instances by test. The keys are populated with the Test.UniqueId.

Declaration

cs-api-definition
public Dictionary<Guid, DataContext> DataContexts { get; }

Property Value

Dictionary<Guid, DataContext>

DataSource

Gets the datatable of the current data driven test.

Declaration

cs-api-definition
public DataTable DataSource { get; }

Property Value

DataTable

DeploymentDirectory

Gets the deployment directory where data files and deployment items are being placed.

Declaration

cs-api-definition
public string DeploymentDirectory { get; }

Property Value

string

ExecutingTestAsStep

Set when executing a test as step, to aid in the creation of the the dialogs to monitor for that test

Declaration

cs-api-definition
public bool ExecutingTestAsStep { get; }

Property Value

bool

FirstStepGuid

During RunFromHereExecution or RunSelectedExecution, represents the first step to be executed

Declaration

cs-api-definition
public Guid FirstStepGuid { get; }

Property Value

Guid

HttpRecorder

The HTTP recorder that is recording the test's traffic, or null if we're not recording HTTP traffic

Declaration

cs-api-definition
public HttpTrafficRecorder HttpRecorder { get; }

Property Value

HttpTrafficRecorder

LastStepGuid

During RunToHereExecution or RunSelectedExecution, represents the last step to be executed

Declaration

cs-api-definition
public Guid LastStepGuid { get; }

Property Value

Guid

Manager

Gets the manager object.

Declaration

cs-api-definition
public Manager Manager { get; }

Property Value

Manager

Params

Declaration

cs-api-definition
public ParamsManager Params { get; }

Property Value

ParamsManager

RemoteStorageUri

Declaration

cs-api-definition
public Uri RemoteStorageUri { get; }

Property Value

Uri

RunFromHereStepExecuted

Flag indicating whether or not the run from here step has already been executed.

Declaration

cs-api-definition
public bool RunFromHereStepExecuted { get; set; }

Property Value

bool

Settings

Gets the settings object.

Declaration

cs-api-definition
public Settings Settings { get; }

Property Value

Settings

ShouldAbort

Declaration

cs-api-definition
public bool ShouldAbort { get; set; }

Property Value

bool

Test

Gets the current test.

Declaration

cs-api-definition
public Test Test { get; }

Property Value

Test

UpdatePackage

Get the update package associated with this execution context.

Declaration

cs-api-definition
public TestUpdatePackage UpdatePackage { get; }

Property Value

TestUpdatePackage

VisualDebugger

The Visual UI that allows you to control and display visual annotation in the execution UI.

Declaration

cs-api-definition
public VisualDebugger VisualDebugger { get; }

Property Value

VisualDebugger

Methods

ResetNewBrowserTracking()

If popup tracking is on, turn it off.

Declaration

cs-api-definition
public void ResetNewBrowserTracking()

SetCurrentDataRow(DataRow)

Sets the current data row to execute against.

Declaration

cs-api-definition
public void SetCurrentDataRow(DataRow row)

Parameters

row

DataRow

The data row.

SetCurrentStep(AutomationStepBase)

Sets the current step to execute against.

Declaration

cs-api-definition
public void SetCurrentStep(AutomationStepBase step)

Parameters

step

AutomationStepBase

The step

SetCurrentTestAndData(Test, bool)

Sets the current test to execute.

Declaration

cs-api-definition
public bool SetCurrentTestAndData(Test test, bool canInitializeDataSource = true)

Parameters

test

Test

The test to execute.

canInitializeDataSource

bool

Returns

bool

SetDialogMonitoring()

Setup the dialog monitoring using the execution context test instance.

Declaration

cs-api-definition
public void SetDialogMonitoring()

SetDialogMonitoring(AutomationStepList, TestType)

Setup the dialog monitoring using a list of automation steps this is to be used in conjunction with logical descriptors as it will check to see if dialogs have already been added, then reset them if so.

Declaration

cs-api-definition
public void SetDialogMonitoring(AutomationStepList steps, TestType testType)

Parameters

steps

AutomationStepList

testType

TestType

SetDialogMonitoring(Test)

Setup dialog monitoring.

Declaration

cs-api-definition
public void SetDialogMonitoring(Test test)

Parameters

test

Test

The test to use

SetNewBrowserTracking(Test, object)

Setup popup window monitoring

Declaration

cs-api-definition
public bool SetNewBrowserTracking(Test test, object codeBehind)

Parameters

test

Test

The test to use

codeBehind

object

Returns

bool

TestHasData(Test)

Declaration

cs-api-definition
public static bool TestHasData(Test test)

Parameters

test

Test

Returns

bool