ClassTestResult
Class representing a test result.
Definition
Namespace:ArtOfTest.WebAii.Design.Execution
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[KnownType(typeof(BrowserStateCaptureMode))]
[KnownType(typeof(TechnologyType))]
public class TestResult : INotifyPropertyChanged
Inheritance: objectTestResult
Implements:
Constructors
TestResult()
Empty constructor needed for serialization.
Declaration
public TestResult()
TestResult(Test)
Initializes a new TestResult instance based on the given Test object.
Properties
AllTestStepCount
Calculate all test step count.
Declaration
public int AllTestStepCount { get; }
Property Value
All test step count.
DataIterationResults
Gets the data iteration results when IsDataDrivenResult is set to true
Declaration
public IList<DataIterationResult> DataIterationResults { get; }
Property Value
Duration
Gets the duration of test execution.
EndTime
Gets the time when the test ended execution.
ExeType
Declaration
public ExecutionType ExeType { get; set; }
Property Value
FailureException
Gets the execution exception causing the test failure.
Declaration
public ExecutionException FailureException { get; }
Property Value
IsDataDrivenResult
Gets whether the result contains data driven results
IsRerun
Gets the test rerun state.
Message
Gets/Sets the message of this result.
NotRunStepDescriptions
Gets the descriptions of the not executed steps so that we don't have to get the test behind this result in order to show all descriptions.
PerfResult
Declaration
public ResultsFileXmlRoot PerfResult { get; set; }
Property Value
ProfilerResultsId
The permanent ID of the profiler results file, for verification and in case the path changes.
ProfilerResultsPath
The location on disk of the Profiler database associated with this test run. This is not the final path etched in stone, rather it is used more like a cached value to prevent a long enumeration. If the path is invalid, the enumeration will have to take place regardless.
ProjectPath
Gets the project path that contains this test.
Result
Gets/Sets the result type of this result object.
ScreenRecordingResultCodec
Recording codec.
Declaration
public string ScreenRecordingResultCodec { get; set; }
Property Value
ScreenRecordingResultError
Gets/Sets the screen recording path of this result.
Declaration
public string ScreenRecordingResultError { get; set; }
Property Value
ScreenRecordingResultPath
Gets/Sets the screen recording path of this result.
Declaration
public string ScreenRecordingResultPath { get; set; }
Property Value
ScreenRecordingResultSize
Recording size in bytes.
Declaration
public long ScreenRecordingResultSize { get; set; }
Property Value
StartTime
Gets the time when the test started execution
StepResults
Gets the AutomationStep results
Declaration
public IList<AutomationStepResult> StepResults { get; }
Property Value
TestDescription
The test description to help users in case of failure.
TestId
Gets or sets the test unique Id behind this result.
TestName
Gets the test name within the project.
TestOwner
The test owner to present in case of failure.
TestPath
Gets the test path within the project.
TotalNumberOfNotRunSteps
Gets the total number of not run automation steps.
Declaration
public int TotalNumberOfNotRunSteps { get; }
Property Value
The total number of not run steps.
TotalPassedSteps
Gets the total number of passed automation steps.
Methods
AddDataIterationResult(DataIterationResult)
Adds a data iteration result
Declaration
public void AddDataIterationResult(DataIterationResult result)
Parameters
result
The result to add
AddStepResult(AutomationStepResult)
Declaration
public void AddStepResult(AutomationStepResult stepResult)
Parameters
stepResult
AddStepResult(AutomationStepResult, bool)
Add an automation step result to this test.
Declaration
public void AddStepResult(AutomationStepResult stepResult, bool appendMessage)
Parameters
stepResult
The result to add.
appendMessage
AppendMessage(string)
Appends a messsage to the result.
Declaration
public void AppendMessage(string message)
Parameters
message
The message to append.
AppendOverallResult(bool)
Append the overall result of this test execution.
Declaration
public void AppendOverallResult(bool isExecution = true)
Parameters
isExecution
Whether the method is called during execution (and not from the UI) so that we can set the end time.
AppendSeparatorLine()
Append a default separator line.
Declaration
public void AppendSeparatorLine()
AppendSeparatorLine(char, int)
Append a separator to the result
ExportToResultFile(string, string)
Exports the test result into a Test Studio run result file.
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
PersistTestFailureResourcesOnDisk(string, string)
Save results resources to disk.
PrependMessage(string)
Prepend a specific message to the log.
RecalculateStepResults(bool)
Declaration
public void RecalculateStepResults(bool isExecution = true)
Parameters
isExecution
RemoveLastStepResult()
Declaration
public void RemoveLastStepResult()
SetStartTime()
Sets the start time of the execution of this test // TODO: add to persistence
Declaration
public void SetStartTime()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements