Sha256: 14ef497172a28d2a7f8b86b4f545b5fe9964b2e5264b6f0a739cb09148c2a474

Contents?: true

Size: 502 Bytes

Versions: 4

Compression:

Stored size: 502 Bytes

Contents

define_variable_scope :my_custom_scope do
   define_variable :uuid do
     SecureRandom.uuid
   end

   define_variable :time do
     "time is: #{Time.now}"
   end
end

define_variable_scope :my_other_scope do
   define_variable :constant do
     "1"
   end
end


test(id: 1, title: 'My Sample Test') do
  step id: 1, action: "", response: "" do
    $step_variable_1_was = my_custom_scope.uuid
    $step_variable_2_was = my_custom_scope.time
  end
  $step_variable_3_was = my_other_scope.constant
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rainforest_ruby_runtime-0.1.1 sample_tests/step_variables.rb
rainforest_ruby_runtime-0.1.0 sample_tests/step_variables.rb
rainforest_ruby_runtime-0.0.2 sample_tests/step_variables.rb
rainforest_ruby_runtime-0.0.1 sample_tests/step_variables.rb