Unable to run calabash-ios + rspec tests with the updated Gem versions -
i created few calabash-ios tests using rspec in rubymine ide on mac mini worked great;
however moved imac , had configure , install ruby , necessary gems. however, time not execute tests due following error , i'm stuck. (copied error message below)
best guess related difference in version of gems on both machines. did version comparison in detail, observed quite few differences.. listing here ones think relevant error: (and unfortunately, not able install older version of gems (on imac) not exists anymore, instead updated versions)
listed tge versions in form of gem name = version on oldmachine && version on newmachine
cfpropertylist = 2.2.0 && 2.2.1
httpclient = 2.3.3 && 2.3.4.1
rspec = 2.14.1, 2.9.0.rc2 && 2.14.1
rspec-core = 2.14.4, 2.14.3, 2.9.0.rc2 && 2.14.5
rspec-expectations = 2.14.1, 2.14.0, 2.9.0.rc2 && 2.14.2
rspec-mocks = 2.14.3, 2.14.2, 2.14.1,2.9.0.rc2 && 2.14.3
rubygems-update = 2.0.6, 2.0.5 && 2.0.7
has else come across issue updated versions of gems?
please share pointers me resolve earliest possible. there way move old version of gems , check if tests work correctly?
or is there else think , suggest me try make tests run??
i confirmed firewall off
the error occurs when attempted launch simulator under 'before' block in _spec.rb file : @launcher = calabash::cucumber::launcher.new @launcher.new
---------------------------------------------------------------error details ----------------
/users/admin/.rbenv/versions/2.0.0-p247/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=argv.shift) /users/admin/.rbenv/versions/2.0.0-p247/bin/rspec /users/admin/desktop/myapp-iphone/sources/spec/featuredpage_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format spec::runner::formatter::teamcityformatter testing started @ 3:10 pm ... #<spec::runner::formatter::teamcityformatter:0x007fbb58997b70> #<rspec::core::formatters::documentationformatter:0x007fbb5b220948> smoke test exploring featured page cfformaterror: invalid xml: #<argumenterror: wrong number of arguments (0 1+)> /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/operations.rb:67:in `tap' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/baseparser.rb:183:in `pull' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/treeparser.rb:22:in `parse' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:283:in `build' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:43:in `initialize' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `new' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `block in load' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `open' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `load' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbcfpropertylist.rb:345:in `load' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbcfpropertylist.rb:245:in `initialize' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `new' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `block in derived_data_dir_for_project' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `each' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `find' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `derived_data_dir_for_project' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:134:in `app_bundle_or_raise' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launcher.rb:80:in `relaunch' /users/admin/desktop/myapp-iphone/trunk/sources/spec/featuredpage_spec.rb:26:in `block (3 levels) in <top (required)>' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:21:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `each' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:446:in `run_hook' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:300:in `run_before_each' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:113:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:80:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun' ... wrong number of arguments (0 1+) line: -1 position: -1 last 80 unconsumed characters: ./spec/featuredpage_spec.rb:26:in `block (3 levels) in <top (required)>' [fp100-015] should display location selected under featured page header (failed - 1) failures: 1) smoke test exploring featured page [fp100-015] should display location selected under featured page header failure/error: @launcher.relaunch cfformaterror: invalid xml: #<argumenterror: wrong number of arguments (0 1+)> /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/operations.rb:67:in `tap' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/baseparser.rb:183:in `pull' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/treeparser.rb:22:in `parse' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:283:in `build' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:43:in `initialize' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `new' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `block in load' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `open' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbrexmlparser.rb:16:in `load' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbcfpropertylist.rb:345:in `load' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/cfpropertylist-2.2.1/lib/rbcfpropertylist.rb:245:in `initialize' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `new' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `block in derived_data_dir_for_project' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `each' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `find' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `derived_data_dir_for_project' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:134:in `app_bundle_or_raise' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launcher.rb:80:in `relaunch' /users/admin/desktop/myapp-iphone/trunk/sources/spec/featuredpage_spec.rb:26:in `block (3 levels) in <top (required)>' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:21:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `each' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:446:in `run_hook' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:300:in `run_before_each' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:113:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:80:in `run' /users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun' ... wrong number of arguments (0 1+) line: -1 position: -1 last 80 unconsumed characters: # ./spec/featuredpage_spec.rb:26:in `block (3 levels) in <top (required)>' 1 example, 1 failure, 0 passed finished in 0.103899 seconds finished in 0.1039 seconds 1 example, 1 failure failed examples: rspec ./spec/featuredpage_spec.rb:103 # smoke test exploring featured page [fp100-015] should display location selected under featured page header process finished exit code 1
---------------------------------------------------------------error details -------------------
appreciate on @ earliest. can share gem list contents both machines if require analysis.
thanks sam
Comments
Post a Comment