General

Add

Adds two (or more) values. If all values are numbers, the result will be a number equal to the sum of the values. Otherwise, the operation will concatenate the values and the result will be a string.

Evaluate JavaScript

Runs the javascript code contained in the script parameter and returns the value returned from the script.

Format date

Formats the date parameter using format parameter.

If the date format is not present (or null), the current date/time is used.

The format parameter is a string code, as described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html.

If the format parameter is omitted, this source returns the date in milliseconds (as a number).

Get item from collection

Gets the selector item from the collection. If the collection is a List or Array, the selector must be an integer, which will be used as N to fetch the Nth item. If the collection is a Map, this step will return the map item with the selector key (or null if it does not exist).

List

Creates a list from the elements parameter.

List contains

Returns true if list contains target.

Name/value pair

Creates a NameValuePair object from the name and value parameters.

Project resource

Returns the project resource identified by the id parameter. Will generate an error if the resource is not found in the project.

Property

Returns the name property of the target object.

String contains

Returns true if string contains target.

System variable

Returns a system variable.

Variable

Returns the value of the name variable. It will search the execution context in reverse order, which will usually be:

  1. local
  2. task
  3. suite (if applicable)
  4. project

Encoding

HTML Decode

Returns the HTML decoding of value.

URL Encode

Returns the URL encoding of value.


Logic

And

Returns the result of performing a boolean AND evaluation of the operands (which is a list). Evaluation will fail if the operands are not booleans.

Not

Returns the inverse of the boolean value parameter. Evaluation will fail if the value is not boolean.

Or

Returns the result of performing a boolean OR evaluation of the operands (which is a list). Evaluation will fail if the operands are not booleans.


Math

Equals

Returns true if the left and right parameters are equal.

Greater than

Returns true if left parameter is greater than the right.

Less than

Returns true if left parameter is less than the right.

Random

Returns a random integer from minimum to maximum.


Primitives

Boolean

'true' or 'false'.

Number

An integer number (a Long integer in Java).

Null

An empty value.

String

A sequence of characters.


Search and Match

Find NVP by RegEx

Returns a NameValuePair object with the name and value returned from a RegEx regular expression search the target.

Optional parameters:

  • Name Group - index of the capture group for the name (default is 1)
  • Value Group - index of the capture group for the value (default is 1)
  • Match index - index of the match to use (default is 0)

Find by RegEx

Returns the string that matches the RegEx regular expression in the target.

Glob Match

Returns true if pattern matches the target. Uses a Posix-style glob pattern.

RegEx Match

Returns true if pattern matches the target. Uses a https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html pattern.