arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.07400cs.SE
收藏

网络测试的神经嵌入

Neural Embeddings for Web Testing

Technical University of Munich(慕尼黑工业大学);Università degli Studi di Napoli Federico II(那不勒斯费德里科二世大学);University of St. Gallen(圣加仑大学);Università della Svizzera italiana(瑞士意大利语区大学)

Kasun Kanaththage, Luigi Libero Lucio Starace, Matteo Biagiola, Paolo Tonella, Andrea Stocco

AI总结:

本文提出基于Transformer的孪生神经网络,用于更准确地推断网络应用模型,提升测试用例生成效果和代码覆盖率。

摘要:

网络测试自动化技术常常依赖爬虫来推断网络应用的模型以生成自动化测试用例。然而,当前的爬虫依赖于状态等价算法,这些算法难以区分近似重复页面,往往导致冗余的测试用例和应用功能的不完整覆盖。在本文中,我们提出了一种基于模型的测试生成方法,该方法使用基于Transformer的孪生神经网络(SNNs)来更准确地推断网络应用模型。通过学习基于相似性的表示,SNNs捕捉网页之间的结构和文本关系,在爬行过程中提高近似重复检测,并提高推断模型的质量,从而提高生成测试套件的效果。我们在九个网络应用上的评估显示,SNNs在近似重复检测方面优于最先进的技术,导致更优越的网络应用模型,平均F-1分数提高了56%。这些增强的模型使生成更有效的测试套件成为可能,这些套件实现了更高的代码覆盖率,改进幅度从6%到21%,平均为12%。

英文摘要:

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%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