Class
TestAsStepResult

Represents the result of a test as step run.

Definition

Namespace:ArtOfTest.WebAii.Design.Execution

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class TestAsStepResult : AutomationStepResult, INotifyPropertyChanged

Inheritance: objectAutomationStepResultTestAsStepResult

Implements: INotifyPropertyChanged

Inherited Members AutomationStepResult.StoreHostState(IAutomationHost, List<ITargetElement>, string)AutomationStepResult.LoadBrowserState()AutomationStepResult.PersistStepFailureResourcesOnDisk(string, string)AutomationStepResult.AddWarning(Warning)AutomationStepResult.OnSerializing(StreamingContext)AutomationStepResult.OnPropertyChanged(string)AutomationStepResult.RunTimeStepIdAutomationStepResult.ParentTestResultAutomationStepResult.TestNameAutomationStepResult.TestPathAutomationStepResult.TestIdAutomationStepResult.TestStepIndexAutomationStepResult.StepDescriptionAutomationStepResult.OrderAutomationStepResult.LogMessageOnErrorAutomationStepResult.UserCommentAutomationStepResult.HasImageAutomationStepResult.HasExpectedImageAutomationStepResult.HashCodeAutomationStepResult.IsManualAutomationStepResult.WasStepEnabledAutomationStepResult.WarningsAutomationStepResult.PropertyChanged

Constructors

TestAsStepResult()

Declaration

cs-api-definition
public TestAsStepResult()

TestAsStepResult(TestResult)

Declaration

cs-api-definition
public TestAsStepResult(TestResult result)

Parameters

result

TestResult

Properties

Exception

Gets/sets the exception related to the test failure.

Declaration

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

Property Value

ExecutionException

Overrides AutomationStepResult.Exception

FailedStepLog

Gets or sets the failed step log.

Declaration

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

Property Value

string

The failed step log.

ResultType

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

Declaration

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

Property Value

ResultType

Overrides AutomationStepResult.ResultType

TestResult

Gets the test result of our step.

Declaration

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

Property Value

TestResult

Methods

SetFailedStepLog(int, string)

Persists the failed step log during execution.

Declaration

cs-api-definition
public void SetFailedStepLog(int stepIndex, string stepDescription)

Parameters

stepIndex

int

Index of the step.

stepDescription

string

The step description.