Strings are expressed between quotes. For example,
City will be interpreted as a variable whereas
'City' will be evaluated as a string.
Object identification variables and step variables do not share the same context. This means that variables that are defined in one context are not recognized in the other. To use a variable in object identification that is defined in a step, add the prefix ArgsContext before the variable name.
For example, if the variable firstname is defined as a value for an argument of a step, use the firstname variable in object identification, refer to the variable as ArgsContext.firstname.
For an example of using AgrsContext in a for loop, see How to Insert and Modify Loops in TruClient.
To use regular expressions, there are two options:
Use the '/' notation: Replace the quotation marks of a string with a slash.
If you need to dynamically create a regular expression (e.g. using a parameter), you can use the regular expression constructor and specify the string. For example, the equivalent of the above example is RegExp("LoadRunner").
/LoadRunner/ is a regular expression that will match any string that contains the word "LoadRunner" in it.
The full list of supported regular expressions can be found here: