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