Automated Acceptance Testing For iOS and Android Devices [closed]
Asked Answered
S

7

6

I'm working on a web project where it has become clear that having some Selenium-type automated acceptance tests would be very helpful. But the project is a web site for mobile/handheld devices, not desktop browsers like what Selenium supports.

Googling around a little uncovered Frank for iOS and Robotium for Android. Are these the two tools to use? Or is there something as good or better that might also allow me to use one tool for both Android and iOS?

Surgery answered 11/10, 2011 at 6:22 Comment(1)
Just look at my edit4ed answer, Hope it this will help you for web project testing. Also let me know is it, what you needed. Thanks.Gilley
S
1

Looks like the answer is: Yep, those are the two standard tools right now (as of October 2011, when this answer was originally written).

There are services that may allow automated tests on both real (not emulators or simulators) iOS and Android devices including MonkeyTalk and experitest (as of this revision to the answer in April 2013).

Surgery answered 15/10, 2011 at 5:12 Comment(1)
I've revised this 2.5 year-old answer with updated information about the growing number of services that now address this problem.Surgery
H
4

You might also want to look into Cucumber which basically offers a high level language to execute tests. A test consists of a number of steps and the underlying step_definitions are written in Ruby.

Calabash offers step definitions for Android and for iOS like pressing a button, swipe, scroll, ...

Not sure though how this works out for web testing on mobile devices.

Huzzah answered 14/2, 2013 at 8:2 Comment(4)
Didn't know about Calabash! Apparently it's been on GitHub for about a year so it wasn't there when the question was originally asked. Will have to check it out! As for Cucumber, I'm using Cucumber in fact. Cucumber depends on external projects such as Selenium to run tests on real browsers/devices. I've been using Selenium + WebDriver to run tests on an iOS simulator, but there are differences between the sim and a real device, of course.Surgery
Looks like Calabash uses the iOS Simulator, not real devices. Ah well.Surgery
I only played with it for web browser and Android. Getting it up and running for iOS is still on my list. For Android, it does work with real devices though.Huzzah
Sweet, then that covers Android. +1!Surgery
B
4

There are multiple tools that can test iOS and Android applications. Here is a selection:

Bluejacket answered 11/4, 2013 at 9:43 Comment(0)
G
2

I never use any other for android but Robotium is best in my case.

EDIT:

Android WebDriver allows to run automated end-to-end tests that ensure your site works correctly when viewed from the Android browser.

Selenium - Browser automation framework

Gilley answered 11/10, 2011 at 6:25 Comment(3)
Do you use Robotium to test mobile web sites on Android browser, like the use case I'm asking about, or do you use it to test other things like apps you've written?Surgery
I used robotium for application written by me and some native android application like setting, gallery etc..Gilley
+1 for Android WebDriver! U gadn't seen that one. I will definitely have to check it out.Surgery
K
2

WebDriver is selenium 2 and it support both Android and iOS. You could also consider SeeTest from experitest, it support both dom and image processing.

Kaikaia answered 21/11, 2011 at 6:37 Comment(0)
H
2

MonkeyTalk seems to be able to handle both iOS, Android and web. Disclaimer: I just started playing with MonkeyTalk and did not use Robotium.

Huzzah answered 13/12, 2012 at 15:27 Comment(0)
H
2

Another option is Appium, a Selenium-compatible mobile automation tool that can automate mobile apps, including mobile browsers.

Harrell answered 12/4, 2013 at 20:42 Comment(0)
S
1

Looks like the answer is: Yep, those are the two standard tools right now (as of October 2011, when this answer was originally written).

There are services that may allow automated tests on both real (not emulators or simulators) iOS and Android devices including MonkeyTalk and experitest (as of this revision to the answer in April 2013).

Surgery answered 15/10, 2011 at 5:12 Comment(1)
I've revised this 2.5 year-old answer with updated information about the growing number of services that now address this problem.Surgery

© 2022 - 2024 — McMap. All rights reserved.