Class
AutomationStepResult

Represents an automation step results

Definition

Namespace:ArtOfTest.WebAii.Design

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class AutomationStepResult : INotifyPropertyChanged

Inheritance: objectAutomationStepResult

Derived Classes: CombinationStepsResultLogicalStepResultProxyAutomationStepResultTestAsStepResult

Implements: INotifyPropertyChanged

Constructors

AutomationStepResult()

Create an empty result (ResultType=NotRun)

Declaration

cs-api-definition
public AutomationStepResult()

Properties

Exception

Gets or sets the execution exception. If result type is fail, then this will contain the exception information about the failure.

Declaration

cs-api-definition
public virtual ExecutionException Exception { get; set; }

Property Value

ExecutionException

HasExpectedImage

Declaration

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

Property Value

bool

HasImage

Declaration

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

Property Value

bool

HashCode

Declaration

cs-api-definition
public int HashCode { get; set; }

Property Value

int

IsManual

Declaration

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

Property Value

bool

LogMessageOnError

Declaration

cs-api-definition
public string LogMessageOnError { get; set; }

Property Value

string

Order

Declaration

cs-api-definition
public int Order { get; set; }

Property Value

int

ParentTestResult

Declaration

cs-api-definition
public TestResult ParentTestResult { get; set; }

Property Value

TestResult

ResultType

Gets or sets the result type (Pass/fail/notrun)

Declaration

cs-api-definition
public virtual ResultType ResultType { get; set; }

Property Value

ResultType

RunTimeStepId

Declaration

cs-api-definition
public Guid RunTimeStepId { get; set; }

Property Value

Guid

StepDescription

Gets or sets the description of this step.

Declaration

cs-api-definition
public string StepDescription { get; set; }

Property Value

string

TestId

Gets or sets the test unique Id this step result belongs to.

Declaration

cs-api-definition
public string TestId { get; set; }

Property Value

string

TestName

Gets or sets the test name of this step.

Declaration

cs-api-definition
public string TestName { get; set; }

Property Value

string

TestPath

Gets or sets the test path within the project.

Declaration

cs-api-definition
public string TestPath { get; set; }

Property Value

string

TestStepIndex

Gets or sets the step index

Declaration

cs-api-definition
public int TestStepIndex { get; set; }

Property Value

int

UserComment

Declaration

cs-api-definition
public string UserComment { get; set; }

Property Value

string

Warnings

Declaration

cs-api-definition
public IList<Warning> Warnings { get; }

Property Value

IList<Warning>

WasStepEnabled

Declaration

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

Property Value

bool

Methods

AddWarning(Warning)

Declaration

cs-api-definition
public void AddWarning(Warning warning)

Parameters

warning

Warning

LoadBrowserState()

Load the browser state

Declaration

cs-api-definition
public void LoadBrowserState()

OnPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

OnSerializing(StreamingContext)

Declaration

cs-api-definition
[OnSerializing]
protected void OnSerializing(StreamingContext context)

Parameters

context

StreamingContext

PersistStepFailureResourcesOnDisk(string, string)

Persists the step failure BrowserState (DOM, ImageBytes) resourses on the disk.

Declaration

cs-api-definition
public void PersistStepFailureResourcesOnDisk(string projectResultsPath, string resourceFolderPath)

Parameters

projectResultsPath

string

The path to the project results.

resourceFolderPath

string

The folder path to persist the resources in.

StoreHostState(IAutomationHost, List<ITargetElement>, string)

Store the browser state as part of this step

Declaration

cs-api-definition
public void StoreHostState(IAutomationHost host, List<ITargetElement> elements, string message)

Parameters

host

IAutomationHost

elements

List<ITargetElement>

message

string

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged