Class EnvironmentDescription
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
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
capabilitiesIDictionary<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
For details on how to describe the capabilities, see https://admhelp.microfocus.com/uftdev/en/latest/HelpCenter/Default.htm#cshid=grid-ready
Get(string)
Returns the current value of an EnvironmentDescription capability.
public object Get(string capability)
Parameters
capabilitystringThe 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
capabilitystringThe name of the capability to set a value for.
valueobjectThe new value of the capability.
Returns
- EnvironmentDescription
The updated description instance (builder pattern).