Skip to main content

Towards Unit Testing of User Interface Code for Android Mobile Applications

  • Conference paper
Software Engineering and Computer Systems (ICSECS 2011)

Abstract

As the availability and popularity of mobile applications grows, there is also an increased interest for them to be solid and well tested. Consequently, there is also an interest in assessing the correctness of their system rapidly, since smart phone applications usually develop quickly and have a lower lifecycle as compared to desktop applications. We are specifically interested in an efficient way of testing the Graphical User Interface (GUI), as it is both central to the user experience and harder to evaluate than standard business logic. This research paper is a study on the different ways to assess the validity of the GUI code for an Android mobile application with special focus on unit testing. It describes the available testing techniques and details the difficulty in writing unit tests for GUI code. Finally, the study gives a recommendation based on the different testing approaches available, followed by a discussion of both the implications and limitations of the findings.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Zhifang, L., Bin, L., Xiaopeng, G.: Test automation on mobile device. In: Proceedings of the 5th Workshop on Automation of Software Test, AST 2010, pp. 1–7. ACM, New York (2010)

    Google Scholar 

  2. Hwang, S.M., Chae, H.C.: Design & implementation of mobile GUI testing tool. In: Proceedings of the 2008 International Conference on Convergence and Hybrid Information Technology. IEEE Computer Society Press, Los Alamitos (2008)

    Google Scholar 

  3. Hamill, P.: Unit Tests Framework. O’Reilly, Sebastopol (2004)

    Google Scholar 

  4. Brooks, P., Robinson, B., Memon, A.M.: An initial characterization of industrial graphical user interface systems. In: ICST 2009: Proceedings of the 2nd IEEE International Conference on Software Testing, Verification and Validation (2009)

    Google Scholar 

  5. Cai, K.Y., Zhao, L., Hu, H., Jiang, C.H.: On the test case definition for GUI testing. In: Fifth International Conference on Quality Software, QSIC 2005 (September 2005)

    Google Scholar 

  6. Memon, A.M.: A comprehensive framework for testing graphical user interfaces. Ph.D (2001)

    Google Scholar 

  7. Ruiz, A., Price, Y.W.: Test-driven GUI development with testng and abbot. IEEE Software 24(3), 51–57 (2007)

    Article  Google Scholar 

  8. Google Inc. Android activity, (2011), http://developer.android.com/reference/android/app/activity.html (cited 2011-03-09)

  9. Google Inc. Testing fundamentals, (2011), http://developer.android.com/guide/topics/testing/testing_android.html (cited2011-03-09)

  10. Reenskaug, T.M.H.: Models - views - controllers (1979), http://heim.ifi.uio.no/~trygver/1979/mvc-2/1979-12-MVC.pdf (cited 2011-03-09)

  11. Feldman, A., Daymon, M.: WPF in Action with Visual Studio 2008. Manning Publications Co., Greenwich (2008)

    Google Scholar 

  12. Feathers, M.: Working Effectively with Legacy Code. Prentice Hall PTR, Upper Saddle River (2004)

    Google Scholar 

  13. Google Inc. Android developing introduction (2011), http://developer.android.com/guide/developing/index.html (cited 2011-03—09)

  14. Pivotal Labs. Robolectric (2011), http://pivotal.gitthub.com/robolectric/ (cited 2011-03-09)

  15. IEEE 1008 - IEEE standard for software unit testing (1987)

    Google Scholar 

  16. Freedman, R.S.: Testability of software components. IEEE Transactions on Software Engineering 17, 553–564 (1991)

    Google Scholar 

  17. Fowler, M.: Refactoring: Improving the Design of Existing Code. Addison-Wesley, Boston (1999)

    Google Scholar 

  18. Linnenkugel, U., Müllerburg, M.: Test data selection criteria for (software) integration testing. In: Proceedings of the first international conference on systems integration on Systems integration 1990, pp. 709–717 (1990), http://portal.acm.org/citation.cfm?id=93024.93262

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Sadeh, B., Ørbekk, K., Eide, M.M., Gjerde, N.C.A., Tønnesland, T.A., Gopalakrishnan, S. (2011). Towards Unit Testing of User Interface Code for Android Mobile Applications. In: Zain, J.M., Wan Mohd, W.M.b., El-Qawasmeh, E. (eds) Software Engineering and Computer Systems. ICSECS 2011. Communications in Computer and Information Science, vol 181. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-22203-0_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-22203-0_15

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-22202-3

  • Online ISBN: 978-3-642-22203-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics