I was using WinRunner and now Iím evaluating TestPartner as another possible tool to use. I run into some problems with JavaGroupBox object. In my company we have internally developed TerminalEmulator (Java). The main object of this application is a terminal window (recognized as JavaGroupBox). All I want to do is to be able to get the text from this object. In WinRunner I was using the object method (I asked our developers to add getTextRowCol method to this object and then I was using java_activate_method in WinRunner to run this method) but I donít know how to do this in TestPartner. When Iím trying to use CaptureText property it returns only the middle part of the text (the object has 24 lines of text but first 3 and last 8 are skipped). The Text property is not supported for this object.
My questions are:
1. What else can I use to get the text from this object
2. How can I use internal object method for Java object (I know how to do this for ActiveX object but I donít know how to do it for Java)
Iím stuck right now and I can use any help or suggestion.
TestPartner comes with a feature called the AOR (Active Object Recognition) for Java, which will let you call internal object methods. Check out Program Files --> Compuware --> TestPartner --> AOR Tutorial It's a PDF tutorial that will walk you through a sample, setting it up and calling it from a script.
Can we use AOR for JInitiator 22.214.171.124 (oracle forms server application inside MSIE...ActiveX). Standard controls are supported (like JavaEditBox, JavaTreeView, etc.), but all windows inside the java applet are recognized as GUIObject. Now I try to use AOR, but there I have problem to obtain oracle.ewt.xxx packages. Has anybody experience using TP against Oracle Forms Application?
AOR is for JAVA objects only. If you application uses ActiveX controls, you will want to add a reference (VBA functionality) to the specific file (probably an OCX file) and then write code similar to the following snippet which will let gain access to the specific methods and properties of the control in question.
Dim objTActiveX As TActiveX
Dim objGrid As MSFlexGrid
'Navigate to the area in the app that has the flex grid
Set objTActiveX = ActiveX("Name=fgCustomerList ClassName=MSFlexGrid")
Set objGrid = objTActiveX.Object