So far we defined two String parameters for which all choices had precisely defined values. In many cases we are not interested in concrete value, but rather in range of values or a certain pattern for String parameter. EcFeed supports this case by so called randomized choices. Values of randomized choices are not defined until the test is executed or exported (see section Data export).
Add a new parameter to our method, name it age and change its type to int. Add a choice to this parameter and name it minor. Now if you look at the choices viewer you will see a column named Randomized. There is also a Randomized checkbox in the choice details page. Set it to Yes* for the minor choice. The value of the choice should now change to 0:0. In the choice details page, the word Value should be replaced by Range. Indeed, we can now define a range of our choice. The numbers separated by a colon represent the lower and upper bounds of the range inclusively, so let's define it as 10:17 (We can assume age of 10 to be minimal required by bank for having an account). Let's add some more choices for age:
Similarly, we can define a randomized choice for a String parameter, but instead the range, we will define a regular expression representing the choice. When needed, the actual value will be randomly selected in a way that it will match the regex.
Lets add a String parameter called documentSerialNumber. We will add three choices for that parameter: drivers license, personal ID and passport. Let's assume that the driver's license number consists of single capital letter and seven digits. ID number will contain three letters followed by six digits, whereas passport id will be two letters and nine digits. So choices for our parameters will have the following values: