smartcat-labs / ranger

Ranger is contextual data generator used to make sensible data for integration tests or to play with it in the database
https://www.smartcat.io/products/ranger-contextual-data-and-load-generator
Apache License 2.0
59 stars 11 forks source link

Domain values for value generators from external source #130

Open nivancevic opened 7 years ago

nivancevic commented 7 years ago

Implement a data value loader that can be used to define value generator domain values in an external source - a file.

For example:

value: random(domain('<path to resource>'), normal(0.4, 0.01))

defines a random value generator where the domain values are loaded from a external file.

vajda commented 7 years ago

I'd call it fromFile('path') or file('path') domain is a bit strange name IMHO. Or even better, call it textFile, maybe have also csvFile('path', columnSeparator, recordSeparator) and also excelFile('path')