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 Summary
Nested 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 Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
cloneTo, getValueAs, getValueAsStringProperty, insertValue
-
Constructor Details
-
EnvironmentDescription
public EnvironmentDescription()
-
-
Method Details
-
fromMap
public 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- AMapof capabilities to initialize theEnvironmentDescriptionwith.- Returns:
- a new instance of
EnvironmentDescriptioninitialized with the specified capabilities. - Throws:
GeneralLeanFtException- if the fromMap operation fails.
-
set
Sets 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.
-
get
Returns 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.
-
getMap
For internal use only.- Specified by:
getMapin interfacecom.hp.lft.sdk.internal.MapHolder- Returns:
- for internal use only.
-