calabash-ios

How to pass in timeout for cucumber command as in start_test_server_in_background(:timeout => 30)

 ̄綄美尐妖づ 提交于 2020-01-05 20:01:03
问题 After digging around for a few days for the launch issue, I found out if I use start_test_server_in_background(:timeout => 300) the app will be fully launched successfully. So for calabash command, the question become, how to pass in the timeout for cucumber command line? I tried the following for cucumber version 0.9.167 and it's not working. $ CONNECT_TIMEOUT=300 DEBUG=1 CALABASH_FULL_CONSOLE_OUTPUT=1 cucumber 回答1: CONNECT_TIMEOUT <== controls how long to wait for the server to respond to

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-ios unexpected ECONNREFUSED error after touch

若如初见. 提交于 2019-12-25 04:22:39
问题 xcode install /Applications/Xcode.app/Contents/Developer calabash version ➜ calabash.framework git:(master) ✗ Resources/version 0.9.169 Calabash Server Version { "outcome" => "SUCCESS", "app_id" => "<removed>", "simulator_device" => "iPhone", "version" => "0.9.169", "app_name" => "iPhone-cal", "iphone_app_emulated_on_ipad" => false, "4inch" => true, "git" => { "remote_origin" => "git@github.com:calabash/calabash-ios-server.git", "branch" => "master", "revision" => "ca62f6e" }, "app_version" =

Calabash-ios link error: “_kSecAttrSynchronizableAny”, referenced from: -[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)

佐手、 提交于 2019-12-25 03:55:07
问题 I got a link error when trying to run a ..-cal target of calabash-ios project. The error is: `Ld /Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Products/Debug-iphonesimulator/delete-cal.app/delete-cal normal i386 cd /Users/balaiyan/dev/automation/apps/delete setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer

Launching photo screen a second time on iOS8 when Calabash iOS is linked

旧时模样 提交于 2019-12-23 04:05:15
问题 Problem with launching photo screen a second time on iOS8 when Calabash-ios is linked. When the user takes a photo in our app, she can save it, but can decide to go back and give it another go at a later time. When the app is built for iOS 8, we see the following behaviour: Taking the first photo works OK, retaking it without leaving the photo screen works fine, as well. But when a photo is saved and the photo screen is launched a second time, the photo preview area - the viewfinder - on the

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

Run cucumber file on multiple iOS devices

拜拜、爱过 提交于 2019-12-11 18:38:22
问题 How to run cucumber test on multiple devices at the same time on iOS platform(iPhone, iPad) ? 回答1: On iOS 7 and above, this is not possible because Calabash requires the app to be launched by instruments and there can be only one instruments process alive at one time. On iOS < 7, it is possible to test against multiple devices iff you manually launch the app before testing. There might be some work-arounds to automatically launch the app on the device (there are for the simulator), but they

how to swipe from page to page on an iOS pagination view using calabash

烈酒焚心 提交于 2019-12-11 09:37:07
问题 I could not get swipe left to work to go from view to view. so I am now trying to use the pagination dot at the bottom of the screen to change the view. Can someone please tell me how i can touch dot 'n' using calabash? I am going to go back to the code and try to see if I can set a accessibility label to the dot. But would love it if there was some way that someone out there in the wide world has already solved this. i used the following code: Then /^I swipe left on the cell with name "([^\"

How to override a Calabash predefined step?

人走茶凉 提交于 2019-12-05 14:29:13
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" but that didn't help, and I still get the Cucumber::Ambiguous error. I could make some arbitrary

Reset iOS app in calabash-ios

淺唱寂寞╮ 提交于 2019-11-29 11:01:44
How to change code in hooks to reset (iOS) app at specific scenario ? means only to those scenario where tags mention as @reset https://github.com/cucumber/cucumber/wiki/Hooks#tagged-hooks UPDATED for Calabash 0.17 and run-loop 2.0.2 This project contains an example of how to use Cucumber tags and Before hooks to re-install apps and clear application data on simulators and devices. https://github.com/calabash/ios-smoke-test-app/ In particular, see these two files: ideviceinstaller wrapper support/01_launch.rb I won't reproduce the entire 01_launch.rb example here, but here are the hooks: