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

Issues executing the code #1

Open
annarv-telescope opened this issue Nov 28, 2019 · 0 comments
Open

Issues executing the code #1

annarv-telescope opened this issue Nov 28, 2019 · 0 comments

Comments

@annarv-telescope
Copy link

annarv-telescope commented Nov 28, 2019

Hi,
I need help running the code. We are using Ruby 2.3.3, we did bundle install --deployment to get exact version from the Gemfile.lock but then when trying to run cucumber command from README file cucumber BS_USERNAME=$BS_USER BS_AUTHKEY=$BS_PASSWORD BS_AUTOMATE_OS='OS X' BS_AUTOMATE_OS_VERSION='Mojave' SELENIUM_BROWSER='Chrome'

At first we had error:

/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/net-http-persistent-3.1.0/lib/net/http/persistent.rb:530:in `initialize'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/persistent.rb:27:in `new'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/persistent.rb:27:in `new_http_client'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/default.rb:17:in `http'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/persistent.rb:31:in `response_for'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/default.rb:39:in `request'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/bridge.rb:629:in `raw_execute'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/bridge.rb:98:in `create_session'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/bridge.rb:68:in `initialize'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/driver.rb:33:in `new'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/driver.rb:33:in `for'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver.rb:67:in `for'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/watir-webdriver-0.6.11/lib/watir-webdriver/browser.rb:46:in `initialize'
/Telescope/git-repos/cucumber-watir-browserstack/features/support/env.rb:21:in `new'
/Telescope/git-repos/cucumber-watir-browserstack/features/support/env.rb:21:in `<top (required)>'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/rb_support/rb_language.rb:122:in `load'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/rb_support/rb_language.rb:122:in `load_code_file'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:82:in `each'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:183:in `load_step_definitions'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:42:in `run!'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/lib/cucumber/cli/main.rb:47:in `execute!'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/gems/cucumber-1.3.4/bin/cucumber:13:in `<top (required)>'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/bin/cucumber:23:in `load'
/Telescope/git-repos/cucumber-watir-browserstack/vendor/bundle/ruby/2.3.0/bin/cucumber:23:in `<main>'

I went into ../selenium/webdriver/remote/http/persistent.rb line 27 and removed two arguments, but then when I ran the command again it seemed that http-persistent did work, but then kept failing. It seems to be an issue with ruby version and I tried to get ruby version mentioned in circle.yml but that version seemed to be outdated and didn't work.

What could be the way to run this code with newer versions of dependencies?

Thanks!

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

No branches or pull requests

1 participant