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

Cannot launch cucumber/android project #210

Closed
jmoody opened this issue Aug 3, 2015 · 2 comments
Closed

Cannot launch cucumber/android project #210

jmoody opened this issue Aug 3, 2015 · 2 comments

Comments

@jmoody
Copy link
Member

jmoody commented Aug 3, 2015

Reproduce

  1. Follow these instructions.
$ bundle update
$ ./copy_repos.sh
$ ./changing_old_files.sh
$ rake android:build
$ cd cucumber/android
$ be calabash resign ../../spec/resources/android/xtc-android-sample.apk
$ be calabash build ../../spec/resources/android/xtc-android-sample.apk
$ be cucumber

Notes

I tried:

$ be calabash run ../../spec/resources/android/xtc-android-sample.apk

but ran into Expected behavior of $ be calabash run ../app.apk #209

Which I think can be resolved by updating the env.rb and hooks.rb?

Expected

To be able to run the cucumber. This worked at one point.

Found

$ CAL_DEBUG=1 be cucumber                                                                                                                                                                                                 
Setting Android SDK location to $ANDROID_HOME
Android SDK location set to '/usr/local/opt/android-sdk'
Set aapt path to '/usr/local/opt/android-sdk/build-tools/22.0.1/aapt'
Set zipalign path to '/usr/local/opt/android-sdk/build-tools/22.0.1/zipalign'
Set adb path to '/usr/local/opt/android-sdk/platform-tools/adb'
Set android jar path to '/usr/local/opt/android-sdk/platforms/android-MNC/android.jar'
Java SDK location set to ''
Found java on PATH
Set java path to '/usr/bin/java'
Found keytool on PATH
Set keytool path to '/usr/bin/keytool'
Found jarsigner on PATH
Set jarsigner path to '/usr/bin/jarsigner'
ADB Command: devices
ADB input: 
Using the default, app and formatter profiles...
Feature: Home Page
  In order to test the Android query and wait APIs
  As a Calabash developer
  I want a set of Scenarios that interact with the Home page.

Ensuring /Users/moody/git/calabash/calabash/spec/resources/android/xtc-android-sample.apk is installed
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["echo \"test\"; exit 0"]
Application is already installed. Ensuring right checksum
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages -f; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["md5; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["md5 '/data/app/com.xamarin.xtcandroidsample-1.apk'; echo \"__CAL_END__$?\"; exit 0"]
Ensuring the test-server is installed as well
Ensuring /Users/moody/git/calabash/calabash/cucumber/android/test_servers/dd25a450912b6d1b9bb602f64f180bb9_1.9.9.pre2.apk is installed
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
Application is already installed. Ensuring right checksum
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages -f; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["md5 '/data/app/com.xamarin.xtcandroidsample.test-1.apk'; echo \"__CAL_END__$?\"; exit 0"]                                                                                                         [100/10949]
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages -f; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["md5 '/data/app/com.xamarin.xtcandroidsample-1.apk'; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages -f; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["md5 '/data/app/com.xamarin.xtcandroidsample.test-1.apk'; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["getprop ro.build.version.release; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["getprop ro.build.version.sdk; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["getprop ro.product.name; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["getprop ro.product.model; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["getprop ro.product.cpu.abi; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["cat /proc/cpuinfo; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["getprop ro.product.manufacturer; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["dumpsys input_method; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["dumpsys input_method; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["am start -e method clear -n com.xamarin.xtcandroidsample.test/sh.calaba.instrumentationbackend.StatusReporterActivity; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, forward, tcp:33765, tcp:33765
ADB input: 
Getting: http://127.0.0.1:33765/ping
Http error: HTTPClient::KeepAliveDisconnected: 
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
ADB Command: -s, 015d168974380006, shell
ADB input: ["pm list packages; echo \"__CAL_END__$?\"; exit 0"]
Starting 'sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner' using: 'am instrument  -e "test_server_port" "33765" -e "target_package" "com.xamarin.xtcandroidsample" -e "class" "sh.calaba.instrumentatio
nbackend.InstrumentationBackend" com.xamarin.xtcandroidsample.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner'
ADB Command: -s, 015d168974380006, shell
ADB input: ["am instrument  -e \"test_server_port\" \"33765\" -e \"target_package\" \"com.xamarin.xtcandroidsample\" -e \"class\" \"sh.calaba.instrumentationbackend.InstrumentationBackend\" com.xamarin.xtcandroidsample
.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner; echo \"__CAL_END__$?\"; exit 0"]
Getting: http://127.0.0.1:33765/ping
Http error: HTTPClient::KeepAliveDisconnected: 
ADB Command: -s, 015d168974380006, shell
ADB input: ["ls /data/data/com.xamarin.xtcandroidsample.test/files/calabash_failure.out; echo \"__CAL_END__$?\"; exit 0"]
Getting: http://127.0.0.1:33765/ping
Http error: HTTPClient::KeepAliveDisconnected: 
ADB Command: -s, 015d168974380006, shell
ADB input: ["ls /data/data/com.xamarin.xtcandroidsample.test/files/calabash_failure.out; echo \"__CAL_END__$?\"; exit 0"]
Getting: http://127.0.0.1:33765/ping
Http error: HTTPClient::KeepAliveDisconnected: 
ADB Command: -s, 015d168974380006, shell
ADB input: ["ls /data/data/com.xamarin.xtcandroidsample.test/files/calabash_failure.out; echo \"__CAL_END__$?\"; exit 0"]
Getting: http://127.0.0.1:33765/ping
Http error: HTTPClient::KeepAliveDisconnected: 
@jmoody
Copy link
Member Author

jmoody commented Aug 4, 2015

I still can't run @TobiasRoikjer :(

@jmoody jmoody reopened this Aug 4, 2015
@jmoody
Copy link
Member Author

jmoody commented Aug 4, 2015

The problem is that the ./copy-repos.sh and ./changing_old_files.sh scripts don't work if you already have the test server installed.

@jmoody jmoody closed this as completed Aug 4, 2015
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

2 participants