Table of Contents

Class EnvironmentDescription

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

An object describing the environment that the test requires, in capability name-value pairs.

public class EnvironmentDescription : PropertiesDescription, IDescription, ICloneable
Inheritance
EnvironmentDescription
Implements
Inherited Members

Constructors

EnvironmentDescription()

Creates an instance of EnvironmentDescription.

public EnvironmentDescription()

Properties

Dictionary

For internal use only.

public IDictionary<string, object> Dictionary { get; }

Property Value

IDictionary<string, object>

Methods

FromDictionary(IDictionary<string, object>)

Creates a new instance of EnvironmentDescription and initializes it with the specified capabilities.

public static EnvironmentDescription FromDictionary(IDictionary<string, object> capabilities)

Parameters

capabilities IDictionary<string, object>

A IDictionary<TKey, TValue> of capabilities to initialize the EnvironmentDescription with.

Returns

EnvironmentDescription

A new instance of EnvironmentDescription initialized with the specified capabilities.

Remarks

Get(string)

Returns the current value of an EnvironmentDescription capability.

public object Get(string capability)

Parameters

capability string

The capability whose value to return.

Returns

object

The current value of an EnvironmentDescription capability.

Set(string, object)

Sets an EnvironmentDescription capability to the specified value.

public EnvironmentDescription Set(string capability, object value)

Parameters

capability string

The name of the capability to set a value for.

value object

The new value of the capability.

Returns

EnvironmentDescription

The updated description instance (builder pattern).