Solved

Problem GUI testing with the Robot

Posted on 2003-10-27
2
326 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
count7 challenge 12 69
groovy example issue 10 66
create a gui in perl 3 45
what is a "java.lang.System Property"   ? 20 36
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now