Systematic Extraction of Tests from Object-Oriented Programs - Fundamentals of Software Engineering
Conference Papers Year : 2021

Systematic Extraction of Tests from Object-Oriented Programs

Mohammad Ghoreshi
  • Function : Author
  • PersonId : 1248553
Hassan Haghighi
  • Function : Author
  • PersonId : 1030400

Abstract

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
Origin Files produced by the author(s)

Dates and versions

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

Licence

Identifiers

Cite

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 View
37 Download

Altmetric

Share

More