Jump to content
Sign in to follow this  
SirMisiek

Testing Java Swing app

Recommended Posts

SirMisiek

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:

WinWaitNotActive("covered")
If WinActive("[CLASS:SunAwtDialog]") == 0 Then
Exit
Else
MouseClick("left",640,808,1)
EndIf

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,

Michal

post-78836-0-86703800-1363962636_thumb.j

post-78836-0-26219400-1363962637_thumb.j

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

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  

×