Interface
IExecutionExtension

Implements an extension to the execution engine.

Definition

Namespace:ArtOfTest.WebAii.Design.Execution

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public interface IExecutionExtension : ITestListExecutionExtension

Inherited Members ITestListExecutionExtension.OnBeforeTestListStarted(TestList)ITestListExecutionExtension.OnAfterTestListCompleted(RunResult)

Methods

OnAfterTestCompleted(ExecutionContext, TestResult)

Called right after a test is completed execution.

Declaration

cs-api-definition
void OnAfterTestCompleted(ExecutionContext executionContext, TestResult result)

Parameters

executionContext

ExecutionContext

The execution context

result

TestResult

The test to be executed

OnBeforeTestStarted(ExecutionContext, Test)

Called right before a test is started

Declaration

cs-api-definition
void OnBeforeTestStarted(ExecutionContext executionContext, Test test)

Parameters

executionContext

ExecutionContext

The execution context

test

Test

The test to be executed

OnInitializeDataSource(ExecutionContext)

Called on the initialization of the data source. This is an opportunity to retrieve a custom data source and return it as a DataTable.

Declaration

cs-api-definition
DataTable OnInitializeDataSource(ExecutionContext executionContext)

Parameters

executionContext

ExecutionContext

The execution context.

Returns

DataTable

The DataTable to use as a data source else, return null.

Remarks

Regardless if the test is data bound or not, if this method returns a DataTable, the test will be considered data bound.

OnStepFailure(ExecutionContext, AutomationStepResult)

Called when a step fails in a test.

Declaration

cs-api-definition
void OnStepFailure(ExecutionContext executionContext, AutomationStepResult stepResult)

Parameters

executionContext

ExecutionContext

The execution context

stepResult

AutomationStepResult

The result of the step failure