O'Reilly logo

Android Application Testing Guide by Diego Torres Milano

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running AVDs from the command line

Wouldn't it be nice if we could run different AVDs from the command line and perhaps automate the way we run our tests or script them?

By freeing the AVD from its windows, open a whole new world of automation and scripting possibilities.

Well, let's explore these alternatives.

Headless emulator

A headless emulator (its window is not displayed) comes in very handy when we run automated tests and nobody is looking at the window, or the interaction between the test runner and the application is so fast that we hardly see anything.

Anyway, it is also worth mentioning that sometimes you can't understand why some tests fail until you see the interaction on the screen, so use both alternatives with a bit of judgment.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required