Jump to content
Sign in to follow this  

Testing Java Swing app

Recommended Posts

How do you test java swing apps in AutoIt?

I am facing now a problem. I have to test application that has only main window titled (415.jpg from attachement - i cover names, so let's call this title "covered"). Every dialog windows that appear has only info like in 414.jpg from attachement.

I have a code like below:

If WinActive("[CLASS:SunAwtDialog]") == 0 Then

Now, when dialog window appears, there is a mouse click and that's fine, but if there is no window, code waits. When i minimalize it, then code exits.

I'm not 100% sure, when i have my "covered" window active, that every other dialogs (maybe not visible) are not active, but if they will be active, i think it will try to MouseClick on it, but nothing happen.

Is there any method to return every class named objects of running app? Maybe, there is something which blocks it. Do you have any other solution?

Thanks in advance,




Share this post

Link to post
Share on other sites

SirMisiek, AutoIt works with the Windows API. It has a terrible time with applications not written with this API. You can take a look at the JAVA UDF in the Examples section, but understand this is going to be difficult at best.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...