Skip to main content

2022 | OriginalPaper | Buchkapitel

Inferring Metamorphic Relations from JavaDocs: A Deep Dive into the MeMo Approach

verfasst von : Alejandra Duque-Torres, Dietmar Pfahl

Erschienen in: Product-Focused Software Process Improvement

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Identifying and selecting suitable Metamorphic Relations is a complex process since it necessitates a thorough grasp of the system under test and its problem domain. Recently, an approach supporting unit testing at the method level called MeMo was proposed. Through a module called MR-Finder, MeMo infers Equivalent Metamorphic Relations (EMRs) by identifying sentences in Javadoc’s comments that describe equivalent behaviours between different methods of the same class. MR-Finder has three main components: (i) a predefined set of 10 words that express an equivalence (S10W). (ii) A mechanism that measures the semantic similarity between two sentences by using Word Move Distance (WDM). (iii) A binary classifier that decides whether a given sentence points to an EMR. The goal of our research is to determine if MeMo’s MR-Finder module can be improved. For that purpose, we first re-build the MR-Finder module and use the same dataset provided by MeMo’s authors to verify the reported results in the original study and establish the basis for further experiments. Second, we explore two strategies, STRTG No.1 and STRTG No.2, to improve the MR-Finder. In STRTG No.1, we increase the set S10W. In STRTG No.2, we keep S10W unchanged but add a second template sentence to the MR-Finder module. We successfully re-implemented the MR-Finder module and achieved comparable results using the same S10W. Our results indicate that the overall performance of MR-Finder is very likely to improve when the initial set of equivalent words increases, i.e., with STRTG No.1.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
2.
Zurück zum Zitat Chen, T.Y., Cheung, S.C., Yiu, S.M.: Metamorphic testing: a new approach for generating next test cases. Technical report HKUST-CS98-01, Department of Computer Science, Hong Kong University of Science and Technology, Hong Kong (1998) Chen, T.Y., Cheung, S.C., Yiu, S.M.: Metamorphic testing: a new approach for generating next test cases. Technical report HKUST-CS98-01, Department of Computer Science, Hong Kong University of Science and Technology, Hong Kong (1998)
3.
Zurück zum Zitat Duque-Torres, A., Pfahl, D., Claus, K., Ramler, R.: A replication study on predicting metamorphic relations at unit testing level. In: 2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), pp. 1–11 (2022) Duque-Torres, A., Pfahl, D., Claus, K., Ramler, R.: A replication study on predicting metamorphic relations at unit testing level. In: 2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), pp. 1–11 (2022)
4.
Zurück zum Zitat Duque-Torres, A., Pfahl, D., Klammer, C., Fisher, S.: Using source code metrics for predicting metamorphic relations at method level. In: 5th Workshop on Validation, Analysis and Evolution of Software Tests, VST’22 (2022) Duque-Torres, A., Pfahl, D., Klammer, C., Fisher, S.: Using source code metrics for predicting metamorphic relations at method level. In: 5th Workshop on Validation, Analysis and Evolution of Software Tests, VST’22 (2022)
5.
Zurück zum Zitat Duque-Torres, A., Shalygina, A., Pfahl, D., Ramler, R.: Using rule mining for automatic test oracle generation. In: 8th International Workshop on Quantitative Approaches to Software Quality, QuASoQ’20 (2020) Duque-Torres, A., Shalygina, A., Pfahl, D., Ramler, R.: Using rule mining for automatic test oracle generation. In: 8th International Workshop on Quantitative Approaches to Software Quality, QuASoQ’20 (2020)
6.
Zurück zum Zitat Hardin, B., Kanewala, U.: Using semi-supervised learning for predicting metamorphic relations. In: 3rd IEEE/ACM International Workshop on Metamorphic Testing (MET), pp. 14–17, MET’18 (2018). ISBN 9781450357296 Hardin, B., Kanewala, U.: Using semi-supervised learning for predicting metamorphic relations. In: 3rd IEEE/ACM International Workshop on Metamorphic Testing (MET), pp. 14–17, MET’18 (2018). ISBN 9781450357296
9.
Zurück zum Zitat Kanewala, U., Bieman, J.M., Ben-Hur, A.: Predicting metamorphic relations for testing scientific software: a machine learning approach using graph kernels. Softw. Test. Verif. Reliab. 26(3), 245–269 (2016)CrossRef Kanewala, U., Bieman, J.M., Ben-Hur, A.: Predicting metamorphic relations for testing scientific software: a machine learning approach using graph kernels. Softw. Test. Verif. Reliab. 26(3), 245–269 (2016)CrossRef
11.
Zurück zum Zitat Nair, A., Meinke, K., Eldh, S.: Leveraging mutants for automatic prediction of metamorphic relations using machine learning. In: Proceedings of the 3rd ACM SIGSOFT International Workshop on Machine Learning Techniques for Software Quality Evaluation. MaLTeSQuE 2019, pp. 1–6. Association for Computing Machinery, New York (2019). ISBN 9781450368551. https://doi.org/10.1145/3340482.3342741 Nair, A., Meinke, K., Eldh, S.: Leveraging mutants for automatic prediction of metamorphic relations using machine learning. In: Proceedings of the 3rd ACM SIGSOFT International Workshop on Machine Learning Techniques for Software Quality Evaluation. MaLTeSQuE 2019, pp. 1–6. Association for Computing Machinery, New York (2019). ISBN 9781450368551. https://​doi.​org/​10.​1145/​3340482.​3342741
13.
Zurück zum Zitat Rahman, K., Kanewala, U.: Predicting metamorphic relations for matrix calculation programs. In: 3rd IEEE/ACM International Workshop on Metamorphic Testing (MET), MET’18, pp. 10–13 (2018) Rahman, K., Kanewala, U.: Predicting metamorphic relations for matrix calculation programs. In: 3rd IEEE/ACM International Workshop on Metamorphic Testing (MET), MET’18, pp. 10–13 (2018)
Metadaten
Titel
Inferring Metamorphic Relations from JavaDocs: A Deep Dive into the MeMo Approach
verfasst von
Alejandra Duque-Torres
Dietmar Pfahl
Copyright-Jahr
2022
DOI
https://doi.org/10.1007/978-3-031-21388-5_29

Premium Partner