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 class
This class can be used to construct an instance of the EnvironmentDescription class using the builder pattern.protected static class
Helper 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 EnvironmentDescription
Creates a new instance ofEnvironmentDescription
and initializes it with the specified capabilities.Returns the current value of anEnvironmentDescription
capability.getMap()
For internal use only.void
Sets anEnvironmentDescription
capability to the specified value.Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods 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 ofEnvironmentDescription
and 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
- AMap
of capabilities to initialize theEnvironmentDescription
with.- Returns:
- a new instance of
EnvironmentDescription
initialized with the specified capabilities. - Throws:
GeneralLeanFtException
- if the fromMap operation fails.
-
set
Sets anEnvironmentDescription
capability 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 anEnvironmentDescription
capability.- Parameters:
capability
- The capability whose value to return.- Returns:
- the current value of an
EnvironmentDescription
capability. - Throws:
GeneralLeanFtException
- if the get operation fails.
-
getMap
For internal use only.- Specified by:
getMap
in interfacecom.hp.lft.sdk.internal.MapHolder
- Returns:
- for internal use only.
-