Closed corsc closed 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:in
package_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>'
Try to run calabash-android extract-manifest ..\app\bin\app.apk
and post the output here.
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.
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:in
block 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:in
encoding_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:in
parse'
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:in
each'
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:in
features'
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:in
run!'
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:in
execute'
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:in
load'
C:/sdks/Ruby193/bin/cucumber:23:in `
Try: calabash-android run ..\bb-app\target\bb-app-1.0.apk --verbose
.
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:
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:
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:in
package_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>'
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 methodattributes' 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:inchdir' 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:inmktmpdir' 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:inbuild_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 `' — Reply to this email directly or view it on GitHub (https://github.com/calabash/calabash-android/issues/206#issuecomment-15154548).
It dumps the contents of my manifest same as last time i posted
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).
nope, just the manifest, nothing else
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).
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>
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
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
Thanks for the update. :thumbsup:
I'll close the issue for now. If somebody else see this behavior we can re-open the issue.
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.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:in
package_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:in
install_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 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:in package_name' /Users/eTouch/.rvm/gems/ruby-1.9.3-p392/gems/calabash-android-0.4.2/lib/calabash-android/operations.rb:319:in
start_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:in
Before'
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.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:in
package_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:in
rescue 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:in
screenshot'
/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:in
After'
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
Sorry I cant help, I ran out of time and never did get it to work
Try to run: calabash-android extract-manifest
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).
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"
I m having same issue.I am not able to run any of my test after I upgraded calabash-android.
Please post the verbose output from the test run
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: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: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:in clear_app_data' C:/Users/abidwe/Documents/GitHub/opentable-android/Auto/Phone/features/android/support/app_life_cycle_hooks.rb:6: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_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:in
invoke'
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:in
each'
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:in
before'
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:in
each'
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:in
before'
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: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
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/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: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:in
clear_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'
Could you check if you include Calabash::Android::Operations somewhere in your project?
Try to search for include Calabash::Android::Operations
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.
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.
I used extend instead of include ,now my app is crashing at start up.
Please post the relevant info from logcat.
The logcat output didn't help much. Try with the verbose output from calabash
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:in
block 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:in
encoding_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:in
parse'
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:in
ea
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:in
fe
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: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 `
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.
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
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?
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.
Can you load localhost:34777/ping in your browser then your app starts?
when I try to load httP://localhost:34777 in browser I am getting webpage not available error.
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.
Try to post the verbose output again.
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 "
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
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: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 "" 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.
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.
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.
I think issue is with test_server, When I use IRB console and start_test_server_in_background ,I see same behavior.
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.
No ,Splash screen is the only intent the app can be started.
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.
I have an hybrid Android app based on Phonegap and when I execute calabash-android extract-manifest
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.
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:in
package_name': undefined method `attributes' for nil:NilClass (NoMethodError)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