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

ViMoTest:一种使用投影编辑指定基于ViewModel的GUI测试场景的工具

ViMoTest: A Tool to Specify ViewModel-Based GUI Test Scenarios using Projectional Editing

Mario Fuksa, Sandro Speth, Steffen Becker

AI总结:

ViMoTest工具结合行为驱动开发、ViewModel模式和投影式DSL,独立于GUI框架隔离并测试表示逻辑,通过JavaFX任务管理器示例生成可执行代码。

摘要:

自动化GUI测试对于确保表示逻辑按预期运行至关重要。然而,现有工具通常采用端到端方法,面临高规格工作量、维护困难、测试不稳定以及与GUI框架特定细节耦合等挑战。为解决这些问题,我们引入了ViMoTest工具,该工具利用行为驱动开发、ViewModel架构模式和投影式领域特定语言(DSLs)来独立于GUI框架隔离和测试表示逻辑。我们通过一个基于JavaFX的小型任务管理器示例演示了该工具,并生成了可执行代码。

英文摘要:

Automated GUI testing is crucial in ensuring that presentation logic behaves as expected. However, existing tools often apply end-to-end approaches and face challenges such as high specification efforts, maintenance difficulties, and flaky tests while coupling to GUI framework specifics. To address these challenges, we introduce the ViMoTest tool, which leverages Behavior-driven Development, the ViewModel architectural pattern, and projectional Domain-specific Languages (DSLs) to isolate and test presentation logic independently of GUI frameworks. We demonstrate the tool with a small JavaFX-based task manager example and generate executable code.

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

↑