calabash / calabash-android

Automated Functional testing for Android using cucumber
Other
1.68k stars 618 forks source link

Error during manifest parsing on Windows 7 (64bit) #206

Closed corsc closed 11 years ago

corsc commented 11 years ago

C:\XXX\YYY\ZZZ>calabash-android run ..\app\bin\app.apk Error: could not open C:\Program Files (x86)\Java\jre7\lib\i386\jvm.cfg' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:14:inpackage_name': undefined method `attributes' for nil:NilClass (NoMethodError)

    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-run.rb:24:in `calabash_run'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android:76:in `<top (required)>'
    from C:/sdks/Ruby193/bin/calabash-android:23:in `load'
    from C:/sdks/Ruby193/bin/calabash-android:23:in `<main>'

I am not familiar with Ruby but it seems to be an issue parsing the manifest. AFAIK I have the latest calabash, i'm using Ruby193 and the DevKit.

If it helps my java install is nowhere near the path in line 1 of the error and I'm not sure where that is coming from. My JAVA_HOME is set and pointing to a 1.7 JDK

corsc commented 11 years ago

Ok... if I remove the line: <?xml version="1.0" encoding="utf-8"?>

Then it seems to pass but then goes on to complain somewhere else:

No test server found for this combination of app and calabash version. Recreating test server. Error: could not open C:\Program Files (x86)\Java\jre7\lib\i386\jvm.cfg' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name': undefined method `attributes' for nil:NilClass (NoMethodError

    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:21:in `block (2 levels) in calabash_build'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:17:in `chdir'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:17:in `block in calabash_build'
    from C:/sdks/Ruby193/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:16:in `calabash_build'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:49:in `build_test_server_if_needed'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-run.rb:16:in `calabash_run'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android:76:in `<top (required)>'
    from C:/sdks/Ruby193/bin/calabash-android:23:in `load'
    from C:/sdks/Ruby193/bin/calabash-android:23:in `<main>'
jonasmaturana commented 11 years ago

Try to run calabash-android extract-manifest ..\app\bin\app.apk and post the output here.

corsc commented 11 years ago

calabash-android extract-manifest ..\rexona-app\bin\rexona-app.apk -v Error: could not open `C:\Program Files (x86)\Java\jre7\lib\i386\jvm.cfg'

However, If i call the java program directly it dumps the contents of the manifest.

corsc commented 11 years ago

C:\BitBucket\AA-bb-Move\bb-cucumber>calabash-android run --verbose ..\bb-app\target\bb-app-1.0.apk 2013-03-19 22:17:12 - C:/sdks/Ruby193/bin/ruby.exe -S cucumber --verbose ..\bb-app\target\bb-app-1.0.apk *\ WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows Code: Failed to load 'dex' programming language for file ../bb-app/target/classes.dex: cannot load such file -- cucumber/dex_support/dex_language

Features: invalid byte sequence in UTF-8 (ArgumentError) C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/feature_file.rb:83:in =~' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/feature_file.rb:83:inblock in encoding_for' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/feature_file.rb:82:in each_line' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/feature_file.rb:82:inencoding_for' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/feature_file.rb:56:in source' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/feature_file.rb:37:inparse' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/features_loader.rb:28:in block in load' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/features_loader.rb:26:ineach' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/features_loader.rb:26:in load' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime/features_loader.rb:14:infeatures' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime.rb:177:in features' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/runtime.rb:47:inrun!' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/cli/main.rb:43:in execute!' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/lib/cucumber/cli/main.rb:20:inexecute' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.3/bin/cucumber:14:in <top (required)>' C:/sdks/Ruby193/bin/cucumber:23:inload' C:/sdks/Ruby193/bin/cucumber:23:in `

'

jonasmaturana commented 11 years ago

Try: calabash-android run ..\bb-app\target\bb-app-1.0.apk --verbose.

corsc commented 11 years ago

Still seemingly an Manifest/XML parsing issue:

C:\BitBucket\aa-bb\bb-cucumber>calabash-android run ..\bb-app\target\bb-app-1.0.apk --verbose No test server found for this combination of app and calabash version. Recreating test server. 2013-03-20 09:54:34 - "C:\Progra~1\Java\JDK17~1.0_1/bin/keytool.exe" -v -list -alias androiddebugkey -keystore ""C:/Users/Gee/.android/debug.keystore"" -storepass android 2013-03-20 09:54:34 - Alias name: androiddebugkey Creation date: 23/03/2012 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=Android Debug, O=Android, C=US Issuer: CN=Android Debug, O=Android, C=US Serial number: 43ed3a56 Valid from: Fri Mar 23 01:48:15 SGT 2012 until: Sun Mar 16 01:48:15 SGT 2042 Certificate fingerprints: MD5: 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 SHA1: E1:B6:1C:53:02:C9:BE:A2:A1:DF:F5:B1:11:9A:DA:A1:A7:46:5F:EB SHA256: 80:78:0B:52:61:6C:EB:79:3C:1B:03:76:4F:0B:2E:9D:2B:46:9D:DF:DE:CF:0F:98:DD:BC:5C:5B:C2:67:93:F0 Signature algorithm name: SHA256withRSA Version: 3

