I'm running 0.4.0.pre9
Here's the verbose output. Does it reveal my problem? Thanks!
--------------------------------------
thq-m-aau:Calabash aau$ ADB_DEVICE_ARG=HT29PW300740 calabash-android run $CLIENT_HOME/Android/App/bin/com.mycompany-debug.apk --tags @login
Setting DUT to -s HT29PW300740
logcat_HT29PW300740.out found. Clearing and making new one...
Tee Logcat PID: 40365
Speced Device: >>-s HT29PW300740<<
Setting DUT to -s HT29PW300740
Feature: Login feature
@login
Scenario: Log in as an existing user after startup # features/login.feature:5
2115 KB/s (520858 bytes in 0.240s)
3677 KB/s (8867425 bytes in 2.354s)
Device iniside Init:
error: more than one device and emulator
error: more than one device and emulator
Given I am an existing user # features/step_definitions/login_steps.rb:128
Starting scenario
Device before instantiate:
undefined method `strip' for nil:NilClass (NoMethodError)
./features/step_definitions/login_steps.rb:46:in `LMS_version'
./features/step_definitions/login_steps.rb:145:in `/^I am an existing user$/'
features/login.feature:6:in `Given I am an existing user'
And I Look at the LMS version # features/step_definitions/login_steps.rb:161
And I goto Registration screen # features/step_definitions/login_steps.rb:172
And I input my user name and password # features/step_definitions/login_steps.rb:186
Then I should see mycompany main menu # features/step_definitions/login_steps.rb:201
Failing Scenarios:
cucumber features/login.feature:5 # Scenario: Log in as an existing user after startup
1 scenario (1 failed)
5 steps (1 failed, 4 skipped)
0m26.353s
Killing logcat tee process...
thq-m-aau:Calabash aau$ ADB_DEVICE_ARG=HT29PW300740 calabash-android run $CLIENT_HOME/Android/App/bin/com.mycompany-debug.apk --tags @login -v
2013-03-05 18:21:34 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S cucumber --tags @login -v PACKAGE_NAME=com.mycompany MAIN_ACTIVITY=com.mycompany.ui.LoadDispatch APP_PATH="/Users/aau/mycompany/Git/client/Android/App/bin/com.mycompany-debug.apk" TEST_APP_PATH="test_servers/ff6fb2fcea19b4cc8d9506a38e97c2e5_0.4.0.pre9.apk" TEST_SERVER_PORT=34777
Code:
* features/support/env.rb
Setting DUT to -s HT29PW300740
logcat_HT29PW300740.out found. Clearing and making new one...
Tee Logcat PID: 40475
* features/support/app_installation_hooks.rb
* features/support/app_life_cycle_hooks.rb
* features/support/hooks.rb
Failed to load 'feature-bak' programming language for file features/login.feature-bak: no such file to load -- cucumber/feature_bak_support/feature_bak_language
* features/login.feature-bak [NOT SUPPORTED]
* features/step_definitions/calabash_steps.rb
* features/step_definitions/login_steps.rb
Speced Device: >>-s HT29PW300740<<
Setting DUT to -s HT29PW300740
Failed to load 'rb-bak' programming language for file features/step_definitions/login_steps.rb-bak: no such file to load -- cucumber/rb_bak_support/rb_bak_language
* features/step_definitions/login_steps.rb-bak [NOT SUPPORTED]
Features:
* features/login.feature
Parsing feature files took 0m0.008s
Feature: Login feature
@login
Scenario: Log in as an existing user after startup # features/login.feature:5
2013-03-05 18:21:34 - First scenario in feature - reinstalling apps
2013-03-05 18:21:34 - "/Users/aau/Emulators/Android/android-sdk-mac_86/platform-tools/adb" -s HT29PW300740 forward tcp:34777 tcp:7102
2013-03-05 18:21:35 -
2013-03-05 18:21:35 - Uninstalling: sh.calaba.android.test
2013-03-05 18:21:36 - Success
2013-03-05 18:21:36 - Uninstalling: com.mycompany
2013-03-05 18:21:39 - Success
2013-03-05 18:21:39 - Installing: test_servers/ff6fb2fcea19b4cc8d9506a38e97c2e5_0.4.0.pre9.apk
2890 KB/s (520858 bytes in 0.175s)
2013-03-05 18:21:42 - pkg: /data/local/tmp/ff6fb2fcea19b4cc8d9506a38e97c2e5_0.4.0.pre9.apk
Success
2013-03-05 18:21:44 - Installing: /Users/aau/mycompany/Git/client/Android/App/bin/com.mycompany-debug.apk
3702 KB/s (8867425 bytes in 2.339s)
2013-03-05 18:21:53 - pkg: /data/local/tmp/com.mycompany-debug.apk
Success
2013-03-05 18:21:57 - Starting test server using:
2013-03-05 18:21:57 - "/Users/aau/Emulators/Android/android-sdk-mac_86/platform-tools/adb" -s HT29PW300740 shell am instrument -e main_activity com.mycompany.ui.LoadDispatch -e class sh.calaba.instrumentationbackend.InstrumentationBackend -e debug false -e target_package com.mycompany sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner
2013-03-05 18:21:58 - Checking if instrumentation backend is ready
2013-03-05 18:21:59 - Is app running? true
2013-03-05 18:21:59 - Instrumentation backend not yet ready
2013-03-05 18:22:02 - Checking if instrumentation backend is ready
2013-03-05 18:22:03 - Is app running? true
2013-03-05 18:22:03 - Instrumentation backend is ready!
Device iniside Init:
error: more than one device and emulator
error: more than one device and emulator
Given I am an existing user # features/step_definitions/login_steps.rb:128
Starting scenario
Device before instantiate:
undefined method `strip' for nil:NilClass (NoMethodError)
./features/step_definitions/login_steps.rb:46:in `LMS_version'
./features/step_definitions/login_steps.rb:145:in `/^I am an existing user$/'
features/login.feature:6:in `Given I am an existing user'
And I Look at the LMS version # features/step_definitions/login_steps.rb:161
And I goto Registration screen # features/step_definitions/login_steps.rb:172
And I input my user name and password # features/step_definitions/login_steps.rb:186
Then I should see mycompany main menu # features/step_definitions/login_steps.rb:201
2013-03-05 18:22:03 - java -jar /Library/Ruby/Gems/1.8/gems/calabash-android-0.4.0.pre9/lib/calabash-android/lib/screenShotTaker.jar /Users/aau/mycompany/Git/Calabash/screenshots/screenshot_0.png -s HT29PW300740
Failing Scenarios:
cucumber features/login.feature:5 # Scenario: Log in as an existing user after startup
1 scenario (1 failed)
5 steps (1 failed, 4 skipped)
0m30.615s
Killing logcat tee process...
thq-m-aau:Calabash aau$
--------------------------------------