Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant DataStoreFactory? #87

Open
sswaroopgupta opened this issue Aug 2, 2018 · 1 comment
Open

uninitialized constant DataStoreFactory? #87

sswaroopgupta opened this issue Aug 2, 2018 · 1 comment

Comments

@sswaroopgupta
Copy link
Contributor

From @tigerlei010 on February 9, 2017 13:24

gauge-ruby (0.3.1)

In one step define, copy the following lines from the manual:
// Adding value
scenario_store = DataStoreFactory.scenario_datastore;
scenario_store.put("element-id", "455678");

exec gauge specs/ , error occus:
Specification: specs/example.spec:19
Error Message: uninitialized constant DataStoreFactory
Stacktrace:
/home/tigerlei/work/test/step_implementations/step_implementation.rb:7:in block in <top (required)>' /home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/executor.rb:38:in execute_step'
/home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/processors/execute_step_request_processor.rb:30:in process_execute_step_request' /home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/message_processor.rb:52:in call'
/home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/message_processor.rb:52:in process_message' /home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/gauge_runtime.rb:53:in handle_message'
/home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/gauge_runtime.rb:37:in dispatch_messages' /home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/gauge_runtime.rb:76:in module:Runtime'
/home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/gauge_runtime.rb:29:in <module:Gauge>' /home/tigerlei/.gem/ruby/2.3.0/gems/gauge-ruby-0.3.1/lib/gauge_runtime.rb:27:in <top (required)>'
/usr/local/ruby23/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in require' /usr/local/ruby23/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in rescue in require'
/usr/local/ruby23/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'

Copied from original issue: getgauge/gauge-ruby#36

@sswaroopgupta
Copy link
Contributor Author

From @tigerlei010 on February 10, 2017 3:21

I have solved this problem, add Guage:: before DataStoreFactory. but ,I think modifying the manual http://getgauge.io/documentation/user/current/language_features/data_store.html is still necessary.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant