?
Solved

Problem GUI testing with the Robot

Posted on 2003-10-27
2
Medium Priority
?
336 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 500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 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