Show / Hide Table of Contents

Class TestSuiteReport

Test report structure for the test execution

Inheritance
Object
TestSuiteReport
Namespace: AxaFrance.WebEngine.Report
Assembly: AxaFrance.WebEngine.dll
Syntax
[Serializable]
public class TestSuiteReport

Constructors

| Edit this page View Source

TestSuiteReport()

Default constructor

Declaration
public TestSuiteReport()

Properties

| Edit this page View Source

Duration

Calculates the Duration of the current test suite;

Declaration
public TimeSpan Duration { get; }
Property Value
Type Description
TimeSpan
| Edit this page View Source

EndTime

The System.DateTime when the test execution for the testsuite ends.

Declaration
public DateTime EndTime { get; set; }
Property Value
Type Description
DateTime
| Edit this page View Source

EnvironmentVariables

The Test enviroment variables used during the test.

Declaration
public EnvironmentVariables EnvironmentVariables { get; set; }
Property Value
Type Description
EnvironmentVariables
| Edit this page View Source

Failed

Number of test cases which result are Failed or CriticalError

Declaration
public int Failed { get; set; }
Property Value
Type Description
Int32
Remarks

The number will be valorised before saving the report on the disk.

| Edit this page View Source

HostName

The hostname where the test has been executed.

Declaration
public string HostName { get; set; }
Property Value
Type Description
String
| Edit this page View Source

Ignored

Number of test cases which result are Ignored

Declaration
public int Ignored { get; set; }
Property Value
Type Description
Int32
Remarks

The number will be valorised before saving the report on the disk.

| Edit this page View Source

Passed

Number of test cases which result are Passed

Declaration
public int Passed { get; set; }
Property Value
Type Description
Int32
Remarks

The number will be valorised before saving the report on the disk.

| Edit this page View Source

StartTime

The System.DateTime when the test suite is started for execution.

Declaration
public DateTime StartTime { get; set; }
Property Value
Type Description
DateTime
| Edit this page View Source

SystemError

The raw error otput of the test execution.

Declaration
public string SystemError { get; set; }
Property Value
Type Description
String
| Edit this page View Source

SystemOut

The raw output of the test execution.

Declaration
public string SystemOut { get; set; }
Property Value
Type Description
String
| Edit this page View Source

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 Source

GenereteCSV(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
String fileLocation

The file location

String seperator

CSV separator. generally comma or semicolon.

Boolean sort

If the parameter should be in alphabet order.

| Edit this page View Source

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
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.

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
String

the report Full Path name generated.

  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.