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

Support dynamic subreferences #178

Closed vajda closed 6 years ago

vajda commented 6 years ago

Still not sure whether it is possible and how would it be implemented, but something like this would be useful:

values:
  a:
    x: 10
    y: 100
  b:
    x: 20
    y: 200
  c:
    x: 30
    y: 300
  val: random([$a, $b, $c])
  t:
    k: val.x
    p: val.y
output: $t

This will allow for value correlation