一句话:发布 ReproBreak 数据集,收集并自动复现 Web GUI 测试中可复现的定位器失效,支撑脆弱性与修复研究。
Cypress、Playwright 等自动化 GUI 测试框架依赖定位器查找并操作网页元素。被测应用的结构变化可能使定位器无法再找到目标元素,即使功能未变也导致测试失败,即定位器失效;但此前缺乏大规模评估 Cypress/Playwright 定位器脆弱性的数据集。本文提出 ReproBreak:作者分析 359 个开源仓库,识别包含定位器变更的提交,并在定位器变更最多的前 4 个项目中复现,确认 449 个定位器失效。数据集包含这些失效案例及自动复现脚本,可用于定位器脆弱性、修复技术和测试鲁棒性研究。
Automated GUI testing frameworks such as Cypress and Playwright rely on locators to find and interact with web elements. A locator break occurs when a structural change in the application under test causes a locator to no longer find its target element, resulting in test breakages even when the underlying functionality remains unchanged. Despite its impact on test maintenance, no dataset exists to evaluate locator fragility in Cypress and Playwright at scale. In this paper, we present ReproBreak, a dataset of reproducible locator breaks in web GUI tests. We analyzed 359 open-source repositories to identify commits that contain locator changes. To confirm whether these changes are indeed locator breaks, we reproduced them in the top 4 projects with the largest number of locator changes and found 449 locator breaks, which are provided in the dataset along with scripts for automated reproduction. We believe ReproBreak serves as a valuable artifact to support research on locator fragility, repair techniques, and test robustness. The video is available at: https://youtu.be/fM6qQhoTjqY. The dataset is at https://github.com/rub-sq/ReproBreak.