Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Testing a GUI

  1. #1
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Testing a GUI

    I want to test my GUI, aside from JUnit testing and other formal testing techniques how can I simulate buttons being pressed, keyboard input etc. The only that springs to mind for me is using the Robots class though not sure if there is a better alternative.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Testing a GUI

    I have no personal experience, but you might try searching "java automated GUI testing" or similar. I think writing your own GUI test tool would be more trouble than it's worth, but I could be wrong.

  3. The Following User Says Thank You to GregBrannon For This Useful Post:

    keepStriving (December 3rd, 2013)

  4. #3
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Re: Testing a GUI

    I'll leave it, I've left nearly all of the logic out of the GUI class anyway.

Similar Threads

  1. Jemmy GUI testing
    By lijepdan in forum Java Theory & Questions
    Replies: 0
    Last Post: June 9th, 2013, 03:41 AM
  2. testing
    By neeraj bhatt in forum Java Theory & Questions
    Replies: 1
    Last Post: November 4th, 2012, 03:48 PM
  3. Java automated testing tools for Unit testing
    By rameezraja in forum Member Introductions
    Replies: 2
    Last Post: April 14th, 2012, 08:51 AM
  4. JUnit Testing
    By aussiemcgr in forum Java Theory & Questions
    Replies: 1
    Last Post: March 30th, 2012, 11:19 AM
  5. If Testing, testing for another if?
    By Rusticus in forum Loops & Control Statements
    Replies: 10
    Last Post: October 1st, 2011, 10:18 AM