Expression Syntax
Expression syntax allows you to randomize the data loader sends to your app in requests. Expressions can be substituted in URLs, GET or POST parameters, and POST body to create dynamic/random requests.
Expressions work for numeric values only. All expressions begin with
%{
and end with
}
. The following patterns are supported:
Expression Type | Example | Result |
List of values | %{1, 2, 3} |
Iterate over the values |
Range of values | %{1:100:2} |
Values from 1 to 100 incrementing by 2 |
Random values | %{*:1-100} |
Pick random values between 1 and 100 |
List of Expressions | %{1, 2:100:2, *:1-100, 17} |
Evaluates each expression in turn |
|
The maximum value permitted in an expression is 9223372036854775807.