arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.00357cs.SE
收藏

Web测试依赖项检测

Web Test Dependency Detection

Matteo Biagiola, Andrea Stocco, Ali Mesbah, Filippo Ricca, Paolo Tonella

摘要:

由于现代Web应用程序的异构多层性质,E2E Web测试套件易于测试依赖性,这使得开发人员难以为每个测试用例创建隔离的程序状态。在本文中,我们提出了第一种方法,用于检测和验证E2E Web测试套件中存在的测试依赖关系。我们的方法采用字符串分析,从测试代码中提取一组近似的依赖关系。然后,它通过测试名称的自然语言处理过滤潜在的假依赖关系。最后,它验证所有的依赖关系,并使用一种新的恢复算法,以确保没有真正的依赖关系,在最终的测试依赖图丢失。我们的方法是在一个名为TEDD的工具中实现的,并在六个开源Web应用程序的测试套件上进行了评估。我们的研究结果表明,TEDD可以正确地检测和验证测试的依赖性高达72%的速度比基线与原始的测试顺序,其中图包含所有可能的依赖性。TEDD生成的测试依赖图实现了测试执行的并行化,加速系数高达7倍。

英文摘要:

E2E web test suites are prone to test dependencies due to the heterogeneous multi-tiered nature of modern web apps, which makes it difficult for developers to create isolated program states for each test case. In this paper, we present the first approach for detecting and validating test dependencies present in E2E web test suites. Our approach employs string analysis to extract an approximated set of dependencies from the test code. It then filters potential false dependencies through natural language processing of test names. Finally, it validates all dependencies, and uses a novel recovery algorithm to ensure no true dependencies are missed in the final test dependency graph. Our approach is implemented in a tool called TEDD and evaluated on the test suites of six open-source web apps. Our results show that TEDD can correctly detect and validate test dependencies up to 72% faster than the baseline with the original test ordering in which the graph contains all possible dependencies. The test dependency graphs produced by TEDD enable test execution parallelization, with a speed-up factor of up to 7x.

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

↑