public class FeatureStateImpl extends java.lang.Object implements FeatureState
Constructor and Description |
---|
FeatureStateImpl(UrlMapping url,
java.util.Map<java.lang.String,java.lang.String> dataset,
java.lang.String reportDirectory,
java.util.List<ProxyDetails<?>> proxies) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoAlias() |
java.util.Map<java.lang.String,java.lang.String> |
getDataSet() |
int |
getDefaultKeyStrokeDelay() |
long |
getDefaultSleep() |
long |
getDefaultWait() |
boolean |
getFailed() |
java.util.List<ProxyDetails<?>> |
getProxyInterface() |
java.util.Optional<ProxyDetails<?>> |
getProxyInterface(java.lang.String name) |
java.lang.String |
getReportDirectory() |
boolean |
getSkipSteps() |
java.util.Optional<UrlMapping> |
getUrlDetails() |
void |
setAutoAlias(boolean autoAlias) |
void |
setDataSet(java.util.Map<java.lang.String,java.lang.String> dataSet) |
void |
setDefaultKeyStrokeDelay(int defaultKeyStrokeDelay) |
void |
setDefaultSleep(long defaultSleep) |
void |
setDefaultWait(long myWait) |
void |
setFailed(boolean failed) |
void |
setProxyInterface(java.util.List<ProxyDetails<?>> myProxies) |
void |
setSkipSteps(boolean skipSteps) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatureStateForThread
public FeatureStateImpl(UrlMapping url, @NotNull java.util.Map<java.lang.String,java.lang.String> dataset, @NotNull java.lang.String reportDirectory, @NotNull java.util.List<ProxyDetails<?>> proxies)
public void setDefaultSleep(long defaultSleep)
setDefaultSleep
in interface FeatureState
defaultSleep
- How long to sleep between stepspublic long getDefaultSleep()
getDefaultSleep
in interface FeatureState
public java.util.Optional<UrlMapping> getUrlDetails()
getUrlDetails
in interface FeatureState
public java.util.Map<java.lang.String,java.lang.String> getDataSet()
getDataSet
in interface FeatureState
public void setDataSet(java.util.Map<java.lang.String,java.lang.String> dataSet)
setDataSet
in interface FeatureState
dataSet
- The data set associated with this instance of the testpublic boolean getFailed()
getFailed
in interface FeatureState
public void setFailed(boolean failed)
setFailed
in interface FeatureState
failed
- true if there was a failed scenario, and false otherwisepublic java.lang.String getReportDirectory()
getReportDirectory
in interface FeatureState
public java.util.List<ProxyDetails<?>> getProxyInterface()
getProxyInterface
in interface FeatureState
public java.util.Optional<ProxyDetails<?>> getProxyInterface(@NotNull java.lang.String name)
getProxyInterface
in interface FeatureState
name
- The name of the proxy to findpublic void setProxyInterface(java.util.List<ProxyDetails<?>> myProxies)
setProxyInterface
in interface FeatureState
myProxies
- The optional details of the proxy being usedpublic boolean getAutoAlias()
getAutoAlias
in interface FeatureState
public void setAutoAlias(boolean autoAlias)
setAutoAlias
in interface FeatureState
autoAlias
- true if autoalias is enabled, and false otherwisepublic boolean getSkipSteps()
getSkipSteps
in interface FeatureState
public void setSkipSteps(boolean skipSteps)
setSkipSteps
in interface FeatureState
skipSteps
- true if all steps are to be skipped, false otherwisepublic int getDefaultKeyStrokeDelay()
getDefaultKeyStrokeDelay
in interface FeatureState
public void setDefaultKeyStrokeDelay(int defaultKeyStrokeDelay)
setDefaultKeyStrokeDelay
in interface FeatureState
defaultKeyStrokeDelay
- The default amount of time to wait between keypresses in textboxes
and other text input fieldspublic long getDefaultWait()
getDefaultWait
in interface FeatureState
public void setDefaultWait(long myWait)
setDefaultWait
in interface FeatureState
myWait
- the amount of time to wait for an element to be available before
completing a step.