Extensions:

1: ObjectId: 2.5.29.14 Criticality=false

SubjectKeyIdentifier [ KeyIdentifier [ 0000: 22 A3 1C D3 33 9F DF 5C 89 AF A7 98 D5 B9 54 7A "...3........Tz 0010: 4C 72 D0 11 Lr.. ] ]

2013-03-20 09:54:34 - MD5 fingerprint for keystore ("C:/Users/Gee/.android/debug.keystore"): 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 2013-03-20 09:54:34 - "C:\Progra~1\Java\JDK17~1.0_1/bin/keytool.exe" -v -printcert -file C:/Users/Gee/AppData/Local/Temp/d20130320-6136-a9jcn/META-INF/CERT.RSA 2013-03-20 09:54:34 - Owner: CN=Android Debug, O=Android, C=US Issuer: CN=Android Debug, O=Android, C=US Serial number: 43ed3a56 Valid from: Fri Mar 23 01:48:15 SGT 2012 until: Sun Mar 16 01:48:15 SGT 2042 Certificate fingerprints: MD5: 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 SHA1: E1:B6:1C:53:02:C9:BE:A2:A1:DF:F5:B1:11:9A:DA:A1:A7:46:5F:EB SHA256: 80:78:0B:52:61:6C:EB:79:3C:1B:03:76:4F:0B:2E:9D:2B:46:9D:DF:DE:CF:0F:98:DD:BC:5C:5B:C2:67:93:F0 Signature algorithm name: SHA256withRSA Version: 3

Extensions:

1: ObjectId: 2.5.29.14 Criticality=false

SubjectKeyIdentifier [ KeyIdentifier [ 0000: 22 A3 1C D3 33 9F DF 5C 89 AF A7 98 D5 B9 54 7A "...3........Tz 0010: 4C 72 D0 11 Lr.. ] ]

2013-03-20 09:54:34 - MD5 fingerprint for signing cert (C:/BitBucket/aa-bb/bb-app/target/bb-app-1.0.apk): 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 Error: could not open C:\Program Files (x86)\Java\jre7\lib\i386\jvm.cfg' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name': undefined method `attributes' for nil:NilClass (NoMethodError)

    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:21:in `block (2 levels) in calabash_build'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:17:in `chdir'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:17:in `block in calabash_build'
    from C:/sdks/Ruby193/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:16:in `calabash_build'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:49:in `build_test_server_if_needed'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-run.rb:16:in `calabash_run'
    from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android:76:in `<top (required)>'
    from C:/sdks/Ruby193/bin/calabash-android:23:in `load'
    from C:/sdks/Ruby193/bin/calabash-android:23:in `<main>'
jonasmaturana commented 11 years ago

Try to run this and post output: java -jar C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/lib/manifest_extractor.jar C:/BitBucket/aa-bb/bb-app/target/bb-app-1.0.apk

On Wednesday, March 20, 2013 at 02:55 , Corey Scott wrote:

Still seemingly an Manifest/XML parsing issue: C:\BitBucket\aa-bb\bb-cucumber>calabash-android run ..\bb-app\target\bb-app-1.0.apk --verbose No test server found for this combination of app and calabash version. Recreating test server. 2013-03-20 09:54:34 - "C:\Progra~1\Java\JDK17~1.0_1/bin/keytool.exe" -v -list -alias androiddebugkey -keystore ""C:/Users/Gee/.android/debug.keystore"" -storepass android 2013-03-20 09:54:34 - Alias name: androiddebugkey Creation date: 23/03/2012 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=Android Debug, O=Android, C=US Issuer: CN=Android Debug, O=Android, C=US Serial number: 43ed3a56 Valid from: Fri Mar 23 01:48:15 SGT 2012 until: Sun Mar 16 01:48:15 SGT 2042 Certificate fingerprints: MD5: 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 SHA1: E1:B6:1C:53:02:C9:BE:A2:A1:DF:F5:B1:11:9A:DA:A1:A7:46:5F:EB SHA256: 80:78:0B:52:61:6C:EB:79:3C:1B:03:76:4F:0B:2E:9D:2B:46:9D:DF:DE:CF:0F:98:DD:BC:5C:5B:C2:67:93:F0 Signature algorithm name: SHA256withRSA Version: 3
Extensions:

1 (https://github.com/calabash/calabash-android/issues/1): ObjectId: 2.5.29.14 Criticality=false

SubjectKeyIdentifier [ KeyIdentifier [ 0000: 22 A3 1C D3 33 9F DF 5C 89 AF A7 98 D5 B9 54 7A "...3........Tz 0010: 4C 72 D0 11 Lr.. ] ]
2013-03-20 09:54:34 - MD5 fingerprint for keystore ("C:/Users/Gee/.android/debug.keystore"): 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 2013-03-20 09:54:34 - "C:\Progra~1\Java\JDK17~1.0_1/bin/keytool.exe" -v -printcert -file C:/Users/Gee/AppData/Local/Temp/d20130320-6136-a9jcn/META-INF/CERT.RSA 2013-03-20 09:54:34 - Owner: CN=Android Debug, O=Android, C=US Issuer: CN=Android Debug, O=Android, C=US Serial number: 43ed3a56 Valid from: Fri Mar 23 01:48:15 SGT 2012 until: Sun Mar 16 01:48:15 SGT 2042 Certificate fingerprints: MD5: 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 SHA1: E1:B6:1C:53:02:C9:BE:A2:A1:DF:F5:B1:11:9A:DA:A1:A7:46:5F:EB SHA256: 80:78:0B:52:61:6C:EB:79:3C:1B:03:76:4F:0B:2E:9D:2B:46:9D:DF:DE:CF:0F:98:DD:BC:5C:5B:C2:67:93:F0 Signature algorithm name: SHA256withRSA Version: 3
Extensions:

1 (https://github.com/calabash/calabash-android/issues/1): ObjectId: 2.5.29.14 Criticality=false

SubjectKeyIdentifier [ KeyIdentifier [ 0000: 22 A3 1C D3 33 9F DF 5C 89 AF A7 98 D5 B9 54 7A "...3........Tz 0010: 4C 72 D0 11 Lr.. ] ]
2013-03-20 09:54:34 - MD5 fingerprint for signing cert (C:/BitBucket/aa-bb/bb-app/target/bb-app-1.0.apk): 9E:0F:4C:D1:B5:B8:30:50:68:3B:37:C4:FC:5B:69:37 Error: could not open C:\Program Files (x86)\Java\jre7\lib\i386\jvm.cfg' C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name': undefined method attributes' for nil:NilClass (NoMethodError) from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:21:inblock (2 levels) in calabash_build' from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:17:in chdir' from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:17:inblock in calabash_build' from C:/sdks/Ruby193/lib/ruby/1.9.1/tmpdir.rb:83:in mktmpdir' from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-build.rb:16:incalabash_build' from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:49:in build_test_server_if_needed' from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android-run.rb:16:incalabash_run' from C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/bin/calabash-android:76:in <top (required)>' from C:/sdks/Ruby193/bin/calabash-android:23:inload' from C:/sdks/Ruby193/bin/calabash-android:23:in `

'

— Reply to this email directly or view it on GitHub (https://github.com/calabash/calabash-android/issues/206#issuecomment-15154548).

corsc commented 11 years ago

It dumps the contents of my manifest same as last time i posted

jonasmaturana commented 11 years ago

Does it only show the manifest or also some other info like:

Error: could not open C:\Program Files (x86)\Java\jre7\lib\i386\jvm.cfg'  

On Wednesday, March 20, 2013 at 17:08 , Corey Scott wrote:

It dumps the contents of my manifest same as last time i posted

— Reply to this email directly or view it on GitHub (https://github.com/calabash/calabash-android/issues/206#issuecomment-15185309).

corsc commented 11 years ago

nope, just the manifest, nothing else

jonasmaturana commented 11 years ago

Strange. Could you post the manifest here or contact me on Skype to solve this?

On Thursday, March 21, 2013 at 10:58 , Corey Scott wrote:

nope, just the manifest, nothing else

— Reply to this email directly or view it on GitHub (https://github.com/calabash/calabash-android/issues/206#issuecomment-15227852).

corsc commented 11 years ago

Sure. I made another test project using the eclipse wizard and tried again, same issue, I have pushed the android and calabash code to https://github.com/corsc/calabash-test.git

Output was: C:\GitHub\calabash-test\test-calabash>java -jar c:\sdks\Ruby193\lib\ruby\gems\1.9.1\gems\calabash-android-0.4.2\lib\calabash-android\lib\manifest_extractor.jar C:\GitHub\calabash-t est\test-cuke\bin\test-app.apk

<?xml version="1.0" encoding="utf-8"?>
<manifest
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:versionCode="1"
        android:versionName="1.0"
        package="com.example.test_cuke"
        >
        <uses-sdk
                android:minSdkVersion="8"
                android:targetSdkVersion="17"
                >
        </uses-sdk>
        <application
                android:theme="@7F060001"
                android:label="@7F050000"
                android:icon="@7F020000"
                android:debuggable="true"
                android:allowBackup="true"
                >
                <activity
                        android:label="@7F050000"
                        android:name="com.example.test_cuke.MainActivity"
                        >
                        <intent-filter
                                >
                                <action
                                        android:name="android.intent.action.MAIN"
                                        >
                                </action>
                                <category
                                        android:name="android.intent.category.LAUNCHER"
                                        >
                                </category>
                        </intent-filter>
                </activity>
        </application>
</manifest>
corsc commented 11 years ago

I noticed that for some reason java -version was returning jdk1.6 despite JAVA_HOME pointing to jdk1.7. Therefore when I hardcoded the correct path into helpers.rb (line 29) the following works:

calabash-android extract-manifest ..\test-cuke\bin\test-app.apk

The run and resign targets dont work yet but I will look into more and get back to you

P.S. I uninstalled by jdk1.6 and jre1.7 and then only will the command work without modification. Im really not sure if this is a windows "feature" or a ruby one

corsc commented 11 years ago

After removing all but jdk1.7 it runs but now its throwing errors.

Console log

C:\GitHub\calabash-test\test-calabash>calabash-android run ..\test-cuke\bin\test-app.apk
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows
Feature: Splash Screen Test

  Scenario: As a user I can see some text on the splash screen # features\my_first.feature:3
326 KB/s (528581 bytes in 1.581s)
60 KB/s (186764 bytes in 3.011s)
  App did not start (RuntimeError)
  C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:341:in `block in start_test_server_in_background'
  C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/retriable-1.3.3/lib/retriable/retriable.rb:31:in `perform'
  C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/retriable-1.3.3/lib/retriable/retriable.rb:50:in `retriable'
  C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:340:in `start_test_server_in_background'
  C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:75:in `start_test_server_in_background'
  C:/GitHub/calabash-test/test-calabash/features/support/app_life_cycle_hooks.rb:5:in `Before'
    Then I should see text containing "Hello World"            # calabash-android-0.4.2/lib/calabash-android/steps/assert_steps.rb:13
      App no longer running (RuntimeError)
      C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:239:in `rescue in http'
      C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:229:in `http'
      C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:266:in `screenshot'
      C:/sdks/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:83:in `screenshot_embed'
      C:/GitHub/calabash-test/test-calabash/features/support/app_life_cycle_hooks.rb:10:in `After'

Failing Scenarios:
cucumber features\my_first.feature:3 # Scenario: As a user I can see some text on the splash screen

1 scenario (1 failed)
1 step (1 skipped)
0m35.971s

android log:

03-23 07:36:00.351: E/Trace(1169): error opening trace file: No such file or directory (2)
03-23 07:36:00.511: I/System.out(1169): Calabash did not load Mono. This is only a problem if you are trying to test a Mono application
03-23 07:36:00.551: D/AndroidRuntime(1169): Shutting down VM
03-23 07:36:00.551: W/dalvikvm(1169): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
03-23 07:36:00.571: E/AndroidRuntime(1169): FATAL EXCEPTION: main
03-23 07:36:00.571: E/AndroidRuntime(1169): java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo{sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner}: java.lang.RuntimeException: java.net.SocketException: socket failed: EACCES (Permission denied)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4385)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.app.ActivityThread.access$1300(ActivityThread.java:141)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.os.Looper.loop(Looper.java:137)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.app.ActivityThread.main(ActivityThread.java:5041)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at java.lang.reflect.Method.invokeNative(Native Method)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at java.lang.reflect.Method.invoke(Method.java:511)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at dalvik.system.NativeStart.main(Native Method)
03-23 07:36:00.571: E/AndroidRuntime(1169): Caused by: java.lang.RuntimeException: java.net.SocketException: socket failed: EACCES (Permission denied)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at sh.calaba.instrumentationbackend.actions.NanoHTTPD.<init>(NanoHTTPD.java:243)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at sh.calaba.instrumentationbackend.actions.HttpServer.<init>(HttpServer.java:67)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at sh.calaba.instrumentationbackend.actions.HttpServer.instantiate(HttpServer.java:49)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner.onCreate(CalabashInstrumentationTestRunner.java:24)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4382)
03-23 07:36:00.571: E/AndroidRuntime(1169):     ... 10 more
03-23 07:36:00.571: E/AndroidRuntime(1169): Caused by: java.net.SocketException: socket failed: EACCES (Permission denied)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at libcore.io.IoBridge.socket(IoBridge.java:583)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at java.net.PlainSocketImpl.create(PlainSocketImpl.java:201)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at java.net.PlainServerSocketImpl.create(PlainServerSocketImpl.java:38)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at java.net.ServerSocket.<init>(ServerSocket.java:98)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at java.net.ServerSocket.<init>(ServerSocket.java:69)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at sh.calaba.instrumentationbackend.actions.NanoHTTPD.<init>(NanoHTTPD.java:226)
03-23 07:36:00.571: E/AndroidRuntime(1169):     ... 14 more
03-23 07:36:00.571: E/AndroidRuntime(1169): Caused by: libcore.io.ErrnoException: socket failed: EACCES (Permission denied)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at libcore.io.Posix.socket(Native Method)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:181)
03-23 07:36:00.571: E/AndroidRuntime(1169):     at libcore.io.IoBridge.socket(IoBridge.java:568)
03-23 07:36:00.571: E/AndroidRuntime(1169):     ... 19 more
jonasmaturana commented 11 years ago

Thanks for the update. :thumbsup:

I'll close the issue for now. If somebody else see this behavior we can re-open the issue.

ranjnaggoyal commented 11 years ago

I am getting similar error as below: i am using java 1.6.0_37 and ruby 1.9.3.

can't find '' to install Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at ManifestExtractor.main(ManifestExtractor.java:19) undefined method attributes' for nil:NilClass (NoMethodError) /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:180:in install_app' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:58:ininstall_app' /Users/eTouch/Android/SampleAndroid/SkeletonApp/features/support/app_installation_hooks.rb:23:in Before' Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:135) at java.util.jar.JarFile.<init>(JarFile.java:72) at ManifestExtractor.main(ManifestExtractor.java:19) undefined methodattributes' for nil:NilClass (NoMethodError) /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:in package_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:319:instart_test_server_in_background' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:75:in start_test_server_in_background' /Users/eTouch/Android/SampleAndroid/SkeletonApp/features/support/app_life_cycle_hooks.rb:5:inBefore' When I run the application # features/step_definitions/calabash_steps.rb:3 Then I see the application # features/step_definitions/calabash_steps.rb:8 Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at ManifestExtractor.main(ManifestExtractor.java:19) undefined method attributes' for nil:NilClass (NoMethodError) /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:195:in app_running?' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:236:inrescue in http' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:229:in http' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:266:inscreenshot' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:83:in screenshot_embed' /Users/eTouch/Android/SampleAndroid/SkeletonApp/features/support/app_life_cycle_hooks.rb:10:inAfter'

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 (2 skipped) 1m40.286s

corsc commented 11 years ago

Sorry I cant help, I ran out of time and never did get it to work

jonasmaturana commented 11 years ago

Try to run: calabash-android extract-manifest and post the output here or send it in a private mail to me if you don't want to put it out in public.

On Tuesday, March 26, 2013 at 19:57 , ranjnaggoyal wrote:

I am getting similar error as below: i am using java 1.6.0_37 and ruby 1.9.3.
can't find '' to install Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at ManifestExtractor.main(ManifestExtractor.java:19) undefined method attributes' for nil:NilClass (NoMethodError) /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:180:in install_app' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:58:ininstall_app' /Users/eTouch/Android/SampleAndroid/SkeletonApp/features/support/app_installation_hooks.rb:23:in Before' Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at ManifestExtractor.main(ManifestExtractor.java:19) undefined methodattributes' for nil:NilClass (NoMethodError) /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:in package_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:319:instart_test_server_in_background' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:75:in start_test_server_in_background' /Users/eTouch/Android/SampleAndroid/SkeletonApp/features/support/app_life_cycle_hooks.rb:5:inBefore' When I run the application # features/step_definitions/calabash_steps.rb:3 Then I see the application # features/step_definitions/calabash_steps.rb:8 Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at ManifestExtractor.main(ManifestExtractor.java:19) undefined method attributes' for nil:NilClass (NoMethodError) /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/helpers.rb:13:inpackage_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:195:in app_running?' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:236:inrescue in http' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:229:in http' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:266:inscreenshot' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:83:in screenshot_embed' /Users/eTouch/Android/SampleAndroid/SkeletonApp/features/support/app_life_cycle_hooks.rb:10:inAfter'
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 (2 skipped) 1m40.286s

— Reply to this email directly or view it on GitHub (https://github.com/calabash/calabash-android/issues/206#issuecomment-15480287).

ranjnaggoyal commented 11 years ago

eTouch:SkeletonApp eTouch$ calabash-android extract-manifest bin/SkeletonApp.apk <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.skeletonapp"

<uses-sdk android:targetSdkVersion="11"

<uses-permission android:name="android.permission.INTERNET"

<application android:label="@7F050000" android:debuggable="true"

<activity android:name="SkeletonActivity"

<intent-filter

<action android:name="android.intent.action.MAIN"

<category android:name="android.intent.category.LAUNCHER"

abidwe commented 11 years ago

I m having same issue.I am not able to run any of my test after I upgraded calabash-android.

jonasmaturana commented 11 years ago

Please post the verbose output from the test run

abidwe commented 11 years ago

I am using calabash android 0.4.4 ,I have set up the project as mentioned on git hub cross platform example. When I try to run the test I get following error

C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/touch_helpers.rb:4:in tap' C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:inpull' C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in parse' C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:231:inbuild' C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in initialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:innew' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:in package_name' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:343:inclear_app_data' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:75:in clear_app_data' C:/Users/abidwe/Documents/GitHub/opentable-android/Auto/Phone/features/android/support/app_life_cycle_hooks.rb:6:inblock in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:48:in instance_exec' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:48:inblock in cucumber_instance_exec' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:69:in cucumber_run_with_backtrace_filtering' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:36:incucumber_instance_exec' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/rb_support/rb_hook.rb:14:in invoke' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:114:ininvoke' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:102:in block in execute_before' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:101:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:101:in execute_before' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:15:inbefore' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:112:in block in fire_hook' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:111:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:111:in fire_hook' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:105:inbefore' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:96:in before_and_after' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:80:inblock in with_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:120:in call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:120:inblock (3 levels) in around' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:9:in block in around' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:91:incall' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:91:in execute_around' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:8:inaround' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:119:in block (2 levels) in around' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:117:incall' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:117:in around' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:92:inaround' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:79:in with_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:117:inaccept_plain' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:107:in accept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:131:inblock in visit_table_row' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in broadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:130:invisit_table_row' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:27:in block in accept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:23:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:23:in each_with_index' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:23:inaccept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:83:in block in visit_outline_table' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:inbroadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:82:in visit_outline_table' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/examples.rb:22:inaccept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:73:in block in visit_examples' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:inbroadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:72:in visit_examples' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:14:inblock in accept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:13:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:13:inaccept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:67:in block in visit_examples_array' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:inbroadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:66:in visit_examples_array' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:68:inaccept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:51:in block in visit_feature_element' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:inbroadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:50:in visit_feature_element' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/feature.rb:43:inblock in accept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/feature.rb:42:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/feature.rb:42:inaccept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:20:in block in visit_feature' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:inbroadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:19:in visit_feature' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:29:inblock in accept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:17:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:17:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:28:in accept' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:14:inblock in visit_features' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in broadcast' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:13:invisit_features' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:47:in run!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:43:inexecute!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:20:in execute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/bin/cucumber:14:in<top (required)>' C:/Ruby193/bin/cucumber:23:in load' C:/Ruby193/bin/cucumber:23:in

' ... wrong number of arguments (0 for 1) Line: 1 Position: 39 Last 80 unconsumed characters: (REXML::ParseException) C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in rescue in parse' C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:inparse' C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in build' C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:43:ininitialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:in new' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:inpackage_name' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:343:in clear_app_data' C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:75:inclear_app_data' C:/Users/abidwe/Documents/GitHub/opentable-android/Auto/Phone/features/android/support/app_life_cycle_hooks.rb:6:in `Before'

  #<ArgumentError: wrong number of arguments (0 for 1)>
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/touch_helpers.rb:4:in `tap'
  C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:in `pull'
  C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in `parse'
  C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
  C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:in `new'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/helpers.rb:12:in `package_name'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:218:in `app_running?'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:259:in `rescue in http'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:252:in `http'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:234:in `block in perform_action'
  C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:232:in `perform_action'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.4.4/lib/calabash-android/operations.rb:50:in `performAction'
  C:/Users/abidwe/Documents/GitHub/opentable-android/Auto/Phone/features/step_definitions/user_steps.rb:31:in `block in <top (required)>'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:48:in `instance_exec'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:48:in `block in cucumber_instance_exec'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:69:in `cucumber_run_with_backtrace_filtering'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/core_ext/instance_exec.rb:36:in `cucumber_instance_exec'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/rb_support/rb_step_definition.rb:97:in `invoke'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/step_match.rb:25:in `invoke'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/step_invocation.rb:60:in `invoke'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:119:in `block (2 levels) in accept_plain'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/step_collection.rb:37:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/step_collection.rb:37:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:118:in `block in accept_plain'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:81:in `block (2 levels) in with_hooks'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:97:in `before_and_after'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:80:in `block in with_hooks'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:120:in `call'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:120:in `block (3 levels) in around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:9:in `block in around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:91:in `call'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:91:in `execute_around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/language_support/language_methods.rb:8:in `around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:119:in `block (2 levels) in around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:117:in `call'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/support_code.rb:117:in `around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:92:in `around'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:79:in `with_hooks'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:117:in `accept_plain'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:107:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:131:in `block in visit_table_row'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:130:in `visit_table_row'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:27:in `block in accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:23:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:23:in `each_with_index'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/outline_table.rb:23:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:83:in `block in visit_outline_table'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:82:in `visit_outline_table'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/examples.rb:22:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:73:in `block in visit_examples'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:72:in `visit_examples'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:14:in `block in accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:13:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:13:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:67:in `block in visit_examples_array'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:66:in `visit_examples_array'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/scenario_outline.rb:68:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:51:in `block in visit_feature_element'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:50:in `visit_feature_element'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/feature.rb:43:in `block in accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/feature.rb:42:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/feature.rb:42:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:20:in `block in visit_feature'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:19:in `visit_feature'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:29:in `block in accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:17:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:17:in `each'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/features.rb:28:in `accept'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:14:in `block in visit_features'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/ast/tree_walker.rb:13:in `visit_features'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:47:in `run!'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:43:in `execute!'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:20:in `execute'
  C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/bin/cucumber:14:in `<top (required)>'
  C:/Ruby193/bin/cucumber:23:in `load'
  C:/Ruby193/bin/cucumber:23:in `<main>'
  ...
  wrong number of arguments (0 for 1)
  Line: 1
  Position: 39
  Last 80 unconsumed characters:
   (REXML::ParseException)
  C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse'
  C:/Ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:in `parse'
  C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in `build'
  C:/Ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
  C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
  ./features/step_definitions/user_steps.rb:31:in `/^I am on Home screen$/'
  features\log_in_log_out.feature:22:in `Given I am on Home screen'
jonasmaturana commented 11 years ago

Could you check if you include Calabash::Android::Operations somewhere in your project?

Try to search for include Calabash::Android::Operations

abidwe commented 11 years ago

Yes I have added include Calabash::Android::Operations in some ruby files where I have created my user functions. Do I need to remove it.

jonasmaturana commented 11 years ago

You have to use extend instead include.

extend Calabash::Android::Operations

On May 16, 2013, at 10:14 PM, abidwe notifications@github.com wrote:

Yes I have added include Calabash::Android::Operations in some ruby files where I have created my user functions. Do I need to remove it.

— Reply to this email directly or view it on GitHub.

abidwe commented 11 years ago

I used extend instead of include ,now my app is crashing at start up.

jonasmaturana commented 11 years ago

Please post the relevant info from logcat.

jonasmaturana commented 11 years ago

The logcat output didn't help much. Try with the verbose output from calabash

abidwe commented 11 years ago

Here is the verbose output from Calababash :

C:\Users\abidwe\Documents\GitHub\opentable-android\Auto\Phone>calabash-android run --verbose C:\User s\abidwe\Documents\GitHub\opentable-android\Phone\bin\phone-debug.apk 2013-05-17 09:15:53 - C:/Ruby193/bin/ruby.exe -S cucumber --verbose C:\Users\abidwe\Documents\GitHub \opentable-android\Phone\bin\phone-debug.apk You are using an old or stdlib version of json gem Please upgrade to the recent version by adding this to your Gemfile:

gem 'json', '~> 1.7.7'

*\ WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows Code: Failed to load 'xml' programming language for file C:/Users/abidwe/Documents/GitHub/opentable-androi d/Phone/bin/AndroidManifest.xml: cannot load such file -- cucumber/xml_support/xml_language

Failed to load 'd' programming language for file C:/Users/abidwe/Documents/GitHub/opentable-android/ Phone/bin/AndroidManifest.xml.d: cannot load such file -- cucumber/d_support/d_language

Features: invalid byte sequence in UTF-8 (ArgumentError) C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/feature_file.rb:83:in =~' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/feature_file.rb:83:inblock in enco ding_for' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/feature_file.rb:82:in each_line' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/feature_file.rb:82:inencoding_for'

C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/feature_file.rb:56:in source' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/feature_file.rb:37:inparse' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/features_loader.rb:28:in bl ock in load' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/features_loader.rb:26:inea ch' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/features_loader.rb:26:in lo ad' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime/features_loader.rb:14:infe atures' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:177:in features' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/runtime.rb:47:inrun!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:43:in execute!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/lib/cucumber/cli/main.rb:20:inexecute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.2.5/bin/cucumber:14:in <top (required)>' C:/Ruby193/bin/cucumber:23:inload' C:/Ruby193/bin/cucumber:23:in `

'

jonasmaturana commented 11 years ago

It is probably a good idea to create a folder for your calabash project. That way calabash will not try to load all files from your Android project.

+ Phone
|_bin
|_calabash

Other than that it looks like you have a invalid UTF-8 character in one of your feature files. Try to run them one at a time to isolate the problem.

abidwe commented 11 years ago

I ran features separately ,still my app is crashing at start up.Even I tried changing the directory structure as you mentioned but I am still having the same issue.My app is crashing at start up

jonasmaturana commented 11 years ago

Is your app started at all? I couldn't see that in the last log you pasted.

Could you try to paste in the verbose output from a execution where you app started and then crashed?

abidwe commented 11 years ago

My app starting and then it stays at the home screen and gives message it can not talk to server. Is this because of connection issue, i think somehow when app starts up it getting disconnected with test server.

Thank you Aparna

On May 18, 2013, at 12:09 PM, "Jonas Maturana Larsen" notifications@github.com<mailto:notifications@github.com> wrote:

Is your app started at all? I couldn't see that in the last log you pasted.

Could you try to paste in the verbose output from a execution where you app started and then crashed?

— Reply to this email directly or view it on GitHubhttps://github.com/calabash/calabash-android/issues/206#issuecomment-18106345.

jonasmaturana commented 11 years ago

Can you load localhost:34777/ping in your browser then your app starts?

abidwe commented 11 years ago

when I try to load httP://localhost:34777 in browser I am getting webpage not available error.

abidwe commented 11 years ago

Hi Jonas,

I am getting problem with network or stream , is there any proxy I need to set for calabash.It seems like network issue. I am able to start up the app manually(not with calabash) and it works fine.

jonasmaturana commented 11 years ago

Try to post the verbose output again.

abidwe commented 11 years ago

putting verbose output

Using the android profile... Feature: User can Log in and log out

@log_in_log_out Scenario Outline: Registered user can log in and log out # features\Log_in_log_out.feature:4 Given I am on Home screen # features/step_definitions/user_steps.rb:30 When I am logged in to OT app with "" and "" as "" # features/step_definitions/login_steps.rb:1 Then I log out # features/step_definitions/login_steps.rb:6

Scenarios:
  | email                      | password | login_type |
  | auto_android@opentable.com | password | opentable  |
  Step unsuccessful: Time out while waiting for text:Select a Location (RuntimeError)
  C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
  ./features/android/lib/navigation.rb:34:in `go_to_my_profile'
  ./features/step_definitions/login_steps.rb:2:in `/^I am logged in to OT app with "([^"]*)" and "([^"]*)" as "([^"]*)"$/'
  features\Log_in_log_out.feature:6:in `When I am logged in to OT app with "<email>" and "<password>" as "<login_type>"'

Failing Scenarios: cucumber -p android features\Log_in_log_out.feature:4 # Scenario: Registered user can log in and log out

1 scenario (1 failed) 3 steps (1 failed, 1 skipped, 1 passed) 1m33.519s

jonasmaturana commented 11 years ago

It looks like a test failure. You're waiting for "Select a Location" to appear and that didn't happen.

Does that sound right?

On May 21, 2013, at 8:05 PM, abidwe notifications@github.com wrote:

putting verbose output

Using the android profile... Feature: User can Log in and log out

@log_in_log_out Scenario Outline: Registered user can log in and log out # features\Log_in_log_out.feature:4 Given I am on Home screen # features/step_definitions/user_steps.rb:30 When I am logged in to OT app with "" and "" as "" # features/step_definitions/login_steps.rb:1 Then I log out # features/step_definitions/login_steps.rb:6

Scenarios: | email | password | login_type | | auto_android@opentable.com | password | opentable | Step unsuccessful: Time out while waiting for text:Select a Location (RuntimeError) C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in timeout' ./features/android/lib/navigation.rb:34:ingo_to_my_profile' ./features/step_definitions/login_steps.rb:2:in /^I am logged in to OT app with "([^"]*)" and "([^"]*)" as "([^"]*)"$/' features\Log_in_log_out.feature:6:inWhen I am logged in to OT app with "" and "" as ""' Failing Scenarios: cucumber -p android features\Log_in_log_out.feature:4 # Scenario: Registered user can log in and log out

1 scenario (1 failed) 3 steps (1 failed, 1 skipped, 1 passed) 1m33.519s

— Reply to this email directly or view it on GitHub.

abidwe commented 11 years ago

Yes ,its right because when App loads its on Splash screen and then loads the Select Location screen. Right now app is starting up stays on splash screen and I get error Not able to communicate with OpenTable server. But when I launch app manually it works fine.

jonasmaturana commented 11 years ago

Do you have some developers around that you could ask about that? It sounds like something specific to your app.

I would have to look at the app to understand what's going on and that it kind of out of scope for this forum.

On May 21, 2013, at 8:11 PM, abidwe notifications@github.com wrote:

Yes ,its right because when App loads its on Splash screen and then loads the Select Location screen. Right now app is starting up stays on splash screen and I get error Not able to communicate with OpenTable server. But when I launch app manually it works fine.

— Reply to this email directly or view it on GitHub.

abidwe commented 11 years ago

I think issue is with test_server, When I use IRB console and start_test_server_in_background ,I see same behavior.

jonasmaturana commented 11 years ago

Can your app be started with different intents?

On May 21, 2013, at 8:57 PM, abidwe notifications@github.com wrote:

I think issue is with test_server, When I use IRB console and start_test_server_in_background ,I see same behavior.

— Reply to this email directly or view it on GitHub.

abidwe commented 11 years ago

No ,Splash screen is the only intent the app can be started.

jonasmaturana commented 11 years ago

I don't really have any good ideas then.

What does your developers think about the network problem?

On May 21, 2013, at 9:51 PM, abidwe notifications@github.com wrote:

No ,Splash screen is the only intent the app can be started.

— Reply to this email directly or view it on GitHub.

Shartul commented 10 years ago

I have an hybrid Android app based on Phonegap and when I execute calabash-android extract-manifest it displays 'No such file to run'

Workaround: Can I install the .apk manually and then execute the start_test_server_in_background to start the app or the test server will not be installed at first hand since the run didn't yield.