public class WDStep
extends com.sebuilder.interpreter.Step
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIB_IGNORED_BROWSER
The attribute 'ignoredBrowser' of script command, which is param[0].
Its value can be a comma-separated-string, such as "chrome, explorer, firefox". Each browser name can be Constants.BrowserConstants.BROWSER_NAME_IE Constants.BrowserConstants.BROWSER_NAME_CHROME Constants.BrowserConstants.BROWSER_NAME_FIREFOX Constants.BrowserConstants.BROWSER_NAME_EDGE |
protected java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
paramAttributes
This list of Map holds the attributes for every parameter of this step, they are attributes in tag
|
protected java.util.Map<java.lang.String,java.lang.String> |
stepAttributes
This Map holds the attributes for this step, they are attributes in the tag
|
Constructor and Description |
---|
WDStep(com.sebuilder.interpreter.StepType type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParam(java.lang.String param) |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getParamAttributes() |
java.util.Map<java.lang.String,java.lang.String> |
getStepAttributes() |
void |
handleAttributes(com.sebuilder.interpreter.TestRun ctx) |
static boolean |
isUnModifiableParameter(java.lang.String parameter)
To test if the step's parameter is modifiable.
|
void |
putParam(java.lang.String key,
java.lang.String value)
Save the command's parameter into the Map
Step.stringParams . |
void |
setParamAttributes(java.util.List<java.util.Map<java.lang.String,java.lang.String>> paramAttributes) |
void |
setStepAttributes(java.util.Map<java.lang.String,java.lang.String> stepAttributes) |
public static final java.lang.String ATTRIB_IGNORED_BROWSER
Constants.BrowserConstants.BROWSER_NAME_IE
Constants.BrowserConstants.BROWSER_NAME_CHROME
Constants.BrowserConstants.BROWSER_NAME_FIREFOX
Constants.BrowserConstants.BROWSER_NAME_EDGE
protected java.util.List<java.util.Map<java.lang.String,java.lang.String>> paramAttributes
protected java.util.Map<java.lang.String,java.lang.String> stepAttributes
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getParamAttributes()
public void setParamAttributes(java.util.List<java.util.Map<java.lang.String,java.lang.String>> paramAttributes)
paramAttributes
- the paramAttributes to setpublic java.util.Map<java.lang.String,java.lang.String> getStepAttributes()
public void setStepAttributes(java.util.Map<java.lang.String,java.lang.String> stepAttributes)
stepAttributes
- the stepAttributes to setpublic void putParam(java.lang.String key, java.lang.String value)
Step.stringParams
.key
- String, the key of command's parametervalue
- String, the value of the command's parameterpublic java.lang.String getParam(java.lang.String param)
param
- String, the parameter's namepublic void handleAttributes(com.sebuilder.interpreter.TestRun ctx) throws IgnoredStepException
ctx
- TestRun, the context.IgnoredStepException
public static boolean isUnModifiableParameter(java.lang.String parameter)
UN_MODIFIABLE_PARAMETERS
.parameter
- String, the parameter's name.Copyright © SAS Institute. All Rights Reserved.