alexandrehtrb/Pororoca

Predefined variables

alexandrehtrb opened this issue · 1 comments

https://learning.postman.com/docs/writing-scripts/script-references/variables-list/

Examples:

  • {{$guid}}: 611c2e81-2ccb-42d8-9ddc-2d0bfa65c1b4
  • {{$now}}, {{$isoTimestamp}}: 2020-06-09T21:10:36.177Z (no time zone specified; GMT +0h)
  • {{$today}}: 2020-06-09
  • {{$randomInt}}
  • {{$randomFullName}}

Files to be changed: IPororocaVariableResolver (and unit tests) + JSONC_pororoca.tmLanguage.json (for variable highlighting, pororocavar regex)

Solved on release 3.4.0

If you have ideas for more predef variables, please comment here or open a PR (code in file PororocaPredefinedVariableEvaluator.cs)