public static class TestScript.Variable extends BaseIdentifiableElement implements IResourceBlock
Definition: Variable is set based either on element value in response body or on header field value in the response headers.
| Constructor and Description |
|---|
Variable() |
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
String |
getHeaderField()
Gets the value(s) for headerField ().
|
StringDt |
getHeaderFieldElement()
Gets the value(s) for headerField ().
|
String |
getName()
Gets the value(s) for name ().
|
StringDt |
getNameElement()
Gets the value(s) for name ().
|
String |
getPath()
Gets the value(s) for path ().
|
StringDt |
getPathElement()
Gets the value(s) for path ().
|
String |
getSourceId()
Gets the value(s) for sourceId ().
|
IdDt |
getSourceIdElement()
Gets the value(s) for sourceId ().
|
boolean |
isEmpty() |
TestScript.Variable |
setHeaderField(String theString)
Sets the value for headerField ()
|
TestScript.Variable |
setHeaderField(StringDt theValue)
Sets the value(s) for headerField ()
|
TestScript.Variable |
setName(String theString)
Sets the value for name ()
|
TestScript.Variable |
setName(StringDt theValue)
Sets the value(s) for name ()
|
TestScript.Variable |
setPath(String theString)
Sets the value for path ()
|
TestScript.Variable |
setPath(StringDt theValue)
Sets the value(s) for path ()
|
TestScript.Variable |
setSourceId(IdDt theValue)
Sets the value(s) for sourceId ()
|
TestScript.Variable |
setSourceId(String theId)
Sets the value for sourceId ()
|
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementSpecificId, getId, setElementSpecificId, setId, setIdpublic Variable()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic StringDt getNameElement()
null.
Definition: Descriptive name for this variable
public String getName()
null.
Definition: Descriptive name for this variable
public TestScript.Variable setName(StringDt theValue)
Definition: Descriptive name for this variable
public TestScript.Variable setName(String theString)
Definition: Descriptive name for this variable
public StringDt getHeaderFieldElement()
null.
Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
public String getHeaderField()
null.
Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
public TestScript.Variable setHeaderField(StringDt theValue)
Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
public TestScript.Variable setHeaderField(String theString)
Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
public StringDt getPathElement()
null.
Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
public String getPath()
null.
Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
public TestScript.Variable setPath(StringDt theValue)
Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
public TestScript.Variable setPath(String theString)
Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
public IdDt getSourceIdElement()
null.
Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
public String getSourceId()
null.
Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
public TestScript.Variable setSourceId(IdDt theValue)
Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
public TestScript.Variable setSourceId(String theId)
Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
Copyright © 2014–2016 University Health Network. All rights reserved.