Systematic Extraction of Tests from Object-Oriented Programs - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2021

Systematic Extraction of Tests from Object-Oriented Programs

Mohammad Ghoreshi
  • Fonction : Auteur
  • PersonId : 1248553
Hassan Haghighi
  • Fonction : Auteur
  • PersonId : 1030400

Résumé

Existing program-based automated test techniques from object-oriented programs generate only test data or test cases, which are not equipped with effective oracle to reveal the logical errors in the program. In addition, these techniques often focus on conventional code coverage criteria and intra-method testing, and are less concerned with inter-method, intra-class and inter-class testing. In this paper, we propose an automated testing approach to cover the inter-method and intra-class test levels. This approach generates tests that are equipped with effective oracles in terms of expected outcomes to reveal logical errors in the program under test. In order to demonstrate the applicability of the proposed approach, we applied it to a case study containing 14 different classes implemented in Java. Furthermore, we created artificial faulty versions of our case study, and the proposed approach was able to extract tests that reveal failures in 74% of faulty cases.
Fichier principal
Vignette du fichier
506725_1_En_16_Chapter.pdf (391.74 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04074531 , version 1 (19-04-2023)

Licence

Identifiants

Citer

Mohammad Ghoreshi, Hassan Haghighi. Systematic Extraction of Tests from Object-Oriented Programs. 9th International Conference on Fundamentals of Software Engineering (FSEN), May 2021, Virtual, Iran. pp.222-228, ⟨10.1007/978-3-030-89247-0_16⟩. ⟨hal-04074531⟩
25 Consultations
29 Téléchargements

Altmetric

Partager

More