Class TestSuiteReport
Test report structure for the test execution
Inheritance
Namespace: AxaFrance.WebEngine.Report
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestSuiteReport
Constructors
| Improve this Doc View SourceTestSuiteReport()
Default constructor
Declaration
public TestSuiteReport()
Properties
| Improve this Doc View SourceDuration
Calculates the Duration of the current test suite;
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
EndTime
The System.DateTime when the test execution for the testsuite ends.
Declaration
public DateTime EndTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
EnvironmentVariables
The Test enviroment variables used during the test.
Declaration
public EnvironmentVariables EnvironmentVariables { get; set; }
Property Value
Type | Description |
---|---|
EnvironmentVariables |
Failed
Number of test cases which result are Failed or CriticalError
Declaration
public int Failed { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The number will be valorised before saving the report on the disk.
HostName
The hostname where the test has been executed.
Declaration
public string HostName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Ignored
Number of test cases which result are Ignored
Declaration
public int Ignored { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The number will be valorised before saving the report on the disk.
Passed
Number of test cases which result are Passed
Declaration
public int Passed { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The number will be valorised before saving the report on the disk.
StartTime
The System.DateTime when the test suite is started for execution.
Declaration
public DateTime StartTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
SystemError
The raw error otput of the test execution.
Declaration
public string SystemError { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SystemOut
The raw output of the test execution.
Declaration
public string SystemOut { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TestResult
The list of results for each test case.
Declaration
public List<TestCaseReport> TestResult { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<TestCaseReport> |
Methods
| Improve this Doc View SourceGenereteCSV(String, String, Boolean)
Generates a CSV file contains all the ContextValues and GlobalContextValues into an CSV file.
Declaration
public void GenereteCSV(string fileLocation, string seperator, bool sort)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileLocation | The file location |
System.String | seperator | CSV separator. generally comma or semicolon. |
System.Boolean | sort | If the parameter should be in alphabet order. |
SaveAs(String, String, Boolean)
Write the test results into an XML file
Declaration
public string SaveAs(string path, string filePrefix, bool uniqueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path where the report file will be stored. |
System.String | filePrefix | the prefixe of the report (without .xml extension), suffixed automatially with the current datetime. |
System.Boolean | uniqueName | Whether the report name should be unique. True: the report name will be suffixed with timestamp, False: the report name will be fixed |
Returns
Type | Description |
---|---|
System.String | the report Full Path name generated. |