Last active
August 29, 2015 14:12
-
-
Save gunesmes/dab164072e4b142f2509 to your computer and use it in GitHub Desktop.
calabash-android run gives INSTRUMENTATION_FAILED exception. This is a solution for this exception.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/P/m/android-automation (master ⚡=) calabash-android run latest.apk features ADB_DEVICE_ARG=192.168.56.101:5555 | |
Feature: Splash Screen | |
As A user | |
I Want to see splash screen | |
So That I can have an idea about the app in advance. | |
Background: User should open the application # features/M001_splash_screen.feature:6 | |
android.util.AndroidException: INSTRUMENTATION_FAILED: com.arkony.maidan.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner | |
at com.android.commands.am.Am.runInstrument(Am.java:865) | |
at com.android.commands.am.Am.onRun(Am.java:282) | |
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47) | |
at com.android.commands.am.Am.main(Am.java:76) | |
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) | |
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243) | |
at dalvik.system.NativeStart.main(Native Method) | |
~/P/m/android-automation (master ⚡=) mkdir sil | |
~/P/m/android-automation (master ⚡=) cp latest.apk sil | |
~/P/m/android-automation (master ⚡=) cd sil | |
~/P/m/a/sil (master ⚡=) ls | |
latest.apk | |
~/P/m/a/sil (master ⚡=) calabash-android gen | |
----------Question---------- | |
I'm about to create a subdirectory called features. | |
features will contain all your calabash tests. | |
Please hit return to confirm that's what you want. | |
--------------------------- | |
----------Info---------- | |
features subdirectory created. | |
--------------------------- | |
~/P/m/a/sil (master ⚡=) | |
~/P/m/a/sil (master ⚡=) calabash-android run latest.apk features ADB_DEVICE_ARG=192.168.56.101:5555 | |
No test server found for this combination of app and calabash version. Recreating test server. | |
Done signing the test server. Moved it to test_servers/befb4b755d3eb1c8e2ac74fb7e595373_0.5.5.apk | |
Feature: Login feature | |
Scenario: As a valid user I can log into my app # features/my_first.feature:3 | |
1425 KB/s (557660 bytes in 0.381s) | |
1453 KB/s (2126673 bytes in 1.428s) | |
When I press "Login" # calabash-android-0.5.5/lib/calabash-android/steps/press_button_steps.rb:17 | |
Then I see "Welcome to coolest app ever" # calabash-android-0.5.5/lib/calabash-android/steps/assert_steps.rb:5 | |
Timeout waiting for elements: * {text CONTAINS[c] 'Welcome to coolest app ever'} (Calabash::Android::WaitHelpers::WaitError) | |
features/my_first.feature:5:in `Then I see "Welcome to coolest app ever"' | |
Failing Scenarios: | |
cucumber features/my_first.feature:3 # Scenario: As a valid user I can log into my app | |
1 scenario (1 failed) | |
2 steps (1 failed, 1 passed) | |
0m34.167s | |
~/P/m/a/sil (master ⚡=) cd .. | |
~/P/m/android-automation (master ⚡=) calabash-android run latest.apk features ADB_DEVICE_ARG=192.168.56.101:5555 | |
Feature: Splash Screen | |
As A user | |
I Want to see splash screen | |
So That I can have an idea about the app in advance. | |
Background: User should open the application # features/M001_splash_screen.feature:6 | |
Given I open the application # features/step_definitions/login.rb:7 | |
Scenario: As an anonymous user I should see Splash Screen page 1 # features/M001_splash_screen.feature:9 | |
Then I should see "Splash Screen page 1" page # features/step_definitions/login.rb:57 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment