Class TestSuiteReport
Test report structure for the test execution
Inheritance
Namespace: AxaFrance.WebEngine.Report
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestSuiteReport
Constructors
| Edit this page View SourceTestSuiteReport()
Default constructor
Declaration
public TestSuiteReport()
Properties
| Edit this page View SourceDuration
Calculates the Duration of the current test suite;
Declaration
public TimeSpan Duration { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
EndTime
The DateTime when the test execution for the testsuite ends.
Declaration
public DateTime EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| int |
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 |
|---|---|
| string |
Ignored
Number of test cases which result are Ignored
Declaration
public int Ignored { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
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 |
|---|---|
| int |
Remarks
The number will be valorised before saving the report on the disk.
StartTime
The DateTime when the test suite is started for execution.
Declaration
public DateTime StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
SystemError
The raw error otput of the test execution.
Declaration
public string SystemError { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SystemOut
The raw output of the test execution.
Declaration
public string SystemOut { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TestResult
The list of results for each test case.
Declaration
public List<TestCaseReport> TestResult { get; set; }
Property Value
| Type | Description |
|---|---|
| List<TestCaseReport> |
Methods
| Edit this page View SourceGenereteCSV(string, string, bool)
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 |
|---|---|---|
| string | fileLocation | The file location |
| string | seperator | CSV separator. generally comma or semicolon. |
| bool | sort | If the parameter should be in alphabet order. |
SaveAs(string, string, bool)
Write the test results into an XML file
Declaration
public string SaveAs(string path, string filePrefix, bool uniqueName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path where the report file will be stored. |
| string | filePrefix | the prefixe of the report (without .xml extension), suffixed automatially with the current datetime. |
| bool | 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 |
|---|---|
| string | the report Full Path name generated. |