Skip to main content

Sequence Mining for Automatic Generation of Software Tests from GUI Event Traces

  • Conference paper
  • First Online:
Intelligent Data Engineering and Automated Learning – IDEAL 2020 (IDEAL 2020)

Abstract

In today’s software industry, systems are constantly changing. To maintain their quality and to prevent failures at controlled costs is a challenge. One way to foster quality is through thorough and systematic testing. Therefore, the definition of adequate tests is crucial for saving time, cost and effort. This paper presents a framework that generates software test cases automatically based on user interaction data. We propose a data-driven software test generation solution that combines the use of frequent sequence mining and Markov chain modeling. We assess the quality of the generated test cases by empirically evaluating their coverage with respect to observed user interactions and code. We also measure the plausibility of the distribution of the events in the generated test sets using the Kullback-Leibler divergence.

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 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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

Similar content being viewed by others

References

  1. Ajouli, A., Henchiri, K.: MODEM: an UML profile for MODEling and Predicting software Maintenance before implementation (2019). https://doi.org/10.1109/ICCISci.2019.8716421

  2. Choetkiertikul, M., Dam, H.K., Tran, T., Ghose, A.: Predicting delays in software projects using networked classification (T). In: 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 353–364 (2015). https://doi.org/10.1109/ASE.2015.55

  3. Grossman, L.: Metric math mistake muffed mars meteorology mission (2010). https://www.wired.com/2010/11/1110mars-climate-observer-report/

  4. Kelion, L.: Fatal a400m crash linked to data-wipe mistake. BBC (2015). https://www.bbc.com/news/technology-33078767

  5. Babar, M.A., Brown, A.W., Mistrik, I.: Agile Software Architecture: Aligning Agile Processes and Software Architectures, 1st edn. Morgan Kaufmann Publishers Inc., San Francisco (2013)

    Google Scholar 

  6. Florea, R., Stray, V.: The skills that employers look for in software testers. Softw. Qual. J. 27, 1449–1479 (2019)

    Article  Google Scholar 

  7. Anderson, B.: Best automation testing tools for 2019 (top10 reviews), October 2017. https://medium.com

  8. Last, M., Friedman, M., Kandel, A.: Using data mining for automated software testing. Int. J. Software Eng. Knowl. Eng. 14(4), 369–393 (2004). https://doi.org/10.1142/S0218194004001737

    Article  Google Scholar 

  9. Giudice, D.L.: How AI Will Change Software Development And Applications Key takeaways (2016)

    Google Scholar 

  10. Isabella, A., Retna, E.: Study paper on test case generation for GUI based testing. CoRR, vol. abs/1202.4527 (2012). http://arxiv.org/abs/1202.4527

  11. Conroy, K., Grechanik, M., Hellige, M., Liongosari, E., Xie, Q.: Automatic test generation from GUI applications for testing web services, pp. 345–354, October 2007

    Google Scholar 

  12. Zhou, K., Wang, X., Hou, G., Wang, J., Ai, S.: Software reliability test based on Markov usage model. JSW 7(9), 2061–2068 (2012). https://doi.org/10.4304/jsw.7.9.2061-2068

    Article  Google Scholar 

  13. Fournier-Viger, P., Gomariz, A., Campos, M., Thomas, R.: Fast vertical mining of sequential patterns using co-occurrence information, May 2014

    Google Scholar 

  14. Ayres, J., Flannick, J., Gehrke, J., Yiu, T.: Sequential pattern mining using a bitmap representation, July 2002

    Google Scholar 

  15. Gutjahr, W.J.: Software dependability evaluation based on Markov usage models. Perform. Eval. 40(4), 199–222 (2000). https://doi.org/10.1016/S0166-5316(99)00052-8

    Article  MATH  Google Scholar 

  16. Kullback, S.: Information Theory and Statistics. Wiley, New York (1959)

    MATH  Google Scholar 

Download references

Acknowledgment

This work is financed by the Northern Regional Operational Program, Portugal 2020 and the European Union, through the European Regional Development Fund (https://www.rtcom.pt/wordpress/rute-randtech-update-and-test-environment/). Also, this work is financed by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia, within project UIDB/50014/2020.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alberto Oliveira .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Oliveira, A. et al. (2020). Sequence Mining for Automatic Generation of Software Tests from GUI Event Traces. In: Analide, C., Novais, P., Camacho, D., Yin, H. (eds) Intelligent Data Engineering and Automated Learning – IDEAL 2020. IDEAL 2020. Lecture Notes in Computer Science(), vol 12490. Springer, Cham. https://doi.org/10.1007/978-3-030-62365-4_49

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-62365-4_49

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-62364-7

  • Online ISBN: 978-3-030-62365-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics