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.
Keywords
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
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)
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)
Hamill, P.: Unit Tests Framework. O’Reilly, Sebastopol (2004)
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)
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)
Memon, A.M.: A comprehensive framework for testing graphical user interfaces. Ph.D (2001)
Ruiz, A., Price, Y.W.: Test-driven GUI development with testng and abbot. IEEE Software 24(3), 51–57 (2007)
Google Inc. Android activity, (2011), http://developer.android.com/reference/android/app/activity.html (cited 2011-03-09)
Google Inc. Testing fundamentals, (2011), http://developer.android.com/guide/topics/testing/testing_android.html (cited2011-03-09)
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)
Feldman, A., Daymon, M.: WPF in Action with Visual Studio 2008. Manning Publications Co., Greenwich (2008)
Feathers, M.: Working Effectively with Legacy Code. Prentice Hall PTR, Upper Saddle River (2004)
Google Inc. Android developing introduction (2011), http://developer.android.com/guide/developing/index.html (cited 2011-03—09)
Pivotal Labs. Robolectric (2011), http://pivotal.gitthub.com/robolectric/ (cited 2011-03-09)
IEEE 1008 - IEEE standard for software unit testing (1987)
Freedman, R.S.: Testability of software components. IEEE Transactions on Software Engineering 17, 553–564 (1991)
Fowler, M.: Refactoring: Improving the Design of Existing Code. Addison-Wesley, Boston (1999)
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
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)