Solved

Problem GUI testing with the Robot

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

730 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