Default variable values #27
Labels
enhancement
New feature or request
scope:parsing
Parsing request files, resolve, and template values
scope:validation
Validating request and request template files
Milestone
default
env if one isn't passed during templatingdefault
when resolving variable values on a parsed request fileScenarios
Single Variable
Default environment returns default env value
Given variables
["value"]
And
envs.default.value = 123
And
envs.test.value = 456
When
env
is"default"
Then the variable
value
is123
Defined environment returns defined env value
Given variables
["value"]
And
envs.default.value = 123
And
envs.test.value = 456
When
env
is"test"
Then the variable
value
is456
Multi Variable
Given variables
["valueA", "valueB"]
And
envs.default.valueA = 123
And
envs.test.valueA = 456
And
envs.test.valueB = 999
When
env
is"default"
Then there is a validation error that
valueB
isn't resolvedGiven variables
["valueA", "valueB"]
And
envs.default.valueA = 123
And
envs.test.valueA = 456
And
envs.test.valueB = 999
When
env
is"test"
Then the variable
valueA
is456
And the variable
valueB
is999
The text was updated successfully, but these errors were encountered: