Abstract
GUI testing validates the functionality of a software-intensive system by exercising its GUI. Although much research on automatic generation of GUI test inputs has been conducted to reduce the cost of GUI testing, the current GUI test input generation techniques can miss testing the behavior of the system which is dependent on the user configuration, which may leave undetected the defects that appear only under a certain user configuration. In order to completely test the behavior of a system for all possible user configurations, this paper proposes a method that automatically generate GUI test inputs under all possible user configurations. Since testing all possible user configurations is infeasible for nontrivial systems, the method is designed such that the user can sample user configurations. Thus, the proposed method generates GUI test inputs for the behavior of the system dependent on user configurations in addition to the test inputs generated by the existing technique that does not consider user configurations. We implement our method as an automated tool for the Android framework and evaluate it with on five open-source Android apps. The evaluation results show that our method can indeed achieve additional code coverage while preserving code coverage achieved by the existing technique.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Activity is one of the user interface components in Android app, which provides a single functionality to its user. It contains Fragments and Widgets.
References
Ammann, P., Offutt, J.: Introduction to Software Testing, 1st edn. Cambridge University Press (2008)
Myers, B.A., Rosson, M.B.: Survey on user interface programming. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, pp. 195–202. ACM (1992)
Memon, A.M., Soffa, M.L., Pollack, M.E.: Coverage criteria for GUI testing. In: ACM SIGSOFT Software Engineering Notes, vol. 26, Issue 5, pp. 256–267 (2001)
Memon, A.M., Pollack, M.E., Soffa, M.L.: Automated test oracles for GUIs. In: ACM SIGSOFT Software Engineering Notes, vol. 6, pp. 30–39. ACM (2000)
Banerjee, I., Nguyen, B., Garousi, V., Memon, A.: Graphical user interface (GUI) testing: systematic mapping and repository. Inf. Softw. Technol. 55(10), 1679–1694 (2013)
Zeng, X., Li, D., Zheng, W., Xia, F., Deng, Y., Lam, W., Yang, W., Xie, T.: Automated test input generation for Android: are we really there yet in an industrial case? In: Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 987–992. ACM (2016)
Baek, Y.-M., Bae, D.-H.: Automated model-based Android GUI testing using multi-level GUI comparison criteria. In: 2016 31st IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 238–249. IEEE (2016)
Su, T., Meng, G., Chen, Y., Wu, K., Yang, W., Yao, Y., Pu, G., Liu, Y., Su, Z.: Guided, stochastic model-based GUI testing of Android apps. In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, pp. 245–256. ACM (2017)
Mao, K., Harman, M., Jia, Y.: Sapienz: multi-objective automated testing for android applications. In: Proceedings of the 25th International Symposium on Software Testing and Analysis, pp. 94–105. ACM (2016)
Memon, A., Porter, A., Yilmaz, C., Nagarajan, A., Schmidt, D., Natarajan, B.: Skoll: distributed continuous quality assurance. In: Proceedings 26th International Conference on Software Engineering, 2004. ICSE 2004, pp. 459–468. IEEE (2004)
Memon, A.M, Banerjee, I., Nagarajan, A.: GUI ripping: reverse engineering of graphical user interfaces for testing. In: WCRE, p. 260 (2003)
Kochhar, P.S., Thung, F., Nagappan, N., Zimmermann, T., Lo, D.: Understanding the test automation culture of app developers. In: 2015 IEEE 8th International Conference on Software Testing, Verification and Validation (ICST), 2015, pp. 1–10. IEEE (2015)
Choudhary, S.R., Gorla, A., Orso, A.: Automated test input generation for android: are we there yet?(E). In: 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 429–440. IEEE (2015)
Moran, K., Linares-Vásquez, M., Bernal-Cárdenas, C., Vendome, C., Poshyvanyk, D.: Automatically discovering, reporting and reproducing android application crashes. In: ICST 2016 (2016)
Qu, X., Cohen, M.B., Rothermel, G.: Configuration-aware regression testing: an empirical study of sampling and prioritization. In: Proceedings of the 2008 International Symposium on Software Testing and Analysis, pp. 75–86. ACM (2008)
Song, C., Porter, A., Foster, J.S.: iTree: efficiently discovering high-coverage configurations using interaction trees. IEEE Trans. Softw. Eng. 40(3), 251–265 (2014)
Qu, X., Acharya, M., Robinson, B.: Impact analysis of configuration changes for test case selection. In: 2011 IEEE 22nd International Symposium on Software Reliability Engineering (ISSRE), pp. 140–149. IEEE (2011)
Jin, D., Qu, X., Cohen, M.B., Robinson, B.: Configurations everywhere: implications for testing and debugging in practice. In: Companion Proceedings of the 36th International Conference on Software Engineering, pp. 215–224. ACM (2014)
Bae, G., Rothermel, G., Bae, D.-H.: Comparing model-based and dynamic event-extraction based GUI testing techniques: an empirical study. J. Syst. Softw. 97, 15–46 (2014)
Yuan, X., Cohen, M.B., Memon, A.M.: GUI interaction testing: Incorporating event context. IEEE Trans. Softw. Eng. 37(4), 559–574 (2011)
Rabkin, A., Katz, R.: Static extraction of program configuration options. In: Proceedings of the 33rd International Conference on Software Engineering, pp. 131–140. ACM (2011)
Cohen, M.B., Snyder, J., Rothermel, G.: Testing across configurations: implications for combinatorial testing. In: ACM SIGSOFT Software Engineering Notes, vol. 31, Issue 6, pp. 1–9 (2006)
Reisner, E., Song, C., Ma, K.-K., Foster, J.S., Porter, A.: Using symbolic evaluation to understand behavior in configurable software systems. In: Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering, vol. 1, pp. 445–454. ACM (2010)
Yang, S., Zhang, H., Wu, H., Wang, Y., Yan, D., Rountev, A.: Static window transition graphs for android (T). In: 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 658–668. IEEE (2015)
Amalfitano, D., Fasolino, A.R., Tramontana, P., De Carmine, S., Imparato, G.: A toolset for GUI testing of Android applications. In: 2012 28th IEEE International Conference on Software Maintenance (ICSM), pp. 650–653. IEEE (2012)
EMMA: a free Java code coverage tool. http://emma.sourceforge.net/
GATOR: Program Analysis Toolkit For Android. http://web.cse.ohio-state.edu/presto/software/gator/
Nguyen, B.N., Robbins, B., Banerjee, I., Memon, A.: GUITAR: an innovative tool for automated testing of GUI-driven software. Autom. Softw. Eng. 21(1), 65–105 (2014)
Acknowledgements
This research was supported by the MSIT (Ministry of Science and ICT), Korea, under the ITRC (Information Technology Research Center) support program (IITP-2018-2013-0-00717) supervised by the IITP (Institute for Information and communications Technology Promotion) and by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (2017R1D1A3B03028609).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer International Publishing AG, part of Springer Nature
About this chapter
Cite this chapter
Ha, L., Kang, S., Lee, J., Han, Y. (2019). Automatic Generation of GUI Test Inputs Using User Configurations. In: Lee, R. (eds) Big Data, Cloud Computing, Data Science & Engineering. BCD 2018. Studies in Computational Intelligence, vol 786. Springer, Cham. https://doi.org/10.1007/978-3-319-96803-2_9
Download citation
DOI: https://doi.org/10.1007/978-3-319-96803-2_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-96802-5
Online ISBN: 978-3-319-96803-2
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)