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

使用Cypress对开源Web应用进行自动化测试的评估

Evaluating Automated Testing on an Open-Source Web Application Using Cypress

Quoc-Binh Nguyen, Truc-Ly Phan Nguyen, Ngoc Hong Tran, Dung Hai Dinh

arXiv 2608.19960首次发表:更新:

AI 中文总结

本文以开源Web应用为对象,用27个测试用例,从执行速度、可靠性、可维护性评估Cypress框架的端到端自动化测试,发现其执行稳定,data-cy属性可降低UI变更的维护开销。

AI 中文摘要

端到端自动化测试在Web软件开发中被越来越多地使用,以确保系统质量并缩短开发过程中的响应时间。然而,自动化测试的实际有效性取决于诸多因素,包括执行时间、测试结果的稳定性,以及随着应用不断演进测试套件的可维护性。在本文中,我们使用Cypress框架对一个开源Web应用的端到端自动化测试的有效性进行评估。我们部署了包含27个测试用例的实验,测试的有效性通过执行速度、可靠性和可维护性来衡量。实验结果表明,基于Cypress的端到端测试套件具有短且稳定的执行时间,适合在软件开发期间频繁运行。大多数测试用例在多次运行中取得一致结果,而仅在涉及复杂交互功能的少数测试中出现不稳定情况。此外,该研究强调了元素定位器策略和页面对象模型(POM)架构对测试套件可维护性的影响,证明了具有弹性的data-cy属性在UI发生变化时可显著降低维护开销。

英文摘要

End-to-end automated testing is increasingly used in web software development to ensure system quality and shorten response times during development. However, the true effectiveness of automated testing depends on many factors including execution time, stability of test results, and maintainability of the test suite as the application continues to evolve. In this paper, we evaluate the effectiveness of end-to-end automated testing using the Cypress framework for an open-source web application. We deployed the experiment with 27 test cases. The test's effectiveness is measured by execution speed, reliability, and maintainability. The experimental results show that the Cypress-based end-to-end test suite has short and stable execution times. It suits frequent runs during software development. The majority of test cases achieved consistent results across multiple runs, while flakiness only occurred in a few tests which involve complex interactive functions. Furthermore, the study highlights the impact of element locator strategies and Page Object Model (POM) architecture on test suite maintainability, demonstrating that resilient data-cy attributes significantly reduce maintenance overhead when UI changes occur.

CommentsAccepted by the 9th International Conference on Research in Engineering and Technology (RET 2026)

Journal ref9th International Conference on Research in Engineering and Technology (RET 2026)

论文原文

arXiv 摘要页 · PDF 原文 · HTML 原文

↑