calabash-android

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

Testing multiple Android devices on one machine

微笑、不失礼 提交于 2019-12-09 11:47:50
问题 I have two different Android devices plugged into the same machine. What I would like to do is to target each device and execute a test on it separately. Unfortunately, it seems as if I need to unplug one of the devices to run the test each time, because if I don't, I receive the following error: error: more than one device and emulator Does anyone know of a work-around for this issue so that I can simply keep both devices plugged in and run my tests? 回答1: You need to set ADB_DEVICE_ARG

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

Could not list certificates in keystore. Probably because the password was incorrect

断了今生、忘了曾经 提交于 2019-12-08 08:14:53
问题 I am running calabash-android in a docker file and when I run the calabash test I got the error /usr/local/bundle/gems/calabash-android-0.7.2/lib/calabash-android/java_keystore.rb:6:in `initialize': No such keystore file '/home/core/Android/debug.keystore' (RuntimeError) I have tried this this and not working for me. Edit After setting up the path the error is like /lib/calabash-android/java_keystore‌​.rb:32:in `initialize': Could not list certificates in keystore. Probably because the

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

How to install Ruby on docker?

点点圈 提交于 2019-12-06 21:32:33
问题 I am trying to install ruby on docker. I could install the 1.9 versions but it is not possible to install the latest version such as 2.2.0 and above. I am actually trying to set up calabash on docker. Have tried this. Whenever I try to install calabash-android in it getting the error ERROR: Error installing calabash-android: luffa requires Ruby version >= 2.0. 回答1: You could start view a dockerfile starting with: FROM ruby:2.3.0 That would use the docker image ruby, with ruby already

Accessing the Scenario Title and Example in a Cucumber After hook

拟墨画扇 提交于 2019-12-06 15:06:20
问题 How can I get the current Example out of a Ruby cucumber test in an After hook? I can get the title with the code below. My Scenario has several Examples with it. Can I access the current Example being tested? Feature file Scenario Outline: Successful login with primary accounts Given I start on the login page When I log into Overview page with "<acct>" Then I am on the Overview page Examples: | acct | | account1 | | account2 | After hook After do |scenario| scenario.scenario_outline.title #

calabash-android within travis

此生再无相见时 提交于 2019-12-06 12:04:51
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 android: components: - platform-tools - tools - build-tools-23.0.3 - android-23 - extra-android-support -

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

三世轮回 提交于 2019-12-05 22:25:40
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.5/lib C:/Ruby22/lib/ruby/gems/2.2.0/gems/multi_json-1.11.0/lib C:/Ruby22/lib/ruby/gems/2.2.0/gems

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