Solved

Problem GUI testing with the Robot

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 117
couple of eclipse 5 38
How to determine if a string is a valid SHA value 7 34
Java: The Public Class Main 4 17
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

832 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