I've got two problems concerning java objects:
First i've tried to record a java application, but in the script the steps are only recorded as "Window.click 34,39, etc.".
I tried to do the AORDemo with the AORTool, but i didn't get it. When i use the "Identifier" the object called later in the demo calcbutton is not recognized, only the main window("Calculator Demo Window")
Am i doing something wrong or is there a special setting i have to change? Maybe wrong Java Version?
Second problem: I've got older scripts recorded with a previous TP version (not my scripts, but from a collegue)
In the older script the java objects are identified as "Window.Attach".
When i tried to playback the script with my 5.1.1 TP, TP gets problems to find the java objects. I recorded the application again and it says "JavaWindow.Attach".
Please help me... ;-)
Best Regards, Michael.
Re: Java problems
If I remember right... all objects in TP 5.0 were seen as Window/Edit/Combo, but it was in 5.1 that the classes were seperated... JavaWindow/VBEditbox/HTMLComboBox. I guess they did this to introduce the AttachNameProfile, so that you could specify the property associated to the type of object you want to learn. i.e. Editbox("Index=1").SetText vs. JavaEditBox("Name=Last").SetText
Try adding the Java to the front of your object names JavaWindow vs. Window. (you can use find replace for this). If any objects are object mapped, you may have to change the typename/class name for your entries.
As for you postional click issue.. it sounds like you are either testing against a non-supported java package/jvm or TP is not hooking your JVM correctly. Make sure you are using supported brands and versions of objects/classes and JVM. (If its JDK 1.4 you need the 5.2 beta). Also make sure you start TP before you application as noted in the Release notes.
hope this helps,
Re: Java problems
I thought the same that there is a problem with the java version. I don't know what exactly was changed, but it must be the java version, because before it worked correctly (as they told me, i had to take over the stuff from a collegue)
From the Readme:
TestPartner Java Version Requirement
If you are using the Java Development Kit (JDK) or Java Runtime Environment (JRE) version 1.4.0 or later, TestPartner will not identify Java controls. To avoid this problem, be sure the JDK installed on your computer is a version prior to but not including 1.4.0.
Yep, seems so i have to rework the whole scripts.
Many thanks Alias, you really helped me out. :-)
Best regards, Michael.
[ 10-29-2003, 02:33 AM: Message edited by: jagger ]