Tuesday, 19 January 2016

Getting Started with Automation

Hi all in this post is about moving your manual testing efforts into automation testing for your native and hybrid android application. Once you decided to for automation to save time for release cycle and to release quality App , then next step is to decide on which tool is suitable for your application, organization and team so that you can benefit form your automates test suits.

I am going to share with some top most automation testing tools for native and hybrid android application with their pros and cons so that you can make a better choice and take first step towards automation.

1. Appium

Appium is open source tool available for native and hybrid mobile applications testing for android as well as iOS. Appium uses vendor provided automation frameworks under the hood such as Apple's UI automator for iOS apps, for android apps 4.2 and above UIAutomator and 2.3 to 4.1 Selendroid.
Appium's architecture is client server based architecture. Appium server exposes REST API which recieves connections form client and executes those commands on mobile devices.Automation is performed in form of sessions and Desired Capabilities and the key to send information to server regarding the requires session.

1. Appium client libraries supports multiple languages hence you can write test cases in different languages like Java, Ruby, Python, PHP, JavaScript and C#.
2. Appium supports cross platfrom script development.
3. Appium has large community support where you ask and share.
4. It supportd test running on physical devices as well as Emulators.
5. Supprt for native and hybrid mobile application for android as well as iOS.
6. Record and play back is available for Mac OS 

1. Record and play back is not available on Windows OS. 
Documentation is not user friendly.
3. Does not support image comparison.
4. Setting up takes some time especially in case of Linux system.
5. Limites Support for Gestures.
6. Limited support for android version < 4.1
7. No Support for Toast Messages.


2. Robotium

Robotium is also an open source automation testing framework for android. With robotium is very effective to write black box test cases and if you have sorce code you can also go for grey box testing.Its API is very simple and you can quickly start writing the UI automated test cases.

1. Simple APIs provides to write test cases so that you can concentrate more on your test scenarios.
2. Supports back box as well as grey box testing.
3. Easy integration with Gradle, ANT and Maven.
4. Can be used with Jacoco to measure code coverage.

1. To write test cases using Robotium one must have knowledge of Java 
3. Espresso

Espresso is an open source framework for native android applications developed by Google.Espresso is build on top of Android Instrumentation Framework.Espresso supports white box testing too.

1. Supported for all android versions.
2. Simpler and Quicker to setup.
3. Supports Jacoco to measure code coverage.
4. Extensive testing is possible as it covers many UI actions and gestures.

1. The test cases are written inside the android application project code and hence building project to run test case takes lot of time.

4. UIAutomator-

UIAutomator is test framework by Google fr native android apps and games.It comes with APIs to create UI test cases and execution engine.It supports devices with API level 16 and above. It is very good for native apps but lacks support for web views and hybrid apps.

1.Simple and Easy to learn information is available.
2. Support is strongly maintained by Google.
3. Possible to to do cloud bases test management.

1. Supports android version greater than 4.1.
2. Web view is not supported.


  1. Excellent post!!! Training on android technology helps professionals to establish a career in android mobile application development.
    Android Training in Chennai | Android Training|iOS Training in Chennai |iOS Training Institutes in Chennai

    1. Thanks Roshini for stopping by this blog :)

  2. Testing now a days has become as importnant as developing of an application. With the help of testing, we can find out the potential bugs which would affect the application. Fixing this at a very early stage would help the application to run without any problem.
    Software testing training in Chennai | Software testing training institute in Chennai | Software testing courses in Chennai

  3. Appium cons doesn't have 2

  4. Thanks for this blog. provided great information. All the details are explained clearly with the great explanation. Thanks for this wonderful blog. Step by step processes execution are given clearly.Know the details about different thing.
    Mobile App Development Company
    Android app Development Company
    ios app development Company
    Mobile App Development Companies

  5. I am new to this field & have been reading as many articles a possible to enhance my knowledge in the past few months. Of all, I find your blog posts to be the most useful (along with a couple more) & I have learnt a lot this way. Thank you so much for spending so much time in researching & writing such wonderful articles…
    Digital marketing course in chennai

  6. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
    Mobile App Development Company
    Mobile App Development Companies

  7. I am reading your post. It's very useful information for us. keep sharing..Linux Training Institute in Chennai | Linux Training Institute in Velachery.

  8. Java is high level programming language .Due to its stability and scalability, you can find Java on mobiles, desktops, large scale applications etc. Java is also gaining big in the field of Internet of Things (IoT). Java training center in chennai

  9. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    web design Company
    web development Company
    web design Company in chennai
    web development Company in chennai
    web design Company in India
    web development Company in India

  10. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
    VLSI Project Center in Chennai | VLSI Project Center in Velachery

  11. Thanks For Your valuable posting, it was very informative

  12. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.

  13. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    Android training in bangalore

  14. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.

    java training in chennai

    java training in bangalore

    java training in bangalore

  15. Excellent post thanks for posting very informative post, i like this.
    MCA Project Center in Chennai | MCA Project Center in Velachery

  16. I simply wanted to thank you so much again. I am not sure the things that I might have gone through without the type of hints revealed by you regarding that situation.
    Best Hadoop Training Institute In chennai

  17. You truly did more than visitors’ expectations. Thank you for rendering these helpful, trusted, edifying and also cool thoughts on the topic to Kate. JAVA Training in chennai

  18. Pretty blog, so many ideas in a single site, thanks for the informative article, keep updating more article.
    Software testing course in chennai

  19. Great one,You have done a great job by sharing this content,Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.

    Python Training in Chennai
    Python Training