arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2108.13322cs.SE
收藏

Web应用程序测试:在自动模型推理中使用树核检测近似重复状态

Web Application Testing: Using Tree Kernels to Detect Near-duplicate States in Automated Model Inference

Anna Corazza, Sergio Di Martino, Adriano Peron, Luigi Libero Lucio Starace

摘要:

在Web应用程序的端到端测试的背景下,自动化探索技术(a.k.a.爬行)被广泛用于推断被测站点的基于状态的模型。这些模型,其中状态表示Web应用程序的功能和转换表示可达性关系,可以用于几个基于模型的测试任务,如测试用例生成。然而,当前的探索技术通常导致包含许多近似重复状态的模型,即,状态表示实际上是相同特性的实例的稍微不同的页面。这对随后的基于模型的测试任务有负面影响,例如,对生成的测试套件的大小、运行时间和实现的覆盖率有不利影响。由于网页可以自然地表示其树结构的DOM表示,我们提出了一种新的近似重复检测技术,以提高Web应用程序的模型推理,基于树核(TK)功能。TK是一类计算树结构对象之间相似性的函数,在自然语言处理领域得到了大量研究和成功应用。为了评估所提出的方法在检测接近重复的网页的能力,我们进行了初步的分类实验上免费提供的大量数据集约10万手动标注的网页对。我们比较了所提出的方法与其他国家的最先进的近重复检测技术的分类性能。初步结果表明,我们的方法比国家的最先进的技术在近重复检测分类任务。这些有希望的结果表明,TK可以应用于Web应用程序模型推理的背景下,近重复检测,并激励在这个方向上进一步的研究。

英文摘要:

In the context of End-to-End testing of web applications, automated exploration techniques (a.k.a. crawling) are widely used to infer state-based models of the site under test. These models, in which states represent features of the web application and transitions represent reachability relationships, can be used for several model-based testing tasks, such as test case generation. However, current exploration techniques often lead to models containing many near-duplicate states, i.e., states representing slightly different pages that are in fact instances of the same feature. This has a negative impact on the subsequent model-based testing tasks, adversely affecting, for example, size, running time, and achieved coverage of generated test suites. As a web page can be naturally represented by its tree-structured DOM representation, we propose a novel near-duplicate detection technique to improve the model inference of web applications, based on Tree Kernel (TK) functions. TKs are a class of functions that compute similarity between tree-structured objects, largely investigated and successfully applied in the Natural Language Processing domain. To evaluate the capability of the proposed approach in detecting near-duplicate web pages, we conducted preliminary classification experiments on a freely-available massive dataset of about 100k manually annotated web page pairs. We compared the classification performance of the proposed approach with other state-of-the-art near-duplicate detection techniques. Preliminary results show that our approach performs better than state-of-the-art techniques in the near-duplicate detection classification task. These promising results show that TKs can be applied to near-duplicate detection in the context of web application model inference, and motivate further research in this direction.

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

↑