severe issues using calabash

37 views
Skip to first unread message

Nils K.

unread,
Aug 6, 2018, 11:21:35 AM8/6/18
to calabash-android
Hi there,
after trying to use calabash for a few days now, I'm about to move it to /dev/zero for being that painful :)
So I hope to find some help here and setting it up is everything else than easy for Ruby newbies like me.

After I installed it in the way it is described on https://github.com/calabash/calabash-android, I encountered a strange dependency error with json that requires me to remove the default json 2.1.0 apparently. I learned from other posts that it helps to remove the gemspec file from .../specification/default and I was able to execute the command below finally. (You really wanna fix this !!)

Nevertheless, it is still failing and apparently the issue is cucumber. Any suggestions on how to fix it? I'm using the "TMSampleAndroid-master" sample app.

calabash-android run app-debug.apk

Feature: Calabash Testing

android.util.AndroidException: INSTRUMENTATION_FAILED: com.marketlytics.calabashtest.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner
        at com.android.commands.am.Am.runInstrument(Am.java:894)
        at com.android.commands.am.Am.onRun(Am.java:402)
        at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
        at com.android.commands.am.Am.main(Am.java:122)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
  Scenario: Checking if button click works # features/my_first.feature:3
  `Cucumber::Ast` no longer exists. These classes have moved into the `Cucumber::Core::Ast` namespace, but may not have the same API. (RuntimeError)
  ./features/support/app_installation_hooks.rb:8:in `Before'
  Could not execute command to start test server (RuntimeError)
  ./features/support/app_life_cycle_hooks.rb:5:in `Before'
    When I press the "Click me" button     # calabash-android-0.9.5/lib/calabash-android/steps/press_button_steps.rb:1
    Then I see the text "Hello World!"     # calabash-android-0.9.5/lib/calabash-android/steps/assert_steps.rb:1



Kurnianto Trilaksono

unread,
Aug 6, 2018, 11:41:05 PM8/6/18
to calabash...@googlegroups.com
would you try:
- bundle install
- bundle update

and execute the test with:
- bundle exec calabash-android run </path/to/my-app.apk>

--
You received this message because you are subscribed to the Google Groups "calabash-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-android+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nils K.

unread,
Aug 8, 2018, 6:03:16 AM8/8/18
to calabash-android
nope ... does not help :(

Joshua Moody

unread,
Aug 8, 2018, 6:37:01 AM8/8/18
to calabash...@googlegroups.com

Can you show us your Gemfile?

My best guess is that you are try to use cucumber 3.0 and calabash-android supports only cucumber 2.0.

After I installed it in the way it is described on https://github.com/calabash/calabash-android, I encountered a strange dependency error with json that requires me to remove the default json 2.1.0 apparently. I learned from other posts that it helps to remove the gemspec file from …/specification/default and I was able to execute the command below finally. (You really wanna fix this !!)

You should not move the gemspec.

What OS are you using and what is your ruby version?

Because of the problem with json 2.1.0, you need to use ruby 2.3.x

jjm

--
You received this message because you are subscribed to the Google Groups "calabash-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-andro...@googlegroups.com.

Nils K.

unread,
Aug 8, 2018, 12:47:57 PM8/8/18
to calabash...@googlegroups.com
Thanks for the support. I was able to fix it finally. Apparantly, it was caused by the feature file that was included in the example app and I had to rename that directory and recreate it with "gen" parameter.
Sure, now the test cases are gone, but it works at least.


Reply all
Reply to author
Forward
0 new messages