Micro Focus QTP (UFT) Forums
Issue using Oracle and Java add-in - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Issue using Oracle and Java add-in (/Thread-Issue-using-Oracle-and-Java-add-in)



Issue using Oracle and Java add-in - a_karamched - 03-27-2008

Hello Ankur

As suggested in an earlier post, to resolve the problem in Oracle, I have installed Oracle 8.2 addn and then installed Java addin by which i could record the script and objects appropriately.

Following is a sample code generated by recording using only the Oracle add-in and uninstalling Java add-in:

Code:
JavaWindow("Engineering Change Orders").JavaEdit("ECO_DEPARTMENT_0").Set "DSM"
JavaWindow("Engineering Change Orders").JavaEdit("CHANGES_REASON_CODE_0").SetFocus
JavaWindow("Engineering Change Orders").JavaDialog("ECO Customizations").JavaList("XXAM_ENG_ECO_SPECIAL_ENG_SPECIAL_ME").Select "Assignments List"

But the same code while running is throwing an Unspecified error with error code : 2147467259

Only when I use javaedit( ...).object.settext "aaa" etc, then does the code execute. Why do you think this happens?And .object does not provide all the required methods required to be performed in the navigation like setfocus, activate.What can i substitute for these methods?

Another issue is that, My application navigates through a java portal and this Oracle application and hence I require both the Java add-in and the Oracle add-in to be active. But when the java addin is enabled the Oracle code does not execue at all throwing object not identified error.
Does the patch QTPORACLE82P6102 or EWT.xml installation solve this problem?

is there an inherent conflict in these add-ins , or can this be resolved?

The Oracle add-in read me file says supports Oracle Forms 6.0, but our application is 4.5 , Is there a problem because of that.

Please let me your comments!!

Thanks!


RE: Issue using Oracle and Java add-in - bromrell - 10-02-2008

I have been having the same problem. I am running QTP 9.5 with Oracle & java addins. Recorded objects are not recognized in playback mode. Many of the controls (TAB controls, frames, buttons, etc.) in the window are not recognized so I have had to use low level recording. This is not really viable because the tests have to be run on a number of different machines and the low level recording makes the tests very brittle so that they have to be edited for each machine.

This is the 1st Oracle Forms app that I have tested. After using QTP to test web and window apps this has been a bit dissapointing and frustrating. Any help will be greatly appreciated.

-Brian