calabash

Running multiple devices with calabash ios

混江龙づ霸主 提交于 2019-12-12 00:38:39
问题 Have been searching for a workaround to run multiple devices with calabash ios. AFAIK, calabash ios uses port 37265 and instrument to load and interact with the app. Instrument can also only run once at a time. I have read somewhere that we might need to use virtual machine, is that true? Is there any other way to achieve this? Thanks a bunch. 回答1: From documentation I have only read the instructions on how to do it via WIFI. Would that be an option for you? If so please refer to https:/

Calabash android, as clicking a ListView?

有些话、适合烂在心里 提交于 2019-12-11 19:52:40
问题 I've been looking for the answer on the Internet, but could not find it. help me please. How to make pressing the list item in Calabash-Android? 回答1: Try this out Add a definition to ruby step file. Then /^I scroll to cell with "([^\"]*)" label and touch it$/ do |name| element="TextView text:'#{name}'" if !element_exists(element) wait_poll(:until_exists => "TextView text:'#{name}'", :timeout => WAIT_TIMEOUT) do performAction('scroll_down') end if element_exists(element) touch(element) sleep

Testing cocos2d iPhone using Calabash-iOS

我的未来我决定 提交于 2019-12-11 19:19:29
问题 Some people suggested https://github.com/calabash/calabash-ios for iOS tests. I am using cocos2d-iphone, can I write tests for it using calabash? Still calabash turned me off because it says it will only work with the simulator which is not enough and also if devices I have to use a service which just sounds like trouble. Any clean solution? After completing this guide you will be able to run tests locally against the iOS Simulator. You can also interactively explore and interact with your

How to write step definition of Calabash Android

与世无争的帅哥 提交于 2019-12-10 23:16:48
问题 I am new to calabash android. I wrote testcases for 'Twitter' android app for learning purpose. But I feel starting trouble. Can any one help me? How do I write step definition? In the feature file I wrote: Feature: Login feature Scenario: As a valid user I can log into my app And I press "Sign In" Then I see 'Sign In' page Then I enter 'abc@domain.com' in username Then I enter 'abc.123' in password And I press 'Sign In' Then I should see my home page How can I write step definitions for the

Cucumber high-level step definition - syntax error, unexpected tIDENTIFIER, expecting keyword_end

╄→гoц情女王★ 提交于 2019-12-10 12:26:44
问题 I've followed Reuse Cucumber steps. I'm a noob when it comes to Ruby and Cucumber. I'm using calabash-android 0.9.0 and cucumber 2.4.0 My calabash_steps.rb: require 'calabash-android/calabash_steps' Then /^I add the 1st bestsellers product to bag$/ do steps %Q { # App restarts and Onboarding screen shows again Given I see the text "next" Then I press the "next" button } end Full stacktrace: ❯ bundle exec calabash-android run app/build/outputs/apk/app-staging-debug.apk -t @bag /Users/eric

Calabash Android - A complete guide [closed]

北慕城南 提交于 2019-12-08 12:54:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am new to Calabash - Android. I set up the environment. I would be really grateful if an expert in this arena , who is thorough with the whole concept, could help me with this. I found many IDEs like Eclipse, IntelliJ and editors like Sublime, TextWrangler, etc. I am confused about which one to choose for an

Install Calabash-cucumber error on OS X Mavericks

删除回忆录丶 提交于 2019-12-08 08:24:37
问题 I am trying to install calabash on OS-x mavericks for automation by refering to the link: (https://github.com/calabash/calabash-ios) I have installed latest version of ruby, homebrew, rbenv. Please note that command homebrew doctor is giving me one warning only: Warning: Xcode is installed to a directory with a space in the name. This will cause some formulae to fail to build. I was not able to remove this warning. Also some forum suggested that this may be harmless. after struggling with

Calabash -Android: Can we simulate Home button on Android devices for Calabash-Android?

有些话、适合烂在心里 提交于 2019-12-08 01:59:37
问题 Can we simulate Home button on Android devices for Calabash-Android? I need to tap on Home button in our scripts to execute my Scripts using Calabash. 回答1: I have not tried this yet myself. But looking around for a solution I did find this. Link http://krazyrobot.com/2014/02/calabash-android-enter-text-from-keyboard-using-adb/ by Balazs Balazs aka krazyrobot His solution is to use send keycodes, for the home button that is KEYCODE_HOME. Wrapping that into calabash would give you: system("adb

cannot load such file — 2.2/gherkin_lexer_en, how to fix?

假装没事ソ 提交于 2019-12-07 17:53:50
问题 I need a little help. How do I resolve this problem? When I call cucumber I get the following error: *** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic on/) to get coloured output on Windows WARNING: cannot load such file -- 2.2/gherkin_lexer_en Couldn't load 2.2/gherkin_lexer_en The $LOAD_PATH was: lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/cucumber-1.3.19/bin/../lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/builder-3.2.2/lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/diff-lcs-1.2

Calabash -Android: Can we simulate Home button on Android devices for Calabash-Android?

巧了我就是萌 提交于 2019-12-06 12:27:55
Can we simulate Home button on Android devices for Calabash-Android? I need to tap on Home button in our scripts to execute my Scripts using Calabash. Lasse I have not tried this yet myself. But looking around for a solution I did find this. Link http://krazyrobot.com/2014/02/calabash-android-enter-text-from-keyboard-using-adb/ by Balazs Balazs aka krazyrobot His solution is to use send keycodes, for the home button that is KEYCODE_HOME. Wrapping that into calabash would give you: system("adb shell input keyevent KEYCODE_HOME") Again I have not tried this, but it sounds like a solution.