ClassRunResult
Represents a collection of test results for a specific run.
Definition
Namespace:ArtOfTest.WebAii.Design.Execution
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract]
public class RunResult : IDataTransport, IDispatchableTestResult
Inheritance: objectRunResult
Implements:
Constructors
RunResult(string)
Initializes a new instance of the RunResult object passing the name of the test list.
Declaration
public RunResult(string listName)
Parameters
listName
The name of the test list generated this result.
Fields
CLOUD_STORAGE_INDEX_NAME
Declaration
public const string CLOUD_STORAGE_INDEX_NAME = "CloudRunResult"
Field Value
LOCAL_STORAGE_INDEX_NAME
Declaration
public const string LOCAL_STORAGE_INDEX_NAME = "LocalRunResult"
Field Value
RESULTS_FOLDER_NAME
Declaration
public const string RESULTS_FOLDER_NAME = "Results"
Field Value
RESULT_FILE_EXTENSION
Declaration
public const string RESULT_FILE_EXTENSION = ".aiiresult"
Field Value
Properties
Comment
Declaration
[Browsable(false)]
[DataMember]
public string Comment { get; set; }
Property Value
DataCollectors
Gets the data collectors info associated with the run result.
Declaration
[Browsable(false)]
[DataMember]
public Dictionary<string, string> DataCollectors { get; }
Property Value
DispatchGroupId
Declaration
[Browsable(false)]
[DataMember]
public Guid DispatchGroupId { get; set; }
Property Value
EndTime
Gets and sets the run end time.
FailedCount
Declaration
[Browsable(false)]
[DataMember]
public int FailedCount { get; }
Property Value
FailedPercent
Declaration
[Browsable(false)]
public double FailedPercent { get; }
Property Value
FileName
Gets or sets the friendly name of the result. The default value is generated by the id and the start date.
Declaration
[Browsable(false)]
[DataMember]
public string FileName { get; set; }
Property Value
HasWarnings
Declaration
[DataMember]
[Browsable(false)]
public bool HasWarnings { get; }
Property Value
Id
Gets or sets the data base id. used by the WCF service to match the RunResult with its DB counterpart
Declaration
[Browsable(false)]
[DataMember(EmitDefaultValue = true, IsRequired = true)]
public Guid Id { get; set; }
Property Value
The id.
IsCached
Declaration
[Browsable(false)]
public bool IsCached { get; set; }
Property Value
IsCloudResult
Declaration
[Browsable(false)]
public bool IsCloudResult { get; set; }
Property Value
IsManual
Declaration
[Browsable(false)]
[DataMember]
public bool IsManual { get; set; }
Property Value
Machine
The property is set when an individual test is run. This should really be attached to the test result, as 2 tests can be run on different machines
Declaration
[Browsable(false)]
[DataMember(EmitDefaultValue = true)]
public Machine Machine { get; set; }
Property Value
MachinesAssigned
This contains the list of machines that the user has selected to run a testlist on, and that are available. This may differe slightly from the actual machines that are used- for instance, a machine could crash. To discover the exact machine a test was run on, check the individual test result.
Name
Gets or sets the name of the run result. The setter generates the name of the XML file to persist the data into.
NotRunCount
Declaration
[Browsable(false)]
[DataMember]
public int NotRunCount { get; }
Property Value
PassedCount
The count of the passed test results.
Declaration
[Browsable(false)]
[DataMember]
public int PassedCount { get; }
Property Value
PassedPercent
Declaration
[Browsable(false)]
public double PassedPercent { get; }
Property Value
PassedResult
Gets whether all test results passed.
Declaration
[Browsable(false)]
[DataMember]
public bool PassedResult { get; }
Property Value
ResultsPath
Declaration
[Browsable(false)]
public string ResultsPath { get; set; }
Property Value
RunId
Gets or sets the data base id. used by the WCF service to match the RunResult with its DB counterpart
Declaration
[Browsable(false)]
[DataMember(EmitDefaultValue = true, IsRequired = true)]
public Guid RunId { get; set; }
Property Value
The RunId.
StartTime
Gets the run start time.
Declaration
[DataMember]
public DateTime StartTime { get; }
Property Value
Summary
Gets a brief summary of the run result.
TestListId
Declaration
[Browsable(false)]
[DataMember]
public Guid TestListId { get; set; }
Property Value
TestResults
Gets the list of test results associated with the run result.
Declaration
[Browsable(false)]
[DataMember]
public List<TestResult> TestResults { get; }
Property Value
Methods
DeleteResources(string, out string)
Delete run result resources from disk if present.
GenerateResultSummary()
Call when the RunResult object is completed (e.g. all test results are added).
Declaration
public string GenerateResultSummary()
Returns
The summary of the run result.
LoadFromFile(string)
Loads the RunResult object from the file with given path.
OnDeserialized(StreamingContext)
Declaration
[OnDeserialized]
protected void OnDeserialized(StreamingContext context)
Parameters
context
SaveToResultFile(string)
Create the result file from the current run result object.
SaveToResultFile(string, bool, bool, bool)
Create the result file from the current run result object.
Declaration
public string SaveToResultFile(string outputPath, bool skipResultsFolder, bool persistFailureResources, bool overrideFile)
Parameters
outputPath
The output path.
skipResultsFolder
Whether to skip appending the results folder to the given output path.
persistFailureResources
overrideFile
Returns
The full path of the result file.
SaveToResultFile(string, bool, bool, bool, FileFormat)
Declaration
public string SaveToResultFile(string outputPath, bool skipResultsFolder, bool persistFailureResources, bool overrideFile, FileFormat fileFormat)
Parameters
outputPath
skipResultsFolder
persistFailureResources
overrideFile
fileFormat
Returns