Questions tagged [calabash-android]

Calabash Android is an automated acceptance testing framework for Android native and hybrid applications.

is an automated acceptance testing framework for native and hybrid applications.

Links

More

If you have any questions on , you can also use the Google group

Related

249 questions
0
votes
1 answer

Proxy to rewrite responses during mobile testing

I am testing a mobile application. There are situations where I would like like to alter the response coming from the server that talks to the app. I have a phone (Android) connected to computer running Cucumber tests. I would like to proxy the…
slindsey3000
  • 4,053
  • 5
  • 36
  • 56
0
votes
1 answer

Calabash is not launching the app in Android simulator

I am using the below version of calabash in my mac. calabash-android (0.5.5) calabash-common (0.0.1) calabash-cucumber (0.13.0) updated it now Also, I have set the ANDROID_HOME to platform tools/appt and JAVA_HOME and PATH variables properly in my…
Vinee
  • 402
  • 2
  • 10
  • 27
0
votes
1 answer

application requires INJECT_EVENTS permission - need a non elegant solution :)

In my application that I’m testing I have an option to send feedback to the customer. When I use that option, the gmail opened and then I kind of ‘locked outside’ of my application. Of course the query(“*”) returns '[]' and the command…
Nir Ortal
  • 77
  • 12
0
votes
1 answer

How can I test field validation?

I have validation code which sets the error of the EditText when it doesn't satisfy the requirements. field.setError(errorMessage); This puts a little red circle with an exclamation point over the field, and when I touch the field, it displays my…
Carl Manaster
  • 39,912
  • 17
  • 102
  • 155
0
votes
1 answer

Calabash-android: getting error when trying to press on object with coordinates and using 'perform_action' command

I’m trying to use rect output with perform action command. For example: query("* text:’Hello’", :y) [ [0]…
Nir Ortal
  • 77
  • 12
0
votes
1 answer

Calabash 'Then I scroll up' WaitError

In looking at Calabash's predefined Gesture Steps I do not understand why the step definition Then I scroll up would return the following failure:Timeout waiting for elements: android.widget.ScrollView index:0…
chell
  • 117
  • 8
0
votes
3 answers

Calabash - Send app to background and come back (Android)

I'm testing my android app with Calabash and everything is fine except for a small detail. I override onPause() and onResume() method to perform certain actions and I would like to test them. The problem is I'm not sure about how to do it with…
jgarciabt
  • 559
  • 1
  • 5
  • 19
0
votes
2 answers

CALABASH - Renaming screenshot filenames without the iterator

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…
YoDK
  • 447
  • 1
  • 4
  • 13
0
votes
2 answers

How can I tell when avd is completely launched?

I'm running a jenkins job that starts an avd device and uses calabash-android to run tests against it. emulator -avd phone How can I tell when this device is completely started so that I know I can start the tests without getting a device…
Joe Susnick
  • 6,544
  • 5
  • 44
  • 50
0
votes
1 answer

How do I run different scenarios in CI on emulator and on actual devices?

We're using calabash-android to run cucumber scenarios against our android app. Some scenarios require a physical device, while others run fine on just the emulator. How can we configure the build so that scenarios tagged @requires_device run on…
Carl Manaster
  • 39,912
  • 17
  • 102
  • 155
0
votes
0 answers

The constant STEP_PAUSE in Calabash 0.5.5 throws an error

I am trying to add the line sleep(STEP_PAUSE) to my android calabash script and I am getting the following error uninitialized constant STEP_PAUSE (NameError) Why is this not initialized and does anyone have the class list of constants, operators…
Laser Hawk
  • 1,988
  • 2
  • 23
  • 29
0
votes
1 answer

Is there a way to parameterize Calabash touch or query

Does anyone know if there is a way to uses variables in a calabash touch/query/etc function? For example, say I have a variable called hotel_name and I wanted to touch("* marked:#{hotel_name}") and use that in a test step like: Given(/I select…
0
votes
2 answers

Best way to turn airplane mode on and off with Calabash

What is the best way to turn airplane mode on and off using calabash-android? Can I use perform_action('set_preferences', .... ) ?? What does set_preferences do above? I would like to set up android settings during test of application. Thanks
slindsey3000
  • 4,053
  • 5
  • 36
  • 56
0
votes
1 answer

How to install the app only once for the suite

I have an app installation hook file like require 'calabash-android/management/app_installation' AfterConfiguration do |config| FeatureNameMemory.feature_name = nil end Before do |scenario| @scenario_is_outline = (scenario.class ==…
Lucan
  • 99
  • 1
  • 3
  • 12
0
votes
1 answer

Android View Client not working

Per instructions: sudo easy_install --upgrade androidviewclient output of that command includes: Installed /Library/Python/2.7/site-packages/androidviewclient-8.13.1-py2.7.egg However when I try to use it in a monkeyrunner python script I get…
superstar3000
  • 389
  • 5
  • 16