Package com.hp.lft.sdk
Class EnvironmentDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.EnvironmentDescription
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.MapHolder,- Cloneable
public class EnvironmentDescription
extends PropertiesDescription
implements com.hp.lft.sdk.internal.MapHolder
An object describing the environment that the test requires, in capability name-value pairs.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the EnvironmentDescription class using the builder pattern.protected static classHelper class for EnvironmentDescription.Builder.
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic EnvironmentDescriptionCreates a new instance ofEnvironmentDescriptionand initializes it with the specified capabilities.Returns the current value of anEnvironmentDescriptioncapability.getMap()For internal use only.voidSets anEnvironmentDescriptioncapability to the specified value.Methods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasecloneTo, getValueAs, getValueAsStringProperty, insertValue
- 
Constructor Details- 
EnvironmentDescriptionpublic EnvironmentDescription()
 
- 
- 
Method Details- 
fromMappublic static EnvironmentDescription fromMap(Map<String, Object> capabilities) throws GeneralLeanFtExceptionCreates a new instance ofEnvironmentDescriptionand initializes it with the specified capabilities.
 For details on how to describe the capabilities, see https://admhelp.microfocus.com/uftdev/en/latest/HelpCenter/Content/HowTo/LeanFT-grid-ready-tests.htm#Build.- Parameters:
- capabilities- A- Mapof capabilities to initialize the- EnvironmentDescriptionwith.
- Returns:
- a new instance of EnvironmentDescriptioninitialized with the specified capabilities.
- Throws:
- GeneralLeanFtException- if the fromMap operation fails.
 
- 
setSets anEnvironmentDescriptioncapability to the specified value.- Parameters:
- capability- The name of the capability to set a value for.
- value- The new value of the capability.
- Throws:
- GeneralLeanFtException- if the set operation fails.
 
- 
getReturns the current value of anEnvironmentDescriptioncapability.- Parameters:
- capability- The capability whose value to return.
- Returns:
- the current value of an EnvironmentDescriptioncapability.
- Throws:
- GeneralLeanFtException- if the get operation fails.
 
- 
getMapFor internal use only.- Specified by:
- getMapin interface- com.hp.lft.sdk.internal.MapHolder
- Returns:
- for internal use only.
 
 
-