-
Notifications
You must be signed in to change notification settings - Fork 617
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
'start_test_server_in_background' has issue with new version 0.9.6 #893
Comments
I'm having the exact same issue. If someone could post a solution it would be appreciated! |
@ruttuk , I've worked out a temp solution that specify version with calabash-android 0.9.5 and rubyzip 1.2.1 in Gemfile, which can stop automatically upgrade into up-to-date version |
@aosng007 This worked! Thank you! |
I have updated my gemfile - frozen_string_literal: truesource "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } gem "rails"and also added this in gemfile as well gem 'calabash-android', '0.9.5' but still having issues - RuntimeError: Failed to start application. Starting took more than 60 seconds: HTTPClient::ReceiveTimeoutError - execution expired |
Can someone share the exacts steps on how to get it working. |
@harvinderkaur have you uninstalled the instrument_backend app in your device? |
@gunesmes how do i do that. Any steps to it. |
@harvinderkaur just remove it from app list e.g. on clear android: settings->Apps¬ification -> See all apps ->instrument_backend -> uninstall |
@AndreyMitsyk - Have tried and I still get the same error. |
Following command executed with different results by calabash-android version 0.9.5 and 0.9.6
calabash-android resign
calabash-android console
reinstall_apps
reinstall_test_server
start_test_server_in_background
with calabash-android 0.9.5 and rubyzip 1.2.1 -> apk lunched successfully after executed start_test_server_in_background.
with calabash-android 0.9.6 and rubyzip 1.2.2 (which needs to be updated as well if execute cmd with bundle exec), I get error message when execute calabash-android console
'No test server found for this combination of app and calabash version. Recreating test server.
**WARNING: skipped META-INF/CERT.RSA as unsafe
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/lib/calabash-android/helpers.rb:188:in
block (2 levels) in fingerprint_from_apk': No signature files found in META-INF. Cannot proceed. (Run timeError)** from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/lib/calabash-android/helpers.rb:170:in
chdir'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/lib/calabash-android/helpers.rb:170:in
block in fingerprint_from_apk' from C:/Ruby22-x64/lib/ruby/2.2.0/tmpdir.rb:88:in
mktmpdir'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/lib/calabash-android/helpers.rb:169:in
fingerprint_from_apk' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/bin/calabash-android-build.rb:2:in
calabash_build'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/lib/calabash-android/helpers.rb:107:in
build_test_server_if_needed' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/bin/calabash-android-console.rb:26:in
calabash_console'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.6/bin/calabash-android:107:in
<top (required)>' from C:/Ruby22-x64/bin/calabash-android:23:in
load'from C:/Ruby22-x64/bin/calabash-android:23:in `
After I manually downgrade rubyzip1.2.2 to 1.2.1, kept calabash-android in 0.9.6 and tried again, I Failed to start the app when executing start_test_server_in_background
'irb(main):001:0> start_test_server_in_background
RuntimeError: App did not start see adb logcat for details
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/operations.rb:743:in
block in start_test_server_in_background' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/retry.rb:10:in
call'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/retry.rb:10:in
block in retry' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/retry.rb:8:in
times'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/retry.rb:8:in
retry' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/operations.rb:742:in
start_test_server_in_background'from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/calabash-android-0.9.5/lib/calabash-android/operations.rb:152:in
start_test_server_in_background' from (irb):1 from C:/Ruby22-x64/bin/irb:11:in
And in the adb logcat, it mentioned ‘E adbd : failed to connect to socket 'tcp:7102': Connection refused’
The text was updated successfully, but these errors were encountered: