Solved

Problem GUI testing with the Robot

Posted on 2003-10-27
2
332 Views
Last Modified: 2008-03-10
hey all,

I was hoping to automate some of the testing process of my program's Swing components through the use of the Robot class provided by our friends at Sun. I also wanted to have a little automated demonstration up and running. My problem came when attempting to simulate a mouseDragged event. As far as I can see, the Robot class does not provide the functionality to simulate this event and I can therefore not demonstrate the Drag'n'Drop functionality between my JFomattedTextFields.

If this problem persists, I can cut and past the contents of one text field to another and have the mouse follow the action so it looks as though a drag'n'drop has occurred, but I'd like to hear what you guys think before I start hacking away.

Thanks again
0
Comment
Question by:MansellJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
tomboshell earned 125 total points
ID: 9632097
The basic robot class is just that, very basic.  If you want to automate the application, and in turn have an opportunity to work with some automatization tools take a look at http://abbot.sourceforge.net 

It just may work.  I am using XDE Tester, but would advise against it since I would bet that you don't want to shovel out some money to do this.  
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9640887
https://sourceforge.net/projects/jfcunit/ might also be worth a look.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question