ClassExecutionContext
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:
public sealed class ExecutionContext
Inheritance: objectExecutionContext
Properties
ActiveDataRows
Gets the active data rows.
Declaration
public DataRowCollection ActiveDataRows { get; }
Property Value
The active data rows.
BugConfiguration
Gets the settings object.
Declaration
public BugConfigurationSet BugConfiguration { get; }
Property Value
Current
Get the current execution context.
Declaration
public static ExecutionContext Current { get; }
Property Value
CurrentDataRow
Gets the current data row of current execution iteration for the current (come on!) data driven test.
CurrentIterationIndex
Gets the current iteration index
CurrentLogicalStep
Gets the current logical container step being executed.
Declaration
public AutomationStepBase CurrentLogicalStep { get; }
Property Value
CurrentStep
Gets the current automation step being executed.
Declaration
public AutomationStepBase CurrentStep { get; }
Property Value
DataContexts
Gets a dictionary of all data context instances by test. The keys are populated with the Test.UniqueId.
Declaration
public Dictionary<Guid, DataContext> DataContexts { get; }
Property Value
DataSource
Gets the datatable of the current data driven test.
DeploymentDirectory
Gets the deployment directory where data files and deployment items are being placed.
ExecutingTestAsStep
Set when executing a test as step, to aid in the creation of the the dialogs to monitor for that test
FirstStepGuid
During RunFromHereExecution or RunSelectedExecution, represents the first step to be executed
HttpRecorder
The HTTP recorder that is recording the test's traffic, or null if we're not recording HTTP traffic
Declaration
public HttpTrafficRecorder HttpRecorder { get; }
Property Value
LastStepGuid
During RunToHereExecution or RunSelectedExecution, represents the last step to be executed
Manager
Gets the manager object.
RunFromHereStepExecuted
Flag indicating whether or not the run from here step has already been executed.
Settings
Gets the settings object.
Test
Gets the current test.
UpdatePackage
Get the update package associated with this execution context.
Declaration
public TestUpdatePackage UpdatePackage { get; }
Property Value
VisualDebugger
The Visual UI that allows you to control and display visual annotation in the execution UI.
Declaration
public VisualDebugger VisualDebugger { get; }
Property Value
Methods
ResetNewBrowserTracking()
If popup tracking is on, turn it off.
Declaration
public void ResetNewBrowserTracking()
SetCurrentDataRow(DataRow)
Sets the current data row to execute against.
Declaration
public void SetCurrentDataRow(DataRow row)
Parameters
row
The data row.
SetCurrentStep(AutomationStepBase)
Sets the current step to execute against.
Declaration
public void SetCurrentStep(AutomationStepBase step)
Parameters
step
The step
SetCurrentTestAndData(Test, bool)
Sets the current test to execute.
SetDialogMonitoring()
Setup the dialog monitoring using the execution context test instance.
Declaration
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
public void SetDialogMonitoring(AutomationStepList steps, TestType testType)
Parameters
steps
testType
SetDialogMonitoring(Test)
Setup dialog monitoring.
Declaration
public void SetDialogMonitoring(Test test)
Parameters
test
The test to use
SetNewBrowserTracking(Test, object)
Setup popup window monitoring