I am testin a web based application which has Java Applets embeded on them. I am using test Complete for this but it is not able to identify the objects placed on the Applet.
I have to use low level recording for this which makes the script non-portable.
Can you suggest me any tool for this ? Or any alternative in Test Complete for doing such testing
If the Java Open Application Support plug-in is enabled, TestComplete should be able to recognize objects of your applet. Can you reproduce the problem using sample applets that come with the JDK? What operating system and service packs are installed on your computer? Are you using the latest update for TestComplete (4.25)?
I am using Test Complete Version 3.09.3089.0.
The extensions installed (related to Java) are:
1. Testing Java Application
1. Windows XP Professional SP 3
2. Internet Explorer 6.0 with SP2
I tried to record a script for the sample application "C:\j2sdk1.4.2_08\demo\applets\GraphicsTest\exampl e1.html"
Provided with the JDK version I am using.
The script generated was :
var p, w, page
p = Sys.Process("explorer")
w = p.Window("IEFrame", "Graphics Test (1.1) - Microsoft Internet Explorer")
page = w.Page("*").ToURL("file:///C:/j2sdk1.4.2_08/demo/applets/GraphicsTest/example1.html")
w.Window("ComboBox", "", 2).Click(0) // Here i Clicked Combo box
page.APPLET.Applet_1.Click(135, 10) // Here I clicked the Button
page.APPLET.Applet_1.Click(94, 11)// Here I clicked the Button
page.APPLET.Applet_1.Click(93, 16)// Here I clicked the Button
Have you read the "Creating Open Applications in Java" help topic? If you compile your applet according to the instructions of the topic, the controls of the applet should be recognized by TestComplete. Please also note that you need to edit permissions of the JRE in the java.policy file (the topic specifies what permissions should be added).