export ANDROID_HOME=/Users/chthompson/Library/adt-bundle-mac-x86_64-20140702/sdk
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
to my .profile but when I try to run my tests from terminal with "bundle exec cucumber -p android" I get the following error:
first error I got was:
sh: /platform-tools/adb: No such file or directory
I also sometimes see error:
Scenario: Invalid Login # features/login.feature:4
W/asset ( 667): Asset path is neither a directory nor file (type=1).
ERROR: dump failed because assets could not be loaded
'package' not found in aapt output (RuntimeError)
Any ideas what could be causing this issue? Thanks in advance
Brad
Before do |scenario|scenario_tags = scenario.source_tag_namesif scenario_tags.include?('@reinstall') || !INSTALLATION_STATE[:installed]uninstall_appsinstall_app(ENV['TEST_APP_PATH'])install_app(ENV['APP_PATH'])INSTALLATION_STATE[:installed] = trueendstart_test_server_in_backgroundend
So do I actually have to set an environment variable on my machine to make this work? Can I not just point it to the .apk in my yml file?
Thanks,
Brad
def package_name(app)package_line = aapt_dump(app, "package").firstraise "'package' not found in aapt output" unless package_linem = package_line.match(/name='([^']+)'/)raise "Unexpected output from aapt: #{package_line}" unless mm[1]endThe red line is what is erroring out so I guess I don't pass an app name or something. In my yml file my android profile is as follows:android: PLATFORM=android -r features/support -r features/android -r features/step_definitions
Do I need an "APP" config here or something?
bundle exec calabash-android run appsUnderTest/Android-debug.apk -p android
Works perfect thanks for your help :)
--
You received this message because you are subscribed to a topic in the Google Groups "calabash-android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/calabash-android/0xHF9u98J-c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to calabash-andro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/usr/local/android-sdk/build-tools/19.1.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory/usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:18:in `package_name': 'package' not found in aapt output (RuntimeError) from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:42:in `block (2 levels) in calabash_build' from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:38:in `chdir' from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:38:in `block in calabash_build' from /usr/local/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir' from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-build.rb:37:in `calabash_build' from /usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/helpers.rb:106:in `build_test_server_if_needed' from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android-run.rb:16:in `calabash_run' from /usr/local/bundle/gems/calabash-android-0.7.2/bin/calabash-android:84:in `<top (required)>' from /usr/local/bundle/bin/calabash-android:22:in `load' from /usr/local/bundle/bin/calabash-android:22:in `<main>'