calabash-android

No signatures files found in META-INF. Cannot proceed. (RuntimeError)

筅森魡賤 提交于 2020-06-01 07:36:46
问题 Resign D:\test>bundle exec calabash-android resign app-staging.apk D:\test> When i do run/build D:\test>bundle exec calabash-android run app-staging.apk No test server found for this combination of app and calabash version. Recreating test server. *** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows WARNING: skipped META-INF/CERT.RSA as unsafe C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.9.6/lib/calabash-android

How to override a Calabash predefined step?

落花浮王杯 提交于 2020-01-02 07:06:28
问题 I'm defining custom calabash steps (to use on both iOS and Android) and would like to selectively override various predefined steps. An example is: Given /^I press the "([^\"]*)" button$/ do |text| tap_when_element_exists("android.widget.Button {text CONTAINS[c] '#{text}'}") end Instead of using this implementation, I would like to provide my own. If I define and use a step with a matching regex I get an error: Ambiguous match of "I press the "big red" button" It also suggests using "--guess"

calabash-android run app-debug.apk throws exception

谁都会走 提交于 2019-12-25 09:28:37
问题 I am trying to run calabash-android to test my app, but I get the following error, the same app without any modification was working before I tried to do some modifications, but then I reverted all the modifications to the app : Exception occurred while dumping: java.lang.IllegalArgumentException: Unknown package: com.bitbar.testdroid at com.android.server.pm.Settings.isOrphaned(Settings.java:4134) at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:18091) at

Calabash Android Looping through a ListView to check

情到浓时终转凉″ 提交于 2019-12-24 14:27:52
问题 I've just started using Calabash and have come across a listview. For each listview row I want to check the presence of some text and image view. However I'm unsure how can i loop through the listview? Something like foreach list_item in listview check text label with id check image view with id end Any help would be appreciated. 回答1: I am not sure about using foreach in this case, but you could do it based on index number in the list. Something like get count of item, then in a loop move

calabash-android within travis

喜欢而已 提交于 2019-12-22 12:55:08
问题 I am trying to get calabash-android running within travis. calabash-android works fine within my machine without any problems. I have the following travis.yml: language: android jdk: oraclejdk8 before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ - $HOME/.gradle/daemon - $HOME/.gradle/native env: global: # wait up to 10 minutes for adb to connect to emulator - ADB_INSTALL_TIMEOUT=20 - SLAVE_AAPT_TIMEOUT=40

calabash-android - What does resign do?

久未见 提交于 2019-12-18 07:12:38
问题 I am new to using calabash-android to test Android applications. What does the calabash-android resign name-of-my.apk do? Thanks 回答1: The resign is used if you need to sign the app to match your keystore. Copied from GitHub docs https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android Instead of resigning you could also consider copying your debug keystore to your folder. The apk calabash android runs must be signed with the same keystore as the test-server. Use the command:

Running and communicating Calabash android and calabash iOS together

試著忘記壹切 提交于 2019-12-13 18:46:47
问题 Does anyone ever tried running calabash-ios and calabash android together. Suppose I have installed application A in android and application B on iOS and want to send some message from application A and validate that in application B. Please let me know if anyone have done this and or any idea how to do this it will be really helpful. Regards, Nishant Singh 回答1: I would say this has nothing to do with calabash as the 2 processes need a way to synchronise data hence you may want to try

CALABASH - Renaming screenshot filenames without the iterator

风流意气都作罢 提交于 2019-12-13 07:17:41
问题 In Calabash you can take a screenshot and rename it to whatever you want and save it to any directory like so: screenshot({:prefix => "some/directory", :name=>"some_name.png"}) However it will always save as some_name_0.png and the next one will be some_name_1.png . Does anyone know how to rename the filename completely without the iterator? 回答1: You can also just pass text from your steps on what to save the screendump as. I have done this to easily set the prefix and name and only take the

Error installing calabash-android on Windows

拥有回忆 提交于 2019-12-13 02:15:15
问题 I am trying to install calabash-android on my windows machine but I have serious problem. I follow xamarin guide to install ruby and calabash-android and I was succeed the other day. Then when I try to create my own scenario my computer cause me some problem about scenarios and all my scenarios become fails. I search and read some comments about gherkin mismatch and I wanted to reinstall everything. I uninstall my ruby and and delete all the related files from my pc.(calabash and gem files

Cannot load Google maps

和自甴很熟 提交于 2019-12-12 02:56:50
问题 One of the options in my app is launching the google maps. The scenarios: Regular install => adb install xx.apk -> maps are loading successfully. Install it with test server -> calabash-android gen xx.apk , etc. -> the maps are not loading. In the Android monitor I got the next message in the logcat: 05-14 18:43:18.239: E/Google Maps Android API(24417): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). Tried to