Class EnvironmentInfo
Represents information about the environment where a test was executed.
public sealed class EnvironmentInfo
- Inheritance
-
EnvironmentInfo
- Inherited Members
Constructors
EnvironmentInfo()
Initializes a new instance of the EnvironmentInfo class.
public EnvironmentInfo()
Properties
CustomProperties
Gets the custom properties for additional environment information.
public Dictionary<string, string> CustomProperties { get; }
Property Value
EnvironmentName
Gets or sets the environment name (e.g., "Local", "CI", "Staging", "Production").
public string EnvironmentName { get; set; }
Property Value
Framework
Gets or sets the test framework name and version (e.g., ".NET").
public string Framework { get; set; }
Property Value
IsCIEnvironment
Gets or sets a value indicating whether the test was executed in a CI/CD environment.
public bool IsCIEnvironment { get; set; }
Property Value
MachineName
Gets or sets the name of the machine where the test was executed.
public string MachineName { get; set; }
Property Value
NetworkMetrics
Gets or sets the network reliability metrics collected during test execution. This property is only populated when network metrics collection is enabled.
public NetworkMetrics? NetworkMetrics { get; set; }
Property Value
OperatingSystem
Gets or sets the operating system information (e.g., "Windows 11", "macOS 14.0", "Ubuntu 22.04").
public string OperatingSystem { get; set; }
Property Value
RuntimeVersion
Gets or sets the .NET runtime version (e.g., ".NET 8.0.0").
public string RuntimeVersion { get; set; }