Neural Embeddings for Web Testing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kanaththage, Kasun, Starace, Luigi Libero Lucio, Biagiola, Matteo, Tonella, Paolo, Stocco, Andrea
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911461574443008
author Kanaththage, Kasun
Starace, Luigi Libero Lucio
Biagiola, Matteo
Tonella, Paolo
Stocco, Andrea
author_facet Kanaththage, Kasun
Starace, Luigi Libero Lucio
Biagiola, Matteo
Tonella, Paolo
Stocco, Andrea
contents Web test automation techniques often rely on crawlers to infer models of web applications for automated test generation. However, current crawlers rely on state equivalence algorithms that struggle to distinguish near-duplicate pages, often leading to redundant test cases and incomplete coverage of application functionality. In this paper, we present a model-based test generation approach that employs transformer-based Siamese neural networks (SNNs) to infer web application models more accurately. By learning similarity-based representations, SNNs capture structural and textual relationships among web pages, improving near-duplicate detection during crawling and enhancing the quality of inferred models, and thus, the effectiveness of generated test suites. Our evaluation across nine web apps shows that SNNs outperform state-of-the-art techniques in near-duplicate detection, resulting in superior web app models with an average F-1 score improvement of 56%. These enhanced models enable the generation of more effective test suites that achieve higher code coverage, with improvements ranging from 6% to 21% and averaging at 12%.
format Preprint
id arxiv_https___arxiv_org_abs_2306_07400
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Neural Embeddings for Web Testing
Kanaththage, Kasun
Starace, Luigi Libero Lucio
Biagiola, Matteo
Tonella, Paolo
Stocco, Andrea
Software Engineering
Web test automation techniques often rely on crawlers to infer models of web applications for automated test generation. However, current crawlers rely on state equivalence algorithms that struggle to distinguish near-duplicate pages, often leading to redundant test cases and incomplete coverage of application functionality. In this paper, we present a model-based test generation approach that employs transformer-based Siamese neural networks (SNNs) to infer web application models more accurately. By learning similarity-based representations, SNNs capture structural and textual relationships among web pages, improving near-duplicate detection during crawling and enhancing the quality of inferred models, and thus, the effectiveness of generated test suites. Our evaluation across nine web apps shows that SNNs outperform state-of-the-art techniques in near-duplicate detection, resulting in superior web app models with an average F-1 score improvement of 56%. These enhanced models enable the generation of more effective test suites that achieve higher code coverage, with improvements ranging from 6% to 21% and averaging at 12%.
title Neural Embeddings for Web Testing
topic Software Engineering
url https://arxiv.org/abs/2306.07400