Sign in to follow this  
Followers 0
dina

Automating Jave based application

8 posts in this topic

Hi,

I have the following code while automating the Java based application using QTP,

QTP Code:

JavaWindow("License Authorization").JavaCheckBox("<html><body><b>Node").Set "ON"

Now, I want to automate the same function of checking the checkbox labeled "Node" in the "License Authorization" window using AutoIT.

Is it possible using AutoIT?

Any information would be very useful.

Share this post


Link to post
Share on other sites



Hi.

[snip]

Now, I want to automate the same function of checking the checkbox labeled "Node" in the "License Authorization" window using AutoIT.

Is it possible using AutoIT?

Any information would be very useful.

Use the Autoit Info Window tool to check, what AutoIt can "see" for this appl window.

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Hi,

or have a look at Rational Functional Tester (RFT)

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hello dina,

Or have a look see at the ThoughtWorks' open source White Project for functional testing of Win32, WinForm, WPF and SWT (java) apps.

http://www.codeplex.com/white

Interesting stuff. Requires .NET 3.0.

Zach...

Edited by zfisherdrums

Share this post


Link to post
Share on other sites

I feel Java is only possible by using bitmap recognition using pixelsearch and pixelchecksum.

Maybe its possible with active accessibility thru AutoIT (search forum for active accessibility and google for accexplorer or MSAA SDK)

And if you are very experienced in C programming you maybe can get it done thru Java Native Interface / JNI

I am not very long using AutoIT but so far I have not found easy support for JAVA objects.

Share this post


Link to post
Share on other sites

I could only see the window title in the AutoIT window info tool. The checkboxes and other controls like buttons, edit boxes are not displayed in window info tool.

I thought of recording the window using QTP and get the object properties. When I did that i just got the code which was given in my 1st post. Then I used the window title and checkbox name displayed in that code in AutoIT and it is not working.

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  
Followers 0