Skip to main content

Multi-objective Black-Box Test Case Prioritization Based on Wordnet Distances

  • Conference paper
  • First Online:
Search-Based Software Engineering (SSBSE 2023)

Abstract

Test case prioritization techniques have emerged as effective strategies to optimize this process and mitigate the regression testing costs. Commonly, black-box heuristics guide optimal test ordering, leveraging information retrieval (e.g., cosine distance) to measure the test case distance and sort them accordingly. However, a challenge arises when dealing with tests of varying granularity levels, as they may employ distinct vocabularies (e.g., name identifiers). In this paper, we propose to measure the distance between test cases based on the shortest path between their identifiers within the WordNet lexical database. This additional heuristic is combined with the traditional cosine distance to prioritize test cases in a multi-objective fashion. Our preliminary study conducted with two different Java projects shows that test cases prioritized with WordNet achieve larger fault detection capability (APFD\(_{C}\)) compared to the traditional cosine distance used in the literature.

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

Notes

  1. 1.

    Diverse tests are not necessarily the least expensive to run.

  2. 2.

    https://github.com/javaparser/javaparser.

References

  1. Baeza-Yates, R., Ribeiro-Neto, B., et al.: Modern information retrieval, vol. 463. ACM press New York (1999)

    Google Scholar 

  2. Birchler, C., Khatiri, S., Derakhshanfar, P., Panichella, S., Panichella, A.: Single and multi-objective test cases prioritization for self-driving cars in virtual environments. ACM Trans. Softw. Eng. Methodol. (TOSEM) (2022)

    Google Scholar 

  3. COSMOS: Devops for complex cyber-physical systems. https://www.cosmos-devops.org (2021)

  4. De Lucia, A., Di Penta, M., Oliveto, R., Panichella, A., Panichella, S.: Applying a smoothing filter to improve IR-based traceability recovery processes: an empirical investigation. Inform. Softw. Technol. (IST) 55(4), 741–754 (2013)

    Article  Google Scholar 

  5. Deb, K., Pratap, A., Agarwal, S., Meyarivan, T.: A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. on evol. Comput. 6(2), 182–197 (2002)

    Google Scholar 

  6. Just, R., Jalali, D., Ernst, M.D.: Defects4J: a database of existing faults to enable controlled testing studies for Java programs. In: International Symposium on Software Testing and Analysis, pp. 437–440. ISSTA, ACM (2014)

    Google Scholar 

  7. Miller, G.A.: Wordnet: a lexical database for English. Commun. ACM 38(11), 39–41 (1995)

    Article  Google Scholar 

  8. Nguyen, C.D., Marchetto, A., Tonella, P.: Test case prioritization for audit testing of evolving web services using information retrieval techniques. In: International Conference on Web Services, pp. 636–643. IEEE (2011)

    Google Scholar 

  9. Panichella, A.: An adaptive evolutionary algorithm based on non-euclidean geometry for many-objective optimization. In: Proceedings of the Genetic and Evolutionary Computation Conference, pp. 595–603 (2019)

    Google Scholar 

  10. Peng, Q., Shi, A., Zhang, L.: Empirically revisiting and enhancing IR-based test-case prioritization. In: Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 324–336 (2020)

    Google Scholar 

  11. Wu, Z., Palmer, M.: Verb semantics and lexical selection. arXiv preprint cmp-lg/9406033 (1994)

    Google Scholar 

  12. Yoo, S., Harman, M.: Regression testing minimization, selection and prioritization: a survey. Softw. Testing, Verification Reliab. 22(2), 67–120 (2012)

    Article  Google Scholar 

Download references

Acknowledgements

This work has been partially supported by the European Union’s Horizon 2020 Research and Innovation Programme under grant agreement No. 957254, project COSMOS [3].

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Imara van Dinten or Annibale Panichella .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

van Dinten, I., Zaidman, A., Panichella, A. (2024). Multi-objective Black-Box Test Case Prioritization Based on Wordnet Distances. In: Arcaini, P., Yue, T., Fredericks, E.M. (eds) Search-Based Software Engineering. SSBSE 2023. Lecture Notes in Computer Science, vol 14415. Springer, Cham. https://doi.org/10.1007/978-3-031-48796-5_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-48796-5_7

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-48795-8

  • Online ISBN: 978-3-031-48796-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics