We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e8c07 commit 70c0a78Copy full SHA for 70c0a78
api-spec-testing/test_file/task_group.rb
@@ -314,6 +314,9 @@ def set_variable(action)
314
variables_to_set.each do |set_definition|
315
set_definition['set'].each do |response_key, variable_name|
316
nested_key_chain = response_key.split('.').map do |key|
317
+ # If there's a variable in the set key, get the value:
318
+ key.gsub!(key, @test.cached_values[key.gsub('$', '')]) if key.match?(/\$.+/)
319
+
320
(key =~ /\A[-+]?[0-9]+\z/) ? key.to_i: key
321
end
322
0 commit comments