calabash

How do i scroll a UITable view down until i see a cell with label “Value” in Calabash

本秂侑毒 提交于 2019-12-20 03:33:09
问题 How do i scroll a UITableView down until i see a cell with label "Value" in Calabash/Cucumber . I've been trying to do it using: Then I swipe down until I see "Value" and using: Then I scroll down until I see "Value" but none of them seem to work. Thanks! The message I get when I try with the above is obviously: You can implement step definitions for undefined steps with these snippets: Then(/^I swipe down until I see "(.*?)"$/) do |arg1| pending # express the regexp above with the code you

Can't update calabash server version

丶灬走出姿态 提交于 2019-12-20 03:20:01
问题 Having a problem updating the Calabash server version. The problem is that I can run basic tests that check for elements... However, once I try to "touch" buttons calabash returns RuntimeError: Could not parse response ''; the app has probably crashed The origin of the problem, I believe, is that my server version is old/incompatible. Not rocket science: WARN: The server version is not compatible with gem version. Please update your server. https://github.com/calabash/calabash-ios/wiki/B1

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

Can I work with 2 simulators (iOS and Android) in a single test case using Calabash?

試著忘記壹切 提交于 2019-12-13 06:26:17
问题 Is it possible to work with 2 simulators for executing single test case using calabash? If yes how do we launch 2 simulators and manage the session? 回答1: Yes, you can easily do that simply using calabash x-platform solution. Please use official calabash article for reference and detailed instruction - it contains all info you need. https://github.com/calabash/x-platform-example 回答2: I have a previously written an answer about doing this here - Running and communicating Calabash android and

Calabash Android script halts

给你一囗甜甜゛ 提交于 2019-12-13 04:36:41
问题 When I run the .apk my execution halts for long and script does not executes. I need to explicitly abort it. don't know why it does not executes. there is no error comes on console. do we have any solution to this issue? What I get the out put while using below commands: --> calabash-android resign my-app.apk [Done perfect] --> calabash-android run my-app.apk [Initiate for execution and it shows only line 325 KB/s (566732 bytes in 1.700s) and thereafter it does nothing and unfortunately every

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

undefined local variable or method `start_test_server_in_background' for main:Object

好久不见. 提交于 2019-12-12 14:36:08
问题 I try develop automatic test on Android device. I use Calabash and Ruby on Rails, version 2.1.2 I execute command: calabash-android console aplikacja.apk -p tablet After this I execute command in console: /home/maciek/.rvm/gems/ruby-2.1.2/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /home/maciek/.rvm/gems/ruby-2.1.2 in PATH, mode 040777 /home/maciek/.rvm/gems/ruby-2.1.2/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir

Is there any way with Calabash to Query ALL objects in a screen? (really all)

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:28:10
问题 With Calabash, the Query("all *") gets about twice as much data as the query("*") alone does, but I still have data I cannot read without complex scroll logic. Is there any good way to get a true 'All' data from a screen without scrolling? For example, I have a screen with 12 containers each with 5-10 distinct pieces of data. I need to be able to read my containers to validate the data on the page. 回答1: query returns all visible views. query("all *") disables the visibility heuristics and