File
Goal
Write mask
rule logic to
- generate strings from file
Ano Structure and Examples
- Structure
- Structure Multiple Files
- Update Example
- Create Example
...
mask <column> <rule-name>
format %s
file <file-location> random-order?
...
...
mask <column> <rule-name>
format "%s %s"
file <file-1-location> random-order?
file <file-2-location> random-order?
...
table CUSTOMER
...
column text NAME size 40
...
...
task ... {
update CUSTOMER
...
mask NAME
format "%s %s"
file src/main/resources/firstname.txt random-order
file src/main/resources/lastname.txt random-order
...
}
table CUSTOMER
...
column time EARLIESTCHECKINTIME
...
...
task ... {
update CUSTOMER
minimum-rows 50
...
mask NAME
format "%s %s"
file src/main/resources/firstname.txt random-order
file src/main/resources/lastname.txt random-order
...
}
- Make sure the
.txt
files resides in the foldersrc/main/resources/
in the generated project. random-order
: Optional keyword that decides if values are picked randomly or sequentially from the file.- With multiple input sources, the order of inputs corresponds to the order of the
%s
´s in theformat
string- 1st
%s
of the format string receives values from<file-1-location>
, 2nd%s
receives from<file-2-location>
- 1st
File Structure
- firstname.txt Example
- email.txt Example
Kayden
Owen
Kyle
Bailey
Brandon
Landon
Erik
gmail.com
yahoo.com
msn.com
esito.no
inmeta.no
crayon.com
- .txt files
- One word per line
- Each line is one value