5

I need a tool to automate testing of my android application. Specially I want to cover the test cases below:

  • send 10 sms
  • make a photo
  • make 10 calls

It's even more like a script, which will allow me to record actions.

Any hint?

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176

3 Answers3

9

You should take a look at Monkeyrunner

I'm pretty sure it's exactly what you are looking for.

Paul
  • 5,163
  • 3
  • 35
  • 43
5

There are three options you can look at: Robotium, Scirocco and Robolectric.

I've found them to be useful for basic operations as long as you are explicit in what should happen and what to click on, etc. I cannot say whether they can send SMSes using the built-in SMS app, it is likely that you will need to build this automation in somehow, or even send SMSes via the emulator.

Community
  • 1
  • 1
Mendhak
  • 8,194
  • 5
  • 47
  • 64
  • I guess all this tools are for Unit-testing android apps. What I need is a tool to record specific actions performed outside my app. –  Sep 02 '12 at 16:21
  • Your Roboelectric link doesn't work for me. Is it this? http://robolectric.org/ – Sam Nov 18 '14 at 11:08
  • Also, looks like the name doesn't have the first 'e'; the website calls it *Robolectric*. – Sam Nov 18 '14 at 11:15
  • Looks like they moved. Link fixed – Mendhak Nov 18 '14 at 11:26
1

What about Android testing framework? http://developer.android.com/tools/testing/index.html

Achiles
  • 122
  • 5