QTP 11 Java addin issue

by Community Manager on ‎11-30-2012 10:40 AM

Question

I've installed QTP 11 on my machine with all the available addins, however it's not identifying java objects. (it displays Window/win objects).

When QTP 11 was installed few days ago it identifed the objects.Next day when we logged into the machine and test again it didn't identify and Sametime(IBM chat) got corrupted.

Is there any patch or settings to be done after installing java adddin?

 

Answer

Problem

 

When both QTP and a Java application is installed on the same machine, some users may find that their Java application may not function correctly or may often crash unexpectedly. This occurs with QTP running but no neccessarily recording.

Cause

 

Collisions with the changes to the Java environment made by QTP's Java or Oracle addin have prevented the applications from launching correctly.

Fix  

 
This will ensure that the Java support is only loaded when QTP and the Java / Oracle addin are loaded
  1. Close QTP and any Java or Oracle related applications.

    Note: steps 2 to 6 are for Web related applications of the Java/Oracle type (mostly Applets)
  2. Navigate to the Java control panel.
  3. Start -> Control panel -> Java control panel
  4. Under the Java Advanced tab navigate to "<APPLET > tab support" (for Java 1.5.x) or "Default Java plugin for browsers" (for Java 1.6.x).

    Note: For Vista or later operating systems, it appears this option may be disabled)
  5. Please uncheck the checkbox "Internet Explorer"
  6. Click "Ok" and continue until Java Control Panel is closed
  7. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 32bit Operating System
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 64bit Operating System

  8. Modify the value from “0” to "1". The default value is 0 which indicates that the agent is always loaded into an application. If this value is then changed to 1, it will instruct the agents to only be injected when QTP and the Java addin are loaded.
  9. For changes to take effect, please restart the machine
     
     

Please note, if the entry in the registry does not exist, please create it manually ;)

Comments
by abdulj on ‎09-16-2013 12:01 AM

Hi,

 

Could you please provide me any remedy for same Issue in a Windows Application ?

 

My Windows App consists of 3 Panes ...

 

1 Pane is recognized as Java Tree

2 Pane is recognized as Java Table

3 Pane is Not recognized at all

 

Inside that 3 Pane .. there are some Objects .. If I try to object spy .. 3rd pane is highlighted .. but not the objects inside them

 

I need to perform actions on those inside Objects ..

 

FYI Java Version is JRE 1.6

Oracel 1.5

Java Addin and Oracle Addin is added

 

Help Appreciated .. !!

 

 

Thanks

Search
Follow Us


Twitter Stream
Contributors
HP Blog

HP Software Solutions Blog

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation