0

I want to make junit test for an application, with graphics editor like functionality. I.e. user can drag and drop mouse smoothly in 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?

Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385

1 Answers1

0

Maybe you can use AWTEventListener to accomplish this task.

possilbly duplicate of Detecting mouse enter/exit events anywhere on JPanel

Or you can refer to java2.com example.

Community
  • 1
  • 1
wangdq
  • 1,874
  • 17
  • 26