Test scripts used for web testing rely on DOM locators, often expressed as XPaths, to identify the active web page elements and the web page data to be used in assertions. When the web application evolves, the major cost incurred for the evolution of the test scripts is due to broken locators, which fail to locate the target element in the new version of the software. We formulate the problem of automatically generating robust XPath locators as a graph exploration problem, for which we provide an optimal, greedy algorithm. Since such an algorithm has exponential time and space complexity, we present also a genetic algorithm.
Meta-heuristic Generation of Robust XPath Locators for Web Testing
LEOTTA, MAURIZIO;STOCCO, ANDREA;RICCA, FILIPPO;TONELLA, PAOLO
2015-01-01
Abstract
Test scripts used for web testing rely on DOM locators, often expressed as XPaths, to identify the active web page elements and the web page data to be used in assertions. When the web application evolves, the major cost incurred for the evolution of the test scripts is due to broken locators, which fail to locate the target element in the new version of the software. We formulate the problem of automatically generating robust XPath locators as a graph exploration problem, for which we provide an optimal, greedy algorithm. Since such an algorithm has exponential time and space complexity, we present also a genetic algorithm.File | Dimensione | Formato | |
---|---|---|---|
SBST2015.pdf
accesso chiuso
Descrizione: articolo principale (preprint)
Tipologia:
Documento in Post-print
Dimensione
761.16 kB
Formato
Adobe PDF
|
761.16 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.