Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2004

Tip: Looking for answers? Try searching our database.

How I emulate users of a Swing Application?

Thread view: 
Equis Uno - 10 Mar 2004 04:56 GMT
Hi,

Suppose I have a simple Swing Application with a few buttons,
some text fields, and maybe a check box.

Does Java provide a way for me to build a program
which I could use to interact with the Swing application?

Essentially I'd like to figure out ways to emulate many users
so I could build a synthetic load so I could then load test
my Swing application.

I know that this capability resides within windows and a company
named Mercury Interactive is taking advantage of it to build
great technology to help its customers load test a wide variety
of user interfaces.

I'd like to build something which runs under Java rather than windows.

-moi
Thomas Weidenfeller - 10 Mar 2004 07:35 GMT
> Essentially I'd like to figure out ways to emulate many users
> so I could build a synthetic load so I could then load test
> my Swing application.

If you want to role your own, see java.awt.Robot for a start.

Otherwise Google. There are several commercial GUI test systems out
there, and a few free ones, too. JFCUnit comes to mind.

/Thomas
Shane Mingins - 10 Mar 2004 21:30 GMT
> Hi,
>
[quoted text clipped - 16 lines]
>
> -moi

Generally speaking you should design your app using the MVC pattern.  I
would then think that the load test would/could bypass the GUI.

JUnitPerf is an open source Junit extension I have seen referred to that has
a LoadTest to simulate a number of concurrent users and iterations.

If OTOH you are soley wishing to unit test the GUI there are other JUnit
extentions you can use and maybe use JUnitPerf TimedTest.  But if "you have
a simple Swing Application with a few buttons, some text fields, and maybe a
check box" then I could not see any point in load testing the GUI.  Is there
something I am missing?

HTH
Shane
Ranjan Sinha - 11 Mar 2004 04:28 GMT
Try jemmy library http://jemmy.netbeans.org/. This is used to create
automated tests for Java GUI applications. It contains methods to
reproduce all user actions which can be performed on Swing/AWT
components
Ranjan Sinha - 11 Mar 2004 04:28 GMT
Try jemmy library http://jemmy.netbeans.org/. This is used to create
automated tests for Java GUI applications. It contains methods to
reproduce all user actions which can be performed on Swing/AWT
components


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.