| ScriptAction that sets or unsets a variable.
<variable name="..." [ match="..." ] [ replace="..." replacement="..." ] [ filters="..." ] value="..." />
<variable name="..." [ match="..." ] [ replace="..." replacement="..." ] [ filters="..." ] />...<variable>
All attributes are resolved via
edu.iu.uis.eden.test.web.framework.Util.getResolvableAttribute(NodeStringPropertyScheme) ,
defaulting to literal scheme.
Explanation of attributes:
- match
- Re-assigns the value of the variable to the groups found in a supplied regular expression. E.g. variable value: "coursenumber: 1234"; match attribute: ".*coursenumber: +([0-9]+).*"; the result would be a List of all course numbers in the variable value.
- replace, replacement
- These allow regular expression search/replace. 'replace' is the regular expression to match, and 'replacement' is the replacement text. Implemented as: stringValue.replaceAll(replaceRegex, replacementString);
- filters
- Allows applying a sequence of preconfigured filters to the value. The list of filter names is comma-delimited. E.g. filters="DUPLICATE_SPACES, DUPLICATE_NEWLINES"
author: Aaron Hamid (arh14 at cornell dot edu) |