Skip to main content

Automatic Generation of GUI Test Inputs Using User Configurations

  • Chapter
  • First Online:
Big Data, Cloud Computing, Data Science & Engineering (BCD 2018)

Part of the book series: Studies in Computational Intelligence ((SCI,volume 786))

  • 1897 Accesses

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.

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 EPUB and 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
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover 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

Notes

  1. 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

  1. Ammann, P., Offutt, J.: Introduction to Software Testing, 1st edn. Cambridge University Press (2008)

    Google Scholar 

  2. 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)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. 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)

    Google Scholar 

  5. 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)

    Article  Google Scholar 

  6. 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)

    Google Scholar 

  7. 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)

    Google Scholar 

  8. 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)

    Google Scholar 

  9. 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)

    Google Scholar 

  10. 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)

    Google Scholar 

  11. Memon, A.M, Banerjee, I., Nagarajan, A.: GUI ripping: reverse engineering of graphical user interfaces for testing. In: WCRE, p. 260 (2003)

    Google Scholar 

  12. 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)

    Google Scholar 

  13. 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)

    Google Scholar 

  14. 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)

    Google Scholar 

  15. 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)

    Google Scholar 

  16. 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)

    Article  Google Scholar 

  17. 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)

    Google Scholar 

  18. 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)

    Google Scholar 

  19. 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)

    Article  Google Scholar 

  20. Yuan, X., Cohen, M.B., Memon, A.M.: GUI interaction testing: Incorporating event context. IEEE Trans. Softw. Eng. 37(4), 559–574 (2011)

    Article  Google Scholar 

  21. 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)

    Google Scholar 

  22. 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)

    Google Scholar 

  23. 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)

    Google Scholar 

  24. 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)

    Google Scholar 

  25. 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)

    Google Scholar 

  26. EMMA: a free Java code coverage tool. http://emma.sourceforge.net/

  27. GATOR: Program Analysis Toolkit For Android. http://web.cse.ohio-state.edu/presto/software/gator/

  28. 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)

    Article  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Leegeun Ha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer International Publishing AG, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics