Automatisation du test tous-les-chemins en présence d'appels de fonctions - TEL - Thèses en ligne Accéder directement au contenu
Thèse Année : 2007

Automating all-paths testing with function calls

Automatisation du test tous-les-chemins en présence d'appels de fonctions

Patricia Mouy
  • Fonction : Auteur
  • PersonId : 878063

Résumé

Structural testing is usually restricted to unit tests and based on some clear definition of source code coverage. In particular, the all-paths criterion, which requires at least one test-case per feasible path of the function under test, is recognised as offering a high level of software reliability. This document deals with the difficulties of using structural unit testing to test functions which call other functions. To limit the resulting combinatorial explosion in the number of paths, we choose to abstract the called functions by their specification. We incorporate the functional information on the called functions within the structural information on the function under test, given as a control flow graph (CFG). This representation combining functional and structural descriptions may be viewed as an extension of the classic CFG and allows us to characterise test selection criteria ensuring the coverage of the source code of the function under test. Two new criteria will be proposed. The first criterion corresponds to the coverage of all the paths of this new representation, including all the paths arising from the functional description of the called functions. The second criterion covers all the feasible paths of the function under test only. We describe how we automate test-data generation with respect to such grey-box (combinations of black-box and white-box) test selection strategies, and we apply the resulting extension of our PathCrawler tool to examples coded in the C language.
Le test structurel est généralement limité aux test unitaires et basé sur une définition claire de la couverture du code. En particulier, le critère tous-les-chemins, qui requiert au moins un cas de test par chemin faisable, est reconnu comme offrant un haut niveau de confiance dans les test effectués. Ce document traite des difficultés de l'utilisation de ce type de test sur des fonctions composées d'appels à d'autres fonctions. Pour limiter l'explosion combinatoire du nombre de chemins résultant d'un traitement "inlining", nous choisissons d'abstraire les fonctions appelées par leurs spécifications. Nous incluons les informations fonctionnelles des fonctions appelées aux informations structurelles de la fonction appelante données sous forme de graphe de flot de contrôle. Cette représentation fonctionnelle et structurelle peut être vue comme une extension du CFG classique ce qui nous permet de définir de nouveaux critères de couverture assurant le maintien de la couverture complète de la fonction appelante tout en limitant au maximum le nombre de cas de test nécessaires.
Fichier principal
Vignette du fichier
manuscrit.pdf (1.5 Mo) Télécharger le fichier
soutenanceThese.pdf (1.06 Mo) Télécharger le fichier
Format : Autre
Loading...

Dates et versions

tel-00514053 , version 1 (01-09-2010)

Identifiants

  • HAL Id : tel-00514053 , version 1

Citer

Patricia Mouy. Automatisation du test tous-les-chemins en présence d'appels de fonctions. Génie logiciel [cs.SE]. Université d'Evry-Val d'Essonne, 2007. Français. ⟨NNT : ⟩. ⟨tel-00514053⟩
248 Consultations
255 Téléchargements

Partager

Gmail Facebook X LinkedIn More