简体   繁体   English

具有用户操作记录的GUI测试库?

[英]GUI testing library with user actions recording?

I want to make junit test for an application, with graphics editor like functionality. 我想使用功能类似的图形编辑器对应用程序进行junit测试。 Ie user can drag and drop mouse smoothly in GUI. 即用户可以在GUI中平稳地拖放鼠标。 It seems not usefull to write coordinate movements programmatically. 以编程方式编写坐标运动似乎没有用。 Is it possible to have some macro recording, to capture user guestures and then use them for testing? 是否可以进行一些宏录制,以捕获用户需求,然后将其用于测试?

Maybe you can use AWTEventListener to accomplish this task. 也许您可以使用AWTEventListener完成此任务。

possilbly duplicate of Detecting mouse enter/exit events anywhere on JPanel 在JPanel上的任何位置检测鼠标进入/退出事件的可能重复

Or you can refer to java2.com example . 或者,您可以参考java2.com示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM